diff options
author | Tulir Asokan <tulir@maunium.net> | 2018-04-24 02:11:32 +0300 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2018-04-24 02:14:00 +0300 |
commit | fcd9a932cb5542ed8980fc1daba7ee1f0041a3f2 (patch) | |
tree | aaaf81233593391432b42369801580dff2fc75b4 /matrix/matrix.go | |
parent | 2a0145db884038342ba00cdb29fc29085e1faace (diff) |
Initial move to initial sync. Everything broke :(
Diffstat (limited to 'matrix/matrix.go')
-rw-r--r-- | matrix/matrix.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/matrix/matrix.go b/matrix/matrix.go index d58ce20..5345c40 100644 --- a/matrix/matrix.go +++ b/matrix/matrix.go @@ -191,7 +191,7 @@ func (c *Container) OnLogin() { c.syncer.OnEventType("m.tag", c.HandleTag) c.client.Syncer = c.syncer - c.UpdateRoomList() + //c.UpdateRoomList() } // Start moves the UI to the main view, calls OnLogin() and runs the syncer forever until stopped with Stop() @@ -296,6 +296,10 @@ func (c *Container) HandleMembership(evt *gomatrix.Event) { c.processOwnMembershipChange(evt) } + if !c.config.Session.InitialSyncDone && evt.Timestamp < time.Now().Add(-1*time.Hour).Unix() { + return + } + mainView := c.ui.MainView() roomView := mainView.GetRoom(evt.RoomID) if roomView == nil { |