Remove todos
This commit is contained in:
@@ -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])
|
||||
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,10 +35,6 @@ export enum ConvoItemError {
|
||||
* Error fetching past messages
|
||||
*/
|
||||
HistoryFailed = 'historyFailed',
|
||||
/**
|
||||
* Error sending new message
|
||||
*/
|
||||
PendingFailed = 'pendingFailed',
|
||||
}
|
||||
|
||||
export enum ConvoErrorCode {
|
||||
|
||||
Reference in New Issue
Block a user