Skip to content

Commit 063b7fa

Browse files
committed
REMOVE: Timeout for login-confirmation notification.
1 parent 8ff2b3d commit 063b7fa

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/main/java/com/oasisfeng/nevo/decorators/wechat/WeChatDecorator.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ class WeChatDecorator : NevoDecoratorService() {
6464
private const val IGNORE_CAR_EXTENDER = false // For test purpose
6565
const val CHANNEL_MESSAGE = "message_channel_new_id" // Channel ID used by WeChat for all message notifications
6666
private const val MAX_NUM_ARCHIVED = 20
67-
private const val NID_LOGIN_CONFIRMATION = 38 // The static notification ID of WeChat login confirmation
6867
private const val OLD_CHANNEL_MESSAGE = "message" // old name for migration
6968
private const val CHANNEL_MISC = "reminder_channel_id" // Channel ID used by WeChat for misc. notifications
7069
private const val OLD_CHANNEL_MISC = "misc" // old name for migration
@@ -130,8 +129,6 @@ class WeChatDecorator : NevoDecoratorService() {
130129
if (n.tickerText == null /* Legacy misc. notifications */ || channel == CHANNEL_MISC) {
131130
if (channel == null) n.channelId = CHANNEL_MISC
132131
n.group = GROUP_MISC // Avoid being auto-grouped
133-
if (evolving.id == NID_LOGIN_CONFIRMATION)
134-
n.timeoutAfter = (5 * 60000).toLong() // The actual timeout for login confirmation is a little shorter than 5 minutes.
135132
Log.d(TAG, "Skip further process for non-conversation notification: $title") // E.g. web login confirmation notification.
136133
return flags and FLAG_FOREGROUND_SERVICE == 0
137134
}

0 commit comments

Comments
 (0)