Add per-chat input and sent message history
Steps
- Connect to core
- Open a buffer, send a message
- Type another message, do not send it
- Switch to buffer that hasn't been used
- Open chat history
- Switch back to first buffer
- Open chat history
Expected
When switching to an unused buffer, the input box text and message history should clear.
When switching back to first used buffer, the input box text and message history from earlier steps should come back.
Actual
Input box text and message history don't change when switching buffers, staying global.
Additional
Given the buffer list slides on top of the input box, it implies it is higher in the hierarchy, as if it is linked. Also, per-chat input and sent message history matches some other messaging apps and Quassel desktop.
Without this, it's easier to send a message to the wrong channel if you briefly switch channels to check on a notification, then want to reply. Global history also makes it harder to interrupt a reply in one place to respond elsewhere.