diff options
| author | George Hazan <george.hazan@gmail.com> | 2025-04-23 14:44:12 +0300 |
|---|---|---|
| committer | George Hazan <george.hazan@gmail.com> | 2025-04-23 14:44:12 +0300 |
| commit | 96be40692241468a253299e6d174c4f94bfd86c8 (patch) | |
| tree | 5110ed326822c6f89a653dfb17b09bfcd72d17e6 /protocols | |
| parent | 6b40f4a98aef9adf12d5ed943b247b451a4de43a (diff) | |
Teams: fix for incoming JSON structure
Diffstat (limited to 'protocols')
| -rw-r--r-- | protocols/Teams/src/teams_trouter.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/protocols/Teams/src/teams_trouter.cpp b/protocols/Teams/src/teams_trouter.cpp index 721e9ca8b3..2772b39578 100644 --- a/protocols/Teams/src/teams_trouter.cpp +++ b/protocols/Teams/src/teams_trouter.cpp @@ -250,9 +250,11 @@ void CTeamsProto::TRouterProcess(const char *str) if (message) { Netlib_Logf(m_hTrouterNetlibUser, "Got event:\n%s", message.write_formatted().c_str()); - if (!mir_strcmp(message.name(), "presence")) { - for (auto &it : message) - ProcessUserPresence(it); + for (auto &pkt : message) { + if (!mir_strcmp(pkt.name(), "presence")) { + for (auto &it : pkt) + ProcessUserPresence(it); + } } } |
