1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2026-01-03 23:22:30 +03:00

API to stop peeking

This commit is contained in:
Matthew Hodgson
2016-03-18 19:22:34 +00:00
parent e15a2d138c
commit 6c7d13f8ce

View File

@@ -2317,6 +2317,16 @@ MatrixClient.prototype.peekInRoom = function(roomId) {
return this._peekSync.peek(roomId);
};
/**
* Stop any ongoing room peeking.
*/
MatrixClient.prototype.stopPeeking = function(roomId) {
if (this._peekSync) {
this._peekSync.stopPeeking();
this._peekSync = null;
}
};
/**
* Set r/w flags for guest access in a room.
* @param {string} roomId The room to configure guest access in.