Skip to content

Commit

Permalink
tests: Fix issue with rp
Browse files Browse the repository at this point in the history
  • Loading branch information
Royna2544 committed Nov 13, 2024
1 parent 79ec78b commit 93d07e7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/commands/CommandModulesTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,11 @@ bool CommandModulesTest::isReplyToThisMsg(const ReplyParametersExt::Ptr& rhs,
LOG(INFO) << "ReplyParameters is nullptr";
return false;
}
ChatId lChatId = rhs->chatId;
ChatId rChatId = message->chat->id;
MessageId lMessageId = rhs->messageId;
MessageId rMessageId = message->messageId;
if (lChatId != rChatId || lMessageId != rMessageId) {
LOG(INFO) << "ReplyToThisMsg false: " << lChatId << " " << lMessageId
<< " vs " << rChatId << " " << rMessageId;
if (lMessageId != rMessageId) {
LOG(INFO) << "ReplyToThisMsg false: " << lMessageId << " vs "
<< rMessageId;
return false;
}
return true;
Expand Down

0 comments on commit 93d07e7

Please sign in to comment.