Skip to content

Convert all message senders after migration to key-contacts #6956

@link2xt

Description

@link2xt

In PR #6796 migration converting from_id of encrypted messages is limited to 10000 messages:

ORDER BY id DESC LIMIT 10000",

This is done to avoid migration taking too long (30 seconds or more) as it can be a problem on mobile devices, especially with multiple profiles.

If after migration you scroll some old chat up, the messages have from_id pointing to address-contact and have generic "envelope" avatar. This is also visible if you search for old messages.

A way to fix it would be to save the contact mapping and later convert remaining messages in background, maybe in chunks of 1000 messages as well, remembering the lowest unconverted ID.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions