Commit Graph

27 Commits

Author SHA1 Message Date
Mark Nelson
386634bab3 MDL-65093 core_message: show 'OK' dialogue 2019-07-29 10:39:57 +08:00
Mark Nelson
90403c5d9d MDL-65093 core_message: users can't block any user they want
If blocking will have no effect (ie. you are attempting to block
the admin) the 'Block' button will not be shown and instead a
message will be shown explaining why you can not block the user.
2019-07-29 10:39:57 +08:00
Ryan Wyllie
195ea4480b MDL-62497 javascript: build AMD modules with new transpiler 2019-07-19 14:12:49 +08:00
Ryan Wyllie
18cb44460b MDL-64002 message: add error handling for failed messages
Add inline error messages when messages fail to send. Also add
support for deleting messages that failed to send.
2019-07-09 13:49:24 +08:00
Ryan Wyllie
485ebc9b67 MDL-64002 message: buffer send messages in UI for slow connections 2019-07-05 10:10:08 +08:00
Jake Dallimore
3d9ffc97c6 Merge branch 'MDL-65657-master' of https://github.com/ryanwyllie/moodle 2019-05-27 13:22:45 +08:00
Ryan Wyllie
8be24909bc MDL-65657 message: revert polling timeout back to old algorithm 2019-05-27 11:57:22 +08:00
Ryan Wyllie
2d2dfb6ed9 MDL-65060 core_message: add render buffer to conversations
Change the conversation logic to render using a buffer so that we can
immediately save state. The render patches are based on the state so
the UI will always reach eventual consistency with the state since the
patches are processed in order.
2019-05-22 18:59:58 +02:00
cescobedo
37a653cff9 MDL-65132 core_message: Update message drawer to delete message for all
Update JS message drawer to allow delete message for all showing a new
checkbox in the confirm dialogue.
2019-05-06 09:48:26 +02:00
Peter
d4b1eee6ee MDL-65134 core_message: Rerender the message with the updated last msg
* When a new last message we need to reorder the messages within the
message list. Call render for this.
* Standardize the cached items
* Delete cached entries on clear
2019-04-24 17:46:16 +08:00
Ryan Wyllie
69efd0337b MDL-64715 message: improve the front-end for the self-conversations 2019-04-16 12:06:28 +02:00
Sara Arjona
734b198fd3 MDL-64715 message: add support for self conversations
Added new MESSAGE_CONVERSATION_TYPE_SELF type for self-conversations
and upgraded legacy self-conversations to the new type, removing
repeated members in the message_conversation_members table.
Besides, from now, a self-conversation will be created by default for
all the existing users.

All the self-conversations have been also starred and a default message
will be displayed always to explain how to use them.
2019-04-15 20:17:54 +02:00
Mark Nelson
bd038cc19f MDL-64773 core_message: add ability to mute/unmute conversations 2019-03-13 08:55:14 +08:00
Ryan Wyllie
42702e4186 MDL-63915 core_message: prevent drawer overriding index page widget
The module message_drawer_view_conversation.js is written in a way
where it keeps the conversation data as a static module variable.
It also does the same thing for the render function and generates it
when the conversation is shown, and only holds one instance as a static
module variable. This means which ever version of the messaging UI opens
second will override the first render function.
2019-02-27 11:35:36 +08:00
Mark Nelson
cb01c45c5d MDL-63915 core_message: add namespacing to messaging widget 2019-02-27 11:35:36 +08:00
Damyon Wiese
1a368ec351 Merge branch 'MDL-64264_master' of git://github.com/markn86/moodle 2018-11-29 14:46:55 +08:00
Mark Nelson
44b92ecdfc MDL-64264 core_message: use non-deprecated WS for deletion
Also fixed typo in function name.
2018-11-29 12:41:57 +08:00
Ryan Wyllie
9aaf61346f MDL-64245 message: fix scrollback for conversation loaded via contact 2018-11-29 10:46:13 +08:00
Ryan Wyllie
b154e2bf7b MDL-64245 message: fix loading convo by id with lots of messages 2018-11-29 10:45:22 +08:00
Ryan Wyllie
6adee4a7b5 MDL-64128 message: fix exception when declining contact request 2018-11-21 11:45:24 +08:00
Ryan Wyllie
d3d95d5dc2 MDL-63303 message: fix bugs in message drawer part 4
* Add clarification to delete messages lang strings
* Stop message polling when sending a message to fix UI bug
* Publish update last message event when polling finds more messages
* Remove logged in user from group conversation participants list
* Use user object to fetch user preferences to reduce DB calls
* Remove animated slide transitions because the browser breaks when
  showing some conversations
2018-11-16 14:10:10 +08:00
Ryan Wyllie
132626720c MDL-63303 message: add member formatting to conversation
Make sure the members are formatted when adding to the state in
a conversation so that any missing data is normalised.
2018-11-15 17:57:44 +08:00
Ryan Wyllie
663ccd58ed MDL-63303 message: fix bugs in message drawer part 3
* Fix bug for newly created conversations being added to overview page
* Fixed bug with use enter to send preference not updating correctly
* Fix unit tests
* Fix race condition loading new messages while conversation resetting
* Fix ordering and rendering of messages with same timestamp
* Fix missing privacy info in get_conversation web service
* Fix linting errors
* Improve bulk message rendering
2018-11-15 14:43:21 +08:00
Ryan Wyllie
a111ab44af MDL-63303 message: fix bugs in message drawer part 2
* Added missing icon mappings for font-awesome
* Fixed focus on dialogue button when it opens
* Fixed UI updates on user block / unblock
* Fix jQuery syntax error when sending message with quotes
* Fix message/index.php opening drawer when no conversation found
* Fix placeholders rendered for new requests
2018-11-15 14:43:21 +08:00
Ryan Wyllie
1d3535f95c MDL-63303 message: fix bugs in message drawer
* Fix navigation from view_contact to view_conversation on an action
  such as blocking
* Fix default open message section on overview page depending on which
  section has conversations
* Fix message/index.php for users who haven't yet started a
  conversation
2018-11-15 14:43:21 +08:00
Ryan Wyllie
8c8939c1ae MDL-63303 message: add enter to send user preference 2018-11-15 14:43:21 +08:00
Ryan Wyllie
5005d8cfb4 MDL-63303 message: add message drawer (boost only) 2018-11-15 14:43:21 +08:00