mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-23 05:25:31 +03:00
order emojis by amount
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
54c40e99ef
commit
17a8c48078
2 changed files with 3 additions and 2 deletions
|
@ -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]
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue