Cleaned code

This commit is contained in:
2026-05-13 23:06:30 +01:00
parent f1354c2db3
commit e483bc4e57
4 changed files with 10 additions and 14 deletions
@@ -5,8 +5,9 @@ import {addIcons} from "ionicons";
import {sendOutline} from 'ionicons/icons';
import {GetGroupDetailsDto, MessagesService} from "../../services/api";
import {firstValueFrom} from "rxjs";
addIcons({
"send-outline" : sendOutline
"send-outline": sendOutline
})
@Component({
@@ -29,7 +30,7 @@ export class MessageFormComponent {
libelle: new FormControl<string>(null, [Validators.required]),
})
async sendMessageOnGroup(){
async sendMessageOnGroup() {
const loading = await this.loadCtrl.create({
message: 'Envoi...',
spinner: 'lines-sharp-small'
@@ -51,8 +52,7 @@ export class MessageFormComponent {
try {
await firstValueFrom(this.messagesService.sendMessageEndpoint(this.groupId(), this.messageForm.getRawValue()));
this.messageForm.reset();
}
catch {
} catch {
const toast = await this.toastCtrl.create({
message: 'Impossible d\'envoyer le messages.',
duration: 2000,