mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 13:14:58 +08:00
Merge pull request #6399 from matrix-org/t3chguy/fix/18032
Don't throw exception from setStickyRoom as it split-brains the RoomListStore
This commit is contained in:
commit
48817499e4
@ -124,7 +124,11 @@ export class Algorithm extends EventEmitter {
|
||||
* @param val The new room to sticky.
|
||||
*/
|
||||
public setStickyRoom(val: Room) {
|
||||
this.updateStickyRoom(val);
|
||||
try {
|
||||
this.updateStickyRoom(val);
|
||||
} catch (e) {
|
||||
console.warn("Failed to update sticky room", e);
|
||||
}
|
||||
}
|
||||
|
||||
public getTagSorting(tagId: TagID): SortAlgorithm {
|
||||
|
Loading…
Reference in New Issue
Block a user