Joas Schilling
1ccbf67da2
chore: Run SPDX convertor
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling
1f71244d82
fix(openapi): Remove long int-lists now that OpenAPI understands int<min,max>
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling
5f8c5e8e45
fix(chat): Mark notifications read when setting the readmarker to the end
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling
2ee2183331
fix(federation): Disable read and typing indicators for federated users
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling
34163987cf
fix(API): Use Room::isFederatedConversation() consistantly
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling
99cafa2ceb
feat(reminders): Implement reminders for messages not in cache
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling
eb45b2eb87
feat(federation): Implement reminders for federated messages
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling
cdc988c7ff
feat(federation): Implement notifications for mentions, reply and full
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling
7d7765c1fe
feat(chat): Allow marking chat as read without a last message ID
This is required for federated conversations where the clients
might not know the hosted message ID but only the proxy ID instead
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling
b1e243877f
feat(federation): Allow to mark a conversation as unread again
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling
88101baeee
feat(federation): Proxy setReadMarker and return updated conversation
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling
34dcb545e6
feat(federation): Support mentioning federated users
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling
5662c982c4
feat(federation): Allow editing and deleting for federated users
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling
7171a47d74
feat(federation): Federate getting messages and the message context
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling
78dd420520
feat(middleware): Filter federation supported things on the middleware
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling
b9c3a7faaa
feat(federation): Handle sending chat messages
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling
c1eaad19b5
feat(federation): Proxy RoomController::getParticipants()
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling
74c81c322b
feat(federation): Extract user converter
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling
ef4351fb01
fix(federation): Use authenticator all the time instead of duplicating it into the controller
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling
74e75417be
feat(federation): Add TalkV1 federation proxy for mentions
Decision is to proxy the requests on the own server,
so we can proxy other services (matrix coming to mind)
in the future and the clients still have to only talk to
their own server, to help with CSP and to reduce the efforts
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling
e0f1906f8d
fix(CS): Prepare coding standard update
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling
54b5928a84
feat(chat): Add capability for editing messages
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling
ae7bc0278f
fix(chat): Also send a 202 when editing and deleting and a bot is enabled
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling
3f27de5fd8
fix(chat): Don't allow editing to an empty message
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling
5f4f424ce0
fix(chat): Handle basic editing of captions
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling
0a9614f6f2
feat(chat): Add basic handling of editing
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling
7d3db3ab16
feat(chat): API specs for "Edit message"
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling
f4ba35d820
feat(chat): Rate limit guests when mentioning others
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling
66975ec6a0
Preload the files metadata and cache photos-size
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling
4c5128dc22
fix(API): Add more specific int-types
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling
96cf85e6e3
fix(reactions): Don't break mobile clients when the reactions list is empty
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling
68ba7b10f8
fix(Chat): Add detailed typehints and return early
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling
9698f4bc60
Fix federated user handling in chat
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling
25e50e1a12
Adjust namespace and dictionary to match Talk
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
jld3103
17b9f3fdbf
Add annotations for ChatController
Signed-off-by: jld3103 <jld3103yt@gmail.com>
2 years ago
Joas Schilling
f84339120c
fix(chat): Fix responding with "X-Chat-Last-Common-Read" when requested by the client
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling
473feee953
feat(chat): Option to get and clear reminders
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling
cd280e1272
feat: Add actions to the notification
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling
c6664add2c
feat(notification): API for "Remind me later"
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling
9408c01c59
fix(CI): Fix psalm by changing the addHeader() calls
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Hamid Dehnavi
e116b345ab
Use PHP8's constructor property promotion
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
2 years ago
Joas Schilling
63c020a1fb
fix(chat): Update own read marker before triggering events when posting
Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years ago
Joas Schilling
0a674941d6
fix(chat): Prevent empty chat messages on API level
Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years ago
Joas Schilling
5ac5d00e2d
feat(controllers): Migrate server annotations to attributes
Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years ago
Joas Schilling
f39a4299ab
techdebt(controllers): Migrate Talk annotations to attributes
Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years ago
Joas Schilling
c1970caef4
chore(CS): Unify construct() calls
Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years ago
Joas Schilling
f3ff4a8820
automated: Apply CS fix
Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years ago
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>
3 years ago
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>
3 years ago
Marcel Müller
d480f3af4f
Allow to retrieve messages without marking notifications as read
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
3 years ago