forked from EVOgeek/Vmeda.Online
		
	MOBILE-3320 forum: Fix nested subjects
This commit is contained in:
		
							parent
							
								
									7faf348042
								
							
						
					
					
						commit
						e95bdb4d49
					
				| @ -29,6 +29,7 @@ import { CoreSites } from '@services/sites'; | ||||
| import { CoreDomUtils } from '@services/utils/dom'; | ||||
| import { CoreUtils } from '@services/utils/utils'; | ||||
| import { Network, NgZone, Translate } from '@singletons'; | ||||
| import { CoreArray } from '@singletons/array'; | ||||
| import { CoreEventObserver, CoreEvents } from '@singletons/events'; | ||||
| import { Subscription } from 'rxjs'; | ||||
| import { | ||||
| @ -771,7 +772,9 @@ export class AddonModForumDiscussionPage implements OnInit, AfterViewInit, OnDes | ||||
|      * @return Array containing all the posts of the discussion. | ||||
|      */ | ||||
|     protected getAllPosts(): Post[] { | ||||
|         return this.posts.map(this.flattenPostHierarchy.bind(this)); | ||||
|         const allPosts = this.posts.map(post => this.flattenPostHierarchy(post)); | ||||
| 
 | ||||
|         return CoreArray.flatten(allPosts); | ||||
|     } | ||||
| 
 | ||||
|     /** | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user