Commit graph

32 commits

Author SHA1 Message Date
Joas Schilling
1ccbf67da2
chore: Run SPDX convertor
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-04-26 13:02:15 +02:00
Joas Schilling
62dca380f6
fix(federation)!: Deprecate Enviroment federation info in favor of authenticator
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-02-23 14:33:02 +01:00
Joas Schilling
9df9b0aedd
feat(chat): Autocomplete for mentions of federated users
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-02-23 14:33:01 +01:00
Hamid Dehnavi
8a3356bf77 Refactor lib
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
2023-07-11 14:17:00 +03:30
Hamid Dehnavi
86360b02ac Use PHP8's constructor property promotion
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
2023-07-06 16:14:08 +03:30
Joas Schilling
c1970caef4
chore(CS): Unify construct() calls
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-04-13 14:28:41 +02:00
Joas Schilling
f3ff4a8820
automated: Apply CS fix
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-04-13 13:17:49 +02:00
Joas Schilling
e4e6d45c7a
Suggest group mentions as well
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-03-13 11:16:03 +01:00
Joas Schilling
62f47af2b6
Fix CS
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-08-22 17:27:41 +02:00
Joas Schilling
e32de5d5f9
Use user displayname cache in autocomplete search
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-08-19 12:06:21 +02:00
Vitor Mattos
c07251f0c6
Use PHP7.4 property typehinting where possible
Signed-off-by: Vitor Mattos <vitor@php.rio>
2022-04-06 12:43:03 -03:00
Joas Schilling
9e8d94d58f
Replace old type constants with new ones
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-10-18 16:17:11 +02:00
Joas Schilling
77fe613447
Replace "getNamesBySessionHashes" usages with Attendee access
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-02-15 12:36:44 +01:00
Joas Schilling
459858a695
Introduce constants for the actor types
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-11-26 09:46:43 +01:00
Joas Schilling
b7a677ee5d
Fix PHP cs
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-10-30 10:38:50 +01:00
Joas Schilling
5c38932a98
!fixup Fix chat code base
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-10-30 10:38:50 +01:00
Joas Schilling
d590841d09
Fix searching for mention auto completes
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-10-30 10:38:49 +01:00
Joas Schilling
bbe65e5b82
Store the one-to-one users in the "name" column so we can reuse the data
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-09-15 16:33:58 +02:00
Joas Schilling
84d42604e6
Run cs:fix
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-05-12 15:04:42 +02:00
Daniel Calviño Sánchez
b10313cbc4 Add self-joined users and guests to the candidate mentions in file rooms
File rooms were available only to users with direct access to the file,
so those were the users that could be mentioned. Now file rooms are
publicly available if the file is shared by link, so the mentions now
include all the users with direct access to the file like before plus
all the self-joined users and guests currently in the room.

Note, however, that self-joined users and guests can still not mention
users with direct access to the file that have not joined the room yet,
but only those that joined the room already (plus any participant that
is currently in the room).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-09-26 10:45:01 +02:00
Joas Schilling
d4fc586f1a
Bye Spreed, hello Talk!
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-09-05 14:29:09 +02:00
Joas Schilling
4b392495dc
Also search in the displayname of guests for mentions
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-07-25 16:39:45 +02:00
Daniel Calviño Sánchez
475abd0f9c Fix duplicated candidate mentions in file rooms
In regular rooms only the current participants are candidates in
mentions, but in file rooms the candidates are all the users with access
to the file, even if they are not currently participants of the room.
However, as the users with access to the file are a superset of the
current participants those participants were returned twice. Therefore,
now candidates for mentions in file rooms are got only from the users
with access to the file instead of in addition to the current
participants.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-04-08 16:46:18 +02:00
Joas Schilling
0dffee7f79
Also return one-to-one participants that left
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-03-14 15:41:34 +01:00
Joas Schilling
fb90a74231
Make all classes strict
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-02-12 16:07:59 +01:00
Joas Schilling
3e93df0591 Allow to autocomplete users which are not in the room but have access to the file
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-12-03 15:51:00 +01:00
Joas Schilling
4afa2d7946
Do not create the participant when we don't need them
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-11-12 11:35:31 +01:00
Joas Schilling
993647faed Add tests for the search
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-04-26 12:50:20 +02:00
Joas Schilling
982bf986ba Add docs for the /mentions endpoint
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-04-26 12:50:20 +02:00
Joas Schilling
4cf756fbe6 Make the search case-insensitive
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-04-26 12:50:20 +02:00
Joas Schilling
37dad5b037 Do not suggest the current user
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-04-26 12:50:20 +02:00
Joas Schilling
1472935fb5 Start autocomplete for mentions
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-04-26 12:46:58 +02:00