[ekiga] Fixed the unread count in the SIP::Conversation class
- From: Julien Puydt <jpuydt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] Fixed the unread count in the SIP::Conversation class
- Date: Sat, 1 Mar 2014 16:31:14 +0000 (UTC)
commit 7f920344d8aa4f8ee1ceff768c3dc9b5c1ca5d35
Author: Julien Puydt <jpuydt free fr>
Date: Thu Feb 27 22:13:41 2014 +0100
Fixed the unread count in the SIP::Conversation class
lib/engine/components/opal/sip-conversation.cpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/lib/engine/components/opal/sip-conversation.cpp b/lib/engine/components/opal/sip-conversation.cpp
index c0b50f4..ec1bd01 100644
--- a/lib/engine/components/opal/sip-conversation.cpp
+++ b/lib/engine/components/opal/sip-conversation.cpp
@@ -40,7 +40,7 @@ SIP::Conversation::Conversation (boost::shared_ptr<Ekiga::PresenceCore> _core,
const std::string _uri,
const std::string _name,
boost::function1<bool, const Ekiga::Message::payload_type&> _sender):
- presence_core(_core), uri(_uri), title(_name), sender(_sender)
+ presence_core(_core), uri(_uri), title(_name), sender(_sender), unreads(0)
{
// FIXME: this api isn't good: we obviously don't handle correctly Conversation with several people!
boost::shared_ptr<Ekiga::URIPresentity> presentity =
@@ -84,4 +84,6 @@ SIP::Conversation::receive_message (const Ekiga::Message& message)
message.payload };
messages.push_back (msg);
message_received (msg);
+ unreads++;
+ updated();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]