Cleaned code
This commit is contained in:
@@ -9,8 +9,8 @@ import {MessagesListComponent} from "../messages-list/messages-list.component";
|
||||
import {MessageFormComponent} from "../message-form/message-form.component";
|
||||
|
||||
addIcons({
|
||||
"chatbubble-ellipses-outline" : chatbubbleEllipsesOutline,
|
||||
"moon-outline" : moonOutline,
|
||||
"chatbubble-ellipses-outline": chatbubbleEllipsesOutline,
|
||||
"moon-outline": moonOutline,
|
||||
})
|
||||
|
||||
@Component({
|
||||
@@ -43,8 +43,7 @@ export class MessageComponent implements OnInit, OnDestroy {
|
||||
const messages = await firstValueFrom(this.messagesService.getMessagesEndpoint(this.groupId()));
|
||||
this.chatService.setMessages(messages);
|
||||
await this.chatService.connect(this.groupId());
|
||||
}
|
||||
catch {
|
||||
} catch {
|
||||
const toast = await this.toastCtrl.create({
|
||||
message: 'Impossible de charger les messages.',
|
||||
duration: 2000,
|
||||
|
||||
Reference in New Issue
Block a user