diff options
author | ElzorFox <elzorfox@ya.ru> | 2023-09-08 07:43:51 +0500 |
---|---|---|
committer | ElzorFox <elzorfox@ya.ru> | 2023-09-08 07:44:02 +0500 |
commit | 8cb9d3fd6d002d034f88b87a67bd76c4976d0271 (patch) | |
tree | 0656d7c07a3ae13f04550fe0ffc712678a863e47 /protocols/VKontakte/src | |
parent | 15fd857beeb3838dea083ea6122d360dbaff1424 (diff) |
VKontakte:
fix long timeout on message sending to offline
Diffstat (limited to 'protocols/VKontakte/src')
-rw-r--r-- | protocols/VKontakte/src/vk_messages.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/vk_messages.cpp b/protocols/VKontakte/src/vk_messages.cpp index cda9aaaabc..a5f95dfdf5 100644 --- a/protocols/VKontakte/src/vk_messages.cpp +++ b/protocols/VKontakte/src/vk_messages.cpp @@ -22,8 +22,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. int CVkProto::SendMsg(MCONTACT hContact, int, const char *szMsg)
{
debugLogA("CVkProto::SendMsg");
- if (!IsOnline())
+ if (!IsOnline()) {
+ ProtoBroadcastAsync(hContact, ACKTYPE_MESSAGE, ACKRESULT_FAILED, 0);
return 0;
+ }
bool bIsChat = isChatRoom(hContact);
|