add receive_ephemeral check for appservice EDU sending (if it even works)

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-11-02 21:25:13 -04:00
parent 4fe47903c2
commit 4296d7174f

View file

@ -524,8 +524,13 @@ impl Service {
}
},
SendingEvent::Edu(edu) => {
if let Ok(edu) = serde_json::from_slice(edu) {
edu_jsons.push(edu);
if appservice
.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