nextcloud/apps
Anna Larch b56f1c8a0d refactor(user_status): replace priority if/elseif chain with MESSAGE_PRIORITY constant map
The automated status priority hierarchy (OUT_OF_OFFICE > AVAILABILITY >
CALL > CALENDAR_BUSY) was encoded as a nested if/elseif chain that required
touching multiple branches to add a new automated message type, and made the
relative ordering of statuses non-obvious.

Replace it with a MESSAGE_PRIORITY constant map (higher value = higher
priority) and a single comparison. The update shortcut — which directly
overwrites the active status without creating a new backup, used when a
higher-priority automated status takes over from a lower-priority one that
is already active — is only taken when both the incoming and current
messageIds are known automated statuses in the map. This preserves the
existing behaviour where a non-automated current status always goes through
the backup path.

AI-Assisted-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Anna Larch <anna@nextcloud.com>
2026-04-25 17:54:36 +02:00
..
admin_audit fix(l10n): Update translations from Transifex 2026-03-31 00:19:16 +00:00
cloud_federation_api Merge pull request #59721 from nextcloud/bugfix/noid/throttle-ocm-requests 2026-04-20 13:41:50 +02:00
comments fix(l10n): Update translations from Transifex 2026-04-08 00:19:10 +00:00
contactsinteraction fix(l10n): Update translations from Transifex 2026-03-27 00:29:10 +00:00
dashboard fix(dashboard): remove status list if there are none 2026-04-07 16:56:30 +02:00
dav Merge pull request #59312 from nextcloud/calender-sync-delete 2026-04-23 20:17:48 +02:00
encryption fix(l10n): Update translations from Transifex 2026-04-23 00:19:00 +00:00
federatedfilesharing fix(l10n): Update translations from Transifex 2026-04-24 07:07:23 +00:00
federation Merge pull request #59312 from nextcloud/calender-sync-delete 2026-04-23 20:17:48 +02:00
files fix: move mountpoint when transfering share 2026-04-24 18:17:39 +02:00
files_external fix: add optional user param to IUserMountCache::removeMount 2026-04-24 18:17:41 +02:00
files_reminders fix(l10n): Update translations from Transifex 2026-04-22 00:18:59 +00:00
files_sharing fix: avoid checking share validity during mount updates 2026-04-24 18:17:45 +02:00
files_trashbin feat: export getData for public FileInfo interface 2026-04-24 14:39:51 +02:00
files_versions chore: fix ESLint issues for rules added in ESLint v10 2026-04-20 22:13:24 +02:00
lookup_server_connector fix(l10n): Update translations from Transifex 2026-03-28 00:30:27 +00:00
oauth2 fix(oauth): rotate the auth token only if the access token rotation was successful 2026-04-22 11:23:47 +02:00
profile fix(l10n): Update translations from Transifex 2026-04-20 00:18:51 +00:00
provisioning_api fix: Add missing PasswordConfirmationRequired attributes 2026-04-21 10:21:07 +02:00
settings fix(l10n): Update translations from Transifex 2026-04-25 00:18:46 +00:00
sharebymail fix(l10n): Update translations from Transifex 2026-04-24 07:07:23 +00:00
systemtags chore: fix ESLint issues for rules added in ESLint v10 2026-04-20 22:13:24 +02:00
testing fix(testing): Fix fake provider reverting strings with emojis 2026-04-10 16:03:25 +02:00
theming fix(l10n): Update translations from Transifex 2026-04-24 07:07:23 +00:00
twofactor_backupcodes fix(l10n): Update translations from Transifex 2026-03-30 00:29:17 +00:00
updatenotification fix(l10n): Update translations from Transifex 2026-04-21 00:18:36 +00:00
user_ldap fix: Change the setting name 2026-04-14 10:49:15 +02:00
user_status refactor(user_status): replace priority if/elseif chain with MESSAGE_PRIORITY constant map 2026-04-25 17:54:36 +02:00
weather_status fix(l10n): Update translations from Transifex 2026-04-23 00:19:00 +00:00
webhook_listeners fix(webhook-listeners): hour lifetime of tokens 2026-04-23 13:39:23 +02:00
workflowengine fix(l10n): Update translations from Transifex 2026-04-25 00:18:46 +00:00