Move rooms which declare a space next to their space

This commit is contained in:
2023-11-10 20:48:18 +01:00
parent c5d54d26d2
commit 4d0600d269
6 changed files with 237 additions and 93 deletions

View File

@ -25,7 +25,7 @@ use tokio::sync::mpsc::UnboundedReceiver;
use tracing_error::ErrorLayer;
use tracing_subscriber::prelude::*;
use super::{Buffer, BufferItem, BufferItemContent};
use super::{Buffer, BufferId, BufferItem, BufferItemContent};
use crate::widgets::Prerender;
/// Maximum number of log lines to be stored in memory
@ -60,6 +60,10 @@ impl Buffer for LogBuffer {
"ratatrix".to_owned()
}
fn id(&self) -> BufferId {
BufferId::Log
}
async fn poll_updates(&mut self) {
let line = self
.receiver