Bläddra i källkod

show existing saved-messages hint in profile

B. Petersen 2 år sedan
förälder
incheckning
aafe122224

+ 1 - 1
deltachat-ios/Controller/ContactDetailViewController.swift

@@ -308,7 +308,7 @@ class ContactDetailViewController: UITableViewController {
     private func updateCellValues() {
     private func updateCellValues() {
         ephemeralMessagesCell.detailTextLabel?.text = String.localized(viewModel.chatIsEphemeral ? "on" : "off")
         ephemeralMessagesCell.detailTextLabel?.text = String.localized(viewModel.chatIsEphemeral ? "on" : "off")
         allMediaCell.detailTextLabel?.text = viewModel.chatId == 0 ? String.localized("none") : viewModel.context.getAllMediaCount(chatId: viewModel.chatId)
         allMediaCell.detailTextLabel?.text = viewModel.chatId == 0 ? String.localized("none") : viewModel.context.getAllMediaCount(chatId: viewModel.chatId)
-        statusCell.setText(text: viewModel.contact.status)
+        statusCell.setText(text: viewModel.isSavedMessages ? String.localized("saved_messages_explain") : viewModel.contact.status)
     }
     }
 
 
     // MARK: - actions
     // MARK: - actions

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

@@ -60,10 +60,9 @@ class ContactDetailViewModel {
 
 
         let dcContact = context.getContact(id: contactId)
         let dcContact = context.getContact(id: contactId)
         self.lastSeen = dcContact.lastSeen
         self.lastSeen = dcContact.lastSeen
-        if !self.isSavedMessages {
-            if !dcContact.status.isEmpty {
-                sections.append(.statusArea)
-            }
+
+        if self.isSavedMessages || !dcContact.status.isEmpty {
+            sections.append(.statusArea)
         }
         }
 
 
         if sharedChats.length > 0 && !isSavedMessages && !isDeviceTalk {
         if sharedChats.length > 0 && !isSavedMessages && !isDeviceTalk {