1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-29 16:43:09 +03:00

Prefix the status message API with _unstable

It's not a formal feature of Matrix yet, so we should try and avoid people relying on it. This makes it appear as a private API and is very clearly labeled as not intended for use.
This commit is contained in:
Travis Ralston
2018-12-12 23:05:03 -07:00
parent fb65c7f4ba
commit 08b3dfa3b5
3 changed files with 7 additions and 7 deletions

View File

@@ -2269,7 +2269,7 @@ MatrixClient.prototype.mxcUrlToHttp =
* @return {module:client.Promise} Resolves: to nothing
* @return {module:http-api.MatrixError} Rejects: with an error response.
*/
MatrixClient.prototype.setStatusMessage = function(newMessage) {
MatrixClient.prototype._unstable_setStatusMessage = function(newMessage) {
return Promise.all(this.getRooms().map((room) => {
const isJoined = room.getMyMembership() === "join";
const looksLikeDm = room.getInvitedAndJoinedMemberCount() === 2;