def _get_message_id(self, index):
    item = self.chat_window.messageList.item(index)
    message_widget = self.chat_window.messageList.itemWidget(item)
    return message_widget.id
def _get_message_id(self, index):
    item = self.chat_window.messageList.item(index)
    message_widget = self.chat_window.messageList.itemWidget(item)
    return message_widget.id