-
Notifications
You must be signed in to change notification settings - Fork 14
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
[Story] Use display names instead of matrix ids for state events in EX #2395
Comments
@amshakal perfect, thanks! |
@stefanceriu I have added a status for each string in element-hq/element-x-android#2722. |
Nice, thank you! |
Some roomMembershipChange events coming from the SDK do not return a displayName (it returns as nil) even if the JSON content of the event contains it. |
The issue is that these two events are technically replacements of existing events, and we for now only fetch display name from the original content. However I see the original content is also present for these two so is unclear to why the original content is skipped i'll do some more digging |
Okay by debugging the SDK, and adding a some I extracted the following logs for the models coming from the SDK.
So for some reason the content is not containing the avatar and the display name even if its present in the JSON. This is the log of the This is the invitation revoked one:
I see that the displayname is not nil in the previous content, which makes sense, but the original content given the JSON also contains the event so its unclear why is not getting set in the model for the SDK I wonder if this is a Ruma bug, because the model |
On my side, when looking at the room membership event in the SDK code, I see this:
So the content only includes the membership change. Now, looking at what Element Web receives from sync v2, it's the same:
And it's been confirmed by folks that Synapse only returned the membership change, so it's not the sliding sync proxy messing up with the event's content. We can't do better than this, at this point. One solution would be to use the previous content's avatar/displayname, for leave/invitationRevoked membership changes. I'll play with that. |
matrix-org/matrix-rust-sdk#3648 |
Description
Second task:
@amshakal can you provide a design for sender display name disambiguation on mobile? (or point me to where the design does exist?) Thanks!
Acceptance criteria
Display names must be disambiguated with the matrix id when necessary.
Following strings are based on the EXI code in an attempt to be as exhaustive as possible. Thanks to common strings, it should apply to Android too.
The app must display user name for
%1$@
in:%1$@
and%2$@
must be user names in:%1$@
must be a matrix id in:%1$@
must be a user name and%2$@
must be a matrix id in:Other cases we do not need to check or change as part of this stoyr:
Leads
Size estimate
None
Dependencies
Out of scope
Open questions
Questions
Subtasks
Android
iOS
Bugs
Sign-off
Android
iOS
The text was updated successfully, but these errors were encountered: