DescriptionAddress a race condition in displaying notifications
When a developer displays a notification and then immediately gets the
displayed notifications, without waiting for the result to be
acknowledged, there's a chance that we end up in a race condition where
the PlatformNotificationService is still displaying the notification and
thus doesn't return it in the set of displayed ones yet.
This will, in turn, result in the notification being deleted from the
database. That will render clicking on the notification useless.
Instead, have a brief grace period in which we'll ignore the recently
displayed notification when synchronizing the database.
BUG=
Patch Set 1 #
Total comments: 2
Patch Set 2 : Address a race condition in displaying notifications #
Total comments: 1
Depends on Patchset: Messages
Total messages: 18 (10 generated)
|