mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-07 17:43:18 +02:00
Fixed reducing number of keywords
This commit is contained in:
@@ -1531,7 +1531,7 @@ public class MessageHelper {
|
||||
|
||||
@NonNull
|
||||
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)
|
||||
keywords.remove(keywords.size() - 1);
|
||||
Collections.sort(keywords);
|
||||
|
||||
Reference in New Issue
Block a user