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:
spaced4ndy
2026-10-01 13:46:19 +04:00
parent 688dba47d9
commit 75e990f120
12 changed files with 100 additions and 72 deletions
+6
View File
@@ -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