mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
* MageDialog - Removed some memory leaks for client dialogs (more to come soon).
This commit is contained in:
parent
2302b39b47
commit
4ab572bd0e
9 changed files with 59 additions and 34 deletions
|
|
@ -112,7 +112,10 @@ public class ChatManager {
|
|||
rest = rest.substring(first + 1).trim();
|
||||
User userTo = UserManager.getInstance().findUser(userToName);
|
||||
if (userTo != null) {
|
||||
chatSessions.get(chatId).broadcastWhisperToUser(user, userTo, rest);
|
||||
if (!chatSessions.get(chatId).broadcastWhisperToUser(user, userTo, rest)) {
|
||||
message += new StringBuilder("\nUser ").append(userToName).append(" not found").toString();
|
||||
chatSessions.get(chatId).broadcastInfoToUser(user,message);
|
||||
}
|
||||
} else {
|
||||
message += new StringBuilder("\nUser ").append(userToName).append(" not found").toString();
|
||||
chatSessions.get(chatId).broadcastInfoToUser(user,message);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue