Fix broken redact and shrink icon size.

square-messages
Black Hat 2018-10-21 16:53:37 +08:00
parent b5713d90f1
commit 24fdee32a2
3 changed files with 4 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

@ -108,7 +108,7 @@ void MessageEventModel::setRoom(SpectralRoom* room) {
}
refreshRow(timelineBaseIndex()); // Refresh the looks
if (m_currentRoom->timelineSize() > 1) // Refresh above
refreshEventRoles(timelineBaseIndex() + 1, {ReadMarkerRole});
refreshEventRoles(timelineBaseIndex() + 1);
if (timelineBaseIndex() > 0) // Refresh below, see #312
refreshEventRoles(timelineBaseIndex() - 1,
{AboveEventTypeRole, AboveAuthorRole,
@ -126,6 +126,9 @@ void MessageEventModel::setRoom(SpectralRoom* room) {
{ReadMarkerRole});
refreshEventRoles(lastReadEventId, {ReadMarkerRole});
});
connect(
m_currentRoom, &Room::replacedEvent, this,
[this](const RoomEvent* newEvent) { refreshEvent(newEvent->id()); });
connect(m_currentRoom, &Room::fileTransferProgress, this,
&MessageEventModel::refreshEvent);
connect(m_currentRoom, &Room::fileTransferCompleted, this,