public static function is_conversation_muted(int $userid, int $conversationid) : bool {
        global $DB;

        return $DB->record_exists('message_conversation_actions',
            [
                'userid' => $userid,
                'conversationid' => $conversationid,
                'action' => self::CONVERSATION_ACTION_MUTED
            ]
        );
    }
public static function is_conversation_muted(int $userid, int $conversationid) : bool {
        global $DB;

        return $DB->record_exists('message_conversation_actions',
            [
                'userid' => $userid,
                'conversationid' => $conversationid,
                'action' => self::CONVERSATION_ACTION_MUTED
            ]
        );
    }
public static function is_conversation_muted ( int $ userid , int $ conversationid ) : bool { global $ DB ; return $ DB -> record_exists ( 'message_conversation_actions' , [ 'userid' => $ userid , 'conversationid' => $ conversationid , 'action' => self :: CONVERSATION_ACTION_MUTED ] ) ; }
Checks whether a conversation is muted or not.

@param int $userid The id of the user
@param int $conversationid The id of the conversation
@return bool Whether or not the conversation is muted or not
Checks whether a conversation is muted or not .