Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile-group
galaxy-iOS
Commits
e38529d9
Commit
e38529d9
authored
Sep 10, 2024
by
Alex朱枝文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
未读消息状态清空bug修复
parent
4c4c1651
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
YHButlerServiceManager.swift
...s/ButlerServiceManager(银河管家)/YHButlerServiceManager.swift
+2
-0
YHHomePageViewController.swift
...Classes/Modules/Home(首页)/C/YHHomePageViewController.swift
+1
-1
YHMessageListVC.swift
...alaxy/Classes/Modules/Message(消息)/C/YHMessageListVC.swift
+1
-1
No files found.
galaxy/galaxy/Classes/Modules/ButlerServiceManager(银河管家)/YHButlerServiceManager.swift
View file @
e38529d9
...
...
@@ -218,6 +218,8 @@ extension YHButlerServiceManager {
// 清空已读消息后刷新最新消息状态
lastMessage
=
getLastMessage
()
printLog
(
"$$$$clearUnreadCount"
)
unreadCount
=
0
NotificationCenter
.
default
.
post
(
name
:
YhConstant
.
YhNotification
.
didQiYuUnReadMsgCountChangeNotification
,
object
:
nil
)
}
}
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHHomePageViewController.swift
View file @
e38529d9
...
...
@@ -91,7 +91,7 @@ class YHHomePageViewController: YHBaseViewController {
}
YHHUD
.
hide
()
if
success
{
YHButlerServiceManager
.
shared
.
clearUnreadCount
()
//
YHButlerServiceManager.shared.clearUnreadCount()
// 需要回到页面再刷新已读,因为不在当前页
self
.
needUpdateMgrItem
=
true
}
...
...
galaxy/galaxy/Classes/Modules/Message(消息)/C/YHMessageListVC.swift
View file @
e38529d9
...
...
@@ -424,7 +424,7 @@ extension YHMessageListVC: UITableViewDelegate, UITableViewDataSource {
YHHUD
.
hide
()
if
success
{
YHButlerServiceManager
.
shared
.
clearUnreadCount
()
//
YHButlerServiceManager.shared.clearUnreadCount()
if
let
managerSession
=
self
.
msgArr
.
first
,
managerSession
.
type
==
YHMessageType
.
yinheManager
.
rawValue
{
managerSession
.
unreadCount
=
0
self
.
tableView
.
reloadData
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment