Skip to content

Normalize message/envelope tags in the Vuex store #4871

@ChristophWurst

Description

@ChristophWurst

As discovered in #4830 we have to restructure the way we store tags in the Vuex store. Right now we use a deep structure on the envelope objects but it turns out we should very likely normalize the data so that there is an indexed object of tags in the Vuex store and envelopes reference those tags by their id. This is also the way we store accounts, mailboxes, envelopes and messages.

We have to check all usages of tagEnvelope. In contrast to flagEnvelope the value here isn't a boolean but an id that represents the tag.

This will enable us to work on #4807 and #4806 because then tags only exist once and when you change color, the update will be visible for all envelopes simultaneously.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions