Skip to content

Commit df8211c

Browse files
committed
fix: shared offline image disappears from the chat after going online
1 parent d0dd99f commit df8211c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/libs/prepareRequestPayload/index.native.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const prepareRequestPayload: PrepareRequestPayload = (command, data, initiatedOf
1818
return Promise.resolve();
1919
}
2020

21-
if (key === 'receipt' && initiatedOffline) {
21+
if ((key === 'receipt' || key === 'file') && initiatedOffline) {
2222
const {uri: path = '', source} = value as File;
2323

2424
return readFileAsync(source, path, () => {}).then((file) => {

0 commit comments

Comments
 (0)