[Gekidou] Post removal (#5985)

* Fix post onPress handler to remove a deleted post

* Fix operator handlePost to remove fetched existing deleted posts and filter the ones that do not exist
This commit is contained in:
Elias Nahum
2022-02-21 09:25:52 -03:00
committed by GitHub
parent 256b1ec005
commit a14dd4928f
2 changed files with 27 additions and 5 deletions

View File

@@ -135,7 +135,7 @@ const Post = ({
}
const isValidSystemMessage = isAutoResponder || !isSystemPost;
if (post.deleteAt !== 0 && isValidSystemMessage && !isPendingOrFailed) {
if (post.deleteAt === 0 && isValidSystemMessage && !isPendingOrFailed) {
if ([Screens.CHANNEL, Screens.PERMALINK].includes(location)) {
DeviceEventEmitter.emit('goToThread', post);
}