Commit 30001e57 authored by Volker Krause's avatar Volker Krause
Browse files

Improve platform change notification check

This should fix an empty notification for the first live data with platform
data we get if that just confirms the already known platforms.
parent f171b89b
......@@ -27,7 +27,9 @@ bool NotificationHelper::shouldNotify(const Stopover &oldStop, const Stopover &n
}
// platform changed
if (newStop.hasExpectedPlatform() && oldStop.expectedPlatform() != newStop.expectedPlatform()) {
if ((newStop.hasExpectedPlatform() && oldStop.hasExpectedPlatform() && oldStop.expectedPlatform() != newStop.expectedPlatform())
|| (!oldStop.hasExpectedPlatform() && newStop.platformChanged()))
{
return true;
}
......
Markdown is supported
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