diff --git a/src/org/kde/kdeconnect/Plugins/SMSPlugin/SMSPlugin.java b/src/org/kde/kdeconnect/Plugins/SMSPlugin/SMSPlugin.java index 13e07054..d57ee647 100644 --- a/src/org/kde/kdeconnect/Plugins/SMSPlugin/SMSPlugin.java +++ b/src/org/kde/kdeconnect/Plugins/SMSPlugin/SMSPlugin.java @@ -279,8 +279,8 @@ public class SMSPlugin extends Plugin { long newMostRecentTimestamp = mostRecentTimestamp; for (SMSHelper.Message message : messages) { - if (message == null || message.date <= newMostRecentTimestamp) { - newMostRecentTimestamp = message.date; + if (message == null || message.date >= newMostRecentTimestamp) { + newMostRecentTimestamp = message.date; } }