Remove todos

This commit is contained in:
Eric Bailey
2024-05-15 11:01:28 -05:00
parent f70d9e1b94
commit 3f19bc51bb
3 changed files with 1 additions and 11 deletions
@@ -26,7 +26,6 @@ export function MessageListError({
msg`This chat was disconnected due to a network error.`,
),
[ConvoItemError.HistoryFailed]: _(msg`Failed to load past messages.`),
[ConvoItemError.PendingFailed]: _(msg`Failed to send message(s).`),
}[item.code]
}, [_, item.code])
+1 -6
View File
@@ -749,14 +749,9 @@ export class Convo {
id: tempId,
message,
})
// remove on each send, it might go through now without user having to click
// TODO do need htis?
this.footerItems.delete(ConvoItemError.PendingFailed)
this.commit()
// TODO maybe ignore if failed?
if (!this.isProcessingPendingMessages) {
if (!this.isProcessingPendingMessages && !this.pendingFailed) {
this.processPendingMessages()
}
}
-4
View File
@@ -35,10 +35,6 @@ export enum ConvoItemError {
* Error fetching past messages
*/
HistoryFailed = 'historyFailed',
/**
* Error sending new message
*/
PendingFailed = 'pendingFailed',
}
export enum ConvoErrorCode {