mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 15:15:10 +00:00
[CI/FIX] Proper casts
This commit is contained in:
parent
27223a5896
commit
1be19d4b8d
1 changed files with 1 additions and 1 deletions
|
|
@ -560,7 +560,7 @@ ParseeSendPresence(ParseeData *data)
|
||||||
char *chat_id = ParseeGetFromMUCID(data, muc);
|
char *chat_id = ParseeGetFromMUCID(data, muc);
|
||||||
DbRef *chat = DbLockIntent(data->db, DB_HINT_READONLY, 2, "chats", chat_id);
|
DbRef *chat = DbLockIntent(data->db, DB_HINT_READONLY, 2, "chats", chat_id);
|
||||||
uint64_t ts = GrabInteger(DbJson(chat), 1, "ts");
|
uint64_t ts = GrabInteger(DbJson(chat), 1, "ts");
|
||||||
int diff = ts ? (UtilTsMillis() - ts) / 1000 : -1;
|
int diff = ts ? (int) ((UtilTsMillis() - ts) / 1000) : -1;
|
||||||
/* Make a fake user join the MUC */
|
/* Make a fake user join the MUC */
|
||||||
Log(LOG_NOTICE, "Sending presence to %s last=%ds", rev, diff);
|
Log(LOG_NOTICE, "Sending presence to %s last=%ds", rev, diff);
|
||||||
XMPPJoinMUC(data->jabber, "parsee", rev, NULL, diff, false);
|
XMPPJoinMUC(data->jabber, "parsee", rev, NULL, diff, false);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue