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

72 Коммитов

Автор SHA1 Сообщение Дата
Joas Schilling 9a491f9b00
Send the notifications after joining the call
This prevents issues when sending takes long, e.g. with a lot of users

Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-02-11 16:48:42 +01:00
Joas Schilling 5b72a671bc
Merge pull request #2502 from nextcloud/bugfix/noid/typed-events
Typed events
2019-12-06 11:52:16 +01:00
Joas Schilling 8426281399
Fix language in notification
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-12-05 20:11:31 +01: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 5a8f8fd6a6
Fix "MessageTooLongException" when mentioning someone in a long comment
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-10-04 11:03:03 +02:00
Joas Schilling 7314559199
More IShare::TYPE_* fixes
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-10-01 09:25:19 +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 4f64ed7d4a
Use the new rich object type guest
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-09-02 15:09:11 +02:00
Joas Schilling a9c123e174
Use the guest name in notifications if it was provided
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-08-23 11:33:03 +02:00
Joas Schilling e3e3e8e741
Add a mention-alike notification for replies
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-07-30 09:33:41 +02:00
Joas Schilling 86543272ee
Push notifications are rendered pre joining the call
... so we should just assum someone will be in the call soon.

Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-07-22 15:46:56 +02:00
Joas Schilling ebf7781e24
More buttons
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-07-18 12:30:46 +02:00
Joas Schilling 771bb4ec53
Adjust the text of past-notifications and add actions
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-07-18 12:23:26 +02:00
Joas Schilling c3c735e7ed
Adjust markProcessed behaviour to 17
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-07-18 12:23:26 +02:00
Joas Schilling b2f41fc736
Adjust notifier to Nextcloud 17
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-07-18 12:23:26 +02:00
Joas Schilling 0fb7a8cb19
Allow longer chat messages
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-06-27 14:58:57 +02:00
Joas Schilling b2dc9603e3
Don't send a notification when inviting a user because he was mentioned
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-03-20 16:44:34 +01:00
Joas Schilling 0e0a66a823
Remove notifications for the user
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-03-01 08:53:22 +01: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 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 57d04a562e
Do not load unnecessary classes in Application
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-02-14 08:50:37 +01:00
Joas Schilling 2aec53cb49
Use the datetime factory everywhere
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-02-13 14:27:35 +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 75ac73f194
Remove "{user} wants to talk with you" notification when the participant joins the call
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-01-09 16:02:01 +01:00
Joas Schilling 5263cc8ba0
Remove "{actor} invited you to {call}" notification when the user joined the conversation once
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-01-09 16:01:19 +01:00
Joas Schilling d8de63cc5f Don't send call notifications for file-rooms
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-12-03 15:48:50 +01:00
Joas Schilling 876165bfde
Make the notification clickable again
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-11-09 13:30:28 +01:00
Joas Schilling 86f25fb2a5 Add the file to the notification subject
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-11-08 21:07:40 +01:00
Daniel Calviño Sánchez e13571f8f3 Add support for link shares in "share:password" rooms
Until now only the e-mail shares had support for sending the password by
Talk. In Nextcloud 15 that feature was added to link shares too, so the
room name and the notification sent for "share:password" rooms has to be
adjusted accordingly.

The display name of "share:password" rooms is generated from the raw
name of the room (the e-mail for mail shares and the file name for link
shares) each time the room information is sent by the server, so the
display name was generalized to accomodate both types of raw names.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-11-08 21:00:36 +01:00
Joas Schilling 83861e53e1
Use short beautiful links for notifications
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-11-07 17:45:34 +01:00
Daniel Calviño Sánchez 294be0c05e Get shared with e-mail from the share instead of from the room name
This prepares the code for future changes in which the password could be
requested for other types of shares.

Note that the notification of a password request is just a regular call
notification; thus, the share is not provided in the notification
parameters and it has to be got from the ID of the object associated to
the room (as in "share:password" rooms the object ID is the share
token).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-11-07 15:57:37 +01:00
Joas Schilling d612e845f9
Better notifications for password shares
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-10-22 12:01:11 +02:00
Joas Schilling 947cc2b4c4
Fix subject when notified about ordinary chat message
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-10-08 17:15:51 +02:00
Joas Schilling f39142cc1f
Fix unit tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-10-04 16:01:17 +02:00
Joas Schilling 8bd699caa0
Fix unit tests with old parsing usage
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-09-27 15:20:20 +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
Joas Schilling 3b29c9c569
Send a push notification when a file was shared in a one to one room
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-08-27 12:29:37 +02:00
Joas Schilling afcc112b75
Always add the call to the rich subject
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-08-09 12:43:27 +02:00
Mario Danic f425276bc0
Fix missing call-type in groups with no name
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2018-08-09 12:43:26 +02:00
Joas Schilling fbe0f56993
Merge pull request #1049 from nextcloud/add-support-for-sending-the-password-for-a-share-by-nextcloud-talk
Add support for sending the password for a share by Nextcloud Talk
2018-08-08 14:15:56 +02:00
Daniel Calviño Sánchez efc9d95b22 Send notification to the sharer that a password has been requested
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-08-08 10:24:49 +02:00
Joas Schilling 9b1dcc37bb
Set the notification message to the full chat message with mentions
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-08-07 18:05:51 +02:00
Joas Schilling b74f91ba81
Always send notifications for one2one chats
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-08-02 11:29:50 +02:00
Mario Danic 523a547646 Fixes 1083
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2018-07-30 00:18:17 +02:00
Joas Schilling 0912d0a276
Upgrade OCA\Spreed\Notifications to PHP7
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-07-26 13:01:38 +02:00
Joas Schilling 0544cd9d01
Of course this should be a string now
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-07-10 14:09:48 +02:00
Joas Schilling 0c338c914c
Use the token instead of the id to identify the room objects
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-07-09 14:52:09 +02:00
Ivan Sein def55deebb
Merge pull request #928 from nextcloud/simplify-notification-wording
Simplify notification wording
2018-06-11 16:00:18 +02:00