Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(groups): remove logic that blocks parseConferenceSendMessageError
Browse files Browse the repository at this point in the history
  • Loading branch information
Kribylet committed Aug 2, 2019
1 parent 765fce9 commit 9099eea
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/core/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -723,9 +723,8 @@ void Core::sendGroupMessageWithType(int groupId, const QString& message, Tox_Mes

ToxString cMsg(message);
Tox_Err_Conference_Send_Message error;
bool ok =
tox_conference_send_message(tox.get(), groupId, type, cMsg.data(), cMsg.size(), &error);
if (!ok || !parseConferenceSendMessageError(error)) {
tox_conference_send_message(tox.get(), groupId, type, cMsg.data(), cMsg.size(), &error);
if (!parseConferenceSendMessageError(error)) {
emit groupSentFailed(groupId);
return;
}
Expand Down

0 comments on commit 9099eea

Please sign in to comment.