From b31d96881432ebb1d4918ae970fabfd6362e1186 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Mon, 26 Mar 2018 17:22:47 +0300 Subject: Show notifications and highlights in room list. Fixes #8 --- interface/ui.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'interface') diff --git a/interface/ui.go b/interface/ui.go index 43e214b..c0ddf53 100644 --- a/interface/ui.go +++ b/interface/ui.go @@ -18,6 +18,8 @@ package ifc import ( "maunium.net/go/gomatrix" + "maunium.net/go/gomuks/matrix/pushrules" + "maunium.net/go/gomuks/matrix/rooms" "maunium.net/go/gomuks/ui/types" "maunium.net/go/gomuks/ui/widget" "maunium.net/go/tview" @@ -51,6 +53,7 @@ type MainView interface { AddServiceMessage(roomID *widget.RoomView, message string) ProcessMessageEvent(roomView *widget.RoomView, evt *gomatrix.Event) *types.Message ProcessMembershipEvent(roomView *widget.RoomView, evt *gomatrix.Event) *types.Message + NotifyMessage(room *rooms.Room, message *types.Message, should pushrules.PushActionArrayShould) } type LoginView interface { -- cgit v1.2.3