-
Notifications
You must be signed in to change notification settings - Fork 437
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
Fix display name of reshare with one-to-one room not invited to #1426
Fix display name of reshare with one-to-one room not invited to #1426
Conversation
The display name of reshares with one-to-one rooms not invited to was always set to the display name of the last participant. Now it includes the name of both participants in the room instead. Note that this is not needed for deleted shares, as in that case only shares by the user, not reshares, need to be formatted. Signed-off-by: Daniel Calviño Sánchez <[email protected]>
/backport to stable15 |
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.
Tested and works 👍
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.
Does what it says, however i'm not sure if we should leak the room/group/one2one names when the user is not part of it.
I thought the same, but the leaking is consistent with the behaviour of other shares; for example, when a share is reshared with a group, the name of the group can be seen too by the owner of the share even if she is not in that group. |
True, but there is a difference, you can share to that group yourself, while you can not share to rooms you are not a member off |
backport to stable15 in #1495 |
The display name of reshares with one-to-one rooms not invited to was always set to the display name of the last participant. However, this happens since 4afa2d7; before that the first participant was always used. Now the name of both participants in the room is used instead, which also fixes the integration tests that were broken in 4afa2d7.