fix(groups): fix first message of group chats not appearing

Fixes #4852
This commit is contained in:
Jonathan Rainville 2022-02-23 15:40:52 -05:00 committed by Iuri Matias
parent 91e42aba6d
commit 12d2652469
1 changed files with 4 additions and 1 deletions

View File

@ -80,8 +80,11 @@ Column {
property string outgoingStatus: messageOutgoingStatus
property string authorCurrentMsg: senderId
property string authorPrevMsg: {
if(!prevMessageAsJsonObj)
if(!prevMessageAsJsonObj ||
// The system message for private groups appear as created by the group host, but it shouldn't
prevMessageAsJsonObj.contentType === Constants.messageContentType.systemMessagePrivateGroupType) {
return ""
}
return prevMessageAsJsonObj.senderId
}