aboutsummaryrefslogtreecommitdiff
path: root/ui/messages
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2020-06-24 22:59:47 +0300
committerTulir Asokan <tulir@maunium.net>2020-06-24 22:59:47 +0300
commitceedeb7a4193ac2a5e8be2e3f40f6607ee04dfbc (patch)
treed59e1048fbb2758e007ff2a49b0d2a961918219e /ui/messages
parent68956c4c63702b50157872bfca057f839a1a51aa (diff)
Fix rendering displayname change events
Diffstat (limited to 'ui/messages')
-rw-r--r--ui/messages/parser.go1
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