mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 18:32:20 +08:00
d0b001012e
Summary: The emoji picker allows users to insert emoji to their messages on click. A few emoji that don't render properly in Chromium are replaced with PNGs, both in the composer view and the message list view, but only the Unicode characters are sent in the message bodies. Test Plan: TODO Reviewers: bengotow, evan Reviewed By: evan Differential Revision: https://phab.nylas.com/D2787
19 lines
764 B
JavaScript
19 lines
764 B
JavaScript
/** @babel */
|
|
import {ExtensionRegistry, ComponentRegistry} from 'nylas-exports';
|
|
import EmojiStore from './emoji-store';
|
|
import EmojiComposerExtension from './emoji-composer-extension';
|
|
import EmojiMessageExtension from './emoji-message-extension';
|
|
import EmojiButton from './emoji-button';
|
|
|
|
export function activate() {
|
|
ExtensionRegistry.Composer.register(EmojiComposerExtension);
|
|
ExtensionRegistry.MessageView.register(EmojiMessageExtension);
|
|
ComponentRegistry.register(EmojiButton, {role: 'Composer:ActionButton'});
|
|
EmojiStore.activate();
|
|
}
|
|
|
|
export function deactivate() {
|
|
ExtensionRegistry.Composer.unregister(EmojiComposerExtension);
|
|
ExtensionRegistry.MessageView.unregister(EmojiMessageExtension);
|
|
ComponentRegistry.unregister(EmojiButton);
|
|
}
|