-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Fix improper or missing room_stats updates when handling state events (deltas). #5691
Conversation
Signed-off-by: Olivier Wilkinson (reivilibre) <[email protected]>
Fixes #5423 Signed-off-by: Olivier Wilkinson (reivilibre) <[email protected]>
event #5690. Signed-off-by: Olivier Wilkinson (reivilibre) <[email protected]>
Signed-off-by: Olivier Wilkinson (reivilibre) <[email protected]>
Codecov Report
@@ Coverage Diff @@
## develop #5691 +/- ##
===========================================
+ Coverage 63.32% 63.35% +0.02%
===========================================
Files 331 331
Lines 36140 36144 +4
Branches 5954 5956 +2
===========================================
+ Hits 22887 22900 +13
+ Misses 11622 11613 -9
Partials 1631 1631 |
Hrmm. It has come to my attention that the fix proposed here for #5690 isn't quite correct. For rooms joined over federation, (e.g. Edit: On the other hand, if a user makes the membership state transition leave→join and then you join a room over federation, the left_members stat is still sane and isn't negative – somehow. I was expecting it to go to -1 since the user left a Edit: This
Lead to I'm not (yet) sure how to address this. |
since it is tricky to maintain and has no known use case (for now). Signed-off-by: Olivier Wilkinson (reivilibre) <[email protected]>
The above issue has now been addressed. I am happy for this to be reviewed. (Maybe will save its merge to be done alongside some other upcoming PRs…?) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems legit to me, but I'd like a quick check from @hawkowl too
N.B. This PR may (or may not – we will have to see) be more or less obsolete given that I am going to make quite a bit of change to the room stats stuff. I'll leave it here for now. |
Obsolete in the face of #5847 |
Pull Request Checklist