forked from EVOgeek/Vmeda.Online
		
	MOBILE-3320 messages: Fix two conversations selected after clickin push
This commit is contained in:
		
							parent
							
								
									f0a2ff7fe4
								
							
						
					
					
						commit
						92e054e3dd
					
				| @ -270,10 +270,13 @@ export class AddonMessagesGroupConversationsPage implements OnInit, OnDestroy { | ||||
|     async ngOnInit(): Promise<void> { | ||||
|         this.route.queryParams.subscribe(async (params) => { | ||||
|             // When a child page loads this callback is triggered too.
 | ||||
|             this.selectedConversationId = | ||||
|                 CoreNavigator.getRouteNumberParam('conversationId', { params }) ?? this.selectedConversationId; | ||||
|             this.selectedUserId = | ||||
|                 CoreNavigator.getRouteNumberParam('userId', { params }) ?? this.selectedUserId; | ||||
|             const conversationId =CoreNavigator.getRouteNumberParam('conversationId', { params }); | ||||
|             const userId = CoreNavigator.getRouteNumberParam('userId', { params }); | ||||
|             if (conversationId || userId) { | ||||
|                 // Update the selected ones.
 | ||||
|                 this.selectedConversationId = conversationId; | ||||
|                 this.selectedUserId = userId; | ||||
|             } | ||||
|         }); | ||||
| 
 | ||||
|         await this.fetchData(); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user