Skip to content
This repository has been archived by the owner on Jun 7, 2020. It is now read-only.

Commit

Permalink
Merge pull request #711 from RocketChat/fix/user_status_update_chat_d…
Browse files Browse the repository at this point in the history
…etails.298

[FIX] Update titleView data from Subscription when we have some update in database
  • Loading branch information
rafaelks authored Sep 25, 2017
2 parents 355c880 + a8316fc commit f4400d2
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,13 @@ extension SubscriptionsViewController {
updateCurrentUserInformation()
SubscriptionManager.updateUnreadApplicationBadge()

// Update titleView information with subscription, can be
// some status changes
if let subscription = ChatViewController.shared?.subscription {
ChatViewController.shared?.chatTitleView?.subscription = subscription
}

// If side panel is visible, reload the data
if MainChatViewController.shared?.sidePanelVisible ?? false {
tableView?.reloadData()
}
Expand Down

0 comments on commit f4400d2

Please # to comment.