Commit 46e4a5b7 authored by Martin Klapetek's avatar Martin Klapetek Committed by Alexander Akulich

[declarative] Create MessagesModel on setting new text channel

Reviewed-by: Alexander Akulich's avatarAlexandr Akulich <>
parent 1c6ebe03
......@@ -80,6 +80,9 @@ Conversation::Conversation(QObject *parent) : QObject(parent)
void Conversation::setTextChannel(const Tp::TextChannelPtr& channel)
if (!d->messages) {
d->messages = new MessagesModel(d->account, this);
if (d->messages->textChannel() != channel) {
d->valid = channel->isValid();
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