add receive_ephemeral check for appservice EDU sending (if it even works)
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
4fe47903c2
commit
4296d7174f
1 changed files with 7 additions and 2 deletions
|
@ -524,8 +524,13 @@ impl Service {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
SendingEvent::Edu(edu) => {
|
SendingEvent::Edu(edu) => {
|
||||||
if let Ok(edu) = serde_json::from_slice(edu) {
|
if appservice
|
||||||
edu_jsons.push(edu);
|
.receive_ephemeral
|
||||||
|
.is_some_and(|receive_edus| receive_edus)
|
||||||
|
{
|
||||||
|
if let Ok(edu) = serde_json::from_slice(edu) {
|
||||||
|
edu_jsons.push(edu);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
SendingEvent::Flush => {}, // flush only; no new content
|
SendingEvent::Flush => {}, // flush only; no new content
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue