[FIX] Fix broken chatstates

This commit is contained in:
LDA 2024-08-04 18:10:51 +02:00
commit 88bd2d27ad
3 changed files with 7 additions and 14 deletions

View file

@ -807,7 +807,8 @@ ASType(const ParseeConfig *c, char *user, char *room, bool status)
json = HashMapCreate();
HashMapSet(json, "typing", JsonValueBoolean(status));
HashMapSet(json, "timeout", JsonValueBoolean(1 MINUTES));
/* If someone types for 10 minutes straight, they got something weird man. */
HashMapSet(json, "timeout", JsonValueBoolean(10 MINUTES));
ctx = ParseeCreateRequest(c, HTTP_PUT, path);
Free(path);
ASAuthenticateRequest(c, ctx);