Resolved the bug about crash with an empty history chat

This commit is contained in:
Blue 2021-01-12 20:10:24 +03:00
parent 15342f3c53
commit ff4124d1f0
3 changed files with 24 additions and 14 deletions

View file

@ -137,8 +137,12 @@ QVariant Models::MessageFeed::data(const QModelIndex& index, int role) const
answer = path;
}
}
case Attach:
break;
case Attach: {
::Models::Attach att;
answer.setValue(att);
}
break;
case Bulk: {
FeedItem item;
@ -169,6 +173,7 @@ QVariant Models::MessageFeed::data(const QModelIndex& index, int role) const
}
answer.setValue(item);
}
break;
default:
break;
}