Message replies and action cards

I’m currently trying to use the CloudLink API to interact with the MOWA chat client and am facing multiple issues:

  • If I try to get replies to messages which were created with the MOWA chat client, I always get a response with a count of 0.
    Is it possible that replies created in the MOWA chat client aren’t seen as replies by the CloudLink API?
  • If I send messages with action cards they are displayed correctly in the MOWA chat client but not in the Mitel One Android or Apple App. Is this a known issue?
  • If I send messages with action cards where the buttons disableOnClick behavior is set to “true”, the Button can still be pressed/activated several times. How can I set the behavior to disable the button after clicking it?
  • If I create a chat or stream where the client is a participant the “display name” is a random string. Is it possible to set the “display name” of a client in a chat or stream?

If I try to get replies to messages which were created with the MOWA chat client, I always get a response with a count of 0.

Can you provide the details around the API call you’re making and what the scenario is (User A does this, User B does this, make the following API call as User A, etc). Keep in mind that ‘replies’ in the Chat API refer specifically to messages that are direct replies to a specifically referenced message. Two users just chatting back and forth are considered standard messages and not replies.

Is it possible that replies created in the MOWA chat client aren’t seen as replies by the CloudLink API?

No, but there are scenarios where a particular user won’t see certain information. I don’t suspect that’s your issue here, though.

If I send messages with action cards they are displayed correctly in the MOWA chat client but not in the Mitel One Android or Apple App. Is this a known issue?

When it comes to message types, including action cards, it’s up to the client you’re using to interpret it, display it, etc. If the Mitel One client isn’t displaying it properly, send me a PM with more information about what’s going on and I’ll run it by the team responsible.

If I send messages with action cards where the buttons disableOnClick behavior is set to “true”, the Button can still be pressed/activated several times. How can I set the behavior to disable the button after clicking it?

That’s a case of the client misbehaving again. Is it a timing issue where you need to wait several seconds, or does it actually require multiple clicks? And is this the web client or the mobile version?

If I create a chat or stream where the client is a participant the “display name” is a random string. Is it possible to set the “display name” of a client in a chat or stream?

That could be a case where the app isn’t using the /entities route to lookup names so it’s not finding the client. A workaround for this which could help is to create a Contact using the Admin API with contactType = GUEST and set the contactId to the same value as your clientId. The client should then use whatever you set as namefor the Contact.