Room info, show back arrow even after reload
This commit is contained in:
parent
e794a95c68
commit
0f06857b91
2 changed files with 24 additions and 7 deletions
|
|
@ -100,7 +100,6 @@ export default {
|
|||
showPurgeConfirmation: false,
|
||||
showMoreMenu: false,
|
||||
downloadingChat: false,
|
||||
hasShownMissedItemsInfo: false,
|
||||
showMissedItemsInfo: false,
|
||||
|
||||
/** Timer for showing the "missed items" hint */
|
||||
|
|
@ -109,7 +108,6 @@ export default {
|
|||
},
|
||||
mounted() {
|
||||
this.$matrix.on("Room.timeline", this.onEvent);
|
||||
this.hasShownMissedItemsInfo = this.$store.state.hasShownMissedItemsHint === "1";
|
||||
this.updateMemberCount();
|
||||
},
|
||||
|
||||
|
|
@ -218,7 +216,7 @@ export default {
|
|||
notifications: {
|
||||
immediate: true,
|
||||
handler(val) {
|
||||
if (!this.hasShownMissedItemsHint && val > 0 && !this.showMissedItemsInfo && this.timerMissedItems == null) {
|
||||
if (this.$store.state.hasShownMissedItemsHint !== "1" && val > 0 && !this.showMissedItemsInfo && this.timerMissedItems == null) {
|
||||
this.timerMissedItems = setTimeout(() => {
|
||||
this.showMissedItemsInfo = true;
|
||||
}, 3500);
|
||||
|
|
@ -231,7 +229,6 @@ export default {
|
|||
setHasShownMissedItemsHint() {
|
||||
this.$store.commit('setHasShownMissedItemsHint', "1");
|
||||
this.showMissedItemsInfo = false;
|
||||
this.hasShownMissedItemsInfo = true;
|
||||
},
|
||||
onEvent(event) {
|
||||
if (!this.room || event.getRoomId() !== this.room.roomId) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue