summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/Messenger.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Messenger.c b/core/Messenger.c
index 4ea7e507..24797d7a 100644
--- a/core/Messenger.c
+++ b/core/Messenger.c
@@ -496,8 +496,8 @@ static void check_friend_connectionstatus(int friendnumber, uint8_t status)
496 return; 496 return;
497 if (status == NOFRIEND) 497 if (status == NOFRIEND)
498 return; 498 return;
499 const uint8_t is_connected = friendlist[friendnumber].status == FRIEND_ONLINE; 499 const uint8_t was_connected = friendlist[friendnumber].status == FRIEND_ONLINE;
500 const uint8_t was_connected = status == FRIEND_ONLINE; 500 const uint8_t is_connected = status == FRIEND_ONLINE;
501 if (is_connected != was_connected) 501 if (is_connected != was_connected)
502 friend_connectionstatuschange(friendnumber, is_connected); 502 friend_connectionstatuschange(friendnumber, is_connected);
503} 503}