Skip to content
Permalink
Browse files

Send correct m.visibility flag in js-sdk

  • Loading branch information...
lukebarnard1 committed Dec 1, 2017
1 parent 5b1a5b7 commit aa3201ebb0fff5af2fb733080aa65ed1f7213de6
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/base-apis.js
@@ -574,7 +574,7 @@ MatrixBaseApis.prototype.addRoomToGroup = function(groupId, roomId, isPublic) {
{$groupId: groupId, $roomId: roomId},
);
return this._http.authedRequest(undefined, "PUT", path, undefined,
{ visibility: { type: isPublic ? "public" : "private" } },
{ "m.visibility": { type: isPublic ? "public" : "private" } },
);
};

0 comments on commit aa3201e

Please sign in to comment.
You can’t perform that action at this time.