Don't switch space on clicking a notification

Change-Id: Ieadd6b900152d0ebf2ea7cc97d9e06afccf50439
This commit is contained in:
SpiritCroc 2022-03-13 14:27:03 +01:00
parent d0909c1790
commit ead93dc8ad

View file

@ -774,7 +774,7 @@ class NotificationUtils @Inject constructor(private val context: Context,
}
private fun buildOpenRoomIntent(roomId: String): PendingIntent? {
val roomIntentTap = RoomDetailActivity.newIntent(context, TimelineArgs(roomId = roomId, switchToParentSpace = true))
val roomIntentTap = RoomDetailActivity.newIntent(context, TimelineArgs(roomId = roomId, switchToParentSpace = false))
roomIntentTap.action = TAP_TO_VIEW_ACTION
// pending intent get reused by system, this will mess up the extra params, so put unique info to avoid that
roomIntentTap.data = createIgnoredUri("openRoom?$roomId")