Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d7dfba15 authored by Jesse Vincent's avatar Jesse Vincent
Browse files

It appears that Exchange is returning responses

without a visiblecount element for empty folders
Which resulted in this code returning -1 (as that was
the previous default.)
-1 is an error condition. Now the default is empty
parent 220be754
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -2166,7 +2166,12 @@ public class WebDavStore extends Store {
         * Returns the message count as it was retrieved
         */
        public int getMessageCount() {
            int messageCount = -1;
            // It appears that Exchange is returning responses
            // without a visiblecount element for empty folders
            // Which resulted in this code returning -1 (as that was
            // the previous default.)
            // -1 is an error condition. Now the default is empty
            int messageCount = 0;

            for (String uid : mData.keySet()) {
                HashMap<String, String> data = mData.get(uid);