Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate migrating Telegram bridge user to other instance with keeping old rooms and history #394

Closed
MurzNN opened this issue Dec 4, 2019 · 3 comments
Labels
wontfix This will not be worked on

Comments

@MurzNN
Copy link

MurzNN commented Dec 4, 2019

At now migration process from one bridge instance to other is not so comfortable: new bridge will create new separate room for each contact and group, and chat history will kept on old rooms, so user will got 2 rooms for each contact - first is dead but with history, second is active, but without history. After next migration user will got 3 duplicated rooms, etc. But if user make logout from old instance (instead of shutting off bridge instance) - it will be kicked from rooms and lost all history.

This problem stops me (and, I think, many other users) from moving from overloaded @telegram:t2bot.io to same instance on other server.

For solve this problem will be good to implement some migration process, something like !tg migrate @telegram:newserver.org command, that will invite new bot to all rooms, managed for this user on old server, transfer to him needed permissions in each room and other needed info.

What do you think about this idea?

@MurzNN MurzNN changed the title Automate migrating Telegram bridge user to other instance without duplicating rooms Automate migrating Telegram bridge user to other instance with keeping old rooms and history Dec 4, 2019
@tulir tulir added the wontfix This will not be worked on label Feb 19, 2020
@tulir
Copy link
Member

tulir commented Feb 19, 2020

This probably isn't going to happen:

  • For private chats, you'll be able to backfill history.
  • For group chats that you don't own:
    • If there are no other matrix users, you can just backfill history with the new bridge.
    • If there are other matrix users, the bridge can't just break the room for the other users because one user wants to move away.
  • For group chats that you do own, you can already !tg unbridge and re-bridge with a different bridge.

@MurzNN
Copy link
Author

MurzNN commented Jan 22, 2021

As workaround, this can be implemented via posting m.room.tombstone events to old (abandoned) rooms of old bridge instance with link to new rooms. Or maybe something better will be provided in MSC2923: Connect Matrix room to another Matrix room

@MadLittleMods
Copy link

Also related to matrix-org/matrix-spec-proposals#2716

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Development

No branches or pull requests

3 participants