Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
openlinecounter.php
1
<?php
2
3
namespace
Bitrix\Im\Update
;
4
5
use
Bitrix\Im\V2\Message\CounterService
;
6
7
class
OpenLineCounter
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
}
Bitrix\Im\Update\OpenLineCounter
Definition
openlinecounter.php:8
Bitrix\Im\Update\OpenLineCounter\removeInvalidCounterAgent
static removeInvalidCounterAgent()
Definition
openlinecounter.php:9
Bitrix\Im\V2\Message\CounterService
Definition
CounterService.php:26
Bitrix\Im\Update
Definition
bot.php:2
modules
im
lib
update
openlinecounter.php
Создано системой
1.10.0