docs: Add missing note about OmemoDevice

This commit is contained in:
PapaTutuWawa 2023-06-18 12:44:09 +02:00
parent b4241db9b6
commit 499817313d

View File

@ -37,8 +37,9 @@ dependencies:
### Persistence ### Persistence
By default, `omemo_dart` uses in-memory implementations for everything. For a real-world application, this is unsuitable as OMEMO devices would be constantly added. By default, `omemo_dart` uses in-memory implementations for everything. For a real-world application, this is unsuitable as OMEMO devices would be constantly added.
In order to allow persistence, your application needs to keep track of the following mappings: In order to allow persistence, your application needs to keep track of the following:
- The `OmemoDevice` assigned to the `OmemoManager`
- `JID -> [int]`: The device list for each JID - `JID -> [int]`: The device list for each JID
- `(JID, device) -> Ratchet`: The actual ratchet - `(JID, device) -> Ratchet`: The actual ratchet