File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
vector/src/main/java/im/vector/app/features/home/room/detail Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change
1
+ [Notifications] Fixed a bug when push notification was automatically dismissed while app is on background
Original file line number Diff line number Diff line change @@ -975,6 +975,7 @@ class TimelineFragment :
975
975
notificationDrawerManager.setCurrentThread(timelineArgs.threadTimelineArgs?.rootThreadEventId)
976
976
roomDetailPendingActionStore.data?.let { handlePendingAction(it) }
977
977
roomDetailPendingActionStore.data = null
978
+ views.timelineRecyclerView.adapter = timelineEventController.adapter
978
979
}
979
980
980
981
private fun handlePendingAction (roomDetailPendingAction : RoomDetailPendingAction ) {
@@ -993,6 +994,7 @@ class TimelineFragment :
993
994
super .onPause()
994
995
notificationDrawerManager.setCurrentRoom(null )
995
996
notificationDrawerManager.setCurrentThread(null )
997
+ views.timelineRecyclerView.adapter = null
996
998
}
997
999
998
1000
private val emojiActivityResultLauncher = registerStartForActivityResult { activityResult ->
@@ -1058,7 +1060,6 @@ class TimelineFragment :
1058
1060
it.dispatchTo(scrollOnHighlightedEventCallback)
1059
1061
}
1060
1062
timelineEventController.addModelBuildListener(modelBuildListener)
1061
- views.timelineRecyclerView.adapter = timelineEventController.adapter
1062
1063
1063
1064
if (vectorPreferences.swipeToReplyIsEnabled()) {
1064
1065
val quickReplyHandler = object : RoomMessageTouchHelperCallback .QuickReplayHandler {
You can’t perform that action at this time.
0 commit comments