Skip to content

Commit

Permalink
Merge branch 'develop' into chore/soundsStartup
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriellsh authored Oct 26, 2023
2 parents 260fed1 + 356a7b1 commit f1b348c
Showing 1 changed file with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,12 @@ const ForwardMessageModal = ({ onClose, permalink, message }: ForwardMessageProp
mutationFn: async () => {
const optionalMessage = '';
const curMsg = await prependReplies(optionalMessage, [message]);
const sendPayload = {
roomId: rooms,
text: curMsg,
};

return Promise.all(
rooms.map(async (roomId) => {
const sendPayload = {
roomId,
text: curMsg,
};

await sendMessage(sendPayload);
}),
);
return sendMessage(sendPayload);
},
onSuccess: () => {
dispatchToastMessage({ type: 'success', message: t('Message_has_been_forwarded') });
Expand Down

0 comments on commit f1b348c

Please sign in to comment.