summaryrefslogtreecommitdiffstats
path: root/src/gui/Conversation.vala
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2010-07-17 20:20:02 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2010-07-17 20:20:02 +0200
commit0aac619ba4dccd81018bddaa4690213b14cfe2b6 (patch)
treecd21aa85f777f45f8b6ab9f01dbd73cfc5f1d2b5 /src/gui/Conversation.vala
parentdfc0469a184ae978f40cac9df20d399fdeca99a3 (diff)
downloadephraim-0aac619ba4dccd81018bddaa4690213b14cfe2b6.tar
ephraim-0aac619ba4dccd81018bddaa4690213b14cfe2b6.zip
Moved some message handling from GUI to core
Diffstat (limited to 'src/gui/Conversation.vala')
-rw-r--r--src/gui/Conversation.vala16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/gui/Conversation.vala b/src/gui/Conversation.vala
index 811fa5c..246aba0 100644
--- a/src/gui/Conversation.vala
+++ b/src/gui/Conversation.vala
@@ -64,23 +64,11 @@ public class Conversation {
conversations.remove(widget);
}
- public void sent_message(string type, string message) {
+ public void chat_message(string type, string from, string message) {
if(type != "chat")
return;
- string str = me + ": " + message;
-
- if(content.buffer.text.length != 0)
- str = "\n" + str;
-
- content.buffer.text += str;
- }
-
- public void receive_message(string type, string message) {
- if(type != "chat")
- return;
-
- string str = display_name + ": " + message;
+ string str = from + ": " + message;
if(content.buffer.text.length != 0)
str = "\n" + str;