Commit 4a2470df authored by Martin Klapetek's avatar Martin Klapetek Committed by Alexander Akulich
Browse files

[declarative] Construct MessagesModel in Conversation always in constructor


Reviewed-by: Alexander Akulich's avatarAlexander Akulich <akulichalexander@gmail.com>
parent 3aec112f
......@@ -80,6 +80,9 @@ Conversation::Conversation(QObject *parent)
: QObject(parent),
d(new ConversationPrivate)
{
d->messages = new MessagesModel(Tp::AccountPtr(), this);
connect(d->messages, &MessagesModel::unreadCountChanged, this, &Conversation::unreadMessagesChanged);
connect(d->messages, &MessagesModel::lastMessageChanged, this, &Conversation::lastMessageChanged);
}
void Conversation::setTextChannel(const Tp::TextChannelPtr &channel)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment