Fix user context menus in in search results view

This commit is contained in:
Nachtalb 2021-04-12 23:40:29 +02:00
parent d6a23061fc
commit 40aaa17c9b
No known key found for this signature in database
GPG Key ID: E48DF13C07055D92

View File

@ -163,11 +163,17 @@ export default {
}); });
} }
}, },
chan() {
this.setActiveChannel();
},
}, },
mounted() { mounted() {
this.doSearch(); this.doSearch();
}, },
methods: { methods: {
setActiveChannel() {
this.$store.commit("activeChannel", this.chan);
},
shouldDisplayDateMarker(message, id) { shouldDisplayDateMarker(message, id) {
const previousMessage = this.messages[id - 1]; const previousMessage = this.messages[id - 1];