aboutsummaryrefslogtreecommitdiff
path: root/connector/xmpp
diff options
context:
space:
mode:
Diffstat (limited to 'connector/xmpp')
-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")
}