Refresh ShowAuthorRole when a pending event is added.
This commit is contained in:
@@ -92,8 +92,10 @@ void MessageEventModel::setRoom(SpectralRoom* room) {
|
|||||||
});
|
});
|
||||||
connect(m_currentRoom, &Room::pendingEventAboutToAdd, this,
|
connect(m_currentRoom, &Room::pendingEventAboutToAdd, this,
|
||||||
[this] { beginInsertRows({}, 0, 0); });
|
[this] { beginInsertRows({}, 0, 0); });
|
||||||
connect(m_currentRoom, &Room::pendingEventAdded, this,
|
connect(m_currentRoom, &Room::pendingEventAdded, this, [=] {
|
||||||
&MessageEventModel::endInsertRows);
|
endInsertRows();
|
||||||
|
refreshEventRoles(1, {ShowAuthorRole, BubbleShapeRole});
|
||||||
|
});
|
||||||
connect(m_currentRoom, &Room::pendingEventAboutToMerge, this,
|
connect(m_currentRoom, &Room::pendingEventAboutToMerge, this,
|
||||||
[this](RoomEvent*, int i) {
|
[this](RoomEvent*, int i) {
|
||||||
if (i == 0)
|
if (i == 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user