From de02c73957baedc536dc336da9f3f2e4d6d2161e Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sun, 1 Mar 2020 20:06:27 -0500 Subject: [PATCH] Fix custom emojis in display namesnot showing in conversation main statuses Caused by the cell updating it's UI multiple times in quick succession. As a workaround, prevent the main cell from being reloaded. --- .../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 fb5c99cc..efc1b926 100644 --- a/Tusker/Screens/Conversation/ConversationTableViewController.swift +++ b/Tusker/Screens/Conversation/ConversationTableViewController.swift @@ -19,13 +19,7 @@ class ConversationTableViewController: EnhancedTableViewController { let mainStatusID: String let mainStatusState: StatusState - var statuses: [(id: String, state: StatusState)] = [] { - didSet { - DispatchQueue.main.async { - self.tableView.reloadData() - } - } - } + var statuses: [(id: String, state: StatusState)] = [] var showStatusesAutomatically = false var visibilityBarButtonItem: UIBarButtonItem! @@ -69,6 +63,12 @@ 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..