(self, check_rtc_session_ids=None)
return self.channel_id.rtc_session_ids, check_rtc_sessions - self.channel_id.rtc_session_ids
Synchronize the RTC sessions for self channel partner.
            - Inactive sessions of the channel are deleted.
            - Current sessions are returned.
            - Sessions given in check_rtc_session_ids that no longer exists
              are returned as non-existing.
            :param list check_rtc_session_ids: list of the ids of the sessions to check
            :returns tuple: (current_rtc_sessions, outdated_rtc_sessions)
Synchronize the RTC sessions for self channel partner.
            - Inactive sessions of the channel are deleted.
            - Current sessions are returned.
            - Sessions given in check_rtc_session_ids that no longer exists
              are returned as non-existing.
            :param list check_rtc_session_ids: list of the ids of the sessions to check
            :returns tuple: (current_rtc_sessions, outdated_rtc_sessions)
Synchronize the RTC sessions for self channel partner . - Inactive sessions of the channel are deleted . - Current sessions are returned . - Sessions given in check_rtc_session_ids that no longer exists are returned as non - existing . : param list check_rtc_session_ids : list of the ids of the sessions to check : returns tuple : ( current_rtc_sessions outdated_rtc_sessions )
def _rtc_sync_sessions(self, check_rtc_session_ids=None):
        """Synchronize the RTC sessions for self channel partner.
            - Inactive sessions of the channel are deleted.
            - Current sessions are returned.
            - Sessions given in check_rtc_session_ids that no longer exists
              are returned as non-existing.
            :param list check_rtc_session_ids: list of the ids of the sessions to check
            :returns tuple: (current_rtc_sessions, outdated_rtc_sessions)
        """
        self.ensure_one()
        self.channel_id.rtc_session_ids._delete_inactive_rtc_sessions()
        check_rtc_sessions = self.env['mail.channel.rtc.session'].browse([int(check_rtc_session_id) for check_rtc_session_id in (check_rtc_session_ids or [])])
        return self.channel_id.rtc_session_ids, check_rtc_sessions - self.channel_id.rtc_session_ids
def _rtc_sync_sessions ( self , check_rtc_session_ids = None ) : self . ensure_one ( ) self . channel_id . rtc_session_ids . _delete_inactive_rtc_sessions ( ) check_rtc_sessions = self . env [ 'mail.channel.rtc.session' ] . browse ( [ int ( check_rtc_session_id ) for check_rtc_session_id in ( check_rtc_session_ids or [ ] ) ] ) return self . channel_id . rtc_session_ids , check_rtc_sessions - self . channel_id . rtc_session_ids