prevent adding presence timer for server's own user
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
3109c0daba
commit
9d9f403ad5
1 changed files with 3 additions and 1 deletions
|
@ -137,7 +137,9 @@ impl Service {
|
|||
.set_presence(user_id, presence_state, currently_active, last_active_ago, status_msg)
|
||||
.await?;
|
||||
|
||||
if self.timeout_remote_users || self.services.globals.user_is_local(user_id) {
|
||||
if (self.timeout_remote_users || self.services.globals.user_is_local(user_id))
|
||||
&& user_id != self.services.globals.server_user
|
||||
{
|
||||
let timeout = match presence_state {
|
||||
PresenceState::Online => self.services.server.config.presence_idle_timeout_s,
|
||||
_ => self.services.server.config.presence_offline_timeout_s,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue