summaryrefslogtreecommitdiffstats
path: root/vendor/gomod.garykim.dev/nc-talk/room/room.go
diff options
context:
space:
mode:
authorGary Kim <gary@garykim.dev>2020-10-19 17:16:34 -0400
committerGitHub <noreply@github.com>2020-10-19 23:16:34 +0200
commit950f2759bd2b20aa0bdedc3dc9a74d0dafb606d8 (patch)
treea6071c7741df26ae883aa8f791df141786dc7580 /vendor/gomod.garykim.dev/nc-talk/room/room.go
parent25c82ddf023a9f16ff2ef31093ee215b69c345be (diff)
downloadmatterbridge-msglm-950f2759bd2b20aa0bdedc3dc9a74d0dafb606d8.tar.gz
matterbridge-msglm-950f2759bd2b20aa0bdedc3dc9a74d0dafb606d8.tar.bz2
matterbridge-msglm-950f2759bd2b20aa0bdedc3dc9a74d0dafb606d8.zip
Add support for downloading files (nctalk) (#1249)
Signed-off-by: Gary Kim <gary@garykim.dev>
Diffstat (limited to 'vendor/gomod.garykim.dev/nc-talk/room/room.go')
-rw-r--r--vendor/gomod.garykim.dev/nc-talk/room/room.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/gomod.garykim.dev/nc-talk/room/room.go b/vendor/gomod.garykim.dev/nc-talk/room/room.go
index b53b01fc..da058a37 100644
--- a/vendor/gomod.garykim.dev/nc-talk/room/room.go
+++ b/vendor/gomod.garykim.dev/nc-talk/room/room.go
@@ -62,7 +62,7 @@ func NewTalkRoom(tuser *user.TalkUser, token string) (*TalkRoom, error) {
// SendMessage sends a message in the Talk room
func (t *TalkRoom) SendMessage(msg string) (*ocs.TalkRoomMessageData, error) {
- url := t.User.NextcloudURL + constants.BaseEndpoint + "/chat/" + t.Token
+ url := t.User.NextcloudURL + constants.BaseEndpoint + "chat/" + t.Token
requestParams := map[string]string{
"message": msg,
}
@@ -93,7 +93,7 @@ func (t *TalkRoom) ReceiveMessages(ctx context.Context) (chan ocs.TalkRoomMessag
if err != nil {
return nil, err
}
- url := t.User.NextcloudURL + constants.BaseEndpoint + "/chat/" + t.Token
+ url := t.User.NextcloudURL + constants.BaseEndpoint + "chat/" + t.Token
requestParam := map[string]string{
"lookIntoFuture": "1",
"includeLastKnown": "0",
@@ -154,7 +154,7 @@ func (t *TalkRoom) TestConnection() error {
if t.Token == "" {
return ErrEmptyToken
}
- url := t.User.NextcloudURL + constants.BaseEndpoint + "/chat/" + t.Token
+ url := t.User.NextcloudURL + constants.BaseEndpoint + "chat/" + t.Token
requestParam := map[string]string{
"lookIntoFuture": "0",
"includeLastKnown": "0",