Commit ac71acc0 authored by Alejandro Celaya's avatar Alejandro Celaya Committed by Alejandro Celaya

Rename toastMessagePushed message to toastMessageAdded to match actions from toast messenger

parent 9b689dac
...@@ -602,7 +602,6 @@ export class Sidebar implements Destroyable { ...@@ -602,7 +602,6 @@ export class Sidebar implements Destroyable {
} }
this._updateLayoutState(true); this._updateLayoutState(true);
this._sidebarRPC.call('sidebarOpened');
} }
close() { close() {
...@@ -620,7 +619,6 @@ export class Sidebar implements Destroyable { ...@@ -620,7 +619,6 @@ export class Sidebar implements Destroyable {
} }
this._updateLayoutState(false); this._updateLayoutState(false);
this._sidebarRPC.call('sidebarClosed');
} }
/** /**
......
...@@ -1164,14 +1164,4 @@ describe('FrameSyncService', () => { ...@@ -1164,14 +1164,4 @@ describe('FrameSyncService', () => {
assert.calledWith(hostRPC().call, 'toastMessageDismissed', messageId); assert.calledWith(hostRPC().call, 'toastMessageDismissed', messageId);
}); });
}); });
context('when a toast message is dismissed', () => {
it('forwards the message ID to the host', () => {
const messageId = 'someId';
fakeToastMessenger.emit('toastMessageDismissed', messageId);
assert.calledWith(hostRPC().call, 'toastMessageDismissed', messageId);
});
});
}); });
...@@ -235,6 +235,7 @@ export type SidebarToHostEvent = ...@@ -235,6 +235,7 @@ export type SidebarToHostEvent =
/** /**
* The sidebar is asking the host to toast a message * The sidebar is asking the host to toast a message
*/ */
| 'toastMessageAdded'
/** /**
* The sidebar is asking the host to dismiss a toast message * The sidebar is asking the host to dismiss a toast message
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment