Mark Nelson
869eac8204
MDL-63834 core_message: validate conversation type before creating
2018-11-13 08:41:26 +08:00
Eloy Lafuente (stronk7)
49971e66f7
Merge branch 'MDL-63907-master' of git://github.com/cescobedo/moodle
2018-11-12 12:07:45 +01:00
Sara Arjona
d9552c3c33
MDL-63901 core_message: Fix error when the conversation does not exist
...
Create a conversation instead of throwing an exception to get the
behaviour working as it was before.
The string lang 'conversationdoesntexist' can be removed because
it was added in MDL-63466 and it's not used anywhere more.
2018-11-12 10:15:59 +01:00
David Monllao
623995e589
Merge branch 'MDL-63968-master' of git://github.com/andrewnicols/moodle
2018-11-12 10:02:17 +01:00
Damyon Wiese
eac24f2b71
Merge branch 'MDL-63945_master' of git://github.com/markn86/moodle
2018-11-12 16:36:57 +08:00
Mark Nelson
d15c1e77b0
MDL-63945 core_message: fixed discrepancy between helpers
2018-11-12 15:30:30 +08:00
Damyon Wiese
b0f45a8b8f
Merge branch 'MDL-63724-master-3' of https://github.com/snake/moodle
2018-11-12 14:16:31 +08:00
Damyon Wiese
75e6661940
Merge branch 'MDL-63909_master' of git://github.com/markn86/moodle
2018-11-12 14:01:01 +08:00
Damyon Wiese
6cfba4a1c6
MDL-63864 message: Contact request fix
...
The contactrequestid was removed from the api, so now we search by both
the userid from and the userid to.
2018-11-12 13:38:33 +08:00
Andrew Nicols
e926b4d046
MDL-63968 message: Correct use of get_in_or_equal
2018-11-12 10:32:06 +08:00
Jake Dallimore
2553e9db8e
MDL-63724 core_message: add send_messages_to_conversation() web service
2018-11-12 10:09:27 +08:00
Jake Dallimore
52f9cf205e
MDL-63724 core_message: add send_message_to_conversation() to api
2018-11-12 10:09:27 +08:00
Jake Dallimore
aa083ab95f
MDL-63724 core_message: add new group_message_sent event
2018-11-12 10:09:27 +08:00
Jake Dallimore
9f82758c01
MDL-63724 core_message: fix method signature for can_contact_user()
...
This method required objects, but only used their ids, so has been
changed to require only ids.
2018-11-12 10:09:27 +08:00
Jake Dallimore
8e3bf150d9
MDL-63724 core_message: add can_send_message_to_conversation() to api
2018-11-12 10:09:27 +08:00
Damyon Wiese
080cc5b671
Merge branch 'MDL-63864_master' of git://github.com/markn86/moodle
2018-11-12 10:02:25 +08:00
Andrew Nicols
e2a8ebddb5
Merge branch 'MDL-63850_master' of git://github.com/markn86/moodle
2018-11-12 07:53:09 +08:00
Jake Dallimore
d76029110b
MDL-63884 core_message: fix for get_conversations legacy adapter code
...
This code also tries to adapt other conversation types, but it should
only support individual conversations, where we know members exist.
2018-11-09 17:59:55 +08:00
Jake Dallimore
9cef5491fb
MDL-63884 core_message: fix for groups without images
...
If we don't have an image for the group, leave this extra field empty.
2018-11-09 17:59:53 +08:00
Mark Nelson
b3ce575e63
MDL-63864 core_message: added unit tests
2018-11-09 13:28:39 +08:00
Mark Nelson
accd64827d
MDL-63864 core_message: can now specify limit for contact requests
2018-11-09 13:28:38 +08:00
Mark Nelson
daa33803cd
MDL-63864 core_message: get_contact_requests now uses helper
2018-11-09 12:12:17 +08:00
Mark Nelson
4461288dfa
MDL-63909 core_message: undeprecated still used functions by old UI
...
A note has been made to remove these and other functions once we
remove the old UI.
2018-11-08 18:43:17 +08:00
Mark Nelson
a6049a7960
MDL-63909 core_message: deprecated web services not used in new UI
2018-11-08 18:22:00 +08:00
Mark Nelson
cef1d977c3
MDL-63850 core_message: get_conversations returns privacy and requests
2018-11-08 16:24:29 +08:00
Mark Nelson
82e0973c96
MDL-63850 core_message: helper now returns privacy information
2018-11-08 16:05:25 +08:00
Mark Nelson
5c675c5076
MDL-63850 core_message: '$referenceuserid' used when returning requests
2018-11-08 16:05:25 +08:00
Mark Nelson
054834b00c
MDL-63850 core_message: moved contact request logic to helper
2018-11-08 16:05:25 +08:00
Mark Nelson
6981de1080
MDL-63850 core_message: prevent exception being thrown with empty array
2018-11-08 16:05:25 +08:00
Andrew Nicols
308eb72448
Merge branch 'MDL-63903-master' of https://github.com/snake/moodle
2018-11-08 14:02:10 +08:00
Amaia Anabitarte
36e23989b0
MDL-63282 core_message: Setting messagingallusers = 1 for behat tests
...
Default setting value for new instances is 0
Default setting value for existing instances is 1
to get same search results than before this setting exists
Setting messagingallusers = 1 for behat tests to simulate old versions functionality
Followup: MDL-63911
2018-11-08 13:11:28 +08:00
Amaia Anabitarte
548cac7dbf
MDL-63282 core_message: New Search API function
2018-11-08 13:11:28 +08:00
cescobedo
4cdc9f73b8
MDL-63907 core_message: Pass user object to show_online_status.
...
Fix create_contact() to pass user object as parameter in show_online_status.
2018-11-07 17:05:12 +01:00
Jake Dallimore
cd07b3b5cb
MDL-63903 core_message: fix bug with shim code in index.php
...
On backend render (not via js loading), the following bugs were
introduced:
- Message ordering was wrong
- Message blocktimes were wrong
This patches the above to restore legacy behaviour.
2018-11-07 18:19:07 +08:00
Eloy Lafuente (stronk7)
3c577cb583
Merge branch 'MDL-63883-master' of https://github.com/snake/moodle
2018-11-07 10:48:12 +01:00
Damyon Wiese
d4035711f9
Merge branch 'MDL-63898-master' of https://github.com/snake/moodle
2018-11-07 15:30:52 +08:00
Damyon Wiese
da151c9b75
Merge branch 'MDL-63839_master' of git://github.com/markn86/moodle
2018-11-07 14:29:02 +08:00
Jake Dallimore
74fc14e5b2
MDL-63898 core_message: fix for get_conversations message formatting
...
This used to return a text version of the message, but needs to return
the message formatted with message_format_message_text().
2018-11-07 14:23:54 +08:00
Damyon Wiese
8313f552b6
Merge branch 'MDL-63451' of https://github.com/peterspicer-catalyst/moodle
2018-11-07 12:05:27 +08:00
Damyon Wiese
eb935dab5b
Merge branch 'MDL-63884-master' of https://github.com/snake/moodle
2018-11-07 11:00:41 +08:00
Jake Dallimore
003cdcce15
MDL-63884 core_message: add imageurl support for linked conversations
...
This is an extra field specific to linked conversations, so the helper
method has been extended to encompass this alongside the subname field.
2018-11-06 16:51:44 +08:00
Jake Dallimore
741376f3e7
MDL-63883 core_message: fix random externnallib_test phpunit failure
...
Users created by the test generator could have the same name as one
another, so trying to assert names NOT in an array would clash. Fix
is to remove those assertions - there were superfluous anyway.
2018-11-06 14:17:51 +08:00
Mark Nelson
27024d830c
MDL-63839 core_message: use component name for Behat tag
2018-11-05 10:35:51 +08:00
Andrew Nicols
e4384a6a56
Merge branch 'MDL-63712-master' of git://github.com/mickhawkins/moodle
2018-11-05 09:33:42 +08:00
Damyon Wiese
fb3ab37a67
Merge branch 'MDL-63549-master' of https://github.com/snake/moodle
2018-11-02 10:17:54 +08:00
Jake Dallimore
aa74835164
MDL-63549 core_message: exclude conversations where all messages deleted
...
If there are no recent messages for an individual conversation for the
user, then we exclude that conversation from the results.
2018-11-02 10:10:37 +08:00
Michael Hawkins
b8bbef0a9b
MDL-63712 core_message: Unit test improvements for fetching context/user
...
This issue is part of the MDL-62560 Epic.
2018-11-01 16:51:12 +08:00
Jun Pataleta
d0b05c8d05
Merge branch 'MDL-63725_master' of git://github.com/markn86/moodle
2018-11-01 16:11:06 +08:00
Mark Nelson
bc667050a4
MDL-63725 core_message: do not allow access to all conversation members
2018-11-01 15:56:07 +08:00
Shamim Rezaie
ba81c26c79
MDL-63712 core_message: support removal of multiple users in a context
...
This issue is a part of the MDL-62560 Epic.
2018-11-01 12:43:21 +08:00