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

[declarative] Return 0 unread messages if channel is null

Reviewed-by: Alexander Akulich's avatarAlexandr Akulich <>
parent d58fd638
......@@ -359,7 +359,11 @@ void MessagesModel::removeChannelSignals(const Tp::TextChannelPtr &channel)
int MessagesModel::unreadCount() const
return d->textChannel->messageQueue().size();
if (d->textChannel) {
return d->textChannel->messageQueue().size();
return 0;
void MessagesModel::acknowledgeAllMessages()
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