mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 12:14:12 +00:00 
			
		
		
		
	Can get older messages
This commit is contained in:
		@@ -1203,7 +1203,7 @@ const ConvChatWindow = {
 | 
				
			|||||||
					}
 | 
										}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
					//Save the ID of the oldest message
 | 
										//Save the ID of the oldest message
 | 
				
			||||||
					ComunicWeb.components.conversations.service.setOldestMessageID(conversationID, result[0].ID);
 | 
										ConvService.setOldestMessageID(conversationID, result[0].id);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
					//Display the list of messages
 | 
										//Display the list of messages
 | 
				
			||||||
					ComunicWeb.components.conversations.chatWindows.addOldMessages(conversationID, result);
 | 
										ComunicWeb.components.conversations.chatWindows.addOldMessages(conversationID, result);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -46,7 +46,7 @@ const ConvService = {
 | 
				
			|||||||
			//Register conversation locally
 | 
								//Register conversation locally
 | 
				
			||||||
			this.__serviceCache['conversation-' + conversationID] = {
 | 
								this.__serviceCache['conversation-' + conversationID] = {
 | 
				
			||||||
				conversationID: conversationID,
 | 
									conversationID: conversationID,
 | 
				
			||||||
				first_message_id: list.length == 0 ? 0 : list[0].ID,
 | 
									first_message_id: list.length == 0 ? 0 : list[0].id,
 | 
				
			||||||
			};
 | 
								};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			// Register conversation remotly
 | 
								// Register conversation remotly
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user