@webitel/ui-chats 0.1.22 → 0.1.23

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.1.22",
3
+ "version": "0.1.23",
4
4
  "description": "Reusable Webitel Frontend Code for Chats UI",
5
5
  "workspaces": [
6
6
  "../../",
@@ -15,9 +15,8 @@
15
15
  >
16
16
  <wt-avatar
17
17
  v-if="props.showAvatar"
18
- :username="getClientUsername"
19
- :size="size"
20
- :src="ComponentSize.SM || size"
18
+ :username="username"
19
+ :size="ComponentSize.SM || size"
21
20
  :bot="isBot"
22
21
  />
23
22
  </div>
@@ -107,10 +106,6 @@ const isSelfSide = computed<boolean>(
107
106
  );
108
107
  const isBot = computed<boolean>(() => props.message.member?.type === 'bot');
109
108
 
110
- const getClientUsername = computed<string>(() => {
111
- return !isSelfSide.value ? props.username : ''; // need to show username avatar only for client
112
- });
113
-
114
109
  function handlePlayerInitialize(player) {
115
110
  emit(MessageAction.InitializedPlayer, {
116
111
  player,