From c4175bfa703ef299938a10ca8ed50be35c873632 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sun, 19 Apr 2020 18:56:36 +0300 Subject: Only show syncing modal for initial syncs --- matrix/sync.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'matrix/sync.go') diff --git a/matrix/sync.go b/matrix/sync.go index fdf2d4b..85de68c 100644 --- a/matrix/sync.go +++ b/matrix/sync.go @@ -99,6 +99,7 @@ func NewGomuksSyncer(rooms *rooms.RoomCache) *GomuksSyncer { rooms: rooms, listeners: make(map[event.Type][]EventHandler), FirstSyncDone: false, + Progress: StubSyncingModal{}, } } @@ -138,6 +139,7 @@ func (s *GomuksSyncer) ProcessResponse(res *mautrix.RespSync, since string) (err } wait.Wait() + s.Progress.SetMessage("Finishing sync") if since == "" && s.InitDoneCallback != nil { s.InitDoneCallback() -- cgit v1.2.3