Skip to content

Commit

Permalink
v0.0.14: fix meeting logs with ```
Browse files Browse the repository at this point in the history
  • Loading branch information
hinto-janai committed Nov 19, 2024
1 parent b9a0b24 commit 66d2ce5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "moo"
version = "0.0.13"
version = "0.0.14"
edition = "2021"
authors = ["hinto-janai"]
repository = "https://github.com/Cuprate/moo"
Expand Down
7 changes: 7 additions & 0 deletions src/meeting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@ pub async fn meeting_handler(startup: SystemTime, event: SyncRoomMessageEvent) {
_ => "<unknown_attachment>",
};

// HACK: do not relay ``` as it messes up the meeting log formatting:
// <https://github.com/monero-project/meta/issues/1108>
if text == "```" {
info!("Ignoring ```");
return;
}

let mut db = MEETING_DATABASE.lock().await;
if MEETING_ONGOING.load(std::sync::atomic::Ordering::Acquire) {
*db += &format!("\n```\n{}: {text}\n```", sender.localpart());
Expand Down

0 comments on commit 66d2ce5

Please sign in to comment.