Skip to content
This repository has been archived by the owner on Nov 25, 2022. It is now read-only.

improve multi-device syncing #644

Open
r10s opened this issue Apr 3, 2019 · 5 comments
Open

improve multi-device syncing #644

r10s opened this issue Apr 3, 2019 · 5 comments

Comments

@r10s
Copy link
Member

r10s commented Apr 3, 2019

basic multi-device syncing is already available, eg. incoming messages appear on all devices as well as outgoing messages. also new chats are created on all devices.

however, this syncing could still be improved, if possible, this could include:

@testbird
Copy link
Contributor

testbird commented Apr 10, 2019

The first syncing item, the "email inbox" (contact requests) will likely need a default limit, to sync only the last maybe only 100? emails, in order to prevent downloading multi-GBs of email histories to the local devices.

The scanning for email-approved known contacts, though, may still go through all messages (once).

@r10s
Copy link
Member Author

r10s commented Apr 13, 2019

the "contact requests" does not download or scan old mail. only new, incoming mails are shown. there should be a maximum of messages retained on the device sooner or laster, however, this is another issue :)

@testbird
Copy link
Contributor

I see that currently only new messages are downloaded. But not sure about the target of this issue then, if not also enabling downloading of old messages.

I think downloading of old messages becomes possible naturally, and could be enabled, once above syncing items are there (i.e. devices deleting messages from the server, and acting on deletes seen on the server).

From "multi-device syncing" I'd expect to configure an additional device for an account and get the chat histories to start with on the new device (the chat messages that are on the IMAP server).

IMHO talking about "multi-device syncing of messages", kind of implies that a new device downloads old messages in order to sync up to the current state, otherwise the devices would merely fetch (new) messages.

@r10s
Copy link
Member Author

r10s commented Apr 20, 2019

the main-goal of this issue is not to download old messages but to keep the settings mentioned in the first post in sync.

@testbird
Copy link
Contributor

testbird commented Apr 20, 2019

Ok, nevermind, downloading old messages would requires all of the above anyway.

As mentioned in the forum, for the incoming meta-data messages (receipts etc.), syncing by using a

  1. "first see raw message,
  2. update more suitable server representation, if still pending (e.g. seen flag on sent),
  3. first to delete received raw message"

approach may not only solve the syncing and storage waste, but problems like cluttering.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants