diff options
author | George Hazan <george.hazan@gmail.com> | 2023-12-05 12:28:19 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-12-05 12:28:19 +0300 |
commit | 38c0f607e165534483f592bdebb492c5ea3e8acb (patch) | |
tree | 7763129243a58e1236553e2248477a022a87d798 /protocols/Telegram | |
parent | 67de1ebbc6d3ff8c9e67d4d796de0d4df8301b6f (diff) |
fixes #4010 (Telegram: cannot forward 2 and more messages)
Diffstat (limited to 'protocols/Telegram')
-rw-r--r-- | protocols/Telegram/src/menus.cpp | 1 | ||||
-rw-r--r-- | protocols/Telegram/src/stdafx.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/protocols/Telegram/src/menus.cpp b/protocols/Telegram/src/menus.cpp index 6efe0de807..b029b5deaa 100644 --- a/protocols/Telegram/src/menus.cpp +++ b/protocols/Telegram/src/menus.cpp @@ -120,6 +120,7 @@ public: if (dbei && dbei.szId) message_ids.push_back(dbei2id(dbei)); } + std::sort(message_ids.begin(), message_ids.end()); for (auto &hContact : m_proto->AccContacts()) { if (HANDLE hItem = m_clist.FindContact(hContact)) { diff --git a/protocols/Telegram/src/stdafx.h b/protocols/Telegram/src/stdafx.h index bb331c192a..45fbab04cf 100644 --- a/protocols/Telegram/src/stdafx.h +++ b/protocols/Telegram/src/stdafx.h @@ -5,6 +5,7 @@ #include <time.h>
#include <windows.h>
+#include <algorithm>
#include <map>
#include <memory>
|