From d114f80dcaf1d64ba96d18e768fa6b915e291048 Mon Sep 17 00:00:00 2001 From: "Grigorii K. Shartsev" Date: Wed, 15 May 2024 10:39:03 +0200 Subject: [PATCH] chore(vue3): remove $set/$delete Signed-off-by: Grigorii K. Shartsev --- src/components/CallView/CallView.vue | 4 +- .../ConversationSettings/BotsSettings.vue | 5 +- .../MessagesGroup/MessagesSystemGroup.vue | 2 +- src/components/MessagesList/MessagesList.vue | 12 +-- src/store/callViewStore.js | 8 +- src/store/conversationsStore.js | 31 ++++---- src/store/fileUploadStore.js | 20 +++-- src/store/messagesStore.js | 73 +++++++++---------- src/store/participantsStore.js | 55 +++++++------- src/store/pollStore.js | 19 +++-- src/stores/bots.ts | 7 +- src/stores/breakoutRooms.ts | 7 +- src/stores/chatExtras.js | 25 +++---- src/stores/federation.ts | 21 +++--- src/stores/guestName.js | 7 +- src/stores/reactions.js | 17 ++--- src/stores/settings.js | 20 +++-- src/stores/sharedItems.js | 15 ++-- 18 files changed, 163 insertions(+), 185 deletions(-) diff --git a/src/components/CallView/CallView.vue b/src/components/CallView/CallView.vue index ce4807d2cd53..cc0b747df878 100644 --- a/src/components/CallView/CallView.vue +++ b/src/components/CallView/CallView.vue @@ -458,7 +458,7 @@ export default { removedModelIds.forEach(removedModelId => { this.sharedDatas[removedModelId].remoteVideoBlocker.destroy() - this.$delete(this.sharedDatas, removedModelId) + delete this.sharedDatas[removedModelId] this.speakingUnwatchers[removedModelId]() // Not reactive, but not a problem @@ -485,7 +485,7 @@ export default { screenVisible: false, } - this.$set(this.sharedDatas, addedModel.attributes.peerId, sharedData) + this.sharedDatas[addedModel.attributes.peerId] = sharedData // Not reactive, but not a problem this.speakingUnwatchers[addedModel.attributes.peerId] = this.$watch(function() { diff --git a/src/components/ConversationSettings/BotsSettings.vue b/src/components/ConversationSettings/BotsSettings.vue index 36a8f8fcd1c0..8fb9c5fb758c 100644 --- a/src/components/ConversationSettings/BotsSettings.vue +++ b/src/components/ConversationSettings/BotsSettings.vue @@ -34,9 +34,6 @@