Fixed messages count

Former-commit-id: df7b230fe009e6f73d836cf2290f33deb8a743d9
This commit is contained in:
samucarc 2019-03-13 11:58:21 +01:00
parent cb1fc5dc67
commit aba2ef509a
1 changed files with 1 additions and 1 deletions

View File

@ -383,7 +383,7 @@ function messages_get_count(
}
$sql = sprintf(
'SELECT count(*) as "n" FROM (
'SELECT count(distinct id_mensaje) as "n" FROM (
SELECT
tm.*,
utimestamp_read > 0 as "read"