mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-12-25 13:08:51 +00:00
Fix typo
This commit is contained in:
parent
620beb7828
commit
df11a8a57d
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user