Skip to content

Commit

Permalink
my.bumble.android: fix message deduplication
Browse files Browse the repository at this point in the history
  • Loading branch information
karlicoss committed Nov 7, 2023
1 parent 5630621 commit 4ac3bbb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion my/bumble/android.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4ac3bbb

Please sign in to comment.