prevent a traceback when we get 2 'received' XEP-184 message for the same sent message

This commit is contained in:
Yann Leboulanger 2008-08-28 13:04:04 +00:00
parent a0e9a0d905
commit 64cc3f907e
1 changed files with 2 additions and 1 deletions

View File

@ -420,7 +420,8 @@ class ConversationTextview:
self.xep0184_shown[id] = NOT_SHOWN
def show_it():
if self.xep0184_shown[id] == ALREADY_RECEIVED:
if (not id in self.xep0184_shown) or \
self.xep0184_shown[id] == ALREADY_RECEIVED:
return False
end_iter = buffer.get_iter_at_mark(