aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-04-22 23:26:56 +0300
committerTulir Asokan <tulir@maunium.net>2018-04-22 23:59:46 +0300
commitfafc7f55be8c206d52de72522645091dd7a73b03 (patch)
tree0e16ef638073a49b8e318caf0a1ec0695227bde7 /config
parentad540e268d207eb4b18447018e1a5d67fac9d45e (diff)
Remove impossible check and improve things for testing
Diffstat (limited to 'config')
-rw-r--r--config/session.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/session.go b/config/session.go
index 7ceaf56..9419038 100644
--- a/config/session.go
+++ b/config/session.go
@@ -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