mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-04-28 22:26:21 +00:00
Change imdn icon
This commit is contained in:
parent
e01a27f538
commit
e792810c3c
3 changed files with 7 additions and 4 deletions
|
|
@ -132,8 +132,9 @@ struct ChatBubbleView: View {
|
||||||
if (conversationViewModel.displayedConversation != nil && conversationViewModel.displayedConversation!.isGroup) || message.isOutgoing {
|
if (conversationViewModel.displayedConversation != nil && conversationViewModel.displayedConversation!.isGroup) || message.isOutgoing {
|
||||||
if message.status == .sending {
|
if message.status == .sending {
|
||||||
ProgressView()
|
ProgressView()
|
||||||
|
.controlSize(.mini)
|
||||||
.progressViewStyle(CircularProgressViewStyle(tint: .orangeMain500))
|
.progressViewStyle(CircularProgressViewStyle(tint: .orangeMain500))
|
||||||
.frame(width: 15, height: 15)
|
.frame(width: 10, height: 10)
|
||||||
.padding(.top, 1)
|
.padding(.top, 1)
|
||||||
} else if message.status != nil {
|
} else if message.status != nil {
|
||||||
Image(conversationViewModel.getImageIMDN(status: message.status!))
|
Image(conversationViewModel.getImageIMDN(status: message.status!))
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ public struct Message: Identifiable, Hashable {
|
||||||
case sent
|
case sent
|
||||||
case received
|
case received
|
||||||
case read
|
case read
|
||||||
case error(DraftMessage)
|
case error
|
||||||
|
|
||||||
public func hash(into hasher: inout Hasher) {
|
public func hash(into hasher: inout Hasher) {
|
||||||
switch self {
|
switch self {
|
||||||
|
|
@ -53,7 +53,7 @@ public struct Message: Identifiable, Hashable {
|
||||||
return true
|
return true
|
||||||
case (.read, .read):
|
case (.read, .read):
|
||||||
return true
|
return true
|
||||||
case ( .error(_), .error(_)):
|
case ( .error, .error):
|
||||||
return true
|
return true
|
||||||
default:
|
default:
|
||||||
return false
|
return false
|
||||||
|
|
|
||||||
|
|
@ -294,6 +294,8 @@ class ConversationViewModel: ObservableObject {
|
||||||
statusTmp = .received
|
statusTmp = .received
|
||||||
case .Displayed:
|
case .Displayed:
|
||||||
statusTmp = .read
|
statusTmp = .read
|
||||||
|
case .NotDelivered:
|
||||||
|
statusTmp = .error
|
||||||
default:
|
default:
|
||||||
statusTmp = .sending
|
statusTmp = .sending
|
||||||
}
|
}
|
||||||
|
|
@ -1255,7 +1257,7 @@ class ConversationViewModel: ObservableObject {
|
||||||
case .read:
|
case .read:
|
||||||
return "checks"
|
return "checks"
|
||||||
case .error:
|
case .error:
|
||||||
return ""
|
return "warning-circle"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue