Filter out conversations with deleted statuses

This commit is contained in:
Lim Chee Aun 2023-05-29 20:06:10 +08:00
parent 49c04a4259
commit 12c9cb1723

View file

@ -53,6 +53,7 @@ function Mentions(props) {
}
const results = await conversationsIterator.current.next();
let { value } = results;
value = value?.filter((item) => item.lastStatus);
if (value?.length) {
if (firstLoad) {
latestConversationItem.current = value[0].lastStatus.id;