()
| 246 | } |
| 247 | |
| 248 | public boolean haveChatMessages() { |
| 249 | for (Enumeration e = msgs.elements(); e.hasMoreElements();) { |
| 250 | Msg msg = ((MessageItem) e.nextElement()).msg; |
| 251 | if (msg.messageType == Msg.MESSAGE_TYPE_IN || msg.messageType == Msg.MESSAGE_TYPE_OUT || msg.messageType == Msg.MESSAGE_TYPE_AUTH) { |
| 252 | return true; |
| 253 | } |
| 254 | } |
| 255 | return false; |
| 256 | } |
| 257 | |
| 258 | public int getNewMsgsCount() { |
| 259 | if (msgs.isEmpty()) { |