[Clipclops] Pending messages (#3803)

* Make pending message like normal message

* Remove getter

* Make props public
This commit is contained in:
Eric Bailey 2024-05-01 16:29:34 -05:00 committed by GitHub
parent e2556d9f40
commit 5148b957b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 19 additions and 13 deletions

View file

@ -26,12 +26,10 @@ function MaybeLoader({isLoading}: {isLoading: boolean}) {
}
function renderItem({item}: {item: ConvoItem}) {
if (item.type === 'message') {
if (item.type === 'message' || item.type === 'pending-message') {
return <MessageItem item={item.message} next={item.nextMessage} />
} else if (item.type === 'deleted-message') {
return <Text>Deleted message</Text>
} else if (item.type === 'pending-message') {
return <Text>{item.message.text}</Text>
} else if (item.type === 'pending-retry') {
return (
<View>