mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 21:15:11 +00:00
[MOD] Timestamp Matrix messages
This commit is contained in:
parent
ca5f8fd5c5
commit
55ac682d26
9 changed files with 48 additions and 19 deletions
|
|
@ -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 *);
|
||||
|
||||
|
|
|
|||
|
|
@ -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); \
|
||||
} \
|
||||
|
|
|
|||
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue