Skip to content

Commit

Permalink
Remove duplicate code
Browse files Browse the repository at this point in the history
  • Loading branch information
alfogrillo committed Nov 18, 2022
1 parent 4d3ca8e commit f1ce202
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Riot/Modules/Home/AllChats/AllChatsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1102,10 +1102,7 @@ extension AllChatsViewController: SplitViewMasterViewControllerProtocol {

private extension MXSpaceService {
var rootSpacesNotificationCount: UInt {
rootSpaces.reduce(0) { partialResult, space in
let count = notificationCounter.notificationState(forSpaceWithId: space.spaceId)?.allCount ?? 0
return partialResult + count
}
notificationCounter.notificationState(forAllSpacesExcept: nil).allCount
}

var rootSpacesHaveHighlightNotification: Bool {
Expand Down

0 comments on commit f1ce202

Please sign in to comment.