mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-06 18:38:34 +00:00
ios, android: show a pending badge purchase only on the profile that made it, and keep the buyer's alert
This commit is contained in:
@@ -2481,6 +2481,12 @@ func loadBadgeStateAsync(_ userId: Int64) async {
|
||||
}
|
||||
}
|
||||
|
||||
func loadCurrentBadgeState() async {
|
||||
if let userId = await MainActor.run(body: { ChatModel.shared.currentUser?.userId }) {
|
||||
await loadBadgeStateAsync(userId)
|
||||
}
|
||||
}
|
||||
|
||||
private func getUserChatDataAsync(keepingChatId: String?) async throws {
|
||||
let m = ChatModel.shared
|
||||
let tm = ChatTagsModel.shared
|
||||
|
||||
Reference in New Issue
Block a user