From 806f0f1bf0fedcbeb526b11ab4f1d0d4c89e23e1 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sat, 22 Feb 2020 01:30:43 +0200 Subject: Make invites mostly work --- ui/commands.go | 2 ++ ui/room-list.go | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'ui') diff --git a/ui/commands.go b/ui/commands.go index 9b1ac25..0adbb61 100644 --- a/ui/commands.go +++ b/ui/commands.go @@ -119,6 +119,8 @@ func cmdAccept(cmd *Command) { } else { cmd.Reply("Successfully accepted invite") } + cmd.MainView.UpdateTags(room) + go cmd.MainView.LoadHistory(room.ID) } func cmdReject(cmd *Command) { diff --git a/ui/room-list.go b/ui/room-list.go index 31e4c2a..1e1d1b0 100644 --- a/ui/room-list.go +++ b/ui/room-list.go @@ -138,7 +138,6 @@ func (list *RoomList) checkTag(tag string) { //delete(list.items, tag) ok = false } - debug.Print("Checking", tag, index, trl.IsEmpty(), ok) if ok && index == -1 { list.tags = append(list.tags, tag) -- cgit v1.2.3