From 135fcbf284e941a312567d22af80fe69d49cbd89 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Mon, 23 Apr 2018 23:22:18 +0300 Subject: Make time-based room list sorting persistent (ref #11) --- matrix/rooms/room.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'matrix/rooms') diff --git a/matrix/rooms/room.go b/matrix/rooms/room.go index 61415a9..7b4a8b5 100644 --- a/matrix/rooms/room.go +++ b/matrix/rooms/room.go @@ -20,6 +20,7 @@ import ( "fmt" "sort" "sync" + "time" "maunium.net/go/gomatrix" ) @@ -52,6 +53,9 @@ type Room struct { // a notificationless message like bot notices. HasNewMessages bool + Tags []string + LastReceivedMessage time.Time + // MXID -> Member cache calculated from membership events. memberCache map[string]*Member // The first non-SessionUserID member in the room. Calculated at -- cgit v1.2.3