Skip to content
  • Adrien Béraud's avatar
    message engine: don't persist sent/failed messages · 26cbf5d8
    Adrien Béraud authored and Andreas Traczyk's avatar Andreas Traczyk committed
    
    
    * Avoid message accumulation by not persisting the state
    of failed and sent messages, which are already saved by clients.
    Clients are still able to know the state of a sent/failed
    message sent during the same session, and are expected to catch
    and persist the message state signal to know when a message failed
    or was successfully sent across daemon restarts.
    
    * Save pending messages at every state change and don't
    delete the previous file to avoid loosing the message state
    in case of crash.
    
    * Make message saving asynchronous to avoid a slow/high latency
    storage device to block the UI or DHT at every message
    
    Change-Id: I96221152a86990c8e9f1be13903a675a87e4e975
    Reviewed-by: default avatarAndreas Traczyk <andreas.traczyk@savoirfairelinux.com>
    26cbf5d8