Make sender-hash based styling ("colored nicks") work again
[quassel.git] / src / qtui / chatlinemodelitem.cpp
index 0bcc7a7..1653962 100644 (file)
@@ -124,7 +124,7 @@ QVariant ChatLineModelItem::contentsData(int role) const {
 }
 
 quint32 ChatLineModelItem::messageLabel() const {
-  quint32 label = 0;
+  quint32 label = _styledMsg.senderHash() << 16;
   if(_styledMsg.flags() & Message::Self)
     label |= UiStyle::OwnMsg;
   if(_styledMsg.flags() & Message::Highlight)