OpalChatInput

The chat input, which accepts images as well as text.

Inherits QTextEdit

In the namespace octomy::opal::ui. Declared in src/libs/libopal/opal/ui/OpalChatInput.hpp.

Detailed description

Specified in [§OCSD-4](../../../../content/doc/internal/specs/opal-chat-surface/design.md).

A user can paste image BYTES or an image PATH. Both become one chip, and a chip is a single character, so one backspace removes it whole.

The two origins are handled differently on purpose. Pasted bytes have no file, so one is written through `writeCapture()` and belongs to us, under the capture directory's retention rule. A pasted path names a file the user owns; it is referenced where it is and never copied, because copying it into the capture directory would place the user's picture under a rule that can later delete it.

In this section