Initial move to initial sync. Everything broke :(

This commit is contained in:
Tulir Asokan
2018-04-24 02:11:32 +03:00
parent 2a0145db88
commit fcd9a932cb
3 changed files with 17 additions and 13 deletions

View File

@ -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
}