code cleanup
This commit is contained in:
parent
ad394bc5e9
commit
b498b6552c
@ -1,5 +1,5 @@
|
||||
//
|
||||
// Copyright (c) 2020 Open Whisper Systems. All rights reserved.
|
||||
// Copyright (c) 2022 Open Whisper Systems. All rights reserved.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
@ -18,13 +18,6 @@ extension DispatchQueue {
|
||||
autoreleaseFrequency: .workItem)
|
||||
}()
|
||||
|
||||
public static let sharedUserInitiatedConcurrent: DispatchQueue = {
|
||||
return DispatchQueue(label: "org.whispersystems.signal.sharedUserInitiatedConcurrent",
|
||||
qos: .userInitiated,
|
||||
attributes: [.concurrent],
|
||||
autoreleaseFrequency: .workItem)
|
||||
}()
|
||||
|
||||
public static let sharedUtility: DispatchQueue = {
|
||||
return DispatchQueue(label: "org.whispersystems.signal.sharedUtility",
|
||||
qos: .utility,
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
//
|
||||
// Copyright (c) 2021 Open Whisper Systems. All rights reserved.
|
||||
// Copyright (c) 2022 Open Whisper Systems. All rights reserved.
|
||||
//
|
||||
|
||||
import UIKit
|
||||
@ -250,12 +250,8 @@ public class ConversationAvatarView: UIView, CVView, PrimaryImageView {
|
||||
self.setNeedsLayout()
|
||||
}
|
||||
}
|
||||
if Thread.isMainThread {
|
||||
DispatchMainThreadSafe {
|
||||
uiUpdateBlock()
|
||||
} else {
|
||||
DispatchQueue.main.async {
|
||||
uiUpdateBlock()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user