summaryrefslogtreecommitdiffstats
path: root/apps/user_status/lib
Commit message (Collapse)AuthorAgeFilesLines
* Fetch status in heartbeat controller only onceCarl Schwan2022-04-073-27/+23
| | | | | | Store the user status inside the event instead of fetching it again Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Add global profile toggle configChristopher Ng2022-03-181-10/+8
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Fix user status not resetting correctly after a callJoas Schilling2022-03-111-1/+1
| | | | | | | | | Only happens when the user navigated away and came back, so the heartbeat updates the status to "Online + In a call" After that resetting away from "Away + In a call" does not match anymore and the previous status sticks Signed-off-by: Joas Schilling <coding@schilljs.com>
* Do status and predefined message setting in one goJoas Schilling2022-02-152-8/+57
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Create the backup user status in 1 query instead of 3Joas Schilling2022-02-152-19/+25
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Don't include unindexed is_backup in the query, it's ensured by the user_id ↵Joas Schilling2022-02-151-2/+1
| | | | | | leading underscore already 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-153-3/+58
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Delete the user status without loading it firstJoas Schilling2022-02-152-9/+25
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Directly delete the user status instead of getting it a second timeJoas Schilling2022-02-151-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Migrate to webpack v5Louis Chemineau2022-01-081-1/+1
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Move bundles to /distJohn Molakvoæ (skjnldsv)2022-01-081-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Make the UserStatusMapper a generic instance of QBMapperChristoph Wurst2021-12-291-8/+2
| | | | | | This removes our manual overrides and helps static analysis. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #29432 from nextcloud/fix/support-php-8.1Vincent Petry2021-11-231-1/+1
|\ | | | | Support PHP 8.1 - First batch
| * Fix ArrayAccess and JsonSerializable return typesCôme Chilliet2021-11-231-1/+1
| | | | | | | | | | | | First round of modifications for PHP 8.1 Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Fix multiple bugs with user statusCarl Schwan2021-11-233-15/+21
|/ | | | | | | | * Fix editing the status while on a call, don't send a bogus request * Clean backup user status when setting up a new status manually * A bit more type hinting Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Respect user enumeration settings in user status listsJonas Meurer2021-10-202-6/+43
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* Merge pull request #28751 from nextcloud/feat/28139/profile-pagePytal2021-10-181-2/+30
|\
| * Profile backendChristopher Ng2021-10-191-2/+30
| | | | | | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* | Add an API to set and rollback the user statusCarl Schwan2021-10-187-7/+165
|/ | | | 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>
* Save a request everytime we send the heartbeatJoas Schilling2021-06-161-11/+29
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #27375 from nextcloud/bugfix/noid/dont-update-offline-statusblizzz2021-06-072-0/+5
|\ | | | | Don't update statuses to offline again and again
| * Don't update statuses to offline again and againJoas Schilling2021-06-072-0/+5
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0427-179/+191
|/ | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Migrate internal classes to the OCP db col typesChristoph Wurst2021-01-121-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Make is_user_defined nullable so we can store false on oracleJoas Schilling2020-11-112-1/+63
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* UserStatus: no message means clear status message. This fixes #23332Simon Spannagel2020-11-021-2/+2
| | | | Signed-off-by: Simon Spannagel <simonspa@kth.se>
* Some emojis are in CHAR_CATEGORY_GENERAL_OTHER_TYPESJoas Schilling2020-10-131-1/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* 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-011-1/+1
|\ | | | | | | | | nextcloud/bugfix/noid/increase-timeout-of-statuses Increase the timeout of statuses
| * Increase the timeout of statusesJoas Schilling2020-10-011-1/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Reset the user status when clearing the custom messageJoas Schilling2020-09-301-1/+6
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Only load user status script when neededJulius Härtl2020-09-241-1/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Always use IUserStatus constsGeorg Ehrke2020-09-078-34/+32
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Add MigrationStep to add better IndizesGeorg Ehrke2020-09-071-0/+57
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Do not display Offline statuses in the Dashboard widgetGeorg Ehrke2020-09-071-1/+1
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Better cleanup routine for statusesGeorg Ehrke2020-09-073-2/+42
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* HeartbeatController: PHPDoc fixesGeorg Ehrke2020-09-071-0/+2
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Introduce consts for statusesGeorg Ehrke2020-09-079-48/+55
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Add Status DashboardGeorg Ehrke2020-08-204-0/+198
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Provide a PHP Api for UserStatusGeorg Ehrke2020-08-055-0/+187
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Add user-status appGeorg Ehrke2020-07-3122-0/+2067
Signed-off-by: Georg Ehrke <developer@georgehrke.com>