Support edits without m.new_content
This commit is contained in:
		| @@ -196,7 +196,10 @@ func ParseMessage(matrix ifc.MatrixContainer, room *rooms.Room, evt *muksevt.Eve | |||||||
| 		content.RemoveReplyFallback() | 		content.RemoveReplyFallback() | ||||||
| 	} | 	} | ||||||
| 	if len(evt.Gomuks.Edits) > 0 { | 	if len(evt.Gomuks.Edits) > 0 { | ||||||
| 		content = evt.Gomuks.Edits[len(evt.Gomuks.Edits)-1].Content.AsMessage().NewContent | 		newContent := evt.Gomuks.Edits[len(evt.Gomuks.Edits)-1].Content.AsMessage().NewContent | ||||||
|  | 		if newContent != nil { | ||||||
|  | 			content = newContent | ||||||
|  | 		} | ||||||
| 	} | 	} | ||||||
| 	switch content.MsgType { | 	switch content.MsgType { | ||||||
| 	case event.MsgText, event.MsgNotice, event.MsgEmote: | 	case event.MsgText, event.MsgNotice, event.MsgEmote: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user