Fix contact sync

This commit is contained in:
minibits-cash
2026-01-26 21:35:37 +01:00
parent af7d376978
commit 359c4d7a32
6 changed files with 14 additions and 10 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ android {
applicationId "com.minibits_wallet"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 58063
versionCode 58064
versionName "0.3.4"
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "minibits_wallet",
"version": "0.3.4-beta.18",
"version": "0.3.4-beta.19",
"private": true,
"scripts": {
"android:clean": "cd android && ./gradlew clean",
+1 -1
View File
@@ -27,7 +27,7 @@ import { Proof } from './Proof'
import { InFlightRequest, Mint } from './Mint'
import { getRootStore } from './helpers/getRootStore'
import { Transaction } from './Transaction'
// refresh
// refresh refresh
/*
Not persisted, in-memory only model of the cashu-ts wallet instances and wallet keys persisted in the device secure store.
+9 -5
View File
@@ -57,6 +57,8 @@ export const ContactDetailScreen = observer(function ({ route }: Props) {
try {
if (contact.nip05) {
await NostrClient.verifyNip05(contact.nip05 as string, contact.pubkey)
const contactInstance = contactsStore.findByPubkey(contact.pubkey)
contactInstance?.refreshPicture()
}
setSyncStatus('synced')
} catch (e: any) {
@@ -172,12 +174,14 @@ export const ContactDetailScreen = observer(function ({ route }: Props) {
const onSyncPrivateContact = async function () {
try {
if(contact.nip05) {
if(contact.nip05) {
await NostrClient.verifyNip05(contact.nip05 as string, contact.pubkey) // throws
contact.refreshPicture!()
// Get the actual MST model instance from the store to call actions
const contactInstance = contactsStore.findByPubkey(contact.pubkey)
contactInstance?.refreshPicture()
}
toggleContactModal()
toggleContactModal()
setInfo(translate("syncCompleted"))
return
} catch (e: any) {
@@ -185,11 +189,11 @@ export const ContactDetailScreen = observer(function ({ route }: Props) {
if(Platform.OS === 'ios') {
setTimeout(() => {
handleError(e)
}, 500)
}, 500)
} else {
handleError(e)
}
}
}
}
const saveToPrivateContacts = async function () {
+1 -1
View File
@@ -34,7 +34,7 @@ import RNExitApp from 'react-native-exit-app'
import { TransactionStatus } from '../models/Transaction'
import { maxTransactionsInHistory } from '../models/TransactionsStore'
import { StaticScreenProps, useNavigation } from '@react-navigation/native'
//
// refresh
type Props = StaticScreenProps<undefined>
+1 -1
View File
@@ -18,7 +18,7 @@ import { Platform } from "react-native"
import AppError, { Err } from "../utils/AppError"
const { userSettingsStore } = rootStoreInstance
//
//
if (!__DEV__) {
Sentry.init({