Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
openlinecounter.php
1<?php
2
3namespace Bitrix\Im\Update;
4
6
8{
9 public static function removeInvalidCounterAgent()
10 {
11 global $DB;
12
13 $DB->Query("
14 DELETE bimu FROM b_im_message_unread bimu
15 WHERE NOT EXISTS(SELECT 1 FROM b_im_relation bir WHERE bir.CHAT_ID=bimu.CHAT_ID AND bir.USER_ID=bimu.USER_ID)
16 ", true);
17
18 CounterService::clearCache();
19
20 return '';
21 }
22}