Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public void process(Exchange exchange) {
message.setType(Message.Type.normal);

ChatManager chatManager = ChatManager.getInstanceFor(connection);
Chat chat = getOrCreateChat(chatManager, participant, thread);
Chat chat = getOrCreateChat(chatManager, participant);

endpoint.getBinding().populateXmppMessage(message, exchange);

Expand All @@ -93,9 +93,9 @@ public void process(Exchange exchange) {
}
}

private Chat getOrCreateChat(ChatManager chatManager, final String participant, String thread) throws XmppStringprepException {
private Chat getOrCreateChat(ChatManager chatManager, final String participant) throws XmppStringprepException {
// this starts a new chat or retrieves the pre-existing one in a threadsafe manner
return chatManager.chatWith(JidCreate.entityBareFrom(participant + "@" + thread));
return chatManager.chatWith(JidCreate.entityBareFrom(participant));
}

private synchronized void reconnect() throws InterruptedException, IOException, SmackException, XMPPException {
Expand Down