xi-conversations

Minimal clone of thunderbird conversations
git clone https://git.ce9e.org/xi-conversations.git

commit
8a6a6e0413377060a6ce065db6b95f51df7aa9fe
parent
2db414a26285fed761f8353644fb3b672ea9f2f1
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2022-07-01 17:43
rm useless fallback in query

Diffstat

M experiment-api/api.js 15 ++-------------

1 files changed, 2 insertions, 13 deletions


diff --git a/experiment-api/api.js b/experiment-api/api.js

@@ -50,19 +50,8 @@ var getConversation = function(ids) {
   50    50 			onItemsModified: function() {},
   51    51 			onItemsRemoved: function() {},
   52    52 			onQueryCompleted: function(collection) {
   53    -1 				if (collection.items.length) {
   54    -1 					var conversation = collection.items[0].conversation;
   55    -1 					conversation.getMessagesCollection(conversationListener, true);
   56    -1 				} else {
   57    -1 					resolve(msgs.map(function(msg) {
   58    -1 						return {
   59    -1 							folderMessage: msg,
   60    -1 							attachmentInfos: [],
   61    -1 							mailingLists: null,
   62    -1 							_indexedBodyText: null,
   63    -1 						};
   64    -1 					}));
   65    -1 				}
   -1    53 				var conversation = collection.items[0].conversation;
   -1    54 				conversation.getMessagesCollection(conversationListener, true);
   66    55 			},
   67    56 		};
   68    57