[Clipclops] Pending messages (#3803)
* Make pending message like normal message * Remove getter * Make props public
This commit is contained in:
parent
e2556d9f40
commit
5148b957b7
2 changed files with 19 additions and 13 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue