Accept IM_ROOM_PARTICIPANTS without user_names
This commit is contained in:
parent
41b6164bbc
commit
48db626672
|
@ -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;
|
||||||
|
|
Ŝarĝante…
Reference in New Issue