From 8261e8d5c10fd1ecb34ba3af97095b8d0d1e5ca1 Mon Sep 17 00:00:00 2001 From: QuentinArguillere Date: Sun, 1 Sep 2024 12:22:29 +0200 Subject: [PATCH] If a meeting has been cancelled, then mark it as such in the meetings list --- .../UI/Main/Meetings/Fragments/MeetingsFragment.swift | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Linphone/UI/Main/Meetings/Fragments/MeetingsFragment.swift b/Linphone/UI/Main/Meetings/Fragments/MeetingsFragment.swift index faf2fa9ae..0619e54cb 100644 --- a/Linphone/UI/Main/Meetings/Fragments/MeetingsFragment.swift +++ b/Linphone/UI/Main/Meetings/Fragments/MeetingsFragment.swift @@ -66,8 +66,14 @@ struct MeetingsFragment: View { .padding(.top, 5) .default_text_style_500(styleSize: 15) } - Text(model.model!.time) // this time string is formatted for the current timezone, we use the selected timezone only when displaying details - .default_text_style_500(styleSize: 15) + if model.model!.confInfo.state != ConferenceInfo.State.Cancelled { + Text(model.model!.time) // this time string is formatted for the current device timezone, we use the selected timezone only when displaying details + .default_text_style_500(styleSize: 15) + } else { + Text("Cancelled") + .foregroundStyle(Color.redDanger500) + .default_text_style_500(styleSize: 15) + } } } .padding(.leading, 30)