diff options
-rw-r--r-- | toxcore/Messenger.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c index 32e81389..b5da12ba 100644 --- a/toxcore/Messenger.c +++ b/toxcore/Messenger.c | |||
@@ -538,7 +538,7 @@ static void set_friend_userstatus(Messenger *m, int friendnumber, USERSTATUS sta | |||
538 | /* Sets whether we send read receipts for friendnumber. */ | 538 | /* Sets whether we send read receipts for friendnumber. */ |
539 | void m_set_sends_receipts(Messenger *m, int friendnumber, int yesno) | 539 | void m_set_sends_receipts(Messenger *m, int friendnumber, int yesno) |
540 | { | 540 | { |
541 | if (yesno != 0 || yesno != 1) | 541 | if (yesno != 0 && yesno != 1) |
542 | return; | 542 | return; |
543 | 543 | ||
544 | if (friend_not_valid(m, friendnumber)) | 544 | if (friend_not_valid(m, friendnumber)) |