order emojis by amount

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2022-04-08 14:57:02 +02:00
parent 54c40e99ef
commit 17a8c48078
No known key found for this signature in database
GPG key ID: C793F8B59F43CE7B
2 changed files with 3 additions and 2 deletions

View file

@ -2739,7 +2739,7 @@ class ChatController(args: Bundle) :
fun updateAdapterAfterSendReaction(message: ChatMessage, emoji: String) {
if (message.reactions == null) {
message.reactions = HashMap()
message.reactions = LinkedHashMap()
}
var amount = message.reactions[emoji]

View file

@ -41,6 +41,7 @@ import java.security.MessageDigest;
import java.util.Arrays;
import java.util.Date;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
@ -94,7 +95,7 @@ public class ChatMessage implements MessageContentType, MessageContentType.Image
@JsonField(name = "messageType")
public String messageType;
@JsonField(name = "reactions")
public HashMap<String, Integer> reactions;
public LinkedHashMap<String, Integer> reactions;
public boolean isDownloadingVoiceMessage;
public boolean resetVoiceMessage;