Show offline profile picture in header (#3142)

* Rename file without changes

* Revert "Rename file without changes"

This reverts commit a3de5e100d.

* Rename file without changes

* Refactor InlineUserBase to TS

* Update component Props

* Import as type

* Check if the user displayed is the current user and if so

also display the user image while offline.

* Update src/components/SharedComponents/InlineUser/InlineUserBase.tsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update InlineUser.test.js

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Johannes Klein
2025-10-16 00:19:35 +02:00
committed by GitHub
parent 744d307d9d
commit b20a99adec
2 changed files with 18 additions and 24 deletions

View File

@@ -17,7 +17,7 @@ jest.mock( "@react-navigation/native", ( ) => {
const mockUser = factory( "RemoteUser" );
const mockUserWithoutImage = factory( "RemoteUser", { icon_url: null } );
const snapshotUser = { login: "some_login", icon_url: "some_icon_url" };
const snapshotUser = { login: "some_login", icon_url: "some_icon_url", id: 1 };
const snapshotUserWithoutImage = { login: "some_login", icon_url: null };
jest.mock(