Lines Matching refs:chat
116 Chat chat; in ChatManager()
118 chat = getUserChat(message.getFrom()); in ChatManager()
121 chat = getThreadChat(message.getThread()); in ChatManager()
122 if (chat == null) { in ChatManager()
124 chat = getUserChat(message.getFrom()); in ChatManager()
128 if(chat == null) { in ChatManager()
129 chat = createChat(message); in ChatManager()
131 deliverMessage(chat, message); in ChatManager()
164 Chat chat = threadChats.get(thread); in createChat() local
165 if(chat != null) { in createChat()
168 chat = createChat(userJID, thread, true); in createChat()
169 chat.addMessageListener(listener); in createChat()
170 return chat; in createChat()
174 Chat chat = new Chat(this, userJID, threadID); in createChat() local
175 threadChats.put(threadID, chat); in createChat()
176 jidChats.put(userJID, chat); in createChat()
177 baseJidChats.put(StringUtils.parseBareAddress(userJID), chat); in createChat() local
180 listener.chatCreated(chat, createdLocally); in createChat()
183 return chat; in createChat()
246 private void deliverMessage(Chat chat, Message message) { in deliverMessage() argument
248 chat.deliver(message); in deliverMessage()
251 void sendMessage(Chat chat, Message message) { in sendMessage() argument
265 PacketCollector createPacketCollector(Chat chat) { in createPacketCollector() argument
266 return connection.createPacketCollector(new AndFilter(new ThreadFilter(chat.getThreadID()), in createPacketCollector()
267 new FromContainsFilter(chat.getParticipant()))); in createPacketCollector()