فهرست منبع

hide signature in "Saved messages"

"Saved messages" would show the "Self" signature,
while that may be okay if the chat would be named "Self chat" or so,
for "Saved messages", this is a bit weird.
if we want a preview, we should add that somewhere else,
it is not expected here.
B. Petersen 4 سال پیش
والد
کامیت
3545549abe
1فایلهای تغییر یافته به همراه5 افزوده شده و 3 حذف شده
  1. 5 3
      deltachat-ios/ViewModel/ContactDetailViewModel.swift

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

@@ -57,9 +57,11 @@ class ContactDetailViewModel {
 
 
         sections.append(.chatOptions)
         sections.append(.chatOptions)
 
 
-        let dcContact = DcContact(id: contactId)
-        if !dcContact.status.isEmpty {
-            sections.append(.statusArea)
+        if !self.isSavedMessages {
+            let dcContact = DcContact(id: contactId)
+            if !dcContact.status.isEmpty {
+                sections.append(.statusArea)
+            }
         }
         }
 
 
         if sharedChats.length > 0 && !isSavedMessages && !isDeviceTalk {
         if sharedChats.length > 0 && !isSavedMessages && !isDeviceTalk {