james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r833711 - /james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/IMAPMessageListPresenter.java
Date Sat, 07 Nov 2009 16:42:17 GMT
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


Mime
View raw message