diff options
author | Gary Kim <gary@garykim.dev> | 2020-07-26 20:51:07 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-26 14:51:07 +0200 |
commit | 2d2bebe976972242cade57cb9512c8fd6326be58 (patch) | |
tree | 34af45321d90e082fa69f02e62ac5c1174c0c5cb /vendor/gomod.garykim.dev/nc-talk/gonctalk.go | |
parent | e1629994bdbb4257fe91cff0b3fc665814c66ac8 (diff) | |
download | matterbridge-msglm-2d2bebe976972242cade57cb9512c8fd6326be58.tar.gz matterbridge-msglm-2d2bebe976972242cade57cb9512c8fd6326be58.tar.bz2 matterbridge-msglm-2d2bebe976972242cade57cb9512c8fd6326be58.zip |
Fix Nextcloud Talk connection failure (#1179)
Fix #1177
Signed-off-by: Gary Kim <gary@garykim.dev>
Diffstat (limited to 'vendor/gomod.garykim.dev/nc-talk/gonctalk.go')
-rw-r--r-- | vendor/gomod.garykim.dev/nc-talk/gonctalk.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vendor/gomod.garykim.dev/nc-talk/gonctalk.go b/vendor/gomod.garykim.dev/nc-talk/gonctalk.go index 5abf8ac5..e334fef2 100644 --- a/vendor/gomod.garykim.dev/nc-talk/gonctalk.go +++ b/vendor/gomod.garykim.dev/nc-talk/gonctalk.go @@ -20,6 +20,7 @@ import ( ) // NewUser returns a TalkUser instance +// The url should be the full URL of the Nextcloud instance (e.g. https://cloud.mydomain.me) func NewUser(url string, username string, password string) *user.TalkUser { return &user.TalkUser{ NextcloudURL: url, @@ -29,6 +30,7 @@ func NewUser(url string, username string, password string) *user.TalkUser { } // NewRoom returns a new TalkRoom instance +// Token should be the Nextcloud Room Token (e.g. "d6zoa2zs" if the room URL is https://cloud.mydomain.me/call/d6zoa2zs) func NewRoom(tuser *user.TalkUser, token string) *room.TalkRoom { tr := &room.TalkRoom{ User: tuser, |