mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 19:48:08 +00:00
feat: update notification settings (#10529)
https://github.com/user-attachments/assets/52ecf3f8-0329-4268-906e-d6102338f4af --------- Co-authored-by: Pranav <pranav@chatwoot.com> Co-authored-by: Pranav <pranavrajs@gmail.com>
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
export const getAssignee = message => message?.conversation?.assignee_id;
|
||||
export const isConversationUnassigned = message => !getAssignee(message);
|
||||
export const isConversationAssignedToMe = (message, currentUserId) =>
|
||||
getAssignee(message) === currentUserId;
|
||||
export const isMessageFromCurrentUser = (message, currentUserId) =>
|
||||
message?.sender?.id === currentUserId;
|
||||
Reference in New Issue
Block a user