aboutsummaryrefslogtreecommitdiff
path: root/appservice/matrix.go
diff options
context:
space:
mode:
Diffstat (limited to 'appservice/matrix.go')
-rw-r--r--appservice/matrix.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/appservice/matrix.go b/appservice/matrix.go
index b2da2f2..6b99992 100644
--- a/appservice/matrix.go
+++ b/appservice/matrix.go
@@ -179,10 +179,9 @@ func mxCreateRoom(name string, alias string, invite []string) (string, error) {
return rep.RoomId, nil
}
-func mxCreateDirectRoomAs(name string, invite []string, as_user string) (string, error) {
- rq := CreateRoomNoAliasRequest{
+func mxCreateDirectRoomAs(invite []string, as_user string) (string, error) {
+ rq := CreateDirectRoomRequest{
Preset: "private_chat",
- Name: name,
Topic: "",
Invite: invite,
CreationContent: map[string]interface{}{