Commit graph

113 commits

Author SHA1 Message Date
Daniel Sage
46f43f3ce8
Automatically load recent messages on reconnect (#3878)
* Add working reconnect recent messages

* Rename method to messagesUpdated

* Use audo declarations

* Add docs to new LimitedQueue methods

* Add more documentation, try atomic loading flag

* Update CHANGELOG.md

* Remove unused include

* Rename 'reconnected' signal to 'connected'

* Reserve before filtering on arbitrary update

* Extract recent messages fetching to own class

* Use std::atomic_flag instead of std::atomic_bool

* Add PostToThread include

* Add chatterino.recentmessages logging

* Remove unneeded parameters, lambda move capture

* Remove TwitchChannel::buildRecentMessages

* Add documentation, use more clear method name

* Reword changelog entry

I think it sounds better like this :)

* Rework how filling in missing messages is handled

This should hopefully prevent issues with filtered channels with old messages
that no longer exist in the underlying channel

* Check existing messages when looking for reply

* Clean up string distribution in file

* Try to improve documentation

* Use std::function for RecentMessagesApi

* Only trigger filledInMessages if we inserted

* Remove old unused lines

* Use make_shared<MessageLayout> instead of new MessageLayout

* Alphabetize QLogging categories

* Reorder CHANGELOG.md
2022-08-06 18:18:34 +02:00
Mm2PL
bbadbc4b33
Add logging to experimental IRC (#2996)
Co-authored-by: xHeaveny <69117321+xHeaveny@users.noreply.github.com>
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2022-07-02 09:42:28 +00:00
pajlada
3119a9bab3
Store serverReceivedTime in messages (#3735)
Co-authored-by: James Upjohn <jammehcow@jammehcow.co.nz>
2022-05-15 06:08:28 +00:00
James Upjohn
67c10fafc7
chore: replace usages of obsolete twitch struct with backing field (#3614)
Co-authored-by: Felanbird <41973452+Felanbird@users.noreply.github.com>
2022-03-19 11:02:29 +00:00
pajlada
1662ced2c7
Fix IRC mentions not showing up in the /mentions split (#3400) 2021-12-25 15:22:52 +00:00
pajlada
51ece94f58
Update Settings and Signals version (#3398)
Co-authored-by: zneix <zneix@zneix.eu>
2021-12-19 14:57:56 +00:00
pajlada
2c695a9ac5
Fix IRC colors not being applied correctly to NOTICE messages (#3383)
* Normalize NOTICE message parsing for IRC

Fixes #1782

* Add changelog entry

Co-authored-by: Felanbird <41973452+Felanbird@users.noreply.github.com>
2021-12-04 16:05:57 +00:00
pajlada
568f65213d
Fix crash on missing parameters with IRC /kick command (#3382) 2021-12-04 15:37:53 +00:00
mmb L
ec966a1791 Remove local variables that are not referenced 2021-11-28 13:02:07 +01:00
pajlada
bc847f1445
Fix IRC server messages not triggering sounds properly (#3368) 2021-11-27 14:35:13 +00:00
Mm2PL
b1e891b122
Fixed Chatterino attempting to send empty messages in IRC (#3355)
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2021-11-20 12:21:42 +00:00
Mm2PL
6ac15adf45
Add support for Emoji in IRC. (#3354) 2021-11-20 12:18:40 +01:00
pajlada
bc0b7e4d99
Fix IRC actions not being colored properly (#3341) 2021-11-07 19:58:22 +00:00
pajlada
3c4331b8cb
Fix link parsing in IRC (#3334) 2021-11-07 13:55:43 +00:00
pajlada
4b903d7fcf
Fix the reconnection backoff accidentally resetting when thrown out of certain IRC servers (#3328) 2021-10-31 15:44:38 +01:00
Felanbird
be3609a927
Capitalize mentions of Twitch, Chatterino, and IRC in comments and text/settings (#3274) 2021-10-17 15:06:58 +02:00
Paweł
5cd20bbb5a
Raise ratelimit cooldown for JOIN messages (#3219)
Was 10.5s (0.5s over the actual cooldown), changed to 12.5s (2.5s over the actual cooldown) to accomodate for any server-side lag spikes.
2021-09-04 12:45:40 +02:00
Mm2PL
cd2923c52a
Fix missing information in locally-generated IRC messages (#3203)
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2021-08-29 12:05:45 +00:00
Mm2PL
25cdeb8d9f
Make Chatterino colorize usernames on IRC (#3206) 2021-08-29 13:35:19 +02:00
Paweł
c156094d70
Fixed away command in IRC (#3190) 2021-08-23 12:03:38 +00:00
Paweł
de4f6a9d51
Rate limit outgoing JOIN messages (#3115)
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
Co-authored-by: Tal Neoran <talneoran@gmail.com>
2021-08-04 21:18:34 +00:00
pajlada
28dcdb238b
Remove JOINs from write connection (#3112)
Co-authored-by: zneix <zneix@zneix.eu>
2021-08-03 15:55:04 +00:00
Paweł
a84e62c6bb
Use server time in received IRC messages where available (#3026) 2021-07-17 18:22:25 +02:00
Mm2PL
24aee42171
Fix usercards showing all messages in IRC channels (#2979) 2021-07-08 17:26:34 +02:00
fourtf
1efc547aa5
removed access to theme from TMB + misc fixes (#2694)
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2021-06-20 13:55:35 +00:00
pajlada
0c2488505c
Use an exponential backoff when deciding how long we need to wait for reconnects (#2892)
Co-authored-by: Leon Richardt <leon.richardt@gmail.com>
2021-06-20 13:29:52 +00:00
Ben de Graaff
8639f450f2
Fix write connection reconnection issues (#2850)
Co-authored-by: Felanbird <41973452+Felanbird@users.noreply.github.com>
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2021-06-06 16:25:13 +02:00
pajlada
2f49b23875
Add ability to disable precompiled headers with CMake (#2727) 2021-05-08 15:57:00 +02:00
Paweł
fca62f7c1d
Added automatic streamer mode detection to Linux (#2316) 2021-01-09 22:14:25 +01:00
pajlada
b3e01a40d7
Try to improve Twitch IRC network stability (#2347) 2021-01-09 18:05:02 +01:00
Steve Wills
df722a72c1
Switch to QT Category logging (#2206)
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2020-11-21 16:20:10 +01:00
Leon Richardt
0eed45ae67
Chore: Proper Lambda Formatting (#2167)
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2020-11-08 12:02:19 +01:00
pajlada
f191de2514
Add CI workflow to check line endings of all source files (#2082)
In addition, all found errors (formatting & line ending) have been fixed in this PR.
2020-10-18 15:54:48 +02:00
pajlada
e4af009fda
[irc] Partially fix IRC colors (#1594)
Doesn't fix #1379 but it is a big step forward.

Needs some "real life" testing, but should be good.
2020-07-04 15:15:59 +02:00
pajlada
20612a1381
Fix repeated signal connects on reconnect in irc server (#1576) 2020-03-01 06:05:08 -05:00
fourtf
2ebe07bace removed compat functions in SignalVector 2020-02-23 19:44:13 +01:00
fourtf
e2c493f369 removed compat aliases for SignalVector 2020-02-23 19:37:02 +01:00
fourtf
843e2ad994 refactored HighlightController 2020-02-23 19:31:43 +01:00
pajlada
a078d116d2
Fix ping payload not breaking portable mode (#1516)
This payload was initialized before main was called, so before the
QApplication was initialized. This broke our portable checker

Fixes #1481
2020-01-25 14:33:38 +01:00
pajlada
90296a2d85
Expect a PONG response to our PINGs (#1476)
If no PONG was received, force a reconnection

Fixes #1164
2020-01-03 20:55:13 +01:00
pajlada
3c8992cac1
Remove FMT dependency (#1472)
All occurrences of log() have been replaced with qDebug()

bonus meme: remove a bunch of std::string usages in the pubsub client

Fixes #1467
2020-01-03 20:51:37 +01:00
Rasmus Karlsson
0e1f1196d6 reformat 2019-11-02 12:36:42 +01:00
fourtf
6f710823ed renamed getInstance() -> instance() for singletons 2019-10-07 22:42:34 +02:00
fourtf
9874bd779a formatted all files with clang 9 2019-09-26 00:51:05 +02:00
fourtf
ca0db97d09 ammend 2.1.5 added setting for experimental irc support 2019-09-22 17:12:09 +02:00
fourtf
fc049d8f45 disabled irc and fixed notice messages in write conn not showing 2019-09-22 16:16:08 +02:00
fourtf
da4714944d small fixes in Image 2019-09-22 10:54:32 +02:00
fourtf
99f99f0cff smol fixes 2019-09-18 14:20:21 +02:00
fourtf
3ab7362304 Merge branch 'master' into irc-support 2019-09-18 13:03:16 +02:00
fourtf
07133166d9 added setting to show unhandled irc commands 2019-09-18 11:11:50 +02:00