Fix acking messages to correct channel

This commit is contained in:
Sacha Weatherstone
2021-12-09 20:13:51 +11:00
parent 6bb4d112a0
commit bd92905ee4
+1 -1
View File
@@ -34,7 +34,7 @@ export const MessageBar = ({ channelIndex }: MessageBarProps): JSX.Element => {
true,
channelIndex--,
(id) => {
dispatch(ackMessage({ channel: 0, messageId: id }));
dispatch(ackMessage({ channel: channelIndex--, messageId: id }));
return Promise.resolve();
},