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