Граф коммитов

72 Коммитов

Автор SHA1 Сообщение Дата
Daniel Calviño Sánchez 64de577a94 Simplify notification wording
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-05-30 18:30:58 +02:00
Ivan Sein 1256842d3b Send call notifications to every room participant that is not in the call.
Signed-off-by: Ivan Sein <ivan@nextcloud.com>
2018-05-30 10:55:40 +02:00
Ivan Sein 0f22c00dd1 Change notifications and activities strings.
Signed-off-by: Ivan Sein <ivan@nextcloud.com>
2018-05-29 11:18:56 +02:00
Allan Nordhøy c8f4a19675
Spelling: by a user that has since been deleted :) 2018-03-16 14:31:30 +01:00
Joas Schilling 92a1af6596
Use a different object type for all the notifications
Signed-off-by: Joas Schilling <coding@schilljs.com>
2017-11-22 11:01:17 +01:00
Joas Schilling 6b528fb476
Use the dark icon which is visible
Signed-off-by: Joas Schilling <coding@schilljs.com>
2017-11-20 10:38:39 +01:00
Daniel Calviño Sánchez 1e0bcabdeb
Add the message to the mention notifications
The chat message can be much longer than the maximum length allowed for
notification messages, so the notification message is trimmed if needed.

When the notification is being prepared to be displayed it is taken into
account if the message was trimmed, and in that case an ellipsis is
added at the start and/or the end (depending on the case) of the
message.

Note that the original notification message does not contain the
ellipsis characters, as depending on the language a whitespace should be
added or not before and after an ellipsis, and the language in which the
notification will be displayed is only known at the time of displaying
it, but not when it is saved.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2017-11-20 10:38:39 +01:00
Daniel Calviño Sánchez 1eb6cebcae
Add notifications for mentions in chat messages
When a user is mentioned in a chat message she will now receive a
notification about that. If a chat room is deleted all the pending
notifications will be also removed.

The rich subject of the notifications use "call" instead of "room" or
"chat" due to "call" being already available in
"lib/public/RichObjectStrings/Definitions.php" (in Nextcloud server),
although the Notifications app does not handle it in any special way
though ("apps/notifications/js/richObjectStringParser.js").

Note that, unlike with the current code for invitation notifications, no
checks are made on whether "call" is available or not, as the chat is
available only from Nextcloud 13 and onwards.

Currently every user mentioned in a chat message is notified, but this
will be tightened in later commits (for example, if a user is mentioned
in a chat room to which she is not able to join).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2017-11-20 10:38:38 +01:00
Joas Schilling 7dace9960b
Better parameter naming
Signed-off-by: Joas Schilling <coding@schilljs.com>
2017-11-17 13:18:56 +01:00
Joas Schilling 451cab31a0
Split code into methods for better readability
Signed-off-by: Joas Schilling <coding@schilljs.com>
2017-11-17 13:18:55 +01:00
Joas Schilling b66023a281
Create notifications for inactive users when a call happens
Signed-off-by: Joas Schilling <coding@schilljs.com>
2017-11-17 13:18:55 +01:00
Joas Schilling ffd6378d83
Move notification generation to hooks as well
Signed-off-by: Joas Schilling <coding@schilljs.com>
2017-11-15 15:34:26 +01:00
Joas Schilling b274441c61
Split the API controller into 2
Signed-off-by: Joas Schilling <coding@schilljs.com>
2017-07-12 11:53:16 +02:00
Joas Schilling 45c6cfb57c
Use the token for all public API calls
Signed-off-by: Joas Schilling <coding@schilljs.com>
2017-03-24 11:22:04 +01:00
Joas Schilling 5a7f6082f7
Add the call type as well
Signed-off-by: Joas Schilling <coding@schilljs.com>
2017-01-17 10:12:13 +01:00
Joas Schilling 358185375b
Add the call name to the notification when the call has a name
Signed-off-by: Joas Schilling <coding@schilljs.com>
2017-01-16 18:35:37 +01:00
Joas Schilling 904ac4b4bf Merge pull request #131 from nextcloud/create-notifications-for-all-kind-of-calls
Add notifications for all room additions
2016-11-25 11:23:01 +01:00
Joas Schilling a47acd97a0 Update link format in notifications
Signed-off-by: Joas Schilling <coding@schilljs.com>
2016-11-23 15:38:42 +01:00
Joas Schilling 98ad99468d
Add support for public calls
Signed-off-by: Joas Schilling <coding@schilljs.com>
2016-11-23 11:54:42 +01:00
Joas Schilling 4fcc60b0e3
Fix notification tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
2016-11-14 16:30:50 +01:00
Joas Schilling 61d9335c73
Prepare notifications for group calls
Signed-off-by: Joas Schilling <coding@schilljs.com>
2016-11-14 16:30:50 +01:00
Joas Schilling d985c7f58c
Start notifications
Signed-off-by: Joas Schilling <coding@schilljs.com>
2016-11-09 15:18:58 +01:00