my.bumble.android: fix message deduplication
This commit is contained in:
parent
5630621ec1
commit
4ac3bbb101
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue