getContactFromJid

abstract fun getContactFromJid(jid: String?): IRainbowContact?

Retrieves a contact based on their Jabber ID (JID).

This method searches for a contact with the specified Jabber ID (JID). The contact can be retrieved from the cache if it's present in the user's roster, designated as a personal contact, or fetched from the server using the fetchContactDataById method.

Return

The IRainbowContact object corresponding to the specified Jabber ID (JID), or null if the contact is not found.

Parameters

jid

The Jabber ID (JID) of the contact to retrieve.