... | ... | @@ -122,4 +122,26 @@ In a chat with @lovetox, the following requirements were mentioned as well: |
|
|
[04:49:23 PM] wurstsalat: File transfers, image previews :)
|
|
|
```
|
|
|
|
|
|
## Design for cleanup of the current state
|
|
|
|
|
|
### Responsibilities of roles
|
|
|
|
|
|
The role of the presentation (`HtmlTextview`) is to:
|
|
|
* print_empty_line
|
|
|
* print_conversation_line
|
|
|
* print_encryption_status
|
|
|
* print_real_text
|
|
|
* print_time
|
|
|
* print_name
|
|
|
* print_subject
|
|
|
|
|
|
which means that the `HtmlTextview` will also need to:
|
|
|
* get_end_mark
|
|
|
* get_insert_mark
|
|
|
* (creation and updates of `HtmlTextview.get_buffer()`-tags in various places)
|
|
|
|
|
|
The role of the model (`ConvensationTextview` -- at least for now) is to:
|
|
|
* correct_message [function]
|
|
|
* add_message [function], to maintain:
|
|
|
* message_list [attribute]
|
|
|
* last_received_message_id [attribute] |