Don't throw exception from setStickyRoom as it split-brains the RoomListStore

pull/21833/head
Michael Telatynski 2021-07-19 09:36:25 +01:00
parent 4ef4f49e90
commit e54a7f0997
1 changed files with 5 additions and 1 deletions

View File

@ -124,7 +124,11 @@ export class Algorithm extends EventEmitter {
* @param val The new room to sticky.
*/
public setStickyRoom(val: Room) {
try {
this.updateStickyRoom(val);
} catch (e) {
console.warn("Failed to update sticky room", e);
}
}
public getTagSorting(tagId: TagID): SortAlgorithm {