mirror of
https://github.com/abhinavxd/libredesk.git
synced 2026-09-23 11:03:43 +00:00
Fix permission denied toast errors on WS updates for restricted agents
Ref #252
This commit is contained in:
@@ -603,6 +603,12 @@ export const useConversationStore = defineStore('conversation', () => {
|
||||
* @param {object} message - Message object with conversation_uuid field
|
||||
*/
|
||||
async function updateConversationMessage (message) {
|
||||
// Skip if the message's conversation UUID is not in the list.
|
||||
if (!conversationUUIDExists(message.conversation_uuid) &&
|
||||
conversation.data?.uuid !== message.conversation_uuid) {
|
||||
return
|
||||
}
|
||||
|
||||
// Message does not exist in cache? fetch from server and update.
|
||||
if (!messages.data.hasMessage(message.conversation_uuid, message.uuid)) {
|
||||
fetchParticipants(message.conversation_uuid)
|
||||
|
||||
Reference in New Issue
Block a user