dont double throw construct event

This commit is contained in:
Green Sky 2025-05-06 18:19:13 +02:00
parent ec926dcb95
commit 178f08ee96
No known key found for this signature in database
GPG Key ID: DBE05085D874AB4A

View File

@ -609,7 +609,7 @@ bool ToxTransferManager::sendFileObj(const Contact4 c, ObjectHandle o) {
toxFriendLookupAdd(o); toxFriendLookupAdd(o);
} // else queue? } // else queue?
_os.throwEventConstruct(o); _os.throwEventUpdate(o);
if (static_cast<bool>(msg)) { if (static_cast<bool>(msg)) {
_rmm.throwEventConstruct(msg); _rmm.throwEventConstruct(msg);