Fix chat list short messages in channels

This commit is contained in:
Sebastian Wolf 2020-12-04 20:28:42 +01:00
parent 01d3ff18cf
commit 00bb7289ad

View file

@ -186,7 +186,7 @@ qlonglong ChatListModel::ChatData::senderMessageDate() const
QString ChatListModel::ChatData::senderMessageText() const
{
return FernschreiberUtils::getMessageShortText(lastMessage(CONTENT).toMap(), this->userInformation.value(ID).toLongLong() == senderUserId());
return FernschreiberUtils::getMessageShortText(lastMessage(CONTENT).toMap(), ( isChannel() ? false : this->userInformation.value(ID).toLongLong() == senderUserId() ) );
}
QString ChatListModel::ChatData::senderMessageStatus() const