aboutsummaryrefslogtreecommitdiffstats
path: root/src/de/gultsch/chat/ConversationList.java
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/de/gultsch/chat/ConversationList.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/de/gultsch/chat/ConversationList.java b/src/de/gultsch/chat/ConversationList.java
index b043f61a7..205d3549f 100644
--- a/src/de/gultsch/chat/ConversationList.java
+++ b/src/de/gultsch/chat/ConversationList.java
@@ -38,4 +38,9 @@ public class ConversationList extends ArrayList<Conversation> {
this.selectedConversationPosition = this.indexOf(selectedConversation);
}
+
+ public synchronized int addAndReturnPosition(Conversation conversation) {
+ this.add(conversation);
+ return size() - 1;
+ }
}