Skip to content
Snippets Groups Projects
Commit 4296d717 authored by 🥺's avatar 🥺 :transgender_flag:
Browse files

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

parent 4fe47903
No related branches found
No related tags found
4 merge requests!610docs: add note about the nixos service defaulting to sqlite,!614fix incorrect user id for non-admin invites checking,!609Fix thread pagination,!608Final async database (overall heavy performance improvement), misc bug fixes, `/search` filters, remove legacy mentions (MSC4210) and dependency updates
......@@ -524,8 +524,13 @@ async fn send_events_dest_appservice(
}
},
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment