Mercurial > libervia-backend
diff frontends/src/quick_frontend/quick_chat.py @ 669:ffb716804580
core, bridge: extra parameter is saved in history:
- added extra data in getHistory return value
- extra data is saved in database
/!\ WARNING: DATABASE SCHEMA HAS CHANGED /!\
to update sqlite database: ALTER TABLE history ADD COLUMN extra BLOB;
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 07 Nov 2013 15:29:39 +0100 |
parents | 84a6e83157c2 |
children | 0b9bd47dffcd |
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_chat.py Tue Nov 05 22:41:45 2013 +0100 +++ b/frontends/src/quick_frontend/quick_chat.py Thu Nov 07 15:29:39 2013 +0100 @@ -98,7 +98,7 @@ debug (_("now we print history")) def onHistory(history): for line in history: - timestamp, from_jid, to_jid, message, _type = line + timestamp, from_jid, to_jid, message, _type, extra = line if ((self.type == 'group' and _type != 'groupchat') or (self.type == 'one2one' and _type == 'groupchat')): continue