mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Add meeting invitation message in conversation list
This commit is contained in:
parent
3b2f97db6c
commit
3c3f3549ab
1 changed files with 16 additions and 1 deletions
|
|
@ -292,9 +292,24 @@ class ConversationModel: ObservableObject, Identifiable {
|
|||
fromAddressFriend = nil
|
||||
}
|
||||
|
||||
let lastMessageTextTmp = (fromAddressFriend ?? "")
|
||||
var lastMessageTextTmp = (fromAddressFriend ?? "")
|
||||
+ (lastMessage!.contents.first(where: {$0.isText == true})?.utf8Text ?? (lastMessage!.contents.first(where: {$0.isFile == true || $0.isFileTransfer == true})?.name ?? ""))
|
||||
|
||||
if lastMessage!.contents.first != nil && lastMessage!.contents.first!.isIcalendar == true {
|
||||
if let conferenceInfo = try? Factory.Instance.createConferenceInfoFromIcalendarContent(content: lastMessage!.contents.first!) {
|
||||
if conferenceInfo.uri != nil {
|
||||
//let meetingSubjectTmp = conferenceInfo.subject ?? ""
|
||||
if conferenceInfo.state == .New {
|
||||
lastMessageTextTmp = String(localized: "message_meeting_invitation_notification")
|
||||
} else if conferenceInfo.state == .Updated {
|
||||
lastMessageTextTmp = String(localized: "message_meeting_invitation_updated_notification")
|
||||
} else if conferenceInfo.state == .Cancelled {
|
||||
lastMessageTextTmp = String(localized: "message_meeting_invitation_cancelled_notification")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
let lastMessageIsOutgoingTmp = lastMessage?.isOutgoing ?? false
|
||||
|
||||
let lastUpdateTimeTmp = lastMessage?.time ?? chatRoom.lastUpdateTime
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue