Remove faulty check
notifications uses DBus ids as keys, comparing that to notification->id(), which is a different kind of id, doesn't make sense
notifications uses DBus ids as keys, comparing that to notification->id(), which is a different kind of id, doesn't make sense