Browse Source

hide 'last seen' in 'saved messages'

B. Petersen 2 năm trước cách đây
mục cha
commit
134a36fb58
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      deltachat-ios/ViewModel/ContactDetailViewModel.swift

+ 3 - 1
deltachat-ios/ViewModel/ContactDetailViewModel.swift

@@ -174,7 +174,9 @@ class ContactDetailViewModel {
     func footerFor(section: Int) -> String? {
         switch sections[section] {
         case .chatOptions:
-            if lastSeen == 0 {
+            if isSavedMessages {
+                return nil
+            } else if lastSeen == 0 {
                 return String.localized("last_seen_unknown")
             } else {
                 return String.localizedStringWithFormat(String.localized("last_seen_at"), DateUtils.getExtendedAbsTimeSpanString(timeStamp: Double(lastSeen)))