TryQuiet / quiet

A private, p2p alternative to Slack and Discord built on Tor & IPFS
https://www.tryquiet.org
GNU General Public License v3.0
1.94k stars 83 forks source link

Let users set channels to autodelete after inactivity #1773

Open holmesworcester opened 1 year ago

holmesworcester commented 1 year ago

Scenario: some of our users are running a helpdesk. They use channels to discuss particular incoming requests for help, and they want these channels to be automatically deleted after a period of inactivity.

Also, they want channel participants to get a warning before deletion happens.

Requirements:

  1. Users can set channels to delete after inactivity (2 days, 1 week, 2 weeks, 3 weeks, 1 month, 2 months, 3 months, 6 months, 1 year)
  2. This is a separate preference from disappearing messages that can be set independently.
  3. 24 hours before deletion happens, a message from "Quiet" (the app) goes out to the channel warning that the channel will be deleted if there's no activity for the next 24 hours. Anyone can send a message to the channel to keep it from being deleted.

Note: there's a remaining question of what to call these channels. "Autodelete channels" is the current name, but "Temporary channels" seems like the one people tend towards. We should decide this before implementing.

jgaylor commented 1 year ago

@holmesworcester the requirements make sense. I have some questions:

  1. Can community owners set a default channel deletion duration for all created channels, similar to the global setting for disappearing messages?

  2. Can DMs be set to delete, or is this only for channels? If so, do both users share these settings or is it only available to the person that initiated the DM?

  3. In addition to adding this to settings, I'm assuming we'll want to display this to the users in the channels (and DMs) in the messages panel header view and also show notifications in the channel when the duration changes (similar to how we spec'd in disappearing messages). Is that correct?

Not looking for solutions, just confirming these are places that need to be addressed (or not).

holmesworcester commented 1 year ago

Can community owners set a default channel deletion duration for all created channels, similar to the global setting for disappearing messages?

Yeah I think so.

Can DMs be set to delete, or is this only for channels? If so, do both users share these settings or is it only available to the person that initiated the DM?

I think we shouldn't have these settings for DMs, because it would be really annoying if there was a default setting that made all your DMs delete with inactivity.

But maybe not. I think this is a question for our users.

In addition to adding this to settings, I'm assuming we'll want to display this to the users in the channels (and DMs) in the messages panel header view and also show notifications in the channel when the duration changes (similar to how we spec'd in disappearing messages). Is that correct?

Sure

jgaylor commented 1 year ago

Thanks, will update the spec based on this.

jgaylor commented 11 months ago

Adding Loom and Figma here. I think this one is good to go.