-
-
Notifications
You must be signed in to change notification settings - Fork 460
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
Added informative messages on issues related to recent-messages #3029
Conversation
if (errorCode == "channel_not_joined") | ||
{ | ||
shared->addMessage(makeSystemMessage( | ||
"Recent-messages API isn't currently joined to " | ||
"this channel (in progress or due to an issue).")); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the errorCode
is channel_not_joined
and messages
is not empty we can deduce that the bot was joined previously but has disconnected, we can inform the user that there may be gaps in the message history: Message history service recovering, there may be gaps in the message history
If the errorCode
is channel_not_joined
and messages
is empty I don't think we should print anything, because there's no difference for you vs for the next user who joins and sees nothing other than "Wow! You were the first user here with Chatterino! Congratulations! 🚀"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be resolved in 3f1d81f, let me know if it's good enough.
And make it not appear if channel is joined for the first time, see #3029 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Now we're on commit 770b9f2; Changes from upstream we pulled: - Minor: Added informative messages for recent-messages API's errors. (Chatterino#3029) - Minor: Added section with helpful Chatterino-related links to the About page. (Chatterino#3068) - Bugfix: Fixed PubSub not properly trying to resolve pending listens when the pending listens list was larger than 50. (Chatterino#3037) - Bugfix: Copy buttons in usercard now show properly in light mode (Chatterino#3057) - Bugfix: Fixed comma appended to username completion when not at the beginning of the message. (Chatterino#3060) - Bugfix: Fixed bug misplacing chat when zooming on Chrome with Chatterino Native Host extension (Chatterino#1936) - Dev: Disabled update checker on Flatpak. (Chatterino#3051) - Dev: Add logging for HTTP requests (Chatterino#2991)
Pull request checklist:
CHANGELOG.md
was updated, if applicableDescription
Added an generic error message if request to recent-messgaes fails, including status code of the HTTP request.
Added an informative message telling user that recent-messages bot isn't currently joined in the channel, for which they requested historical messages, explaining that messages we received might be incomplete.
Closes #2870