* fix three panel layout height issue * rename websocket/services to websocket/persistence, implement LeaveRoom * cleanup * add new line eof * move route components from /components to /containers * remove duplicate style Co-authored-by: Jeremy Letto <jeremy.letto@datasite.com>
18 lines
No EOL
480 B
TypeScript
18 lines
No EOL
480 B
TypeScript
export const AddToList = {
|
|
id: ".Event_AddToList.ext",
|
|
action: ({ listName, userInfo}, webClient) => {
|
|
switch (listName) {
|
|
case 'buddy': {
|
|
webClient.persistence.session.addToBuddyList(userInfo);
|
|
break;
|
|
}
|
|
case 'ignore': {
|
|
webClient.persistence.session.addToIgnoreList(userInfo);
|
|
break;
|
|
}
|
|
default: {
|
|
webClient.debug(() => console.log('Attempted to add to unknown list: ', listName));
|
|
}
|
|
}
|
|
}
|
|
}; |