@override void onUserOnline(User user) { int matchingIndex = getMatchingIndexFromKey(user.uid); if (matchingIndex != -1) { list[matchingIndex].status = user.status; update(); } }