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> { |     async ngOnInit(): Promise<void> { | ||||||
|         this.route.queryParams.subscribe(async (params) => { |         this.route.queryParams.subscribe(async (params) => { | ||||||
|             // When a child page loads this callback is triggered too.
 |             // When a child page loads this callback is triggered too.
 | ||||||
|             this.selectedConversationId = |             const conversationId =CoreNavigator.getRouteNumberParam('conversationId', { params }); | ||||||
|                 CoreNavigator.getRouteNumberParam('conversationId', { params }) ?? this.selectedConversationId; |             const userId = CoreNavigator.getRouteNumberParam('userId', { params }); | ||||||
|             this.selectedUserId = |             if (conversationId || userId) { | ||||||
|                 CoreNavigator.getRouteNumberParam('userId', { params }) ?? this.selectedUserId; |                 // Update the selected ones.
 | ||||||
|  |                 this.selectedConversationId = conversationId; | ||||||
|  |                 this.selectedUserId = userId; | ||||||
|  |             } | ||||||
|         }); |         }); | ||||||
| 
 | 
 | ||||||
|         await this.fetchData(); |         await this.fetchData(); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user