mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
fixed messages not replacing
This commit is contained in:
parent
cf6bdeddc7
commit
ee396bc1b8
1 changed files with 1 additions and 1 deletions
|
@ -435,7 +435,7 @@ void ChannelView::setChannel(ChannelPtr newChannel)
|
||||||
// on message replaced
|
// on message replaced
|
||||||
this->channelConnections_.push_back(
|
this->channelConnections_.push_back(
|
||||||
newChannel->messageReplaced.connect([this](size_t index, MessagePtr replacement) {
|
newChannel->messageReplaced.connect([this](size_t index, MessagePtr replacement) {
|
||||||
if (this->messages.getSnapshot().getLength() >= index || index < 0) {
|
if (index >= this->messages.getSnapshot().getLength() || index < 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue