mirror of
https://github.com/Blah-IM/blahrs.git
synced 2025-07-10 08:05:33 +00:00
fix(webapi): reject mark-seen for future msgs
This commit is contained in:
parent
bc856f6c62
commit
ad3e422902
2 changed files with 25 additions and 1 deletions
|
@ -738,6 +738,11 @@ async fn last_seen(server: Server) {
|
|||
.await
|
||||
.unwrap();
|
||||
assert_eq!(rooms, RoomList::default());
|
||||
|
||||
// Cannot see a future msg.
|
||||
seen(&ALICE, Id::MAX)
|
||||
.await
|
||||
.expect_api_err(StatusCode::BAD_REQUEST, "invalid_request");
|
||||
}
|
||||
|
||||
#[rstest]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue