chatmail / chatmail/core

Support reordering of webxdc instances and updates

Open
#7,457 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
929
Forks
143
Avg merge
1d 20h
Merged PRs (30d)
53

Description

This can probably be done by creating a fake webxdc instance and adding it to the trash chat, and replacing it with the true instance later. We delete tombstones after 2 days, so updates will be deleted as well. The downside is that if ephemeral messages are enabled in the chat, such reordered updates may not be deleted on time. So another option is adding a fake hidden instance to the chat and setting an ephemeral timer for it to some smaller period so that it's updated when chat's ephemeral timer updates. Note that `ephemeral::start_chat_ephemeral_timers()` can only reduce the existing message ephemeral timestamp, so reordered updates will be deleted on time anyway if the true instance doesn't arrive.

This is a follow-up to discussion at https://github.com/chatmail/core/pull/7373#discussion_r2528888031_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.