forked from mirrors/linphone-iphone
Added nil check for content.name in foreach loop
This commit is contained in:
parent
4d10b44da5
commit
d353a9416e
1 changed files with 2 additions and 2 deletions
|
|
@ -1177,8 +1177,8 @@ class ConversationViewModel: ObservableObject {
|
|||
var attachmentNameReplyList: String = ""
|
||||
|
||||
eventLog.chatMessage?.replyMessage?.contents.forEach { content in
|
||||
if !content.isText {
|
||||
attachmentNameReplyList += ", \(content.name!)"
|
||||
if !content.isText, let name = content.name {
|
||||
attachmentNameReplyList += ", \(name)"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue