diff options
author | Tulir Asokan <tulir@maunium.net> | 2020-06-24 22:59:47 +0300 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2020-06-24 22:59:47 +0300 |
commit | ceedeb7a4193ac2a5e8be2e3f40f6607ee04dfbc (patch) | |
tree | d59e1048fbb2758e007ff2a49b0d2a961918219e | |
parent | 68956c4c63702b50157872bfca057f839a1a51aa (diff) |
Fix rendering displayname change events
-rw-r--r-- | ui/messages/parser.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/messages/parser.go b/ui/messages/parser.go index 90530c3..4e87d1f 100644 --- a/ui/messages/parser.go +++ b/ui/messages/parser.go @@ -277,6 +277,7 @@ func getMembershipEventContent(room *rooms.Room, evt *muksevt.Event) (sender str prevMembership := event.MembershipLeave prevDisplayname := *evt.StateKey if evt.Unsigned.PrevContent != nil { + _ = evt.Unsigned.PrevContent.ParseRaw(evt.Type) prevContent := evt.Unsigned.PrevContent.AsMember() prevMembership = prevContent.Membership prevDisplayname = prevContent.Displayname |