aboutsummaryrefslogtreecommitdiff
path: root/matrix/matrix.go
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-04-24 23:52:31 +0300
committerTulir Asokan <tulir@maunium.net>2018-04-24 23:52:31 +0300
commit3de07ad550776a57e96399660c0ccd9c58dafcf3 (patch)
tree1fc7625340d12c7798708b87152331203aab8e9b /matrix/matrix.go
parent7026ed99a3ef4071a35e74d2d5f9026f6848be92 (diff)
Add tests for syncer and fix some bugs
Diffstat (limited to 'matrix/matrix.go')
-rw-r--r--matrix/matrix.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/matrix/matrix.go b/matrix/matrix.go
index 2e97ef4..ee5d9bd 100644
--- a/matrix/matrix.go
+++ b/matrix/matrix.go
@@ -295,9 +295,7 @@ func (c *Container) processOwnMembershipChange(evt *gomatrix.Event) {
func (c *Container) HandleMembership(evt *gomatrix.Event) {
if evt.StateKey != nil && *evt.StateKey == c.config.Session.UserID {
c.processOwnMembershipChange(evt)
- }
-
- if !c.config.Session.InitialSyncDone /*&& evt.Timestamp < time.Now().Add(-1*time.Hour).Unix()*/ {
+ } else if !c.config.Session.InitialSyncDone /*&& evt.Timestamp < time.Now().Add(-1*time.Hour).Unix()*/ {
// We don't care about other users' membership events in the initial sync.
return
}