WIP updates

This commit is contained in:
Sacha Weatherstone
2022-11-27 22:50:46 +10:00
parent a9561fe622
commit e457cef3da
79 changed files with 2100 additions and 1284 deletions
@@ -20,21 +20,20 @@ export const MessageInput = ({ channel }: MessageInputProps): JSX.Element => {
message: string;
}>({
defaultValues: {
message: "",
},
message: ""
}
});
const onSubmit = handleSubmit((data) => {
void connection?.sendText(
data.message,
undefined,
true,
channel.config.index as Types.ChannelNumber,
(id) => {
void connection?.sendText({
text: data.message,
wantAck: true,
channel: channel.config.index as Types.ChannelNumber,
callback: (id) => {
ackMessage(channel.config.index, id);
return Promise.resolve();
}
);
});
});
return (