X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fabstractmessageprocessor.h;h=b38138e2235137b62f0127c819e1836bff5f2190;hp=ff9daadf5d2bd6f068ebe93c71d5415976fec26f;hb=7e20c659f88e26ccdfdc65f4894ed6ecf61ca8a9;hpb=9a717378a859383363ea519dd9de9c0138d0db73 diff --git a/src/client/abstractmessageprocessor.h b/src/client/abstractmessageprocessor.h index ff9daadf..b38138e2 100644 --- a/src/client/abstractmessageprocessor.h +++ b/src/client/abstractmessageprocessor.h @@ -37,7 +37,10 @@ public slots: virtual void process(QList &msgs) = 0; protected: - inline void postProcess(Message &msg) { Client::networkModel()->updateBufferActivity(msg); } + // updateBufferActivity also sets the Message::Redirected flag which is later used + // to determine where a message should be displayed. therefore it's crucial that it + // is called before inserting the message into the model + inline void preProcess(Message &msg) { Client::networkModel()->updateBufferActivity(msg); } }; #endif