jdev - 2023-12-05


  1. singpolyma

    when paging backwards through mam, what do people think should happen with reaction messages? I guess if the message in question already has reactions from this sender, then ignore since we have a newer version and every reaction message contains the full set?

  2. Zash

    singpolyma, sounds sane. same with message corrections too if there are more of them

  3. lovetox

    yes, update the database row only if timestamp is greater then whats in it

  4. lovetox

    yes, update the database row only if timestamp is greater than whats in it

  5. lovetox

    in sqlite you can do a upsert with a condition on a timestamp field

  6. lovetox

    basically upsert only if timestamp.old > timestamp.new

  7. lovetox

    basically upsert only if timestamp.new > timestamp.old

  8. singpolyma

    right. that's the other way I guess. store a timestamp for each reaction so you can compare

  9. lovetox

    i like this because all logic is in the database query, your code does not need to know how the data was received