I am creating this interactive messages app.
Every time I compose a message and send to the other side and use this command:
[messageTemplateLayout setSubcaption:[NSString stringWithFormat:@"$%@",self.activeConversation.localParticipantIdentifier.UUIDString]];
I get the other side's name.
For example, if I´m on the simulator using Kate
and I send a message to John Appleseed
, the message is sent with the subcaption John Appleseed
and vice-versa. In other words: John Appleseed
receives a message with his own name and this is true for Kate
too.
Shouldn't the localParticipantIdentifier
be who is sending the message?