forked from Ivasoft/mattermost-mobile
[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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user