fix(groups): fix first message of group chats not appearing
Fixes #4852
This commit is contained in:
parent
91e42aba6d
commit
12d2652469
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue