'Empty TCHJsonAttributes iOS
I am trying to loop through the participants of a conversation, and access the attributes previously assigned to said participants when they initially joined the conversation. The problem is, when I do access as shown below, the attribute() is empty.
I have verified that said participants on the Twilio Console do indeed have attributes assigned, and they are assigned as a String Type.
Am I missing something?
I am using swift, "TwilioConversationsClient" on an iOS client.
Any Help would greatly be appreciated.
func filterParticipants() {
guard let globalConvo = globalConversation else { return }
let participants = globalConvo.participants()
for participant in participants {
let participantAttributes = participant.attributes() // Comes up Empty
let attributeDict = participantAttributes.dictionary // Comes up Empty
let attributeString = participantAttributes?.string // Comes up Empty
}
}
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
