summaryrefslogtreecommitdiffstats
path: root/apps/user_status/lib
Commit message (Collapse)AuthorAgeFilesLines
* set round item icons for user status widgetRobin Appelman2022-09-151-6/+5
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* implement IButtonWidget and IIconWidget in user_statusJulien Veyssier2022-09-151-3/+21
| | | | Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
* implement IAPIWidget in user_statusJulien Veyssier2022-09-151-28/+58
| | | | Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
* Fix typos in apps/ subdirectoryluz paz2022-09-051-1/+1
| | | | | | | Found via `codespell -q 3 -S l10n,./apps/files_external/3rdparty -L adn,ba,boxs,keypair,jus,optionel,ressource,tabel ./apps/` Signed-off-by: luz paz <luzpaz@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Reset user status based on message ID onlyJoas Schilling2022-07-223-10/+7
| | | | | | | | 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>
* Make user status heartbeat API publicly accessiblejld31032022-07-211-1/+2
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* Fix predefined messageJoas Schilling2022-07-011-1/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Also reset the status on clearAtJoas Schilling2022-05-274-12/+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 missing status with predefined status in drop-downJoas Schilling2022-05-272-2/+4
| | | | | | | When a predefined status message was used, the status was not "processed" so it was missing the translated message and the icon in the dropdown and the menu afterwards Signed-off-by: Joas Schilling <coding@schilljs.com>
* Extract the EmojiService from user status and add an OCP interfaceJoas Schilling2022-04-283-128/+10
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* 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>