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

Re-invite Matrix user to old Telegram private chats rooms after logout-login #397

Closed
MurzNN opened this issue Dec 5, 2019 · 1 comment
Closed
Labels
bug: defect Something isn't working and it never has worked
Milestone

Comments

@MurzNN
Copy link

MurzNN commented Dec 5, 2019

After logout in Telegram bridge - he kick me from all Telegram bridged rooms. After logging back va login - he re-invite me to old Telegram group chat rooms, but not to old private chats rooms.

And even if I receive new messages from Telegram users in private chats after relogin - he not re-invite me to old rooms, and not create new rooms, so I receive no notifications about new direct messages to me on Matrix side! I can see new messages only from Telegram native clients.

Via pm <user phone> command I can manually re-invite me to needed contact rooms, this command will re-invite me to old room, where I see all old history, but in that room there are missed history part between logout-login time.

So after this "fix" I can normally receive new private messages from manually "fixed" Telegram users, but not for all other.

Can you please fix this problem and re-invite user to all old rooms with direct Telegram chats after logout-login? If not automatically, maybe via some command like !tg sync private-chats. If this is not possible, can you please describe reasons?

@tulir tulir added the bug: defect Something isn't working and it never has worked label Oct 29, 2020
@tulir tulir added this to the 0.9.0 milestone Oct 29, 2020
@tulir tulir closed this as completed in fe57386 Oct 29, 2020
pidongqianqian added a commit to kelaresg/mautrix-telegram that referenced this issue Nov 12, 2020
If it just kicks the user, logging in again later would cause the
bridge to think there's a portal, but fail to invite the user again.

Fixes mautrix#397-Tulir-[fe57386]
@JuniorJPDJ
Copy link

JuniorJPDJ commented Nov 15, 2020

Bug is fixed but you anyway need to remove every bridged chats for your existing DMs to make it rebridge it for you.
I just logged off, removed connection from bridge db, left all chats with (Telegram) in name and i got reinvited to newly created rooms after logging in.
SQL I needed to run on mautrix db to remove connections between direct chats in matrix and telegram:
DELETE FROM portal WHERE tg_receiver=YOUR_TG_ID and peer_type='user';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: defect Something isn't working and it never has worked
Development

No branches or pull requests

3 participants