Resolve FIXME
This commit is contained in:
parent
6851531014
commit
dff9f287b8
|
@ -157,8 +157,7 @@ final class ConversationCell : UITableViewCell {
|
||||||
// MARK: Updating
|
// MARK: Updating
|
||||||
private func update() {
|
private func update() {
|
||||||
AssertIsOnMainThread()
|
AssertIsOnMainThread()
|
||||||
guard let thread = threadViewModel?.threadRecord, let threadID = thread.uniqueId else { return }
|
guard let thread = threadViewModel?.threadRecord else { return }
|
||||||
MentionsManager.populateUserPublicKeyCacheIfNeeded(for: threadID) // FIXME: This is a terrible place to do this
|
|
||||||
let isBlocked: Bool
|
let isBlocked: Bool
|
||||||
if let thread = thread as? TSContactThread {
|
if let thread = thread as? TSContactThread {
|
||||||
isBlocked = SSKEnvironment.shared.blockingManager.isRecipientIdBlocked(thread.contactSessionID())
|
isBlocked = SSKEnvironment.shared.blockingManager.isRecipientIdBlocked(thread.contactSessionID())
|
||||||
|
|
|
@ -69,7 +69,7 @@ public final class ProfilePictureView : UIView {
|
||||||
publicKey = ""
|
publicKey = ""
|
||||||
useFallbackPicture = true
|
useFallbackPicture = true
|
||||||
} else { // A closed group
|
} else { // A closed group
|
||||||
var users = MentionsManager.userPublicKeyCache[thread.uniqueId!] ?? []
|
var users = Set(thread.groupModel.groupMemberIds)
|
||||||
users.remove(getUserHexEncodedPublicKey())
|
users.remove(getUserHexEncodedPublicKey())
|
||||||
var randomUsers = users.sorted() // Sort to provide a level of stability
|
var randomUsers = users.sorted() // Sort to provide a level of stability
|
||||||
if users.count == 1 {
|
if users.count == 1 {
|
||||||
|
|
Loading…
Reference in New Issue