Commit b4c9587a authored by Daniel Brötzmann's avatar Daniel Brötzmann Committed by Philipp Hörist
Browse files

Chat Markers: Correctly load displayed marker when restoring conversation

parent e643a25d
......@@ -49,8 +49,10 @@ def _adapt_common_error(common_error):
sqlite3.register_converter('common_error', _convert_common_error)
sqlite3.register_adapter(CommonError, _adapt_common_error)
def _convert_marker(marker):
return 'received' if marker == 0 else 'displayed'
return 'received' if int(marker) == 0 else 'displayed'
sqlite3.register_converter('marker', _convert_marker)
......@@ -964,7 +964,10 @@ def print_conversation_line(self, text, kind, name, tim,
if marker is not None:
if marker == 'received':
elif marker == 'displayed':
if index is None:
# New Message
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment