Keep delivering away status when an earlier tab reconnects
This commit is contained in:
1 parent
3daa2fd990
commit
2780adc2ce
5 files changed
+32
-2
No files matched your search
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
- The Away with Message shortcut now prompts once and applies the confirmed message to all sessions connected when it was triggered. Cancel leaves their status unchanged; the per-server menu still targets one session.
|
- The Away with Message shortcut prompts once for all connected sessions. If a tab reconnects before confirmation, its replacement stays untouched and the other original sessions still receive the message. Cancel leaves all statuses unchanged; the per-server menu still targets one session.
|
||||||
|
|
||||||
- The moderation queue shows the newest talk requests first. Grant Next still selects the oldest waiting peer in the current channel and skips withdrawn requests.
|
- The moderation queue shows the newest talk requests first. Grant Next still selects the oldest waiting peer in the current channel and skips withdrawn requests.
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
**Away with Message:** Two muted native sessions joined the same private loopback TS6 beta14 using different disposable identities. After cancelling the Slint form both rosters showed both clients online. After confirming a single message, both rosters reported both clients away with that message. The test injected a semantic shortcut event; it did not exercise OS chord registration or a physical keypress. No audio device was used.
|
**Away with Message:** Two muted native sessions joined the same private loopback TS6 beta14 using different disposable identities. After cancelling the Slint form both rosters showed both clients online. After confirming a single message, both rosters reported both clients away with that message. The test injected a semantic shortcut event; it did not exercise OS chord registration or a physical keypress. No audio device was used.
|
||||||
|
|
||||||
|
With the next prompt open on the second tab, the first tab disconnected and reconnected. After confirmation, both live rosters showed the replacement online and the original second session away with the new message. The runtime reported the stale recipient rather than reporting complete success.
|
||||||
|
|
||||||
**Talk request queue:** The installed TS6 UI lists positive request timestamps in the local channel in descending order (bundle byte 4201898). The Windows native regression checked display order separately from the Grant Next shortcut: a withdrawn request disappears, an already granted peer or the local client is not chosen by the shortcut, and an unknown local channel yields no target. This verifies snapshot selection, not a live permission grant or a physical shortcut.
|
**Talk request queue:** The installed TS6 UI lists positive request timestamps in the local channel in descending order (bundle byte 4201898). The Windows native regression checked display order separately from the Grant Next shortcut: a withdrawn request disappears, an already granted peer or the local client is not chosen by the shortcut, and an unknown local channel yields no target. This verifies snapshot selection, not a live permission grant or a physical shortcut.
|
||||||
|
|
||||||
**Peer fader Alt-click:** The Windows software-rendered slider test pressed Alt before mouse-down and released Alt while dragging. The draft stayed at -12.5 dB until mouse-up, then returned to 0 dB with mute still enabled. No command was submitted by this gesture. The separate Reset action also cleared mute. This test did not use a live server or a physical output.
|
**Peer fader Alt-click:** The Windows software-rendered slider test pressed Alt before mouse-down and released Alt while dragging. The draft stayed at -12.5 dB until mouse-up, then returned to 0 dB with mute still enabled. No command was submitted by this gesture. The separate Reset action also cleared mute. This test did not use a live server or a physical output.
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
## Возврат к разработке на ПК, 2026-11-26
|
## Возврат к разработке на ПК, 2026-11-26
|
||||||
|
|
||||||
|
Windows, база `3daa2fd`: живой тест `away_message_reaches_both_loopback_sessions` прошёл с переподключением первой вкладки во время ввода. Обе копии списка участников показали новую сессию онлайн и подтверждённое сообщение у второй. Устаревшая цель показана как ошибка; рассылка остальным не прерывается. Публикация предыдущего коммита не прошла аутентификацию origin.
|
||||||
|
|
||||||
2026-11-27, Windows, база `220119e`: исправлена рассылка статуса «Отойти с сообщением» из одной формы по сессиям, подключённым на момент вызова. Тест `away_message_reaches_both_loopback_sessions` прошёл на закрытом TS6 beta14: обе вкладки увидели у обоих участников online после отмены и одинаковое away-сообщение после подтверждения. Проверялось событие горячей клавиши, не физический аккорд; стенд остановлен.
|
2026-11-27, Windows, база `220119e`: исправлена рассылка статуса «Отойти с сообщением» из одной формы по сессиям, подключённым на момент вызова. Тест `away_message_reaches_both_loopback_sessions` прошёл на закрытом TS6 beta14: обе вкладки увидели у обоих участников online после отмены и одинаковое away-сообщение после подтверждения. Проверялось событие горячей клавиши, не физический аккорд; стенд остановлен.
|
||||||
|
|
||||||
2026-11-27, Windows, база `4dd514e`: список запросов слова сортируется от новых к старым, как в установленном TS6. Горячая клавиша выбирает самую раннюю действующую заявку другого участника своего канала. Адресный тест прошёл, включая отмену заявки и отсутствие текущего канала. Выдача прав на живом сервере в этом прогоне не проверялась.
|
2026-11-27, Windows, база `4dd514e`: список запросов слова сортируется от новых к старым, как в установленном TS6. Горячая клавиша выбирает самую раннюю действующую заявку другого участника своего канала. Адресный тест прошёл, включая отмену заявки и отсутствие текущего канала. Выдача прав на живом сервере в этом прогоне не проверялась.
|
||||||
|
|||||||
@@ -312,7 +312,11 @@ pub async fn key_events(ctx:Arc<RuntimeServices>,events:Vec<crate::services::key
|
|||||||
Ok(command)=>command,Err(error) if error.code=="cancelled"=>continue,Err(error)=>return Err(error),
|
Ok(command)=>command,Err(error) if error.code=="cancelled"=>continue,Err(error)=>return Err(error),
|
||||||
}
|
}
|
||||||
}else{teamspeach_core::protocol::Command::Admin(teamspeach_core::admin::AdminCommand::SetAway{away,message:None})};
|
}else{teamspeach_core::protocol::Command::Admin(teamspeach_core::admin::AdminCommand::SetAway{away,message:None})};
|
||||||
for session in snapshots.connections.iter().filter(|s|s.is_connected()) {ctx.request(&session.key,command.clone()).await?;}
|
let mut first_error=None;
|
||||||
|
for session in snapshots.connections.iter().filter(|s|s.is_connected()) {
|
||||||
|
if let Err(error)=ctx.request(&session.key,command.clone()).await {first_error.get_or_insert(error);}
|
||||||
|
}
|
||||||
|
if let Some(error)=first_error{return Err(error)}
|
||||||
None
|
None
|
||||||
},
|
},
|
||||||
A::RecordingTogglePause=>{let status=ctx.request(&key,teamspeach_core::protocol::Command::Recording(teamspeach_core::recording::RecCommand::Status)).await?;Some(if status["paused"]==true{Operation::RecordingResume}else{Operation::RecordingPause})},
|
A::RecordingTogglePause=>{let status=ctx.request(&key,teamspeach_core::protocol::Command::Recording(teamspeach_core::recording::RecCommand::Status)).await?;Some(if status["paused"]==true{Operation::RecordingResume}else{Operation::RecordingPause})},
|
||||||
|
|||||||
@@ -67,6 +67,28 @@ fn away_message_reaches_both_loopback_sessions() {
|
|||||||
until("closed away prompt", || !dialog.get_visible()).await?;
|
until("closed away prompt", || !dialog.get_visible()).await?;
|
||||||
until("server confirmed status", || roster_matches(if cancel {None} else {Some("Back shortly")})).await?;
|
until("server confirmed status", || roster_matches(if cancel {None} else {Some("Back shortly")})).await?;
|
||||||
}
|
}
|
||||||
|
owner.apply_key_events(vec![event.clone()]).await.map_err(|e|e.message)?;
|
||||||
|
until("both returned online", || roster_matches(None)).await?;
|
||||||
|
let anchor=manager.key(&b.connection_id).await.map_err(|e|e.to_string())?;
|
||||||
|
manager.set_input(Some(&anchor),crate::app::connections::InputConfiguration{input_muted:true,output_muted:true,..Default::default()}).await.map_err(|e|e.to_string())?;
|
||||||
|
owner.apply_key_events(vec![event]).await.map_err(|e|e.message)?;
|
||||||
|
until("prompt anchored to surviving session", || dialog.get_visible() && runtime.snapshot().dialog.as_ref().is_some_and(|f| f.target.session.as_ref()==Some(&anchor))).await?;
|
||||||
|
let old=manager.key(&a.connection_id).await.map_err(|e|e.to_string())?;
|
||||||
|
owner.request(&old,Command::Disconnect{message:None}).await.map_err(|e|e.message)?;
|
||||||
|
let idle=manager.key(&a.connection_id).await.map_err(|e|e.to_string())?;
|
||||||
|
let reply=owner.request(&idle,Command::Connect(ConnectArgs{address:"127.0.0.1:19987".into(),identity_id:Some(first.clone()),nickname:None,server_password:None,channel:None,channel_password:None})).await.map_err(|e|e.message)?;
|
||||||
|
let replacement=reply["own_client_id"].as_u64().ok_or("missing reconnected client ID")?;
|
||||||
|
assert_ne!(manager.key(&a.connection_id).await.map_err(|e|e.to_string())?,old);
|
||||||
|
dialog.invoke_edit("message".into(),"Only original sessions".into());
|
||||||
|
dialog.invoke_submit();
|
||||||
|
until("stale recipient reported, surviving recipient updated", || {
|
||||||
|
let state=manager.snapshot();
|
||||||
|
runtime.snapshot().error.contains("captured server or client has changed") && state.connections.len()==2 && state.connections.iter().all(|c| {
|
||||||
|
let Some(rows)=c.server.as_ref().and_then(|s| s["clients"].as_array()) else { return false };
|
||||||
|
rows.iter().any(|r| r["id"]==replacement && r["away"]==false && r["away_message"].is_null()) &&
|
||||||
|
rows.iter().any(|r| r["id"]==peer_ids[1] && r["away"]==true && r["away_message"]=="Only original sessions")
|
||||||
|
})
|
||||||
|
}).await?;
|
||||||
for id in [&a.connection_id,&b.connection_id] {
|
for id in [&a.connection_id,&b.connection_id] {
|
||||||
let key = manager.key(id).await.map_err(|e|e.to_string())?;
|
let key = manager.key(id).await.map_err(|e|e.to_string())?;
|
||||||
owner.request(&key,Command::Disconnect {message:None}).await.map_err(|e|e.message)?;
|
owner.request(&key,Command::Disconnect {message:None}).await.map_err(|e|e.message)?;
|
||||||
|
|||||||
Reference in new issue
Block a user