1
0
mirror of https://github.com/pcvolkmer/arsnova-client.git synced 2025-07-01 22:42:55 +00:00

feat: add method to request room statistics

This commit is contained in:
2024-03-31 15:18:13 +02:00
parent 6ea04c7860
commit 9b50fed24b
2 changed files with 50 additions and 1 deletions

View File

@ -78,7 +78,11 @@ async fn main() -> Result<(), ()> {
let l1 = client.on_feedback_changed(&cli.room, FeedbackHandler::SenderReceiver(in_tx, out_rx));
let room_info = client.get_room_info(&cli.room).await.map_err(|_| ())?;
let title = format!("Live Feedback: {} ({})", room_info.name, room_info.short_id);
let room_stats = client.get_room_stats(&cli.room).await.map_err(|_| ())?;
let title = format!(
"Live Feedback: {} ({}) - 👥: {}",
room_info.name, room_info.short_id, room_stats.room_user_count
);
let l2 = create_ui(&mut terminal, &title, in_rx);