Skip to content

Commit

Permalink
chore: optimize MultiForwardAvatarHook dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
cinit committed Sep 1, 2023
1 parent 7eec337 commit de44e8d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/src/main/java/cc/ioctl/hook/msg/MultiForwardAvatarHook.kt
Original file line number Diff line number Diff line change
Expand Up @@ -286,10 +286,12 @@ object MultiForwardAvatarHook : CommonSwitchFunctionHook(arrayOf(CAIOUtils, Mult
ll.setPadding(p, p / 3, p, p / 3)
if (troopUin != null) {
// troop
HostStyledViewBuilder.newDialogClickableItemClickToCopy(ctx, "群号", if (isTroopUinAvailable) troopUin.toString() else "已被服务器端屏蔽", ll, true) {
if (isTroopUinAvailable) {
if (isTroopUinAvailable) {
HostStyledViewBuilder.newDialogClickableItemClickToCopy(ctx, "群号", troopUin.toString(), ll, true) {
OpenProfileCard.openTroopProfileActivity(ctx, troopUin.toString())
}
} else {
HostStyledViewBuilder.newDialogClickableItem(ctx, "群号", "已被服务器端屏蔽", null, null, ll, true)
}
HostStyledViewBuilder.newDialogClickableItemClickToCopy(ctx, "成员", senderUin.toString(), ll, true) {
if (senderUin > 10000) {
Expand Down

0 comments on commit de44e8d

Please sign in to comment.