From 16d68fe2622f1dec5897115dee0eeddf7b76254b Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Wed, 18 Mar 2020 20:58:46 -0700 Subject: bluetooth-map: prevent double message events Some messaging applications create notifications when opened even if already been sent out. So we keep a hash map of already sent notifications. This likely needs a better solution in the future. Bug-AGL: SPEC-3267 Change-Id: I1daba04f99819bd7f83bff428131cced0d6d97e6 Signed-off-by: Matt Ranostay --- binding/bluetooth-map-common.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'binding/bluetooth-map-common.h') diff --git a/binding/bluetooth-map-common.h b/binding/bluetooth-map-common.h index 6e93b9f..bcaa88d 100644 --- a/binding/bluetooth-map-common.h +++ b/binding/bluetooth-map-common.h @@ -55,6 +55,9 @@ struct map_state { /* xfer queue table */ GHashTable *xfer_queue; + + /* message notify blacklist */ + GHashTable *already_notified; }; enum xfer_types { -- cgit 1.2.3-korg