1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(groups): remove logic that blocks parseConferenceSendMessageError

This commit is contained in:
jenli669 2019-08-03 00:09:05 +02:00
parent 765fce94b7
commit 9099eea04f
No known key found for this signature in database
GPG Key ID: 8267F9F7C2BF7E5E

View File

@ -723,9 +723,8 @@ void Core::sendGroupMessageWithType(int groupId, const QString& message, Tox_Mes
ToxString cMsg(message); ToxString cMsg(message);
Tox_Err_Conference_Send_Message error; Tox_Err_Conference_Send_Message error;
bool ok = tox_conference_send_message(tox.get(), groupId, type, cMsg.data(), cMsg.size(), &error);
tox_conference_send_message(tox.get(), groupId, type, cMsg.data(), cMsg.size(), &error); if (!parseConferenceSendMessageError(error)) {
if (!ok || !parseConferenceSendMessageError(error)) {
emit groupSentFailed(groupId); emit groupSentFailed(groupId);
return; return;
} }