Jakob Röhrl
2c3f80bb08
Don't allow to delete other persons chats in 1-1 chats
Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>
5 years ago
Joas Schilling
c39f2c7ce9
Don't recalculate the actorId of guest attendees
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
4d27b096c5
Allow to share RichObjects to chats
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
11a861c2cb
Prevent deleting system messages and shares
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
47c76fa9eb
Add docs and restrict deleting to non-lobby and read-write chats
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
a7e30320ce
Check max age on deleting
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
77f6a4ead3
Allow to know when deleting might not be sufficient
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
9608867be3
Post a system message when deleting a message
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
dd06f39ee5
Add an endpoint to delete a message
For now it only creates a system message
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
e982ad0bae
Allow to respond with modified common read value on "not modified" messages
We need to set the status code to 200 when the header is modified,
because as per "section 10.3.5 of RFC 2616" entity headers shall be
stripped out on 304: https://stackoverflow.com/a/17822709
This means the header would not be sent to the clients at all, so
they wouldn't update the read marker when idling in the chat.
For the web interface this is not needed, as we update the info
every 30 seconds with the conversation list refresh and can therefor
save the query
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
bc716c7199
Add the last common read message id as header on chat requests and to the conversation list
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
459858a695
Introduce constants for the actor types
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
6cc98c58ab
Only use the Mapper in the Services
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
5c38932a98
!fixup Fix chat code base
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
8a5bcd1789
Fix PHP CS
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
542c379220
Further adjustments in the RoomController
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
311aa4bc5a
Currently ignore session handling in chat controller
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
3c1cb1d919
Remove updating-methods from Participant object
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
2325ebdfc3
Allow to opt-out of the status bump when pulling messages
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
eea37cf12e
Set the user status when a mobile client polls for messages
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
291e2c75f7
Add a header and publish all status information
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
6dbea9ac59
Don't leak the status when the app is disabled for the user
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
3668522821
No statuses for guests
Ref https://github.com/nextcloud/nextcloud-vue/pull/1379
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
e8613ff129
Allow to get the status with mentions
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
063948d6d8
Don't ping the session while waiting for chat messages
Unless it's a mobile app not in a call, because they don't do signaling.
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Joas Schilling
f8538f487b
Correctly pick the parent if it is index 0 of the messages
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Joas Schilling
84d42604e6
Run cs:fix
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Joas Schilling
c28a43f1e7
Handle the new reference id in the backend
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Joas Schilling
670ef340d2
Mark own messages immediatelly read
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Joas Schilling
21114875c5
Correctly return parents for lookIntoFuture=1
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Joas Schilling
eed4a254b8
Add a dedicated method to the model
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Joas Schilling
3496c7faaa
Add a flag to messages if they can be replied to
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Joas Schilling
0e1d2b39b9
Typed events for Talk
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Joas Schilling
ddc8e2b04f
Prepend the conversation mention only if it start with the match
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Ivan Sein
50e4842a33
Make room display name comparison case-insensitive.
Signed-off-by: Ivan Sein <ivan@nextcloud.com>
6 years ago
Joas Schilling
53ecdc1f76
Allow to mention "all" by autocompleting the room name
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Joas Schilling
d4fc586f1a
Bye Spreed, hello Talk!
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Joas Schilling
3eb76168d3
Allow to include the last known message as well
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Joas Schilling
68bb3b7a42
Set the automatic read marker before the waiting request, not afterwards
This false set the read marker on new messages although you
navigated away to a different chat already. So we removed this
and instead update the read marker before your next waiting.
So when you are still there, it will just have a wrong read
marker for the time until your next request starts, while it will
not update the value, when you actually left the chat already.
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Joas Schilling
6b6f42dde3
Prevent access to some APIs for non-moderators if lobby is enabled
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Ivan Sein
6fa784d3d0
Only update read marker when receiving new messages.
Signed-off-by: Ivan Sein <ivan@nextcloud.com>
6 years ago
Joas Schilling
3a0503b96f
Expose the message type as well
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Joas Schilling
25aae9f512
Make sure we don't change the comments object as that will update the database
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Joas Schilling
b14e63db18
Prevent replying to commands and system messages
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Joas Schilling
a1b17d282f
Allow to reply to messages and return the parent on the message endpoints
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Joas Schilling
e935f1978f
Make the read-marker update optional
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Joas Schilling
54692ebac3
Change read marker to work on the comment id isntead of datetime
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Joas Schilling
d166ea85a3
Sort mentions with the searched start first
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Daniel Calviño Sánchez
2825271bcc
Add document about invisible messages not returned by ChatController
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
7 years ago
Joas Schilling
f1667ac2f7
Introduce a Read-Only state for conversations
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago