Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All messages sent by apps are being routed into Mod Discussions #89

Open
shiruken opened this issue Sep 12, 2024 · 3 comments
Open

All messages sent by apps are being routed into Mod Discussions #89

shiruken opened this issue Sep 12, 2024 · 3 comments

Comments

@shiruken
Copy link
Contributor

Info

As of late July, all messages sent by Devvit apps are being routed into the Mod Discussions section. This has resulted in a large number of complaints from subreddits because a) Mod Discussions cannot be archived and b) this section can easily be overwhelmed by automated messages. Numerous subreddits have disabled Modmail notifications or removed apps entirely because of this undesirable change in behavior.

Prior to the change, messages sent using createConversation were properly routed into the normal Modmail Inbox. Messages sent using sendPrivateMessage have always gone into Mod Discussions.

Desired/Expected Behavior

There needs to be a way to send messages to Modmail using the Devvit app account without routing them into the Mod Discussions section.

Examples

Both routes for sending messages as the Devvit app suffer from this problem:

await context.reddit.sendPrivateMessage({
  to: "r/my-test-subreddit",
  subject: "Test Subject",
  text: "Test Text",
});
await context.reddit.modMail.createConversation({
  to: "my-app",
  subject: "Test Subject",
  body: "Test Body",
  subredditName: "r/my-test-subreddit",
});
@fsvreddit
Copy link
Contributor

There's a workaround for this that you or others may find useful. If your app doesn't need to handle modmail other than for creating a notification, and your code is using sendPrivateMessage, you can ask your users to remove the Modmail permission from the app account.

@shiruken
Copy link
Contributor Author

Unfortunately several of my apps do use Modmail conversations to send follow-up messages so that's not an option.

I'm also worried about the changing of permissions possibly screwing up the installations in the future and I'd rather avoid subreddits having to uninstall/reinstall and losing the data stored in Redis. Also have no idea how we could even communicate with all installers about needing to re-add the Modmail permissions if that were necessary.

@1993CRV
Copy link

1993CRV commented Sep 29, 2024

Related issue #81

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants