diff --git a/include/transport/Conversation.h b/include/transport/Conversation.h index 94ae77d4d38c1d37513519da13617bae41c6a9b0..d5374ec95df2fd82f6b5e49b4d9530a612bd8416 100644 --- a/include/transport/Conversation.h +++ b/include/transport/Conversation.h @@ -44,12 +44,6 @@ class Conversation { PARTICIPANT_FLAG_ROOM_NOT_FOUD = 64 } ParticipantFlag; - typedef struct _Participant { - ParticipantFlag flag; - int status; - std::string statusMessage; - } Participant; - /// Creates new conversation. /// \param conversationManager ConversationManager associated with this Conversation. @@ -81,7 +75,7 @@ class Conversation { /// \param status Current status of this participant. /// \param statusMessage Current status message of this participant. /// \param newname If participant was renamed, this variable contains his new name. - void handleParticipantChanged(const std::string &nickname, ParticipantFlag flag, int status = Swift::StatusShow::None, const std::string &statusMessage = "", const std::string &newname = "", const std::string &iconhash = ""); + void handleParticipantChanged(const std::string &nickname, ParticipantFlag flag, int status = Swift::StatusShow::None, const std::string &statusMessage = "", const std::string &newname = "", const std::string &iconhash = "", const std::string &alias = ""); /// Sets XMPP user nickname in MUC rooms. @@ -176,7 +170,12 @@ class Conversation { // every time, so we can get history messages for IRC for example. boost::shared_ptr m_subject; std::list > m_cachedMessages; - std::map m_participants; + + typedef struct { + Swift::Presence::ref presence; + std::string alias; + } Participant; + std::map m_participants; }; }