Remove impossible check and improve things for testing

This commit is contained in:
Tulir Asokan
2018-04-22 23:26:56 +03:00
parent ad540e268d
commit fafc7f55be
4 changed files with 29 additions and 10 deletions

View File

@ -50,6 +50,10 @@ func (config *Config) NewSession(mxid string) *Session {
}
}
func (s *Session) GetUserID() string {
return s.UserID
}
func (s *Session) Clear() {
s.Rooms = make(map[string]*rooms.Room)
s.PushRules = nil