mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-02-01 23:21:40 +01:00
fix decrypted tiles not corresponding to a tile
This commit is contained in:
parent
4d604f7357
commit
1d33ab20a5
@ -145,7 +145,12 @@ export class TilesCollection extends BaseObservableList {
|
|||||||
if (tile) {
|
if (tile) {
|
||||||
const action = tile.updateEntry(entry, params);
|
const action = tile.updateEntry(entry, params);
|
||||||
if (action.shouldReplace) {
|
if (action.shouldReplace) {
|
||||||
this._replaceTile(tileIdx, tile, this._tileCreator(entry));
|
const newTile = this._tileCreator(entry);
|
||||||
|
if (newTile) {
|
||||||
|
this._replaceTile(tileIdx, tile, newTile);
|
||||||
|
} else {
|
||||||
|
this._removeTile(tileIdx, tile);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (action.shouldRemove) {
|
if (action.shouldRemove) {
|
||||||
this._removeTile(tileIdx, tile);
|
this._removeTile(tileIdx, tile);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user