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 /config | |
parent | 2a0145db884038342ba00cdb29fc29085e1faace (diff) |
Initial move to initial sync. Everything broke :(
Diffstat (limited to 'config')
-rw-r--r-- | config/session.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config/session.go b/config/session.go index 9419038..2a6ce36 100644 --- a/config/session.go +++ b/config/session.go @@ -35,6 +35,8 @@ type Session struct { FilterID string Rooms map[string]*rooms.Room PushRules *pushrules.PushRuleset + + InitialSyncDone bool } func (config *Config) LoadSession(mxid string) error { @@ -50,6 +52,10 @@ func (config *Config) NewSession(mxid string) *Session { } } +func (s *Session) SetInitialSyncDone() { + s.InitialSyncDone = true +} + func (s *Session) GetUserID() string { return s.UserID } |