diff options
author | ElzorFox <elzorfox@ya.ru> | 2023-12-08 09:25:59 +0500 |
---|---|---|
committer | ElzorFox <elzorfox@ya.ru> | 2023-12-08 09:25:59 +0500 |
commit | cc3c8097bef32bfa10a283229062b68fd4e9c138 (patch) | |
tree | c9ee0d293e81828a5d3275f55fb69e73eff94e29 /protocols/VKontakte/src/vk_proto.cpp | |
parent | cfe123df04b3317cc55d2405614d60496cd9bd3c (diff) |
VKontakte:
fix selfname for forwarding message
fix order for forwarding message
version bump
Diffstat (limited to 'protocols/VKontakte/src/vk_proto.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_proto.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/vk_proto.cpp b/protocols/VKontakte/src/vk_proto.cpp index 9627f12be2..924062555f 100644 --- a/protocols/VKontakte/src/vk_proto.cpp +++ b/protocols/VKontakte/src/vk_proto.cpp @@ -415,7 +415,7 @@ int CVkProto::OnPreBuildContactMenu(WPARAM hContact, LPARAM) return 0;
}
-int CVkProto::OnPrebuildNSMenu(WPARAM hContact, LPARAM lParam)
+int CVkProto::OnPrebuildNSMenu(WPARAM, LPARAM)
{
Menu_ShowItem(m_hNewStoryMenuItems[NSMI_FORWARD], true);
return 0;
@@ -449,6 +449,9 @@ INT_PTR CVkProto::SvcNSExecMenu(WPARAM iCommand, LPARAM pHandle) if (!vIds.size())
vIds.push_back(hCurrentEvent);
+
+ std::sort(vIds.begin(), vIds.end());
+
T2Utf pszMsg(dlg.wszMessage.c_str());
for (auto &hContact : dlg.lContacts)
ForwardMsg((UINT_PTR)hContact, vIds, pszMsg);
|