Skip to content

Commit 84de848

Browse files
committed
fix: ForceSystemAlbum chat page not send
1 parent 3420600 commit 84de848

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

app/src/main/java/me/singleneuron/activity/ChooseAgentActivity.kt

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,10 @@ class ChooseAgentActivity : AbstractChooseActivity() {
128128
putExtra("forward_type", 0)
129129
}
130130
bundle?.let {
131-
val uin = it.getString("targetUin")
132-
if (uin != null) {
133-
putExtra("uin", uin)
134-
}
135-
val type = it.getInt("peerType", -1)
136-
if (type != -1) {
137-
putExtra("uintype", type)
138-
}
131+
val uin = it.getString("targetUin") ?: it.getLong("key_peerUin").toString()
132+
putExtra("uin", uin)
133+
val type = it.getInt("peerType", it.getInt("key_chat_type", 0) - 1)
134+
putExtra("uintype", type)
139135
putExtras(it)
140136
}
141137
putExtra("selection_mode", 2)

0 commit comments

Comments
 (0)