Properly implement requestIdToMessageId map

Use requestId to messageId map to keep track of requests
that complete after the activity is destroyed. This way,
we don't lose track of the newly created message id for the
current draft which may cause two versions of the draft being
saved.

b/17425799

Change-Id: Ib03303c9b76cdee655c1217ce1fc65b2e414f8c1
1 file changed