mirror of https://github.com/vector-im/riot-web
Add JS doc to indicate that the function may throw an error.
parent
a901ca5308
commit
6f57fe96f2
|
@ -21,6 +21,7 @@ export default class WidgetUtils {
|
||||||
/* Returns true if user is able to send state events to modify widgets in this room
|
/* Returns true if user is able to send state events to modify widgets in this room
|
||||||
* @param roomId -- The ID of the room to check
|
* @param roomId -- The ID of the room to check
|
||||||
* @return Boolean -- true if the user can modify widgets in this room
|
* @return Boolean -- true if the user can modify widgets in this room
|
||||||
|
* @throws Error -- specifies the error reason
|
||||||
*/
|
*/
|
||||||
static canUserModifyWidgets(roomId) {
|
static canUserModifyWidgets(roomId) {
|
||||||
if (!roomId) {
|
if (!roomId) {
|
||||||
|
|
Loading…
Reference in New Issue