Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ export default class ConversationLogger extends LoggerBase {
this._formatDateTime = formatDateTime;
this._isAutoUpdate = isAutoUpdate;
this._storageKey = `${this._name}Data`;
this._messageStore.onMessageUpdated(() => {
this._processConversationLogMap();
});
this._storage.registerReducer({
key: this._storageKey,
reducer: getDataReducer(this.actionTypes),
Expand Down Expand Up @@ -359,11 +362,6 @@ export default class ConversationLogger extends LoggerBase {
}
}

async _onStateChange() {
await super._onStateChange();
this._processConversationLogMap();
}

async _autoLogConversation({ conversation, selfEntity, correspondentEntity }) {
await this.log({
conversation,
Expand Down