aboutsummaryrefslogtreecommitdiff
path: root/connector/xmpp/xmpp.go
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-02-17 21:04:21 +0100
committerAlex Auvolat <alex@adnab.me>2020-02-17 21:04:21 +0100
commit31bba8d946940df4858818f5efcc31cfd5a0a035 (patch)
treee9d2b7a6d6152fc45413648316a8ff7a514580b9 /connector/xmpp/xmpp.go
parent5ab2608ee8bd36b7c7b0d670d24b5851250e3887 (diff)
downloadeasybridge-31bba8d946940df4858818f5efcc31cfd5a0a035.tar.gz
easybridge-31bba8d946940df4858818f5efcc31cfd5a0a035.zip
Talking to Easybridge is now possible for some things
Diffstat (limited to 'connector/xmpp/xmpp.go')
-rw-r--r--connector/xmpp/xmpp.go5
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")
}