diff options
author | Alex Auvolat <alex@adnab.me> | 2020-02-17 21:04:21 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-02-17 21:04:21 +0100 |
commit | 31bba8d946940df4858818f5efcc31cfd5a0a035 (patch) | |
tree | e9d2b7a6d6152fc45413648316a8ff7a514580b9 /connector/xmpp | |
parent | 5ab2608ee8bd36b7c7b0d670d24b5851250e3887 (diff) | |
download | easybridge-31bba8d946940df4858818f5efcc31cfd5a0a035.tar.gz easybridge-31bba8d946940df4858818f5efcc31cfd5a0a035.zip |
Talking to Easybridge is now possible for some things
Diffstat (limited to 'connector/xmpp')
-rw-r--r-- | connector/xmpp/xmpp.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/connector/xmpp/xmpp.go b/connector/xmpp/xmpp.go index caeb993..b18e670 100644 --- a/connector/xmpp/xmpp.go +++ b/connector/xmpp/xmpp.go @@ -294,6 +294,11 @@ func (xm *XMPP) Join(roomId RoomID) error { } func (xm *XMPP) Invite(userId UserID, roomId RoomID) error { + if roomId == "" { + xm.conn.RequestSubscription(string(userId)) + xm.conn.ApproveSubscription(string(userId)) + return nil + } // TODO return fmt.Errorf("Not implemented") } |