show all previous corrected messages. Fixes #8669
This commit is contained in:
parent
bd3a0c8ac6
commit
6d9f82d827
|
@ -1126,9 +1126,15 @@ class ConversationTextview(GObject.GObject):
|
||||||
try:
|
try:
|
||||||
index, insert_mark, old_txt = \
|
index, insert_mark, old_txt = \
|
||||||
self.correct_message(correct_id, kind, name)
|
self.correct_message(correct_id, kind, name)
|
||||||
self.corrected_text_list[msg_stanza_id] = \
|
if correct_id in self.corrected_text_list:
|
||||||
'<b>Message corrected. Previous message:</b>\n{}' \
|
self.corrected_text_list[msg_stanza_id] = \
|
||||||
.format(GLib.markup_escape_text(old_txt))
|
self.corrected_text_list[correct_id] + '\n{}' \
|
||||||
|
.format(GLib.markup_escape_text(old_txt))
|
||||||
|
del self.corrected_text_list[correct_id]
|
||||||
|
else:
|
||||||
|
self.corrected_text_list[msg_stanza_id] = \
|
||||||
|
'<b>Message corrected. Previous message:</b>\n{}' \
|
||||||
|
.format(GLib.markup_escape_text(old_txt))
|
||||||
corrected = True
|
corrected = True
|
||||||
except TypeError:
|
except TypeError:
|
||||||
log.debug('Message was not corrected !')
|
log.debug('Message was not corrected !')
|
||||||
|
|
Loading…
Reference in New Issue