Fixed reducing number of keywords

pull/215/head
M66B 3 months ago
parent 68a1ebd03c
commit e03d44ddf3

@ -1531,7 +1531,7 @@ public class MessageHelper {
@NonNull @NonNull
String[] getKeywords() throws MessagingException { String[] getKeywords() throws MessagingException {
List<String> keywords = Arrays.asList(imessage.getFlags().getUserFlags()); List<String> keywords = new ArrayList<>(Arrays.asList(imessage.getFlags().getUserFlags()));
while (keywords.size() > MAX_KEYWORDS) while (keywords.size() > MAX_KEYWORDS)
keywords.remove(keywords.size() - 1); keywords.remove(keywords.size() - 1);
Collections.sort(keywords); Collections.sort(keywords);

Loading…
Cancel
Save