Skip to content

Commit

Permalink
Merge pull request #89 from WideChat/typing_indicator_fix
Browse files Browse the repository at this point in the history
[FIX] Salesforce agent typing indicator fix
  • Loading branch information
ear-dev authored Feb 22, 2023
2 parents 09f3bce + f9e1f7b commit df86157
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
"IRoomUserTyping",
"IUIKitLivechatInteractionHandler"
],
"commitHash": "43e6a3edc4707464b139e93e3c56405acd2bf7b5"
"commitHash": "09f3bce02b1b5f3eca618f7ea154a30c2e6d003b"
}
5 changes: 4 additions & 1 deletion helperFunctions/SalesforceMessageHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ export async function messageFilter(

case 'AgentTyping':
const salesforceBotUsername: string = await getAppSettingValue(read, AppSettingId.SALESFORCE_BOT_USERNAME);
await agentTypingListener(messageRoom.id, modify.getNotifier().typing({ id: messageRoom.id, username: salesforceBotUsername }));
await agentTypingListener(
messageRoom.id,
modify.getNotifier().typing({ id: messageRoom.id, username: i?.message?.name || salesforceBotUsername }),
);
break;

case 'AgentDisconnect':
Expand Down

0 comments on commit df86157

Please sign in to comment.