mirror of
				https://gitlab.com/comunic/comunicapiv2
				synced 2025-11-04 03:24:04 +00:00 
			
		
		
		
	Fix typo
This commit is contained in:
		@@ -673,7 +673,7 @@ export class ConversationsHelper {
 | 
			
		||||
	public static async RemoveUserFromConversation(userID: number, convID: number) {
 | 
			
		||||
		// Check whether the user is the owner of the conversation or not
 | 
			
		||||
		if(await this.IsUserModerator(userID, convID))
 | 
			
		||||
			await this.DeleteConversations(convID);
 | 
			
		||||
			await this.DeleteConversation(convID);
 | 
			
		||||
		
 | 
			
		||||
		else
 | 
			
		||||
			// Only delete the messages & membership of teh user
 | 
			
		||||
@@ -687,7 +687,7 @@ export class ConversationsHelper {
 | 
			
		||||
	 * 
 | 
			
		||||
	 * @param convID The ID of the conversation to delete
 | 
			
		||||
	 */
 | 
			
		||||
	private static async DeleteConversations(convID: number) {
 | 
			
		||||
	private static async DeleteConversation(convID: number) {
 | 
			
		||||
		// Get & delete all the messages of the conversations
 | 
			
		||||
		const messages = await this.GetNewMessages(convID, 0);
 | 
			
		||||
		for (const message of messages) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user