1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-08-12 08:42:46 +03:00

Merge pull request #114 from matrix-org/matthew/stop-peeking

API to stop peeking
This commit is contained in:
Matthew Hodgson
2016-03-21 16:12:29 +00:00

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() {
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.