Эх сурвалжийг харах

fix: 修复官方消息会话名称不展示的问题

陈文艺 2 сар өмнө
parent
commit
be5f8cf100

+ 1 - 3
Lanu/Views/IM/ConversationList/LNIMConversationCell.swift

@@ -39,7 +39,7 @@ class LNIMConversationCell: UITableViewCell {
             titleLabel.textColor = .text_6
             onlineView.isHidden = true
         } else {
-            titleLabel.text = ""
+            titleLabel.text = item.displayName
             titleLabel.textColor = .text_5
             onlineView.isHidden = !LNIMManager.shared.isUserOnline(uid: item.userID ?? "")
         }
@@ -62,8 +62,6 @@ class LNIMConversationCell: UITableViewCell {
         }
         curItem = item
         
-        titleLabel.text = item.displayName
-        
         if let userInfo = item.extraInfo?.userInfo {
             avatar.sd_setImage(with: URL(string: userInfo.avatar))
         } else if let userId = item.userID, !userId.isImOfficialId {