mikailoral / android-rcs-ims-stack

Automatically exported from code.google.com/p/android-rcs-ims-stack
0 stars 0 forks source link

Failed message from the INVITE will silently marked as failed w/o updating the UI/API #224

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If an INVITE fails the message in the INVITE will be marked as failed in the DB 
(which is correct). However, the API is not informed about taht status change 
and so the UI won't notice in time that the message failed.
Proposal:
In ImSession.handleImError(...) add:
if (session.getFirstMessage() != null) {
   updateStatus(session.getFirstMessage().getMessageId(), ImdnDocument.DELIVERY_STATUS_FAILED, null);
}
after the current code for the case 
   case ChatError.SESSION_INITIATION_FAILED:
   case ChatError.SESSION_INITIATION_CANCELLED:

Original issue reported on code.google.com by andreas-...@telekom.de on 17 Feb 2014 at 8:59

GoogleCodeExporter commented 9 years ago
OK (provided the contact is set in the callback)

Original comment by lemordan...@gmail.com on 19 Feb 2014 at 11:10

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r427.

Original comment by lemordan...@gmail.com on 19 Feb 2014 at 12:44