mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 13:45:10 +00:00
[FIX] Fix a very silly mistake
This commit is contained in:
parent
dec0d1f3d9
commit
63285ac24a
1 changed files with 4 additions and 4 deletions
|
|
@ -41,15 +41,15 @@ LazySend(ParseeData *args, char *mxid, char *mroom_id, char *type, HashMap *ev)
|
|||
{
|
||||
return NULL;
|
||||
}
|
||||
if (!mroom_id)
|
||||
if (!type)
|
||||
{
|
||||
mroom_id = "m.room.message";
|
||||
type = "m.room.message";
|
||||
}
|
||||
|
||||
duplicate = JsonDuplicate(ev);
|
||||
event = ASSend(
|
||||
args->config, mroom_id, mxid,
|
||||
"m.room.message",
|
||||
type,
|
||||
ev
|
||||
);
|
||||
if (event)
|
||||
|
|
@ -63,7 +63,7 @@ LazySend(ParseeData *args, char *mxid, char *mroom_id, char *type, HashMap *ev)
|
|||
|
||||
return ASSend(
|
||||
args->config, mroom_id, mxid,
|
||||
"m.room.message", duplicate
|
||||
type, duplicate
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue