Compare commits

...

6 Commits

Author SHA1 Message Date
stoat-release[bot]
8e3765df4c chore(main): release 0.11.5 (#598)
* chore(main): release 0.11.5

* chore: update Cargo.lock

Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

---------

Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: stoat-release[bot] <245062572+stoat-release[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-02-17 22:14:57 +00:00
Paul Makles
1c98ead695 revert: disable user update events (#593)
* Revert "fix: cut presence traffic too while we engineer a new events architecture (#561)"

This reverts commit 1f8ea963ad.

* Revert "fix: cut events traffic while we engineer a new events architecture (#559)"

This reverts commit a11986ba1a.

* chore: only revert user update
2026-02-17 22:13:17 +00:00
stoat-release[bot]
8849d03cd2 chore(main): release 0.11.4 (#591)
* chore(main): release 0.11.4

* chore: update Cargo.lock

Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

---------

Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: stoat-release[bot] <245062572+stoat-release[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-02-16 20:02:01 +00:00
Paul Makles
a75e4eabfc fix: add separate config option for redis events replica url (#590) 2026-02-16 19:37:04 +00:00
stoat-release[bot]
74f0c537e6 chore(main): release 0.11.3 (#562)
* chore(main): release 0.11.3

* chore: update Cargo.lock

Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

---------

Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: stoat-release[bot] <245062572+stoat-release[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-02-13 19:50:32 +00:00
Paul Makles
1f8ea963ad fix: cut presence traffic too while we engineer a new events architecture (#561)
Signed-off-by: izzy <me@insrt.uk>
2026-02-13 19:49:23 +00:00
26 changed files with 164 additions and 110 deletions

View File

@@ -1,3 +1,3 @@
{
".": "0.11.2"
".": "0.11.5"
}

View File

@@ -1,5 +1,26 @@
# Changelog
## [0.11.5](https://github.com/stoatchat/stoatchat/compare/v0.11.4...v0.11.5) (2026-02-17)
### Reverts
* disable user update events ([#593](https://github.com/stoatchat/stoatchat/issues/593)) ([1c98ead](https://github.com/stoatchat/stoatchat/commit/1c98ead69579b4700be0b51c9020bb8402336cc6))
## [0.11.4](https://github.com/stoatchat/stoatchat/compare/v0.11.3...v0.11.4) (2026-02-16)
### Bug Fixes
* add separate config option for redis events replica url ([#590](https://github.com/stoatchat/stoatchat/issues/590)) ([a75e4ea](https://github.com/stoatchat/stoatchat/commit/a75e4eabfc4b34aba7620c82ba77558a32d9e10a))
## [0.11.3](https://github.com/stoatchat/stoatchat/compare/v0.11.2...v0.11.3) (2026-02-13)
### Bug Fixes
* cut presence traffic too while we engineer a new events architecture ([#561](https://github.com/stoatchat/stoatchat/issues/561)) ([1f8ea96](https://github.com/stoatchat/stoatchat/commit/1f8ea963ad742f693f405e6438f1c343c81e6579))
## [0.11.2](https://github.com/stoatchat/stoatchat/compare/v0.11.1...v0.11.2) (2026-02-13)

36
Cargo.lock generated
View File

@@ -6798,7 +6798,7 @@ dependencies = [
[[package]]
name = "revolt-autumn"
version = "0.11.2"
version = "0.11.5"
dependencies = [
"axum",
"axum-macros",
@@ -6836,7 +6836,7 @@ dependencies = [
[[package]]
name = "revolt-bonfire"
version = "0.11.2"
version = "0.11.5"
dependencies = [
"async-channel 2.5.0",
"async-std",
@@ -6867,7 +6867,7 @@ dependencies = [
[[package]]
name = "revolt-coalesced"
version = "0.11.2"
version = "0.11.5"
dependencies = [
"indexmap 2.13.0",
"lru 0.16.3",
@@ -6876,7 +6876,7 @@ dependencies = [
[[package]]
name = "revolt-config"
version = "0.11.2"
version = "0.11.5"
dependencies = [
"async-std",
"cached",
@@ -6893,7 +6893,7 @@ dependencies = [
[[package]]
name = "revolt-crond"
version = "0.11.2"
version = "0.11.5"
dependencies = [
"log",
"revolt-config",
@@ -6905,7 +6905,7 @@ dependencies = [
[[package]]
name = "revolt-database"
version = "0.11.2"
version = "0.11.5"
dependencies = [
"amqprs",
"async-lock 2.8.0",
@@ -6955,7 +6955,7 @@ dependencies = [
[[package]]
name = "revolt-delta"
version = "0.11.2"
version = "0.11.5"
dependencies = [
"amqprs",
"async-channel 1.9.0",
@@ -7005,7 +7005,7 @@ dependencies = [
[[package]]
name = "revolt-files"
version = "0.11.2"
version = "0.11.5"
dependencies = [
"aes-gcm",
"anyhow",
@@ -7033,7 +7033,7 @@ dependencies = [
[[package]]
name = "revolt-gifbox"
version = "0.11.2"
version = "0.11.5"
dependencies = [
"axum",
"axum-extra",
@@ -7056,7 +7056,7 @@ dependencies = [
[[package]]
name = "revolt-january"
version = "0.11.2"
version = "0.11.5"
dependencies = [
"async-recursion",
"axum",
@@ -7084,7 +7084,7 @@ dependencies = [
[[package]]
name = "revolt-models"
version = "0.11.2"
version = "0.11.5"
dependencies = [
"indexmap 1.9.3",
"iso8601-timestamp",
@@ -7103,14 +7103,14 @@ dependencies = [
[[package]]
name = "revolt-parser"
version = "0.11.2"
version = "0.11.5"
dependencies = [
"logos",
]
[[package]]
name = "revolt-permissions"
version = "0.11.2"
version = "0.11.5"
dependencies = [
"async-std",
"async-trait",
@@ -7125,7 +7125,7 @@ dependencies = [
[[package]]
name = "revolt-presence"
version = "0.11.2"
version = "0.11.5"
dependencies = [
"async-std",
"log",
@@ -7137,7 +7137,7 @@ dependencies = [
[[package]]
name = "revolt-pushd"
version = "0.11.2"
version = "0.11.5"
dependencies = [
"amqprs",
"anyhow",
@@ -7165,7 +7165,7 @@ dependencies = [
[[package]]
name = "revolt-ratelimits"
version = "0.11.2"
version = "0.11.5"
dependencies = [
"async-trait",
"authifier",
@@ -7182,7 +7182,7 @@ dependencies = [
[[package]]
name = "revolt-result"
version = "0.11.2"
version = "0.11.5"
dependencies = [
"axum",
"log",
@@ -7198,7 +7198,7 @@ dependencies = [
[[package]]
name = "revolt-voice-ingress"
version = "0.11.2"
version = "0.11.5"
dependencies = [
"amqprs",
"async-std",

View File

@@ -1,6 +1,6 @@
[package]
name = "revolt-bonfire"
version = "0.11.2"
version = "0.11.5"
license = "AGPL-3.0-or-later"
edition = "2021"
publish = false

View File

@@ -169,7 +169,9 @@ impl State {
}) {
if let Ok(Some(voice_state)) = get_channel_voice_state(channel).await {
if let Some(server) = channel.server() {
let set = voice_state_server_members.entry(server.to_string()).or_default();
let set = voice_state_server_members
.entry(server.to_string())
.or_default();
for participant in &voice_state.participants {
user_ids.insert(participant.id.clone());
@@ -396,28 +398,29 @@ impl State {
}
/// Push presence change to the user and all associated server topics
pub async fn broadcast_presence_change(&self, target: bool) {
if if let Some(status) = &self.cache.users.get(&self.cache.user_id).unwrap().status {
status.presence != Some(Presence::Invisible)
} else {
true
} {
let event = EventV1::UserUpdate {
id: self.cache.user_id.clone(),
data: v0::PartialUser {
online: Some(target),
..Default::default()
},
clear: vec![],
event_id: Some(ulid::Ulid::new().to_string()),
};
pub async fn broadcast_presence_change(&self, _target: bool) {
// disabled events
// if if let Some(status) = &self.cache.users.get(&self.cache.user_id).unwrap().status {
// status.presence != Some(Presence::Invisible)
// } else {
// true
// } {
// let event = EventV1::UserUpdate {
// id: self.cache.user_id.clone(),
// data: v0::PartialUser {
// online: Some(target),
// ..Default::default()
// },
// clear: vec![],
// event_id: Some(ulid::Ulid::new().to_string()),
// };
for server in self.cache.servers.keys() {
event.clone().p(server.clone()).await;
}
// for server in self.cache.servers.keys() {
// event.clone().p(server.clone()).await;
// }
event.p(self.cache.user_id.clone()).await;
}
// event.p(self.cache.user_id.clone()).await;
// }
}
/// Handle an incoming event for protocol version 1

View File

@@ -218,7 +218,13 @@ async fn listener(
kill_signal_r: async_channel::Receiver<()>,
write: &Mutex<WsWriter>,
) {
let redis_config = RedisConfig::from_url(&REDIS_URI).unwrap();
let stoat_config = revolt_config::config().await;
let url = stoat_config
.database
.redis_pubsub
.unwrap_or(REDIS_URI.to_string());
let redis_config = RedisConfig::from_url(&url).unwrap();
let subscriber = match report_internal_error!(
fred::types::Builder::from_config(redis_config).build_subscriber_client()
) {
@@ -457,8 +463,31 @@ async fn worker(
};
match payload {
ClientMessage::BeginTyping { .. } => {}
ClientMessage::EndTyping { .. } => {}
// disabled events
// ClientMessage::BeginTyping { channel } => {
// if !subscribed.read().await.contains(&channel) {
// continue;
// }
// EventV1::ChannelStartTyping {
// id: channel.clone(),
// user: user_id.clone(),
// }
// .p(channel.clone())
// .await;
// }
// ClientMessage::EndTyping { channel } => {
// if !subscribed.read().await.contains(&channel) {
// continue;
// }
// EventV1::ChannelStopTyping {
// id: channel.clone(),
// user: user_id.clone(),
// }
// .p(channel.clone())
// .await;
// }
ClientMessage::Subscribe { server_id } => {
let mut servers = active_servers.lock().await;
let has_item = servers.contains_key(&server_id);

View File

@@ -1,6 +1,6 @@
[package]
name = "revolt-coalesced"
version = "0.11.2"
version = "0.11.5"
edition = "2021"
license = "MIT"
authors = ["Paul Makles <me@insrt.uk>", "Zomatree <me@zomatree.live>"]

View File

@@ -1,6 +1,6 @@
[package]
name = "revolt-config"
version = "0.11.2"
version = "0.11.5"
edition = "2021"
license = "MIT"
authors = ["Paul Makles <me@insrt.uk>"]
@@ -38,4 +38,4 @@ sentry = { version = "0.31.5", optional = true }
sentry-anyhow = { version = "0.38.1", optional = true }
# Core
revolt-result = { version = "0.11.2", path = "../result", optional = true }
revolt-result = { version = "0.11.5", path = "../result", optional = true }

View File

@@ -117,6 +117,7 @@ static CONFIG_BUILDER: Lazy<RwLock<Config>> = Lazy::new(|| {
pub struct Database {
pub mongodb: String,
pub redis: String,
pub redis_pubsub: Option<String>,
}
#[derive(Deserialize, Debug, Clone)]

View File

@@ -1,6 +1,6 @@
[package]
name = "revolt-database"
version = "0.11.2"
version = "0.11.5"
edition = "2021"
license = "AGPL-3.0-or-later"
authors = ["Paul Makles <me@insrt.uk>"]
@@ -32,19 +32,19 @@ default = ["mongodb", "async-std-runtime", "tasks"]
[dependencies]
# Core
revolt-config = { version = "0.11.2", path = "../config", features = [
revolt-config = { version = "0.11.5", path = "../config", features = [
"report-macros",
] }
revolt-result = { version = "0.11.2", path = "../result" }
revolt-models = { version = "0.11.2", path = "../models", features = [
revolt-result = { version = "0.11.5", path = "../result" }
revolt-models = { version = "0.11.5", path = "../models", features = [
"validator",
] }
revolt-presence = { version = "0.11.2", path = "../presence" }
revolt-permissions = { version = "0.11.2", path = "../permissions", features = [
revolt-presence = { version = "0.11.5", path = "../presence" }
revolt-permissions = { version = "0.11.5", path = "../permissions", features = [
"serde",
"bson",
] }
revolt-parser = { version = "0.11.2", path = "../parser" }
revolt-parser = { version = "0.11.5", path = "../parser" }
# Utility
log = "0.4"

View File

@@ -653,14 +653,14 @@ impl User {
self.apply_options(partial.clone());
db.update_user(&self.id, &partial, remove.clone()).await?;
// EventV1::UserUpdate {
// id: self.id.clone(),
// data: partial.into(),
// clear: remove.into_iter().map(|v| v.into()).collect(),
// event_id: Some(Ulid::new().to_string()),
// }
// .p_user(self.id.clone(), db)
// .await;
EventV1::UserUpdate {
id: self.id.clone(),
data: partial.into(),
clear: remove.into_iter().map(|v| v.into()).collect(),
event_id: Some(Ulid::new().to_string()),
}
.p_user(self.id.clone(), db)
.await;
Ok(())
}

View File

@@ -1,6 +1,6 @@
[package]
name = "revolt-files"
version = "0.11.2"
version = "0.11.5"
edition = "2021"
license = "AGPL-3.0-or-later"
authors = ["Paul Makles <me@insrt.uk>"]
@@ -27,10 +27,10 @@ typenum = "1.17.0"
aws-config = "1.5.5"
aws-sdk-s3 = { version = "1.46.0", features = ["behavior-version-latest"] }
revolt-config = { version = "0.11.2", path = "../config", features = [
revolt-config = { version = "0.11.5", path = "../config", features = [
"report-macros",
] }
revolt-result = { version = "0.11.2", path = "../result" }
revolt-result = { version = "0.11.5", path = "../result" }
# image processing
jxl-oxide = { workspace = true }

View File

@@ -1,6 +1,6 @@
[package]
name = "revolt-models"
version = "0.11.2"
version = "0.11.5"
edition = "2021"
license = "MIT"
authors = ["Paul Makles <me@insrt.uk>"]
@@ -21,8 +21,8 @@ default = ["serde", "partials", "rocket"]
[dependencies]
# Core
revolt-config = { version = "0.11.2", path = "../config" }
revolt-permissions = { version = "0.11.2", path = "../permissions" }
revolt-config = { version = "0.11.5", path = "../config" }
revolt-permissions = { version = "0.11.5", path = "../permissions" }
# Utility
regex = "1.11"

View File

@@ -1,6 +1,6 @@
[package]
name = "revolt-parser"
version = "0.11.2"
version = "0.11.5"
edition = "2021"
license = "MIT"
authors = ["Zomatree <me@zomatree.live>", "Paul Makles <me@insrt.uk>"]

View File

@@ -1,6 +1,6 @@
[package]
name = "revolt-permissions"
version = "0.11.2"
version = "0.11.5"
edition = "2021"
license = "MIT"
authors = ["Paul Makles <me@insrt.uk>"]
@@ -22,7 +22,7 @@ async-std = { version = "1.8.0", features = ["attributes"] }
[dependencies]
# Core
revolt-result = { version = "0.11.2", path = "../result" }
revolt-result = { version = "0.11.5", path = "../result" }
# Utility
auto_ops = "0.3.0"

View File

@@ -1,6 +1,6 @@
[package]
name = "revolt-presence"
version = "0.11.2"
version = "0.11.5"
edition = "2021"
license = "AGPL-3.0-or-later"
authors = ["Paul Makles <me@insrt.uk>"]
@@ -17,7 +17,7 @@ redis-is-patched = []
async-std = { version = "1.8.0", features = ["attributes"] }
# Config for loading Redis URI
revolt-config = { version = "0.11.2", path = "../config" }
revolt-config = { version = "0.11.5", path = "../config" }
[dependencies]
# Utility

View File

@@ -1,6 +1,6 @@
[package]
name = "revolt-ratelimits"
version = "0.11.2"
version = "0.11.5"
edition = "2024"
license = "MIT"
authors = ["Zomatree <me@zomatree.live>", "Paul Makles <me@insrt.uk>"]
@@ -18,9 +18,9 @@ axum = ["dep:axum", "revolt-database/axum-impl"]
default = ["rocket", "axum"]
[dependencies]
revolt-database = { version = "0.11.2", path = "../database" }
revolt-result = { version = "0.11.2", path = "../result" }
revolt-config = { version = "0.11.2", path = "../config" }
revolt-database = { version = "0.11.5", path = "../database" }
revolt-result = { version = "0.11.5", path = "../result" }
revolt-config = { version = "0.11.5", path = "../config" }
rocket = { version = "0.5.1", optional = true }
revolt_rocket_okapi = { version = "0.10.0", optional = true }

View File

@@ -1,6 +1,6 @@
[package]
name = "revolt-result"
version = "0.11.2"
version = "0.11.5"
edition = "2021"
license = "MIT"
authors = ["Paul Makles <me@insrt.uk>"]

View File

@@ -1,6 +1,6 @@
[package]
name = "revolt-crond"
version = "0.11.2"
version = "0.11.5"
license = "AGPL-3.0-or-later"
authors = ["Paul Makles <me@insrt.uk>"]
edition = "2021"
@@ -17,7 +17,7 @@ log = "0.4"
tokio = { version = "1" }
# Core
revolt-database = { version = "0.11.2", path = "../../core/database" }
revolt-result = { version = "0.11.2", path = "../../core/result" }
revolt-config = { version = "0.11.2", path = "../../core/config" }
revolt-files = { version = "0.11.2", path = "../../core/files" }
revolt-database = { version = "0.11.5", path = "../../core/database" }
revolt-result = { version = "0.11.5", path = "../../core/result" }
revolt-config = { version = "0.11.5", path = "../../core/config" }
revolt-files = { version = "0.11.5", path = "../../core/files" }

View File

@@ -1,21 +1,21 @@
[package]
name = "revolt-pushd"
version = "0.11.2"
version = "0.11.5"
edition = "2021"
license = "AGPL-3.0-or-later"
publish = false
[dependencies]
revolt-result = { version = "0.11.2", path = "../../core/result" }
revolt-config = { version = "0.11.2", path = "../../core/config", features = [
revolt-result = { version = "0.11.5", path = "../../core/result" }
revolt-config = { version = "0.11.5", path = "../../core/config", features = [
"report-macros",
"anyhow",
] }
revolt-database = { version = "0.11.2", path = "../../core/database" }
revolt-models = { version = "0.11.2", path = "../../core/models", features = [
revolt-database = { version = "0.11.5", path = "../../core/database" }
revolt-models = { version = "0.11.5", path = "../../core/models", features = [
"validator",
] }
revolt-presence = { version = "0.11.2", path = "../../core/presence", features = [
revolt-presence = { version = "0.11.5", path = "../../core/presence", features = [
"redis-is-patched",
] }

View File

@@ -1,6 +1,6 @@
[package]
name = "revolt-voice-ingress"
version = "0.11.2"
version = "0.11.5"
license = "AGPL-3.0-or-later"
edition = "2021"
publish = false

View File

@@ -1,6 +1,6 @@
[package]
name = "revolt-delta"
version = "0.11.2"
version = "0.11.5"
license = "AGPL-3.0-or-later"
authors = ["Paul Makles <paulmakles@gmail.com>"]
edition = "2018"

View File

@@ -1,6 +1,6 @@
[package]
name = "revolt-autumn"
version = "0.11.2"
version = "0.11.5"
edition = "2021"
license = "AGPL-3.0-or-later"
publish = false
@@ -44,16 +44,16 @@ tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# Core crates
revolt-files = { version = "0.11.2", path = "../../core/files" }
revolt-config = { version = "0.11.2", path = "../../core/config" }
revolt-database = { version = "0.11.2", path = "../../core/database", features = [
revolt-files = { version = "0.11.5", path = "../../core/files" }
revolt-config = { version = "0.11.5", path = "../../core/config" }
revolt-database = { version = "0.11.5", path = "../../core/database", features = [
"axum-impl",
] }
revolt-result = { version = "0.11.2", path = "../../core/result", features = [
revolt-result = { version = "0.11.5", path = "../../core/result", features = [
"utoipa",
"axum",
] }
revolt-ratelimits = { version = "0.11.2", path = "../../core/ratelimits", features = ["axum"] }
revolt-ratelimits = { version = "0.11.5", path = "../../core/ratelimits", features = ["axum"] }
# Axum / web server
tempfile = "3.12.0"

View File

@@ -1,6 +1,6 @@
[package]
name = "revolt-gifbox"
version = "0.11.2"
version = "0.11.5"
edition = "2021"
license = "AGPL-3.0-or-later"
publish = false
@@ -17,19 +17,19 @@ tokio = { version = "1.0", features = ["full"] }
reqwest = { version = "0.12", features = ["json"] }
# Core crates
revolt-config = { version = "0.11.2", path = "../../core/config" }
revolt-models = { version = "0.11.2", path = "../../core/models" }
revolt-result = { version = "0.11.2", path = "../../core/result", features = [
revolt-config = { version = "0.11.5", path = "../../core/config" }
revolt-models = { version = "0.11.5", path = "../../core/models" }
revolt-result = { version = "0.11.5", path = "../../core/result", features = [
"utoipa",
"axum",
] }
revolt-coalesced = { version = "0.11.2", path = "../../core/coalesced", features = [
revolt-coalesced = { version = "0.11.5", path = "../../core/coalesced", features = [
"queue",
] }
revolt-database = { version = "0.11.2", path = "../../core/database", features = [
revolt-database = { version = "0.11.5", path = "../../core/database", features = [
"axum-impl",
] }
revolt-ratelimits = { version = "0.11.2", path = "../../core/ratelimits", features = [
revolt-ratelimits = { version = "0.11.5", path = "../../core/ratelimits", features = [
"axum",
] }

View File

@@ -1,6 +1,6 @@
[package]
name = "revolt-january"
version = "0.11.2"
version = "0.11.5"
edition = "2021"
license = "AGPL-3.0-or-later"
publish = false
@@ -33,13 +33,13 @@ tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# Core crates
revolt-config = { version = "0.11.2", path = "../../core/config" }
revolt-models = { version = "0.11.2", path = "../../core/models" }
revolt-result = { version = "0.11.2", path = "../../core/result", features = [
revolt-config = { version = "0.11.5", path = "../../core/config" }
revolt-models = { version = "0.11.5", path = "../../core/models" }
revolt-result = { version = "0.11.5", path = "../../core/result", features = [
"utoipa",
"axum",
] }
revolt-files = { version = "0.11.2", path = "../../core/files" }
revolt-files = { version = "0.11.5", path = "../../core/files" }
# Axum / web server
axum = { version = "0.7.5" }

View File

@@ -1 +1 @@
0.11.2
0.11.5