mirror of
https://github.com/minibits-cash/minibits_wallet.git
synced 2026-10-05 19:28:26 +00:00
Fix contact sync
This commit is contained in:
@@ -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
@@ -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",
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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 () {
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ import { Platform } from "react-native"
|
||||
import AppError, { Err } from "../utils/AppError"
|
||||
|
||||
const { userSettingsStore } = rootStoreInstance
|
||||
//
|
||||
//
|
||||
|
||||
if (!__DEV__) {
|
||||
Sentry.init({
|
||||
|
||||
Reference in New Issue
Block a user