Commit d7118124 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[Notifications] Don't take updated time into account for sorting

Notification spec says, when replacing a notification:

> The server must atomically (ie with no flicker or other visual cues) replace the given notification with this one.

Notifications shifting about is a "visual cue".

Differential Revision:
parent b8739e15
......@@ -99,15 +99,8 @@ bool NotificationSortProxyModel::lessThan(const QModelIndex &source_left, const
if (scoreLeft == scoreRight) {
QDateTime timeLeft =;
if (!timeLeft.isValid()) {
timeLeft =;
QDateTime timeRight =;
if (!timeRight.isValid()) {
timeRight =;
const QDateTime timeLeft =;
const QDateTime timeRight =;
// sorts descending by time (newest first)
return timeLeft > timeRight;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment