aboutsummaryrefslogtreecommitdiff
path: root/matrix/rooms
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-04-30 22:28:29 +0300
committerTulir Asokan <tulir@maunium.net>2018-04-30 22:28:29 +0300
commitb3543e90902e51c6f3cb3a90a7637d06a6ac5458 (patch)
treeef820c237b214bf3a57dce22d98d24a70a842dac /matrix/rooms
parenta6b8c20b20fcf27643843cfef8516562a67c0b70 (diff)
Stop showing rooms the user has left in the room list. Fixes #35
Diffstat (limited to 'matrix/rooms')
-rw-r--r--matrix/rooms/room.go3
1 files changed, 3 insertions, 0 deletions
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