Commit 294e1b91 authored by Martin Klapetek's avatar Martin Klapetek Committed by Alexander Akulich
Browse files

[declarative] Guard for empty channel

Reviewed-by: Alexander Akulich's avatarAlexandr Akulich <>
parent 2f406bd1
......@@ -364,6 +364,10 @@ int MessagesModel::unreadCount() const
void MessagesModel::acknowledgeAllMessages()
if (d->textChannel.isNull()) {
QList<Tp::ReceivedMessage> queue = d->textChannel->messageQueue();
Supports Markdown
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