Android chat empty after : fix

This commit is contained in:
Ade Novan authored and Gde Made Novan Priambhada committed 2017-07-02 01:28:38 +08:00
1 parent 766373e159
commit 6b39018868
2 files changed
+11 -3

No files matched your search

+10 -2
View File
@@ -858,8 +858,16 @@ void HandleGlobalMessage(const std::string &msg, const std::string &value) {
g_Config.proAdhocServer = setString;
if (inputboxValue[0] == "nickname")
g_Config.sNickName = setString;
if (inputboxValue[0] == "Chat")
sendChat(setString);
if (inputboxValue[0] == "Chat") {
if (inputboxValue.size() > 2)
{
std::string chatString = value;
chatString.erase(0, 5);
sendChat(chatString);
} else {
sendChat(setString);
}
}
inputboxValue.clear();
}
if (msg == "bgImage_updated") {