fix NPE for invites
							parent
							
								
									6b0167375c
								
							
						
					
					
						commit
						69d1844773
					
				| 
						 | 
				
			
			@ -17,7 +17,12 @@ limitations under the License.
 | 
			
		|||
'use strict';
 | 
			
		||||
 | 
			
		||||
function tsOfNewestEvent(room) {
 | 
			
		||||
    return room.timeline[room.timeline.length - 1].getTs();
 | 
			
		||||
    if (room.timeline.length) {
 | 
			
		||||
        return room.timeline[room.timeline.length - 1].getTs();
 | 
			
		||||
    }
 | 
			
		||||
    else {
 | 
			
		||||
        return Number.MAX_SAFE_INTEGER;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function mostRecentActivityFirst(roomList) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue