"use strict";

import http from '../apiClient';
export async function getUserByXmppUsername(xmppUsername, token) {
  try {
    const res = await http.get(`/apps/users/${xmppUsername}`, {
      headers: {
        Authorization: token
      }
    });
    return res.data.result;
  } catch (error) {
    console.error(`Failed to fetch user: ${xmppUsername}`, error);
    return null;
  }
}
//# sourceMappingURL=roomMembers.api.js.map