mirror of
https://github.com/RoboSats/robosats.git
synced 2025-07-25 05:33:18 +00:00
Merge pull request #1974 from RoboSats/fix-android-not-loading-config
Fix android not loading
This commit is contained in:
@ -82,9 +82,9 @@ const EncryptedChat: React.FC<Props> = ({
|
||||
|
||||
const wrappedEvent = nip17.wrapEvent(slot?.nostrSecKey, recipient, content);
|
||||
|
||||
const oneMonth = 2419200;
|
||||
const oneMonth = 2419200;
|
||||
|
||||
wrappedEvent.tags.push(['expiration', (wrappedEvent.created_at + oneMonth).toString()]);
|
||||
wrappedEvent.tags.push(['expiration', (wrappedEvent.created_at + oneMonth).toString()]);
|
||||
|
||||
federation.roboPool.sendEvent(wrappedEvent);
|
||||
} catch (error) {
|
||||
|
@ -226,6 +226,7 @@ export const AppContextProvider = ({ children }: AppContextProviderProps): React
|
||||
}, [settings.fontSize, settings.mode, settings.lightQRs]);
|
||||
|
||||
useEffect(() => {
|
||||
setSettings(getSettings());
|
||||
void i18n.changeLanguage(settings.language);
|
||||
window.addEventListener('torStatus', (event) => {
|
||||
// Trick to improve UX on Android webview: delay the "Connected to TOR" status by 5 secs to avoid long waits on the first request.
|
||||
|
Reference in New Issue
Block a user