Chats pruning (one-to-one and groups) #640

Open
opened 2023-03-05 07:26:31 +00:00 by serrq · 4 comments

In order to keep the backup of an account short and light, but also to have shorter recovery times (think about groups or those very long chats) I ask that it be introduced the possibility of setting a length limit for the individual chats and the groups.

This limit should not have a time limit, but a unitary one.

For example: Always keep the last 100 messages.

This limit is set locally, on the client device, so the server (in the case of groups) will only deliver the client messages that meet its local rule (which is a user-decided value).

In order to keep the backup of an account short and light, but also to have shorter recovery times (think about groups or those very long chats) I ask that it be introduced the possibility of setting a length limit for the individual chats and the groups. This limit should not have a time limit, but a unitary one. For example: Always keep the last 100 messages. This limit is set locally, on the client device, so the server (in the case of groups) will only deliver the client messages that meet its local rule (which is a user-decided value).
Owner

This is something we discussed in the very early days of Cwtch, and I believe an early prototype might have even had support for it but it never migrated past alpha.

Ideally I think we would allow both time-based pruning (save messages for 1 day / week / month), and absolute pruning (100 max messages).

There is already a prune messages api in cwtch that checks the save history status. It would not be too much work to have it check additional qualifiers.

Related to: #608

This is something we discussed in the very early days of Cwtch, and I believe an early prototype might have even had support for it but it never migrated past alpha. Ideally I think we would allow both time-based pruning (save messages for 1 day / week / month), and absolute pruning (100 max messages). There is already a prune messages api in cwtch that checks the save history status. It would not be too much work to have it check additional qualifiers. Related to: https://git.openprivacy.ca/cwtch.im/cwtch-ui/issues/608
sarah added the
enhancement
help wanted
component/cwtch
labels 2023-03-06 20:24:12 +00:00
sarah added the
stable-blocker
label 2023-08-14 16:54:07 +00:00
sarah added this to the Stable Blockers project 2023-08-14 17:17:22 +00:00
sarah modified the project from Stable Blockers to Post-Stable 2023-09-25 19:56:53 +00:00
Owner

After consideration, given the work we are planning with hybrid groups after stable, and given the legacy state of groups, this work is being rescheduled until after stable.

After consideration, given the work we are planning with hybrid groups after stable, and given the legacy state of groups, this work is being rescheduled until after stable.

Is the timeline on this for after the (very exciting) work on groups? The absence of time-based pruning is the only hesitation I currently have for using Cwtch in some use cases, and I imagine some other users might also really value this feature.

Is the timeline on this for after the (very exciting) work on groups? The absence of time-based pruning is the only hesitation I currently have for using Cwtch in some use cases, and I imagine some other users might also really value this feature.
Owner

Managed Groups will have this feature from the get go.

Managed Groups will have this feature from the get go.
sarah removed the
stable-blocker
label 2024-02-13 19:26:20 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cwtch.im/cwtch-ui#640
No description provided.