mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-23 12:53:18 +00:00
ios, android: catch a failed purchase presentation, word store purchase errors, and sweep abandoned purchases on a profile switch
This commit is contained in:
1 parent
7da11f71fd
commit
e80e885aac
6 files changed
+39
-4
No files matched your search
@@ -2425,6 +2425,7 @@ private func changeActiveUser_(_ userId: Int64, viewPwd: String?) throws {
|
||||
m.currentUser = try apiSetActiveUser(userId, viewPwd: viewPwd)
|
||||
m.users = try listUsers()
|
||||
try getUserChatData()
|
||||
Task { await BadgeStore.shared.presentUnfinished() }
|
||||
}
|
||||
|
||||
func changeActiveUserAsync_(_ userId: Int64?, viewPwd: String?, keepingChatId: String? = nil) async throws {
|
||||
@@ -2440,6 +2441,7 @@ func changeActiveUserAsync_(_ userId: Int64?, viewPwd: String?, keepingChatId: S
|
||||
m.users = users
|
||||
}
|
||||
try await getUserChatDataAsync(keepingChatId: keepingChatId)
|
||||
Task { await BadgeStore.shared.presentUnfinished() }
|
||||
await MainActor.run {
|
||||
if let currentUser = currentUser, var (_, invitation) = ChatModel.shared.callInvitations.first(where: { _, inv in inv.user.userId == userId }) {
|
||||
invitation.user = currentUser
|
||||
|
||||
Reference in new issue
Block a user