summaryrefslogtreecommitdiff
path: root/protocols/Facebook
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-01-30 20:18:37 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-01-30 20:18:46 +0300
commit4c281b28075dfa69d8cc2301b06492fbddb62f24 (patch)
treeb788f37caaff5063fd36eecad191d2a5582be12c /protocols/Facebook
parenta243c59835182e2a1fa91d9c7bd80defea88e4e8 (diff)
LIST::remove + LIST::indexOf() combination removed with LIST::removeItem
Diffstat (limited to 'protocols/Facebook')
-rw-r--r--protocols/Facebook/src/server.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/Facebook/src/server.cpp b/protocols/Facebook/src/server.cpp
index 28ee2adb96..9b025c2376 100644
--- a/protocols/Facebook/src/server.cpp
+++ b/protocols/Facebook/src/server.cpp
@@ -576,8 +576,8 @@ void FacebookProto::OnPublishPrivateMessage(const JSONNode &root)
if (m_uid == actorFbId) {
for (auto& it : arOwnMessages) {
if (it->msgId == offlineId) {
- ProtoBroadcastAck(pUser->hContact, ACKTYPE_MESSAGE, ACKRESULT_SUCCESS, (HANDLE) it->reqId, (LPARAM) szId.c_str());
- arOwnMessages.remove(arOwnMessages.indexOf(&it));
+ ProtoBroadcastAck(pUser->hContact, ACKTYPE_MESSAGE, ACKRESULT_SUCCESS, (HANDLE)it->reqId, (LPARAM)szId.c_str());
+ arOwnMessages.removeItem(&it);
break;
}
}
@@ -789,7 +789,7 @@ void FacebookProto::OnPublishSentMessage(const JSONNode &root)
}
else ProtoBroadcastAck(pUser->hContact, ACKTYPE_MESSAGE, ACKRESULT_SUCCESS, (HANDLE)it->reqId, (LPARAM)szId.c_str());
- arOwnMessages.remove(arOwnMessages.indexOf(&it));
+ arOwnMessages.removeItem(&it);
break;
}
}