aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/session.go6
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
}