@webitel/ui-chats 0.0.20 → 0.0.22

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-chats",
3
- "version": "0.0.20",
3
+ "version": "0.0.22",
4
4
  "description": "Reusable Webitel Frontend Code for Chats UI",
5
5
  "workspaces": [
6
6
  "../../",
@@ -90,17 +90,10 @@ const size = inject<ComponentSize>("size");
90
90
 
91
91
  const { image, media, document } = useChatMessageFile(props.message.file);
92
92
 
93
- const isSelfMessage = computed<boolean>(
93
+ const isSelfSide = computed<boolean>(
94
94
  () => props.message.member?.self || props.message.member?.type === "webitel",
95
95
  );
96
-
97
- const isBot = computed<boolean>(
98
- () =>
99
- props.message.member?.type === "bot" ||
100
- (!props.message.member?.type && !props.message.channelId),
101
- );
102
-
103
- const isSelfSide = computed<boolean>(() => isSelfMessage.value || isBot.value);
96
+ const isBot = computed<boolean>(() => props.message.member?.type === "bot");
104
97
 
105
98
  const getClientUsername = computed<string>(() => {
106
99
  return !isSelfSide.value ? props.username : ""; // need to show username avatar only for client