Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
Add agent stauts filter for room presence check
Browse files Browse the repository at this point in the history
  • Loading branch information
feymartynov committed Oct 17, 2019
1 parent 3d36d10 commit ed072e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/endpoint/shared.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ pub(crate) fn check_room_presence(
let results = agent::ListQuery::new()
.room_id(room.id())
.agent_id(agent_id)
.status(agent::Status::Ready)
.execute(conn)?;

if results.len() == 0 {
Expand Down

0 comments on commit ed072e3

Please sign in to comment.