[ekiga] Made SIP::Conversation look for better names in the SIP::Heap



commit 50f6afc71f6927cbb1a119d942e74e9894433835
Author: Julien Puydt <jpuydt free fr>
Date:   Fri Feb 21 22:56:35 2014 +0100

    Made SIP::Conversation look for better names in the SIP::Heap

 lib/engine/components/opal/sip-conversation.cpp |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/lib/engine/components/opal/sip-conversation.cpp b/lib/engine/components/opal/sip-conversation.cpp
index c4c60cd..c0b50f4 100644
--- a/lib/engine/components/opal/sip-conversation.cpp
+++ b/lib/engine/components/opal/sip-conversation.cpp
@@ -78,6 +78,10 @@ SIP::Conversation::reset_unread_messages_count ()
 void
 SIP::Conversation::receive_message (const Ekiga::Message& message)
 {
-  messages.push_back (message);
-  message_received (message);
+  // if the endpoint doesn't put a real name, we'll try to find one
+  Ekiga::Message msg = { message.time,
+                        heap->get_name (message.name),
+                        message.payload };
+  messages.push_back (msg);
+  message_received (msg);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]