aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_status/lib/Db
Commit message (Collapse)AuthorAgeFilesLines
* Properly escape underscore in db queryCarl Schwan2022-10-131-1/+1
| | | | Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Do the filtering on the DB insteadCarl Schwan2022-10-131-4/+9
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Reset user status based on message ID onlyJoas Schilling2022-07-221-3/+1
| | | | | | | | 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-271-6/+2
| | | | | | | | | 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>
* Create the backup user status in 1 query instead of 3Joas Schilling2022-02-151-0/+17
| | | | 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-151-1/+18
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Delete the user status without loading it firstJoas Schilling2022-02-151-0/+19
| | | | Signed-off-by: Joas Schilling <coding@schilljs.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>
* Add an API to set and rollback the user statusCarl Schwan2021-10-182-2/+9
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Merge pull request #27375 from nextcloud/bugfix/noid/dont-update-offline-statusblizzz2021-06-071-0/+1
|\ | | | | Don't update statuses to offline again and again
| * Don't update statuses to offline again and againJoas Schilling2021-06-071-0/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Update php licensesJohn Molakvoæ (skjnldsv)2021-06-042-14/+14
|/ | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Always use IUserStatus constsGeorg Ehrke2020-09-071-4/+4
| | | | 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-071-1/+21
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Introduce consts for statusesGeorg Ehrke2020-09-071-1/+1
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Add Status DashboardGeorg Ehrke2020-08-201-0/+27
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Provide a PHP Api for UserStatusGeorg Ehrke2020-08-051-0/+14
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Add user-status appGeorg Ehrke2020-07-312-0/+194
Signed-off-by: Georg Ehrke <developer@georgehrke.com>