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

bridgev2: Support for caching and storage of Portal/Ghost related metadata #295

Open
purpshell opened this issue Oct 17, 2024 · 0 comments

Comments

@purpshell
Copy link
Member

Current Problem

Pretext

One of the features of the Twitter platform (supported in the Twitter bridge at mautrix/twitter) is read receipts. The way this feature works is that on every long poll, it will return the last message id the other side read.


Unfortunately, due to a lack of means of storage for this variable (memory caching or db storage, or a hybrid solution), we are unable to compare the new read id with the previous state, proving it nigh impossible to implement in a memory-safe, functional, and efficient manner.

Proposed Solution

The addition of metadata-related fields for Portals and Ghosts, this way, it will be possible to set chat-specific or participant-specific parameters, that are automatically cached and manged by the framework.

@purpshell purpshell changed the title Support for caching and storage of Portal/Ghost related metadata bridgev2: Support for caching and storage of Portal/Ghost related metadata Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant