pull/21833/head
David Baker 2018-06-14 13:03:42 +01:00
parent 94125fb566
commit 36574ca0fb
1 changed files with 4 additions and 2 deletions

View File

@ -100,7 +100,8 @@ export default class WidgetUtils {
* @param {string} widgetId The ID of the widget to wait for
* @param {boolean} add True to wait for the widget to be added,
* false to wait for it to be deleted.
* @returns {Promise} that resolves when the widget is available
* @returns {Promise} that resolves when the widget is the the
* requested state according to the `add` param
*/
static waitForUserWidget(widgetId, add) {
return new Promise((resolve, reject) => {
@ -146,7 +147,8 @@ export default class WidgetUtils {
* @param {string} roomId The ID of the room to wait for the widget in
* @param {boolean} add True to wait for the widget to be added,
* false to wait for it to be deleted.
* @returns {Promise} that resolves when the widget is available
* @returns {Promise} that resolves when the widget is the the
* requested state according to the `add` param
*/
static waitForRoomWidget(widgetId, roomId, add) {
return new Promise((resolve, reject) => {