2022-11-19 01:06:03 +00:00
|
|
|
import { User } from "../objects/User";
|
|
|
|
import { StatusUpdate } from "./StatusUpdate";
|
|
|
|
|
|
|
|
export function ChangeAction(user:User, data:any) {
|
|
|
|
user.updatePresence(data);
|
|
|
|
|
|
|
|
if (user.spectatorStream != null) {
|
2022-11-21 23:26:20 +00:00
|
|
|
const statusUpdate = StatusUpdate(user.sharedContent, user.id);
|
2022-11-19 01:06:03 +00:00
|
|
|
user.spectatorStream.Send(statusUpdate);
|
|
|
|
}
|
|
|
|
}
|