@webitel/ui-chats 0.0.20 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -90,18 +90,15 @@ const size = inject<ComponentSize>("size");
|
|
|
90
90
|
|
|
91
91
|
const { image, media, document } = useChatMessageFile(props.message.file);
|
|
92
92
|
|
|
93
|
-
const
|
|
93
|
+
const isSelfSide = computed<boolean>(
|
|
94
94
|
() => props.message.member?.self || props.message.member?.type === "webitel",
|
|
95
95
|
);
|
|
96
|
-
|
|
97
96
|
const isBot = computed<boolean>(
|
|
98
97
|
() =>
|
|
99
98
|
props.message.member?.type === "bot" ||
|
|
100
99
|
(!props.message.member?.type && !props.message.channelId),
|
|
101
100
|
);
|
|
102
101
|
|
|
103
|
-
const isSelfSide = computed<boolean>(() => isSelfMessage.value || isBot.value);
|
|
104
|
-
|
|
105
102
|
const getClientUsername = computed<string>(() => {
|
|
106
103
|
return !isSelfSide.value ? props.username : ""; // need to show username avatar only for client
|
|
107
104
|
});
|