aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_status/tests/Unit
Commit message (Collapse)AuthorAgeFilesLines
* Remove unreachable UserStatus#clearStatus routejld31032023-05-081-9/+0
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* feat(status): Add a capability for the restoreJoas Schilling2023-04-181-0/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update the user status dashboard widget and fix the icon colorJoas Schilling2023-01-021-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix phpunitJoas Schilling2022-09-161-6/+16
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Reset user status based on message ID onlyJoas Schilling2022-07-221-3/+13
| | | | | | | | Since some statuses (call) can occure with different status (away and dnd) we need to reset only based on the message id. But as it can not be set by the user this is still save and okay. Signed-off-by: Joas Schilling <coding@schilljs.com>
* Also reset the status on clearAtJoas Schilling2022-05-273-13/+9
| | | | | | | | | When you set yourself to "DND - In a meeting" for one hour, the expectation is that you are also "online"/normal again when the meeting is over. So we extend the logic to also include the status itself to be reverted. Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix unit testsJoas Schilling2022-05-271-4/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Extract the EmojiService from user status and add an OCP interfaceJoas Schilling2022-04-283-114/+14
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Do status and predefined message setting in one goJoas Schilling2022-02-151-0/+61
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Create the backup user status in 1 query instead of 3Joas Schilling2022-02-151-39/+25
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow to revert the user status of multiple users in 3 queries instead of 3*nJoas Schilling2022-02-152-0/+110
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Respect user enumeration settings in user status listsJonas Meurer2021-10-201-1/+58
| | | | | | | | | | | | | | | | | | | | | | | | So far, the functions to find user statuses listed didn't respect user enumeration settings (`shareapi_allow_share_dialog_user_enumeration` and `shareapi_restrict_user_enumeration_to_group` core app settings). Fix this privacy issue by returning an empty list in case `shareapi_allow_share_dialog_user_enumeration` is unset or `shareapi_restrict_user_enumeration_to_group` is set. In the long run, we might want to return users from common groups if `shareapi_restrict_user_enumeration_to_group` is set. It's complicated to implement this in a way that scales, though. See the discussion at https://github.com/nextcloud/server/pull/27879#pullrequestreview-753655308 for details. Also, don't register the user_status dashboard widget at all if `shareapi_allow_share_dialog_user_enumeration` is unset or `shareapi_restrict_user_enumeration_to_group` is set. Fixes: #27122 Signed-off-by: Jonas Meurer <jonas@freesources.org>
* Add an API to set and rollback the user statusCarl Schwan2021-10-182-8/+70
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Revert "Fix Recent statuses plural/singular"kesselb2021-08-091-1/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Fix Recent statuses plural/singularszaimen2021-08-081-1/+1
| | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* Merge pull request #27375 from nextcloud/bugfix/noid/dont-update-offline-statusblizzz2021-06-072-0/+42
|\ | | | | Don't update statuses to offline again and again
| * Don't update statuses to offline again and againJoas Schilling2021-06-072-0/+42
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0414-98/+105
|/ | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Use executeQuery and executeUpdate in the QBMapperChristoph Wurst2021-03-181-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #23129 from nextcloud/enh/noid/tests-user-statusMorris Jobke2020-10-062-1/+27
|\ | | | | More tests for user_status
| * Another test for user live status listenerDaniel Kesselberg2020-10-011-1/+3
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
| * Add test case for getDefaultStatusByIdDaniel Kesselberg2020-09-241-0/+24
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Format code to a single space around binary operatorsChristoph Wurst2020-10-051-1/+1
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #23112 from ↵Roeland Jago Douma2020-10-012-3/+3
|\ \ | | | | | | | | | | | | nextcloud/bugfix/noid/increase-timeout-of-statuses Increase the timeout of statuses
| * | Increase the timeout of statusesJoas Schilling2020-10-012-3/+3
| |/ | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* / Reset the user status when clearing the custom messageJoas Schilling2020-09-301-5/+23
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Do not display Offline statuses in the Dashboard widgetGeorg Ehrke2020-09-071-5/+5
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Better cleanup routine for statusesGeorg Ehrke2020-09-073-3/+75
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Introduce consts for statusesGeorg Ehrke2020-09-072-2/+2
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Add Status DashboardGeorg Ehrke2020-08-203-0/+285
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Provide a PHP Api for UserStatusGeorg Ehrke2020-08-053-0/+188
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Add user-status appGeorg Ehrke2020-07-3111-0/+1939
Signed-off-by: Georg Ehrke <developer@georgehrke.com>