From 4ac3bbb101973135c81bc84a9d40282081034851 Mon Sep 17 00:00:00 2001 From: karlicoss Date: Mon, 6 Nov 2023 23:31:56 +0000 Subject: [PATCH] my.bumble.android: fix message deduplication --- my/bumble/android.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/my/bumble/android.py b/my/bumble/android.py index 86c9d1eb..3a159da1 100644 --- a/my/bumble/android.py +++ b/my/bumble/android.py @@ -106,10 +106,11 @@ def _handle_db(db: sqlite3.Connection) -> Iterator[EntitiesRes]: def _key(r: EntitiesRes): if isinstance(r, _Message): - if '&srv_width=' in r.text: + if '/hidden?' in r.text: # ugh. seems that image URLs change all the time in the db? # can't access them without login anyway # so use a different key for such messages + # todo maybe normalize text instead? since it's gonna always trigger diffs down the line return (r.id, r.created) return r