diff options
author | Joas Schilling <coding@schilljs.com> | 2023-05-23 11:18:16 +0200 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2023-05-23 11:33:01 +0000 |
commit | 25ae208435f91012e595958ebb3c1eb27c49243c (patch) | |
tree | 422284370e5357f2eb72fc72f5cfa6486c785d89 /src/components/CallView | |
parent | 3ce505ade3f7d3743ec173f0d198f5981a1d6e48 (diff) |
fix(reactions): Fix own call reactions when the HPB is used
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src/components/CallView')
-rw-r--r-- | src/components/CallView/shared/ReactionToaster.vue | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/components/CallView/shared/ReactionToaster.vue b/src/components/CallView/shared/ReactionToaster.vue index c329f8087..9b0d0c743 100644 --- a/src/components/CallView/shared/ReactionToaster.vue +++ b/src/components/CallView/shared/ReactionToaster.vue @@ -120,10 +120,10 @@ export default { methods: { handleOwnReaction({ model, reaction }) { - this.handleReaction(model, reaction) + this.handleReaction(model, reaction, true) }, - handleReaction(model, reaction) { + handleReaction(model, reaction, isLocalModel = false) { // prevent spamming to queue from a single account if (this.reactionsQueue.some(item => item.id === model.attributes.peerId)) { return @@ -137,7 +137,9 @@ export default { this.reactionsQueue.push({ id: model.attributes.peerId, reaction, - name: this.getParticipantName(model), + name: isLocalModel + ? this.$store.getters.getDisplayName() + : this.getParticipantName(model), seed: Math.random(), }) }, |