[MOD] Timestamp Matrix messages

This commit is contained in:
LDA 2024-10-28 13:26:25 +01:00
commit 55ac682d26
9 changed files with 48 additions and 19 deletions

View file

@ -67,7 +67,8 @@ extern HashMap * ASFind(const ParseeConfig *, char *, char *);
/* Sends a message event with a specific type and body.
* Said body is freed during the function's execution. */
extern char * ASSend(const ParseeConfig *, char *, char *, char *, HashMap *);
extern char *
ASSend(const ParseeConfig *, char *, char *, char *, HashMap *, uint64_t ts);
extern void ASType(const ParseeConfig *, char *, char *, bool);
extern void ASPresence(const ParseeConfig *, char *, char *, char *);

View file

@ -26,7 +26,7 @@
Free(ASSend( \
data->config, id, profile, \
"m.room.message", \
MatrixCreateNotice(rep) \
MatrixCreateNotice(rep), 0 \
)); \
} \
while(0)
@ -45,7 +45,7 @@
Free(ASSend( \
data->config, id, profile, \
"m.room.message", \
MatrixCreateNotice(formatted) \
MatrixCreateNotice(formatted), 0 \
)); \
Free(formatted); \
} \

View file

@ -107,6 +107,8 @@ typedef struct Argument {
/* A base64-encoded Parsee logo */
extern const char media_parsee_logo[];
/* "Unknown avatar" */
extern const char media_unknown[];
/* An ASCII-art rendition of "小橋".
* I'm sorry for its quality. If anyone wants to redraw it, feel free. */