Accept IM_ROOM_PARTICIPANTS without user_names

This commit is contained in:
Jaidyn Ann 2021-06-29 15:19:43 -05:00
parent 41b6164bbc
commit 48db626672

View File

@ -356,9 +356,8 @@ Server::ImMessage(BMessage* msg)
for (int i = 0; i < ids.CountStrings(); i++) { for (int i = 0; i < ids.CountStrings(); i++) {
User* user = _EnsureUser(ids.StringAt(i), protoLooper); User* user = _EnsureUser(ids.StringAt(i), protoLooper);
if (name.CountStrings() >= i) { if (name.CountStrings() >= i && !name.StringAt(i).IsEmpty())
user->SetNotifyName(name.StringAt(i)); user->SetNotifyName(name.StringAt(i));
}
chat->AddUser(user); chat->AddUser(user);
} }
break; break;