Skip to content
Snippets Groups Projects
Unverified Commit b7bead2b authored by Christoph Wurst's avatar Christoph Wurst
Browse files

Fix unseen messages loading infinitely


When an unseen message is opened, we flag it as seen. So far, so good.
But in this code path we returned early from the `fetchMessage`
function, meaning that `this.loading` remained set to `true` and the
loading spinner never vanished.

My guess is that this is a leftover from the migration from promises to
async-await.

Signed-off-by: default avatarChristoph Wurst <christoph@winzerhof-wurst.at>
parent 36abd5d9
No related branches found
No related tags found
No related merge requests found
......@@ -206,7 +206,7 @@ export default {
logger.debug(`message ${this.envelope.databaseId} fetched`, { message })
if (!this.envelope.flags.seen) {
return this.$store.dispatch('toggleEnvelopeSeen', this.envelope)
this.$store.dispatch('toggleEnvelopeSeen', this.envelope)
}
this.loading = false
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment