- Description:
This module operates on the view states from the message_drawer_view_conversation module. It exposes functions that can be used to generate new version of the state.
Important notes for this module: 1.) The existing state is always immutable. It should never be modified. 2.) All functions that operate on the state should always clone the state and modify the cloned state before returning it.
It's important that the states remain immutable because they are diff'd in the message_drawer_view_conversation_patcher module in order to work out what has changed.
- Source:
- Copyright:
- 2018 Ryan Wyllie
- 2018 Ryan Wyllie
- License:
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
This module operates on the view states from the message_drawer_view_conversation module. It exposes functions that can be used to generate new version of the state.
Important notes for this module: 1.) The existing state is always immutable. It should never be modified. 2.) All functions that operate on the state should always clone the state and modify the cloned state before returning it.
It's important that the states remain immutable because they are diff'd in the message_drawer_view_conversation_patcher module in order to work out what has changed.