Skip to content
Snippets Groups Projects
  1. Aug 02, 2017
  2. Aug 01, 2017
    • Philipp Hörist's avatar
      Merge branch 'logger' into 'master' · bc7ce129
      Philipp Hörist authored
      New logging methods and more MAM refactoring
      
      See merge request !112
      bc7ce129
    • Philipp Hörist's avatar
      Improve timestamp usage for MAM · 651611b2
      Philipp Hörist authored
      - Use new parse_datetime() method
      - Drop message with error if MAM doesnt supply a timestamp.
      - If the user supplys an own timestamp, save it so we can decide in the
      future how to display it.
      651611b2
    • Philipp Hörist's avatar
      Fix receiving MAM Messages from ourself · e24d4f8c
      Philipp Hörist authored
      This is a regression from the refactoring
      e24d4f8c
    • Philipp Hörist's avatar
      Use new DB methods for MAM Messages · 1f5e927c
      Philipp Hörist authored
      - also push a new MamDecryptedMessageReceived
      event after disco instead of writing directly to the DB
      1f5e927c
    • Philipp Hörist's avatar
      Add new logger methods · 16fd6487
      Philipp Hörist authored
      Goal is to make the logger module easier to maintain in the future
      
      - extract deduplication out into a own method, so we can use it
      on its own in some other places.
      
      - add new insert_into_logs() method
      the DB fields we want to write to are passed as arguments, this makes
      it so we dont have to change the method when we add or remove DB fields
      in the future.
      
      - instead of using get_jid_id() all around gajim to get the jid_id
      before we write to the DB, we only have to pass the jid to
      insert_into_logs(), it makes sure to get the correct jid_id or add
      one in case it doesnt exist.
      16fd6487
    • Philipp Hörist's avatar
      Merge branch 'master' into 'master' · 6925ce06
      Philipp Hörist authored
      Add a new XEP-0082 parsing method
      
      See merge request !111
      6925ce06
    • Philipp Hörist's avatar
      Add a new XEP-0082 parsing method · 0fee2792
      Philipp Hörist authored
      This handles every possible XEP-0082 timestamp
      
      It has some additional options:
      
      - Check if a timestring is a valid UTC timestamp, as required by some
      XEPs (for example: XEP-0203)
      - Return timestamp as datetime in UTC
      - Return timestamp as datetime in localtime
      - Return timestamp as epoch
      0fee2792
    • Weblate's avatar
      Add Catalan translation file · 63112d39
      Weblate authored
      63112d39
  3. Jul 31, 2017
  4. Jul 30, 2017
  5. Jul 29, 2017
  6. Jul 28, 2017
  7. Jul 27, 2017
  8. Jul 26, 2017
    • Philipp Hörist's avatar
      9d6e3f43
    • Philipp Hörist's avatar
      Correctly set stanza-id for received MAM messages · 7f0bcbb5
      Philipp Hörist authored
      The gaol why we need to determine what ID should be used as stanza-id,
      is so we can use the stanza-id in the future for deduplication.
      
      Case we are the sender:
      
      Either we look for a origin-id element, which we will include in the
      Future in all messages we send, or until then the ID we set on the
      message as attr.
      
      Case we are the receiver:
      
      If our server supports mam:2 we take the ID of the result element,
      because mam:2 injects the archive ID live into every message we
      receive. If we dont have mam:2 we fall back to the ID of the message
      attr.
      7f0bcbb5
  9. Jul 25, 2017
Loading