You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by no...@apache.org on 2009/11/07 17:42:17 UTC
svn commit: r833711 -
/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/IMAPMessageListPresenter.java
Author: norman
Date: Sat Nov 7 16:42:17 2009
New Revision: 833711
URL: http://svn.apache.org/viewvc?rev=833711&view=rev
Log:
Remove messages from table as soon as possible
Modified:
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/IMAPMessageListPresenter.java
Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/IMAPMessageListPresenter.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/IMAPMessageListPresenter.java?rev=833711&r1=833710&r2=833711&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/IMAPMessageListPresenter.java (original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/IMAPMessageListPresenter.java Sat Nov 7 16:42:17 2009
@@ -288,9 +288,11 @@
for (int i = 0; i < selectedMessages.size(); i++) {
uids.add(selectedMessages.get(i).getUid());
}
+ // maybe its better to just remove the messages from the table and expect the removal will work
+ display.removeMessages(selectedMessages);
+
dispatcher.execute(new DeleteMessageByUid(folder,uids), new HupaCallback<DeleteMessageResult>(dispatcher, eventBus) {
public void callback(DeleteMessageResult result) {
- display.removeMessages(selectedMessages);
eventBus.fireEvent(new DecreaseUnseenEvent(user,folder,result.getCount()));
}
});
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org