summaryrefslogtreecommitdiffstats
path: root/vendor/gomod.garykim.dev/nc-talk/gonctalk.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/gomod.garykim.dev/nc-talk/gonctalk.go')
-rw-r--r--vendor/gomod.garykim.dev/nc-talk/gonctalk.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/vendor/gomod.garykim.dev/nc-talk/gonctalk.go b/vendor/gomod.garykim.dev/nc-talk/gonctalk.go
index e334fef2..727d5006 100644
--- a/vendor/gomod.garykim.dev/nc-talk/gonctalk.go
+++ b/vendor/gomod.garykim.dev/nc-talk/gonctalk.go
@@ -21,6 +21,8 @@ import (
// NewUser returns a TalkUser instance
// The url should be the full URL of the Nextcloud instance (e.g. https://cloud.mydomain.me)
+//
+// Deprecated: Use user.NewUser instead for more options and error checks
func NewUser(url string, username string, password string) *user.TalkUser {
return &user.TalkUser{
NextcloudURL: url,
@@ -31,6 +33,8 @@ 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)
+//
+// Deprecated: Use room.NewRoom instead for extra error checks.
func NewRoom(tuser *user.TalkUser, token string) *room.TalkRoom {
tr := &room.TalkRoom{
User: tuser,