Skip to content

Commit

Permalink
Fix issue of status not updating when in meeting in embedded mode (ma…
Browse files Browse the repository at this point in the history
  • Loading branch information
ayusht2810 committed Mar 14, 2024
1 parent 43dcf4a commit e348318
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webapp/src/client/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ import {ClientError} from 'mattermost-redux/client/client4';
import manifest from '../manifest';

export default class Client {
private serverUrl: string | undefined;
private url: string | undefined;

setServerRoute(url: string) {
this.serverUrl = url;
this.url = url + '/plugins/' + manifest.id;
}

Expand All @@ -19,7 +21,7 @@ export default class Client {
};

setUserStatus = async (userId: string | null, status: string) => {
return this.doPut(`${this.url}/api/v4/users/${userId}/status`, {user_id: userId, status});
return this.doPut(`${this.serverUrl}/api/v4/users/${userId}/status`, {user_id: userId, status});
};

loadConfig = async () => {
Expand Down

0 comments on commit e348318

Please sign in to comment.