diff --git a/src/network/protocols/server_lobby.cpp b/src/network/protocols/server_lobby.cpp index f71ae9d79..a937fb92d 100644 --- a/src/network/protocols/server_lobby.cpp +++ b/src/network/protocols/server_lobby.cpp @@ -3808,9 +3808,23 @@ void ServerLobby::updatePlayerList(bool update_when_reset_server) .addUInt8((uint8_t)all_profiles.size()); for (auto profile : all_profiles) { - pl->addUInt32(profile->getHostId()).addUInt32(profile->getOnlineId()) - .addUInt8(profile->getLocalPlayerId()) - .encodeString(profile->getName()); + // get OS information + auto version_os = StringUtils::extractVersionOS(profile->getPeer()->getUserVersion()); + std::string os_type_str = version_os.second; + // if mobile OS + if (os_type_str == "iOS" || os_type_str == "Android") + { // Add a Mobile emoji for mobile OS + pl->addUInt32(profile->getHostId()).addUInt32(profile->getOnlineId()) + .addUInt8(profile->getLocalPlayerId()) + .encodeString(StringUtils::utf32ToWide({0x1F4F1}) + profile->getName()); + } + else + { + pl->addUInt32(profile->getHostId()).addUInt32(profile->getOnlineId()) + .addUInt8(profile->getLocalPlayerId()) + .encodeString(profile->getName()); + } + std::shared_ptr p = profile->getPeer(); uint8_t boolean_combine = 0; if (p && p->isWaitingForGame())