Teams Client Creates Unwanted Empty Chat Threads & Draft Chat Threads for Teams Calling Bot Calls

Dr Dave H 120 Reputation points
2023-12-08T12:10:04.9366667+00:00

We use the Graph Cloud Communications API for our Teams Calling Bot to answer an incoming call (usually from the PSTN) to the Bot, and then add a Teams user into the call. When the Teams User receives the incoming call, a new chat thread appears in the chat side-panel displaying the PSTN number (although, we've noticed that this doesn't always occur). Since this is a voice-only call with an external (PSTN) party, this chat thread is of no use, and furthermore since this is used in a help desk scenario, the Teams user may end up receiving many calls, thus creating numerous unwanted empty chat threads (and meaning important chat threads may scroll off the bottom of the chat side-panel) .

Example, Shown below is a chat thread created in the chat side-panel for an incoming (group) call to a Teams user (desktop client) from a Teams Calling Bot with a PSTN party already in the call;

User's image

The older Teams client didn't create these chat threads at all at some point in time, and when it did we believe they timed-out and disappeared after some time (within minutes). The new Teams client creates these unwanted call-related chat threads and doesn't appear to time them out.

Also, if the call is not answered by the Teams user, a draft chat thread is created (although this seems to appear only after exiting chat (e.g., clicking on Activity) and then returning). Sometimes, these draft chat threads are created even when the call has been accepted by the Teams user.

User's image

Is the creation/displaying of the empty chat thread and/or draft chat thread in this scenario a bug? If it is intended, then is there any configuration we can apply in order to not display these empty chat threads and draft chat threads? We have customers who are complaining about this behaviour of the Teams client.

Steps to Reproduce;

  1. Make call into Teams Calling Bot from PSTN
  2. Bot Answers call [Using call: answer]
  3. Bot adds Teams user to the call [Using participant: invite]
  4. Teams user sees new unwanted empty chat thread in chat side-panel
  5. If Teams user doesn't answer the call, then a draft chat thread is created on call timeout

The creation of the draft chat threads appears to be the greater issue since there seems to be a potential means to remove/hide the non-draft threads (using chat: hideForUser) but tests suggest that the daft chat threads can't be hidden using this approach.

Any help in this matter will be gratefully received. Many thanks in advance, cheers Dave

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,103 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,618 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,858 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,086 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Bernhard Rüttner 0 Reputation points
    2024-03-22T07:33:40.8066667+00:00

    We have the same problem. As soon as a call is routed to the call group, the colleagues in the call group receive a draft in the chat. The entry is created whether the call was accepted or not. I would like a solution for the automatic removal of draft entries for our business, which has to deal with this on a daily basis.

    0 comments No comments

  2. Philippe Ludwig 0 Reputation points
    2024-04-09T11:04:56.15+00:00

    We have exactly the same issue. Is there any solution available to avoid keeping conversations without content ?

    0 comments No comments