#619 Prosody stores chatstates in the offline database

Reporter kousu
Owner Nobody
Created
Updated
Stars ★★ (2)  
Tags
  • Status-New
  • Priority-Medium
  • Type-Defect
  1. kousu on

    I was just poking around prosody's readable database and noticed this: /var/lib/prosody/localhost/offline/anna.list ``` item({ [1] = { ["name"] = "active"; ["attr"] = { ["xmlns"] = "http://jabber.org/protocol/chatstates"; }; }; ["attr"] = { ["stamp_legacy"] = "20160208T03:22:10"; ["type"] = "chat"; ["to"] = "anna@localhost"; ["from"] = "kousu@localhost/slapdash"; ["id"] = "purplededf0a2a"; ["stamp"] = "2016-02-08T03:22:10Z"; }; ["name"] = "message"; }); item({ [1] = { ["name"] = "composing"; ["attr"] = { ["xmlns"] = "http://jabber.org/protocol/chatstates"; }; }; ["attr"] = { ["stamp_legacy"] = "20160208T08:26:11"; ["type"] = "chat"; ["to"] = "anna@localhost"; ["from"] = "kousu@localhost/slapdash"; ["id"] = "purple1caf98a3"; ["stamp"] = "2016-02-08T08:26:11Z"; }; ["name"] = "message"; }); ........ ``` https://xmpp.org/extensions/xep-0160.html#types says "messages that contain only Chat State Notifications (XEP-0085) [...] SHOULD NOT be stored offline".

New comment