aboutsummaryrefslogtreecommitdiffstats
path: root/src/de/gultsch/chat/ui/ConversationFragment.java
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-02-09 01:00:23 +0100
committerDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-02-09 01:00:23 +0100
commit4a963d6f5047705cb635924cf35b523f6cd6ba6b (patch)
tree4cbafe5de55d01439ec937f73d6f12f2cf87a1bf /src/de/gultsch/chat/ui/ConversationFragment.java
parentc31101dd6458225a007466a3d58a2f4b591c684f (diff)
send messages in mucs are no longer displayed twice
Diffstat (limited to 'src/de/gultsch/chat/ui/ConversationFragment.java')
-rw-r--r--src/de/gultsch/chat/ui/ConversationFragment.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/de/gultsch/chat/ui/ConversationFragment.java b/src/de/gultsch/chat/ui/ConversationFragment.java
index 2da0940b..13e617fd 100644
--- a/src/de/gultsch/chat/ui/ConversationFragment.java
+++ b/src/de/gultsch/chat/ui/ConversationFragment.java
@@ -56,10 +56,10 @@ public class ConversationFragment extends Fragment {
Message message = new Message(conversation, chatMsg
.getText().toString(), Message.ENCRYPTION_NONE);
activity.xmppConnectionService.sendMessage(conversation.getAccount(),message);
- conversation.getMessages().add(message);
chatMsg.setText("");
if (conversation.getMode()==Conversation.MODE_SINGLE) {
+ conversation.getMessages().add(message);
messageList.add(message);
}