Skip to content

Commit c8eb8ac

Browse files
authored
Add emoji panel API endpoints for support check and display (#610)
1 parent e97a405 commit c8eb8ac

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/App.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,14 @@ public function openAtLogin(?bool $open = null): bool
8787

8888
return $open;
8989
}
90+
91+
public function isEmojiPanelSupported(): bool
92+
{
93+
return (bool) $this->client->get('app/is-emoji-panel-supported')->json('supported');
94+
}
95+
96+
public function showEmojiPanel(): void
97+
{
98+
$this->client->post('app/show-emoji-panel');
99+
}
90100
}

src/Facades/App.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* @method static void clearRecentDocuments()
1818
* @method static bool isRunningBundled()
1919
* @method static bool openAtLogin(?bool $open = null)
20+
* @method static bool isEmojiPanelSupported()
21+
* @method static void showEmojiPanel()
2022
*/
2123
class App extends Facade
2224
{

0 commit comments

Comments
 (0)