From ceedeb7a4193ac2a5e8be2e3f40f6607ee04dfbc Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Wed, 24 Jun 2020 22:59:47 +0300 Subject: Fix rendering displayname change events --- ui/messages/parser.go | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3