From b3543e90902e51c6f3cb3a90a7637d06a6ac5458 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Mon, 30 Apr 2018 22:28:29 +0300 Subject: Stop showing rooms the user has left in the room list. Fixes #35 --- matrix/rooms/room.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'matrix/rooms/room.go') diff --git a/matrix/rooms/room.go b/matrix/rooms/room.go index 95349c3..808eecb 100644 --- a/matrix/rooms/room.go +++ b/matrix/rooms/room.go @@ -47,6 +47,9 @@ type RoomTag struct { type Room struct { *gomatrix.Room + // Whether or not the user has left the room. + HasLeft bool + // The first batch of events that has been fetched for this room. // Used for fetching additional history. PrevBatch string -- cgit v1.2.3