comparison sat/tools/common/data_objects.py @ 3170:39d7327583e1

core: use serialised dict for `extra` in messageNew and historyGet
author Goffi <goffi@goffi.org>
date Tue, 18 Feb 2020 18:13:17 +0100
parents 559a625a236b
children a9e8e925ad99
comparison
equal deleted inserted replaced
3169:560642ab1c10 3170:39d7327583e1
260 self._from_jid = msg_data[2] 260 self._from_jid = msg_data[2]
261 self._to_jid = msg_data[3] 261 self._to_jid = msg_data[3]
262 self._message_data = msg_data[4] 262 self._message_data = msg_data[4]
263 self._subject_data = msg_data[5] 263 self._subject_data = msg_data[5]
264 self._type = msg_data[6] 264 self._type = msg_data[6]
265 self._extra = msg_data[7] 265 self._extra = data_format.deserialise(msg_data[7])
266 self._html = dict(data_format.getSubDict("xhtml", self._extra)) 266 self._html = dict(data_format.getSubDict("xhtml", self._extra))
267 267
268 @property 268 @property
269 def id(self): 269 def id(self):
270 return self._uid 270 return self._uid