mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-18 23:48:29 +02:00
Mark thread as read when viewed
This commit is contained in:
@@ -39,6 +39,13 @@ class ThreadViewController: RoomViewController {
|
||||
return UINib(nibName: String(describing: RoomViewController.self), bundle: .main)
|
||||
}
|
||||
|
||||
override func viewDidAppear(_ animated: Bool) {
|
||||
super.viewDidAppear(animated)
|
||||
|
||||
guard let threadId = threadId else { return }
|
||||
mainSession.threadingService.markThreadAsRead(threadId)
|
||||
}
|
||||
|
||||
override func setRoomTitleViewClass(_ roomTitleViewClass: AnyClass!) {
|
||||
super.setRoomTitleViewClass(ThreadRoomTitleView.self)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user