Skip to content

Commit a58d7f7

Browse files
committed
refactor: reflect updateMessage signature change and LocalMessage type change
1 parent 64ae4d0 commit a58d7f7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/Channel/Channel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,7 @@ const ChannelInner = (
10671067
const retrySendMessage = async (localMessage: LocalMessage) => {
10681068
updateMessage({
10691069
...localMessage,
1070-
error: null,
1070+
error: undefined,
10711071
status: 'sending',
10721072
});
10731073

src/components/Channel/hooks/useEditMessageHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ export const useEditMessageHandler = (doUpdateMessageRequest?: UpdateHandler) =>
2121
doUpdateMessageRequest(channel.cid, updatedMessage, options),
2222
);
2323
}
24-
return client.updateMessage(updatedMessage, options);
24+
return client.updateMessage(updatedMessage, undefined, options);
2525
};
2626
};

0 commit comments

Comments
 (0)