From ea3ff1c23883fa3bb743d2d61e19bb50efae3177 Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Tue, 30 Apr 2024 21:02:54 +0100 Subject: [PATCH] Fix coordinator avatars and pgp key files --- frontend/src/components/RobotAvatar/index.tsx | 4 +--- frontend/webpack.config.ts | 4 ++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/RobotAvatar/index.tsx b/frontend/src/components/RobotAvatar/index.tsx index 93d06a50..33fe8f5b 100644 --- a/frontend/src/components/RobotAvatar/index.tsx +++ b/frontend/src/components/RobotAvatar/index.tsx @@ -77,9 +77,7 @@ const RobotAvatar: React.FC = ({ ); } else { setAvatarSrc( - `file:///android_asset/Web.bundle/assets/federation/avatars/${shortAlias}${ - small ? ' .small' : '' - }.webp`, + `file:///android_asset/Web.bundle/assets/federation/avatars/${shortAlias}.webp`, ); } setTimeout(() => { diff --git a/frontend/webpack.config.ts b/frontend/webpack.config.ts index bd52b05d..442ae97c 100644 --- a/frontend/webpack.config.ts +++ b/frontend/webpack.config.ts @@ -90,6 +90,10 @@ const configMobile: Configuration = { from: path.resolve(__dirname, 'static/assets/sounds'), to: path.resolve(__dirname, '../mobile/html/Web.bundle/assets/sounds'), }, + { + from: path.resolve(__dirname, 'static/federation'), + to: path.resolve(__dirname, '../mobile/html/Web.bundle/assets/federation'), + }, ], }), ],