Fix rendering displayname change events
This commit is contained in:
parent
68956c4c63
commit
ceedeb7a41
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user