mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-15 01:55:03 +00:00
Skip our own notifications.
This commit is contained in:
parent
729ad476f0
commit
199d71dc3a
1 changed files with 4 additions and 0 deletions
|
@ -823,6 +823,10 @@ xs_str *process_tags(snac *snac, const char *content, xs_list **tag)
|
||||||
void notify(snac *snac, const char *type, const char *utype, const char *actor, const xs_dict *msg)
|
void notify(snac *snac, const char *type, const char *utype, const char *actor, const xs_dict *msg)
|
||||||
/* notifies the user of relevant events */
|
/* notifies the user of relevant events */
|
||||||
{
|
{
|
||||||
|
/* skip our own notifications */
|
||||||
|
if (strcmp(snac->actor, actor) == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
const char *id = xs_dict_get(msg, "id");
|
const char *id = xs_dict_get(msg, "id");
|
||||||
|
|
||||||
if (strcmp(type, "Create") == 0) {
|
if (strcmp(type, "Create") == 0) {
|
||||||
|
|
Loading…
Reference in a new issue