... | ... | @@ -191,7 +191,8 @@ In the end state, it should be easy to experiment with various presentations, wh |
|
|
* `msg_log_id`
|
|
|
* `msg_stanza_id`
|
|
|
* `count_as_new`
|
|
|
* `restored_message`
|
|
|
* `restored_message` [derived value]
|
|
|
This value indicates whether a message comes from before the chat was opened (restored from history or retrieved from MAM)
|
|
|
|
|
|
What do all these mean???
|
|
|
|
... | ... | @@ -200,7 +201,7 @@ What do all these mean??? |
|
|
* GroupChatControl/PrivateChatControl/ChatControl
|
|
|
These classes determine which messages are applicable to the current chat; they do nothing more than add the message to the ConversationContentModel.
|
|
|
* ConversationContentModel
|
|
|
This class is responsible of maintaining the exact content to be shown in the correct order. This means that any messages being corrected, get updated in this content representation. It's the responsibility of this model indicate to the view it has been updated/appended, including which messages were updated, by stanza_id. It is the responsibility of this class to store and update history of the channel (as this class is the place where it all gets together).
|
|
|
This class is responsible of maintaining the exact content to be shown in the correct order. This means that any messages being corrected, get updated in this content representation. It's the responsibility of this model indicate to the view it has been updated/appended, including which messages were updated, by stanza_id. It is the responsibility of this class to store and update history of the channel (as this class is the place where it all gets together). Every line contained in the model has a unique ID to find it. In case a line doesn't have a stanza_id, this class will generate an id and return that to the caller.
|
|
|
* ConversationContentLine
|
|
|
This class-or-dict contains the available fields from the list above (can it just be a dict or do we need a class?)
|
|
|
* ConversationTextview (current presentation)
|
... | ... | |