Open seanmc86 opened 1 year ago
Hi @seanmc86 thank you for reporting this issue, and apologies for any inconvenience this may have caused. We will investigate this on our end and get back to you. Thanks
@seanmc86 - Thanks for reporting your issue. We have tested this using TeamsJS version 2.16.0, Android Teams version 1416/1.0.0.2023183501/1009, and Android version 12. We were able to obtain the chat ID for direct chats on Android.
Could you please test this again and confirm once?
I can still reproduce the error for all direct and group chats. Note that the issue occurs when installing this tab for the first time in these chats. It's the same every time:
page.id
is emptypage.subPageId
is emptyTeams 1416/1.0.0.2023183501/1009, teams-js 2.16.0
Please see my latest feedback @Nivedipa-MSFT
@seanmc86 - We are able to repro that issue, we have raised bug for the same. We will inform you once we get any update.
Teams 1416/1.0.0.2023183501/1009 teams-js 2.16.0
Using the latest versions of microsoft/teams-js SDK (2.16.0), microsoft-graph-client (3.0.7) and the Teams app (1416/1.0.0.2023183501/1009), the following code is used to get app context:
This has been working on all platforms for some time, but now returns the incorrect payload on Android devices (for comparison, it works just fine on desktop & iOS)
For a direct (one-on-one) chat, we would expect "chats" data to be contained in the response. However, the response instead contains "channel" data on Android. And in this data, the
team.internalId
equals thechannel.id
, with no other IDs present related to the channel or team. When querying the MS graph endpoint "/teams/{id}/channels/{channel_id}" using these IDs, we get the error "teamId needs to be a valid GUID" which makes sense because this isn't actually in a team.Without the "chats" data it is impossible to get info on this chat at the regular "/chats/{id}" endpoint. (this does not work when using the
channel.id
in its place, obviously)Sample from Android context:
Snippet of missing data in working context on other platforms: