Commit 81f17d8c authored by Steven杜宇's avatar Steven杜宇

// 消息

parent d7d091d1
...@@ -49,7 +49,8 @@ class YHMessageListVC: YHBaseViewController { ...@@ -49,7 +49,8 @@ class YHMessageListVC: YHBaseViewController {
bar.rightBtnClick = { bar.rightBtnClick = {
[weak self] in [weak self] in
guard let self = self else { return } guard let self = self else { return }
if self.viewModel.unreadTotalCount <= 0 { let unreadMessages = self.msgArr.filter { $0.unreadCount > 0 }
if unreadMessages.count <= 0 {
YHHUD.flash(message: "暂无未读消息~") YHHUD.flash(message: "暂无未读消息~")
return return
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment