Skip to content

Commit 6163eca

Browse files
fix: use default function names
1 parent b4cf04d commit 6163eca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

solutions/ooo-assistant/Chat.gs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const APP_COMMAND = "app command";
2020
* Responds to an ADDED_TO_SPACE event in Google Chat.
2121
* @param {Object} event the event object from Google Workspace Add On
2222
*/
23-
function onAddToSpace(event) {
23+
function onAddedToSpace(event) {
2424
return sendCreateMessageAction(createCardMessage(help(APP_COMMAND)));
2525
}
2626

@@ -51,7 +51,7 @@ function onAppCommand(event) {
5151
* Responds to a REMOVED_FROM_SPACE event in Google Chat.
5252
* @param {Object} event the event object from Google Workspace Add On
5353
*/
54-
function onRemoveFromSpace(event) {
54+
function onRemovedFromSpace(event) {
5555
const space = event.chat.removedFromSpacePayload.space;
5656
console.info(`Chat app removed from ${(space.name || "this chat")}`);
5757
}

0 commit comments

Comments
 (0)