From 6201d12f5f51bb59d24b8b203353c230e8ea3f20 Mon Sep 17 00:00:00 2001 From: WhiteChi Date: Sat, 2 Dec 2023 18:08:35 +0800 Subject: [PATCH] `Shamrock`: error fix --- .../shamrock/remote/service/api/GlobalEventTransmitter.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xposed/src/main/java/moe/fuqiuluo/shamrock/remote/service/api/GlobalEventTransmitter.kt b/xposed/src/main/java/moe/fuqiuluo/shamrock/remote/service/api/GlobalEventTransmitter.kt index 5e24ef54..938de439 100644 --- a/xposed/src/main/java/moe/fuqiuluo/shamrock/remote/service/api/GlobalEventTransmitter.kt +++ b/xposed/src/main/java/moe/fuqiuluo/shamrock/remote/service/api/GlobalEventTransmitter.kt @@ -81,9 +81,9 @@ internal object GlobalEventTransmitter: BaseSvc() { sender = Sender( userId = record.senderUin, nickname = record.sendNickName - .ifBlank { record.peerName } .ifBlank { record.sendRemarkName } - .ifBlank { record.sendMemberName }, + .ifBlank { record.sendMemberName } + .ifBlank { record.peerName }, card = record.sendMemberName.ifBlank { record.sendNickName }, role = when (record.senderUin) { GroupSvc.getOwner(record.peerUin.toString()) -> MemberRole.Owner