-
Notifications
You must be signed in to change notification settings - Fork 152
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
Telegram bridged users that haven't been existed since before Libera.Chat was bridged are not idle-kicked #1460
Comments
It seems that the isUserOnline function in matrix-lastactive returns -1 if it can't figure it out the time since a user was active either through the stored method, presence or by being on the same home server. The last active time in matrix-lastactive is only updated by the bridge when: Restoring the state from the DB, which is only updated in the other code below:matrix-appservice-irc/src/bridge/IrcBridge.ts Lines 592 to 599 in 1f4d0dc
On an Ephemeral Event:matrix-appservice-irc/src/bridge/IrcBridge.ts Lines 981 to 988 in 1f4d0dc
On a normal Event:matrix-appservice-irc/src/bridge/IrcBridge.ts Lines 994 to 1000 in 1f4d0dc
|
Reading the code, it looks like we would be kicking them first? We always run with |
This is the sorting that's used as far as i can tell matrix-appservice-irc/src/bridge/IrcBridge.ts Line 1500 in 1bbbbb6
Which would put -1 at the end of the list, users that are considered online aren't considered, but since the users in the issue never got kicked by the bridge, I assume the bridge never kicked all the users that were considered offline. If the bridge ever kicked every offline user though, then it seems like the bug would be avoided, at least for that bridge instance. |
Describe the bug
Before I attempted to remedy this situation by hand, I saw these users on #feneas on irc.libera.chat:
The bridge has not been seen since 2020-10-24 so they should neither be sending read-receipts or new messages so I imagine they should be subject to #1194
To Reproduce
Unknown.
Expected behavior
The Telegram users have been kicked the first time libera.chat idle kicker ran since bridging of #feneas.
Screenshots
N/A
Desktop (please complete the following information):
N/A
Smartphone (please complete the following information):
N/A
Additional context
The text was updated successfully, but these errors were encountered: