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

use group change #283

Merged
merged 4 commits into from
Jul 30, 2022
Merged

use group change #283

merged 4 commits into from
Jul 30, 2022

Conversation

maltee1
Copy link
Contributor

@maltee1 maltee1 commented Jul 14, 2022

Make use of the GroupChange instead of scanning the group info for changes. This should be more efficient and also makes it easier to bridge changes with correct sender metadata. It will also avoid the issue of a particular change being wrongfully bridged as coming from a particular user when a previous change was missed (due to the bridge being down for example).

This should allow removing sender info from update_info and most of the functions it calls, but I haven't done that yet, because those would mean a lot of changes in a lot of places. I would also incorporate the GroupV2ID type into GroupV2. So far I have only incorporated minimal changes into the rest of the code to make it work with the new additions. The aforementioned changes are better saved for another PR or another commit.

This might make part of #275 obsolete, so maybe this one should be merged first.

@maltee1 maltee1 force-pushed the use_groupchange branch 4 times, most recently from c84051a to dd2f6fc Compare July 15, 2022 07:59
@maltee1 maltee1 force-pushed the use_groupchange branch 3 times, most recently from fa2d31d to 93a06ac Compare July 16, 2022 19:46
mautrix_signal/portal.py Outdated Show resolved Hide resolved
mautrix_signal/portal.py Outdated Show resolved Hide resolved
mautrix_signal/portal.py Outdated Show resolved Hide resolved
mautrix_signal/portal.py Outdated Show resolved Hide resolved
mautrix_signal/example-config.yaml Outdated Show resolved Hide resolved
mausignald/types.py Outdated Show resolved Hide resolved
Co-authored-by: Tulir Asokan <tulir@maunium.net>
@maltee1 maltee1 requested a review from tulir July 17, 2022 20:41
@maltee1 maltee1 force-pushed the use_groupchange branch 2 times, most recently from 1fa4e9d to b777c24 Compare July 18, 2022 06:56
@tulir tulir merged commit 7840b16 into mautrix:master Jul 30, 2022
@maltee1 maltee1 deleted the use_groupchange branch July 30, 2022 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants