Hi Shamim,
I have an issue with the archive feature.
If I select a message to be archived and do it, I get a success message that its done but the message still shows in the inbox.
I try to archive it again, no message.
I tracked it down to the timestamp is getting set in the db but the table view of messages isn’t filtering out the archive when fep-filter
is set to inbox.
Therefore, I’ve written this code to resolve my issue.
add_filter( 'fep_message_query_args', array( $this,'message_query_args' ), 10, 2 );
public function message_query_args_admissions_remove_archived( $args ) {
if ( isset( $_GET['fep-filter'] ) && ! empty( $_GET['fep-filter'] ) && $_GET['fep-filter'] != 'archive' ) {
$args['participant_query'][0]['mgs_archived'] = false;
}
return $args;
}
I’m using 10.1.5 Pro
I have replicated the issue on a test install and the student sent a mgs to the admin
the admin archived it but can still see it in inbox.
My message type is threaded
You can see this by going to https://imgur.com/a/aw6cR8z