From 44fbbd6a8013efabf29ac0337f45a9ceacd668bc Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Mon, 2 Mar 2020 18:31:38 -0500 Subject: [PATCH] Revert "Fix custom emojis in display namesnot showing in conversation main" This reverts commit 73da828e7cec09bcfbe65295bbd2f02e3b719ff6. Fixes #89 --- .../ConversationTableViewController.swift | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Tusker/Screens/Conversation/ConversationTableViewController.swift b/Tusker/Screens/Conversation/ConversationTableViewController.swift index efc1b926..fb5c99cc 100644 --- a/Tusker/Screens/Conversation/ConversationTableViewController.swift +++ b/Tusker/Screens/Conversation/ConversationTableViewController.swift @@ -19,7 +19,13 @@ class ConversationTableViewController: EnhancedTableViewController { let mainStatusID: String let mainStatusState: StatusState - var statuses: [(id: String, state: StatusState)] = [] + var statuses: [(id: String, state: StatusState)] = [] { + didSet { + DispatchQueue.main.async { + self.tableView.reloadData() + } + } + } var showStatusesAutomatically = false var visibilityBarButtonItem: UIBarButtonItem! @@ -63,12 +69,6 @@ class ConversationTableViewController: EnhancedTableViewController { self.statuses = parents.map { ($0.id, .unknown) } + self.statuses + context.descendants.map { ($0.id, .unknown) } let indexPath = IndexPath(row: parents.count, section: 0) DispatchQueue.main.async { - let ancestorsIndexPaths = (0..