mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 20:18:08 +00:00
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>
7 lines
369 B
JavaScript
7 lines
369 B
JavaScript
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;
|