Commit graph

46 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
58adc7fb36
fix(federation): Fix empty strings being null in Oracle
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-04-04 10:33:53 +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
b9c3a7faaa
feat(federation): Handle sending chat messages
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-02-23 14:33:05 +01:00
Joas Schilling
f5fe5dccf4
fix(chat): Handle last-edit displayname and deleted users
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-01-18 17:04:17 +01:00
Joas Schilling
d47ab76a29
fix(events)!: Remove deprecated events
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-11-23 08:37:39 +01:00
Joas Schilling
831e859cbc
feat(events): Migrate chat related events to typed events
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-10-20 14:44:21 +02:00
Joas Schilling
9698f4bc60
Fix federated user handling in chat
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-10-10 12:17:33 +02:00
Joas Schilling
25f9ebe249
fix(participants): Don't try to load hardcoded guests
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-09-19 12:50:07 +02:00
Joas Schilling
5959f20771
fix(bots): Fix selecting bots when checking auth on response endpoints
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-08-30 16:07:42 +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
Joas Schilling
98244210f0
feat(webhooks): Start with implementing webhooks for chat messages
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-08-07 11:35:22 +02:00
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
e46b5334e0
* Remove duplicated code
* Rename method
* Remove unused property

Signed-off-by: Vitor Mattos <vitormattos@users.noreply.github.com>
2022-12-21 14:39:14 -03:00
Vitor Mattos
2438cbc9d0
Moved tests from MessageParser to ChatManager test class
Signed-off-by: Vitor Mattos <vitor@php.rio>
2022-12-21 14:29:44 -03:00
Vitor Mattos
ca81a9fe57
Move methods to chat manager
Signed-off-by: Vitor Mattos <vitor@php.rio>
2022-12-21 14:29:43 -03:00
Vitor Mattos
c095e5f9ba
Implement unit test and make fixes after this
Signed-off-by: Vitor Mattos <vitor@php.rio>
2022-12-21 14:29:42 -03:00
Vitor Mattos
65f16b3d6a
Convert private to protected and implement filter to remove duplicated code
Signed-off-by: Vitor Mattos <vitor@php.rio>
2022-12-21 14:29:42 -03:00
Vitor Mattos
a112da0b6f
Don't return message if file don't exists
Signed-off-by: Vitor Mattos <vitor@php.rio>
2022-12-21 14:29:30 -03: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
Carl Schwan
36f511d198
Add display name cache to SystemMessage
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-08-17 10:31:14 +02:00
Carl Schwan
197c143981
Use new OCP api
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-08-17 10:31:14 +02:00
Carl Schwan
2e2ab821ec
Use DisplayNameCache
Reduce query by 1/3 when fetching list of rooms on the production
instance

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-08-17 10:31:14 +02:00
Joas Schilling
06d2432f89
Add constants for the verbs in the oc_comments table
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-04-07 16:41:09 +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
Joas Schilling
68dade9812
Recognize voice messages, object and file shares as unread messages
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-12-07 10:41:10 +01:00
Gary Kim
b885469c6c
Set avatar correctly
Signed-off-by: Gary Kim <gary@garykim.dev>
2021-07-14 13:44:31 -04:00
Gary Kim
aaf51b70b2
Show name for bridged messages
Signed-off-by: Gary Kim <gary@garykim.dev>
2021-07-14 13:44:27 -04: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
19e6f37dd6
Also load the display name
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-02-15 14:28:48 +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
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
84d42604e6
Run cs:fix
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-05-12 15:04:42 +02:00
Joas Schilling
81db771748
Add constants for event names and use pattern
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-12-04 08:36:59 +01:00
Joas Schilling
0e1d2b39b9
Typed events for Talk
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-12-04 08:36:59 +01:00
Joas Schilling
d4fc586f1a
Bye Spreed, hello Talk!
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-09-05 14:29:09 +02:00
Ivan Sein
6fb78781cd
Merge pull request #1573 from nextcloud/bugfix/noid/fix-missing-guest-names
Fix missing guest names in chat
2019-02-25 15:35:03 +01:00
Joas Schilling
55511341cb
Fix missing guest names in chat
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-02-21 15:19:55 +01:00
Joas Schilling
6edc52c58c
Fix unit tests from #1453
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-02-21 14:30:20 +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
7e1de89fd8 Fix the system notifications for guest moderators
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-10-04 01:13:28 +02: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