You've already forked matrix-js-sdk
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:
@@ -2317,6 +2317,16 @@ MatrixClient.prototype.peekInRoom = function(roomId) {
|
|||||||
return this._peekSync.peek(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.
|
* Set r/w flags for guest access in a room.
|
||||||
* @param {string} roomId The room to configure guest access in.
|
* @param {string} roomId The room to configure guest access in.
|
||||||
|
Reference in New Issue
Block a user