jdev - 2024-06-20


  1. rion

    Hi. I'm trying to understand how count reactions. Do I miss something or it's impossible to do properly when we load some partial history?

  2. lovetox

    Yes

  3. lovetox

    Hm or no this should work

  4. lovetox

    Depends what you mean by partial

  5. lovetox

    Backwards loading works fine

  6. lovetox

    Say display last 100 messages in this chat

  7. lovetox

    Because reactions come after the message

  8. lovetox

    But if you say you want to only load 100 messages in the middle the it's will not be complete

  9. lovetox

    But that also depends on your database and how you store messages

  10. lovetox

    But the problem should not be new, corrections work in the same way as reactions

  11. rion

    With corrections it's not that severe. Usually corrections are sent shortly after the original message.

  12. MSavoritias (fae,ve)

    i think i have mentioned it before but I didn't mean EXI when i said about encoding. i meant https://eris.codeberg.page/

  13. lovetox

    rion: it depends on your db layout

  14. lovetox

    If you have reactions in a joined table you can always load all of them.

  15. nicoco__

    > But if you say you want to only load 100 messages in the middle the it's will not be complete I think <https://xmpp.org/extensions/xep-0427.html> was an attempt at solving this but AFAIU it's not going to be implemented by anybody, this

  16. nicoco__

    > But if you say you want to only load 100 messages in the middle the it's will not be complete I think <https://xmpp.org/extensions/xep-0427.html> was an attempt at solving this but AFAIU it's not going to be implemented by anybody

  17. rion

    lovetox: actually I was hoping to rely on MAM in the future. But since it's not yet implemented in Psi I don't fully understand if I can.

  18. lovetox

    I don't see how this can ever work with the current standard

  19. lovetox

    You would need a aware mam archive that gathers all referenced messages for you

  20. lovetox

    People talked about this, but it's only talk and far far away from any implementation

  21. nicoco__

    Yup, this requires some more server-side logic, and breaks if we get full stanza encryption anyway.

  22. rion

    lovetox: thanks. So using MAM just for sync with local db feels like the only way.

  23. lovetox

    Good point also from Nicoco if you ever want to support full stanza encryption such a mam archive would anyway not work. So yes sync mam to a local db seems the only viable approach currently and probably for a very long time.