Skip to content

Commit

Permalink
MM-60717: add OffWork to presence detection (#750)
Browse files Browse the repository at this point in the history
If a user chooses to "Appear Offline", treat this like do we do when the
user is manually away and start delivering messages to Mattermost.

Fixes: https://mattermost.atlassian.net/browse/MM-60717
  • Loading branch information
lieut-data authored Oct 8, 2024
1 parent ee40ced commit 7e774cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/presence.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func userPresenceIsActive(presence clientmodels.Presence) bool {

// Explicitly handle known activity states for being inactive or away.
switch presence.Activity {
case PresenceActivityOffline, PresenceActivityInactive, PresenceActivityAway:
case PresenceActivityOffline, PresenceActivityOffWork, PresenceActivityInactive, PresenceActivityAway:
return false
}

Expand Down

0 comments on commit 7e774cb

Please sign in to comment.