diff --git a/data/store/chatStore.ts b/data/store/chatStore.ts index 43666534d..c66c4f181 100644 --- a/data/store/chatStore.ts +++ b/data/store/chatStore.ts @@ -59,7 +59,7 @@ export type XmtpGroupConversation = XmtpConversationShared & { groupMembers: string[]; groupAdmins: string[]; groupSuperAdmins: string[]; - groupPermissionLevel: "all_members" | "admin_only"; + groupPermissionLevel: "all_members" | "admin_only" | "custom_policy"; groupName?: string; }; diff --git a/ios/Podfile b/ios/Podfile index ccb877a4b..8becfa685 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -18,7 +18,7 @@ install! 'cocoapods', # Version must match version from XMTP Podspec (matching @xmtp/react-native-sdk from package.json) # https://github.com/xmtp/xmtp-react-native/blob/v1.34.0-beta.5/ios/XMTPReactNative.podspec#L29 -$xmtpVersion = '0.12.2' +$xmtpVersion = '0.12.4' # Pinning MMKV to 1.3.3 that has included that fix https://github.com/Tencent/MMKV/pull/1222#issuecomment-1905164314 $mmkvVersion = '1.3.3' diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 06ffa8e7d..7aff020d4 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -197,7 +197,7 @@ PODS: - libwebp/sharpyuv (1.3.2) - libwebp/webp (1.3.2): - libwebp/sharpyuv - - LibXMTP (0.5.3-beta0) + - LibXMTP (0.5.3-beta2) - Logging (1.0.0) - MessagePacker (0.4.7) - MMKV (1.3.3): @@ -1337,16 +1337,16 @@ PODS: - GenericJSON (~> 2.0) - Logging (~> 1.0.0) - secp256k1.swift (~> 0.1) - - XMTP (0.12.2): + - XMTP (0.12.4): - Connect-Swift (= 0.12.0) - GzipSwift - - LibXMTP (= 0.5.3-beta0) + - LibXMTP (= 0.5.3-beta2) - web3.swift - - XMTPReactNative (1.34.0-beta.15): + - XMTPReactNative (1.34.0-beta.17): - ExpoModulesCore - MessagePacker - secp256k1.swift - - XMTP (= 0.12.2) + - XMTP (= 0.12.4) - Yoga (1.14.0) DEPENDENCIES: @@ -1468,7 +1468,7 @@ DEPENDENCIES: - Sentry/HybridSDK (= 8.29.1) - SQLite.swift - UMAppLoader (from `../node_modules/unimodules-app-loader/ios`) - - XMTP (= 0.12.2) + - XMTP (= 0.12.4) - "XMTPReactNative (from `../node_modules/@xmtp/react-native-sdk/ios`)" - Yoga (from `../node_modules/react-native/ReactCommon/yoga`) @@ -1785,7 +1785,7 @@ SPEC CHECKSUMS: libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913 libvmaf: 27f523f1e63c694d14d534cd0fddd2fab0ae8711 libwebp: 1786c9f4ff8a279e4dac1e8f385004d5fc253009 - LibXMTP: c3d7b5cfa4b8df5c57ef01f09358c87dea299a13 + LibXMTP: c0f992e33c4ac95bdf2652f9429b3999890b6ab3 Logging: 9ef4ecb546ad3169398d5a723bc9bea1c46bef26 MessagePacker: ab2fe250e86ea7aedd1a9ee47a37083edd41fd02 MMKV: f902fb6719da13c2ab0965233d8963a59416f911 @@ -1871,10 +1871,10 @@ SPEC CHECKSUMS: SwiftProtobuf: 407a385e97fd206c4fbe880cc84123989167e0d1 UMAppLoader: 79d3ee6aa2447a1fe2e8b0d07acf2de106e55b58 web3.swift: 2263d1e12e121b2c42ffb63a5a7beb1acaf33959 - XMTP: 1a25f62cf29a9ba87a879b8c85062c497c9c813f - XMTPReactNative: 7d2fdf28a53292cf7a8491b188d8504ff414377e + XMTP: 7d69afe403538056efb6caf01db7248b01221c48 + XMTPReactNative: b5b2efeb9ad30341896b60fbb2a8373dd3d0dd20 Yoga: d17d2cc8105eed528474683b42e2ea310e1daf61 -PODFILE CHECKSUM: cb52bedac815df7739123f1017d51a5993df540c +PODFILE CHECKSUM: 2cf1857df00ddf0c58944ef41304afd85ca07ba7 COCOAPODS: 1.15.2 diff --git a/package.json b/package.json index f4d82a721..7183719f6 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ "@xmtp/content-type-transaction-reference": "^1.0.3", "@xmtp/frames-client": "^0.5.0", "@xmtp/proto": "^3.60.0", - "@xmtp/react-native-sdk": "^1.34.0-beta.15", + "@xmtp/react-native-sdk": "^1.34.0-beta.17", "@xmtp/xmtp-js": "11.5.0", "axios": "^1.2.1", "babel-plugin-transform-remove-console": "^6.9.4", diff --git a/screens/Profile.tsx b/screens/Profile.tsx index 457fca3aa..fd5d8ef7c 100644 --- a/screens/Profile.tsx +++ b/screens/Profile.tsx @@ -128,20 +128,19 @@ export default function ProfileScreen({ return array.map((e) => { const title = (e as any)[titleKey]; const value = (e as any)[valueKey]; + const handleCopyAddress = () => { + setCopiedAddresses((c) => ({ ...c, [title]: true })); + Clipboard.setString(value); + setTimeout(() => { + setCopiedAddresses((c) => ({ ...c, [title]: false })); + }, 1000); + }; return { id: title, title, titleNumberOfLines: 2, rightView: ( - { - setCopiedAddresses((c) => ({ ...c, [title]: true })); - Clipboard.setString(value); - setTimeout(() => { - setCopiedAddresses((c) => ({ ...c, [title]: false })); - }, 1000); - }} - > + ) : ( - + ), rightView: ( { marginTop: 23, alignSelf: "center", }, + emoji: { + backgroundColor: "rgba(118, 118, 128, 0.12)", + borderRadius: 30, + }, }); }; diff --git a/yarn.lock b/yarn.lock index 16eb629e2..0db76d7b4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11171,10 +11171,10 @@ rxjs "^7.8.0" undici "^5.8.1" -"@xmtp/react-native-sdk@^1.34.0-beta.15": - version "1.34.0-beta.15" - resolved "https://registry.yarnpkg.com/@xmtp/react-native-sdk/-/react-native-sdk-1.34.0-beta.15.tgz#797da9e9044d6d866a2a62c46518d1614abcf360" - integrity sha512-9ZiIkp3FXvOmP5o1jkG0T0KrVtz9+dwUzsXec8oiT5067STykcehQU5NH4+JPyYCRBWXuIsPL6PRmpxzlLR5KA== +"@xmtp/react-native-sdk@^1.34.0-beta.17": + version "1.34.0-beta.17" + resolved "https://registry.yarnpkg.com/@xmtp/react-native-sdk/-/react-native-sdk-1.34.0-beta.17.tgz#4423914fb901765302af32a2a1a3a1de21f3e670" + integrity sha512-NVBNIDawXxTqzz5ZnqsCn+2GWsU8lWe8vYs3GgIJvPdSutWR3A3qByNpkjVipWg6Ziex9AxAXBzFPNEJTC5Thg== dependencies: "@ethersproject/bytes" "^5.7.0" "@msgpack/msgpack" "^3.0.0-beta2"