Remove MessageReference from local list of MessageReferences when

message is deleted.
This commit is contained in:
Daniel Applebaum 2010-04-24 18:02:45 +00:00
parent a2f4391501
commit 4bec5ea2a3

View file

@ -706,8 +706,7 @@ public class MessageView extends K9Activity implements OnClickListener
findSurroundingMessagesUid(); findSurroundingMessagesUid();
// Remove this message's Uid locally mMessageReferences.remove(mMessageReference);
mMessageReferences.remove(messageToDelete.getUid());
MessagingController.getInstance(getApplication()).deleteMessages( MessagingController.getInstance(getApplication()).deleteMessages(
new Message[] { messageToDelete }, new Message[] { messageToDelete },