Commit graph

45 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
cdc988c7ff
feat(federation): Implement notifications for mentions, reply and full
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-03-06 21:05:00 +01:00
Joas Schilling
34dcb545e6
feat(federation): Support mentioning federated users
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-02-28 12:40:03 +01:00
Joas Schilling
bd2cf7e6f4
fix(chat): Handle at-all in note to self
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-11-13 18:05:58 +01:00
Joas Schilling
332eb377a5
fix(chat): Fix mentions at the beginning of captions
Set the current message as comment content, so that the message finds
mentions which are now part if the message but were not on the original
comment, e.g. mentions at the beginning of captions

Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-11-03 09:40:49 +01:00
Joas Schilling
93ecf4b540
fix(events): Move chat message parsers to typed events
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-10-31 15:50:18 +01:00
Joas Schilling
dd2b3ac4c0
fix: Fix code quality based on review
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-08-07 11:35:28 +02:00
Joas Schilling
777ca96544
feat(Message): Allow parsing messages without a current participant
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-08-07 11:35:22 +02: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
Vitor Mattos
dfac4030a2
Fix method to get avatarURL and validate the URL
https://github.com/nextcloud/spreed/pull/9072/files#r1142350857

Signed-off-by: Vitor Mattos <vitor@php.rio>
2023-04-04 17:08:49 +02:00
Vitor Mattos
557fab130d
Document icon-url on call rich objects
https://github.com/nextcloud/spreed/pull/8333 introduced an optional `icon-url`
for the call objects in rich messages.

https://github.com/nextcloud/spreed/issues/8389

Signed-off-by: Vitor Mattos <vitor@php.rio>
2023-04-04 17:08:48 +02:00
Joas Schilling
3e770939bf
Fix group rich object type in chat messages
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-03-13 11:16:05 +01:00
Joas Schilling
332345e2e6
Correctly parse mentions and publish the details via the API
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-03-13 11:16:04 +01:00
Joas Schilling
cf72ae74df
Introduce a "former one-to-one" conversation type
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-01-25 16:17:58 +01:00
Joas Schilling
ff51959102
Move getParticipant*() methods to participant service
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-10-04 12:10:04 +02:00
Joas Schilling
a22a546401
Adjust coding style
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-09-01 10:53:38 +02:00
Joas Schilling
62f47af2b6
Fix CS
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-08-22 17:27:41 +02:00
Joas Schilling
fa2dfc51e6
Use user displayname cache in mention rendering
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-08-19 12:06:20 +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
2e26a232da
Do not load the session in getParticipantByActor() as no caller needs it
Also fixes a problem with MariaDB ONLY_FULL_GROUP_BY and Oracle

Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-03-21 17:33:09 +01:00
Vitor Mattos
b933e65e2e
Reduce MissingClosureParamType
Signed-off-by: Vitor Mattos <vitor@php.rio>
2021-12-06 14:06:15 -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
928e047de2
Handle all getParticipants with multi sessions
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-08 11:56:21 +01:00
Joas Schilling
97f0320190
Show "Guest" for guests without a name
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-02-15 14:08:08 +01:00
Joas Schilling
9787728694
Replace getNameBySessionHash() with attendee access
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-02-15 12:36:44 +01:00
Joas Schilling
6f05d932f0
Fix mentioning users with subnames
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-01-29 11:15:14 +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
86a3bb576b
Fix chat code base
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-10-30 10:38:50 +01:00
Joas Schilling
3c1cb1d919
Remove updating-methods from Participant object
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-10-30 10:38:08 +01:00
Joas Schilling
449c7d2222
Add a note why ICommentsManager needs to be injected in this one place
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-10-28 21:52:25 +01:00
Vincent Petry
3caa7ca676
Add a stub for the comments manager to clarify it's defined methods
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-10-28 21:51:53 +01:00
Joas Schilling
84d42604e6
Run cs:fix
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-05-12 15:04:42 +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
e85173e4cb
Also parse mentions of guests
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-07-25 16:39:51 +02:00
Joas Schilling
2b0539e181
Allow to escape commands
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-06-25 17:49:36 +02:00
Joas Schilling
7e54634fb5
Make room names non-optional
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-02-27 15:26:50 +01:00
Joas Schilling
58f0bd6d2f
Use call ROS object
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-02-20 14:44:18 +01:00
Joas Schilling
64ac6950f7
Allow to mention everyone in the conversation
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-02-20 14:44:18 +01:00
Joas Schilling
2f60aab4ab
Introduce a Message model for parsing which also allows to hide messages
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-02-20 12:17:37 +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
ee5b10650e
Fix user mentions with spaces
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-11-12 11:28:25 +01:00
Joas Schilling
5237f4299f
Introduce Chat\MessageParser which dispatches an event for all apps
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-09-27 15:18:43 +02:00
Renamed from lib/Chat/RichMessageHelper.php (Browse further)