Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • exactly, logic is if receiver id == logged user id show A else show B Commented Jun 30, 2020 at 9:26
  • Thanks! And how exactly do you get chat from your code snippet? Commented Jun 30, 2020 at 9:31
  • <ion-item-sliding *ngFor="let chat of chats; index as indexOfelement;"> // here is my loop in question </ion-item-sliding> Commented Jun 30, 2020 at 9:32
  • I see, so chat is defined in every case, otherwise there wouldn't be the loop. Some of the chats seem not to have an existing asReceiver property. Can you check that please? Does the error appear with the questionmarks (I do not mean unexpected behavior, just the error)? Commented Jun 30, 2020 at 9:38
  • currently building new app with your solution to see if it works, will keep you posted when it's done Commented Jun 30, 2020 at 9:39