forked from mirrors/linphone-iphone
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 message.status == .sending {
|
||||
ProgressView()
|
||||
.controlSize(.mini)
|
||||
.progressViewStyle(CircularProgressViewStyle(tint: .orangeMain500))
|
||||
.frame(width: 15, height: 15)
|
||||
.frame(width: 10, height: 10)
|
||||
.padding(.top, 1)
|
||||
} else if message.status != nil {
|
||||
Image(conversationViewModel.getImageIMDN(status: message.status!))
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ public struct Message: Identifiable, Hashable {
|
|||
case sent
|
||||
case received
|
||||
case read
|
||||
case error(DraftMessage)
|
||||
case error
|
||||
|
||||
public func hash(into hasher: inout Hasher) {
|
||||
switch self {
|
||||
|
|
@ -53,7 +53,7 @@ public struct Message: Identifiable, Hashable {
|
|||
return true
|
||||
case (.read, .read):
|
||||
return true
|
||||
case ( .error(_), .error(_)):
|
||||
case ( .error, .error):
|
||||
return true
|
||||
default:
|
||||
return false
|
||||
|
|
|
|||
|
|
@ -294,6 +294,8 @@ class ConversationViewModel: ObservableObject {
|
|||
statusTmp = .received
|
||||
case .Displayed:
|
||||
statusTmp = .read
|
||||
case .NotDelivered:
|
||||
statusTmp = .error
|
||||
default:
|
||||
statusTmp = .sending
|
||||
}
|
||||
|
|
@ -1255,7 +1257,7 @@ class ConversationViewModel: ObservableObject {
|
|||
case .read:
|
||||
return "checks"
|
||||
case .error:
|
||||
return ""
|
||||
return "warning-circle"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue