Skip to content

Commit

Permalink
Send correct m.visibility flag in js-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebarnard1 committed Dec 4, 2017
1 parent 5b1a5b7 commit aa3201e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/base-apis.js
Original file line number Diff line number Diff line change
Expand Up @@ -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" } },
);
};

Expand Down

0 comments on commit aa3201e

Please sign in to comment.