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

Federation: history is broken when an invited member joins a room that he left previously #3515

Open
matrixbot opened this issue Dec 16, 2023 · 1 comment

Comments

@matrixbot
Copy link
Collaborator

matrixbot commented Dec 16, 2023

This issue has been migrated from #3515.


TL;DR: history may be missing between a federated user being re-invited to a room and re-joining it.

Description

A part of the room history is missing when an invited member joins a room that he left previously,
if the room has been created on another homeserver than the member's one.
Note: The e2e encryption is disabled in this room.

Steps to reproduce

  • Consider 2 users userA and userB, created on 2 different Homeservers.
  • userA creates a room, history_visibility is shared (default value)
  • userA invites userB
  • userA sends some messages
  • userB joins, he can read the messages OK
  • userA and userB send some messages OK
  • userB leaves the room
  • userA sends a message M1
  • userA invites again userB
  • userA sends a message M2
  • userB joins, the messages M1 and M2 are missing in the room history (I checked we did not get them in the server sync response after userB joined the room) NOK

Note1: The room history is restored correctly if we trigger an initial sync. Indeed the messages M1 and M2 are then provided in the server sync response.

Note2: You can send more than 1 message with the message M2. The problem is the same, userB don't receive them when he joins. He gets them only by triggering an initial sync.

Note3: This issue is not reproduced when userA and userB belong to the same homeserver.

@matrixbot matrixbot changed the title Dummy issue Federation: history is broken when an invited member joins a room that he left previously Dec 21, 2023
@matrixbot matrixbot reopened this Dec 21, 2023
@bkil
Copy link

bkil commented May 10, 2024

Possibly related #15717

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants