From 0250631f375b06aac10fb3278e99fbf9afe85ee5 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 9 Sep 2020 00:06:53 +0200 Subject: [PATCH] Fix crash when using /o command --- ui/room-view.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/room-view.go b/ui/room-view.go index 8c8d2be6..13ba7000 100644 --- a/ui/room-view.go +++ b/ui/room-view.go @@ -459,10 +459,10 @@ func (view *RoomView) filterOwnOnly(evt *muksevt.Event) bool { func (view *RoomView) filterMediaOnly(evt *muksevt.Event) bool { content, ok := evt.Content.Parsed.(*event.MessageEventContent) - return ok && content.MsgType == event.MsgFile || + return ok && (content.MsgType == event.MsgFile || content.MsgType == event.MsgImage || content.MsgType == event.MsgAudio || - content.MsgType == event.MsgVideo + content.MsgType == event.MsgVideo) } func (view *RoomView) findMessage(current *muksevt.Event, forward bool, allow findFilter) *messages.UIMessage {