@webitel/ui-chats 0.1.26 → 0.1.27

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.26",
3
+ "version": "0.1.27",
4
4
  "description": "Reusable Webitel Frontend Code for Chats UI",
5
5
  "workspaces": [
6
6
  "../../",
@@ -108,7 +108,9 @@ const isSelfSide = computed<boolean>(
108
108
  const isBot = computed<boolean>(() => props.message.member?.type === 'bot');
109
109
 
110
110
  const getClientUsername = computed<string>(() => {
111
- return isSelfSide.value ? props?.agentName : props.username;
111
+ if (isSelfSide.value) return isSelfSide?.value;
112
+
113
+ return props.username || props.message.member?.name;
112
114
  });
113
115
 
114
116
  function handlePlayerInitialize(player) {