summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src
diff options
context:
space:
mode:
authorElzorFox <elzorfox@ya.ru>2023-09-08 07:43:51 +0500
committerElzorFox <elzorfox@ya.ru>2023-09-08 07:44:02 +0500
commit8cb9d3fd6d002d034f88b87a67bd76c4976d0271 (patch)
tree0656d7c07a3ae13f04550fe0ffc712678a863e47 /protocols/VKontakte/src
parent15fd857beeb3838dea083ea6122d360dbaff1424 (diff)
VKontakte:
fix long timeout on message sending to offline
Diffstat (limited to 'protocols/VKontakte/src')
-rw-r--r--protocols/VKontakte/src/vk_messages.cpp4
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);