Skip to content

Commit

Permalink
Update Messenger.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
pwielders committed May 23, 2024
1 parent 7013df3 commit 85713b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Messenger/Messenger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@ namespace Plugin {
roomId = GenerateRoomId(roomName, userName);
ASSERT(roomId.empty() == false);

MsgNotification* sink = Core::ServiceType<MsgNotification>::Create<MsgNotification>(*this, roomId);
ASSERT(sink != nullptr);

if (sink != nullptr) {
ASSERT(sink != nullptr);
MsgNotification* sink = Core::ServiceType<MsgNotification>::Create<MsgNotification>(*this, roomId);


// Note: Join() can return nullptr if the user has already joined the room.
if (room != nullptr) {

Expand Down

0 comments on commit 85713b1

Please sign in to comment.