drop messaging (#9919)

* drop messaging (from backend)

* wip
This commit is contained in:
syuilo 2023-02-15 13:06:06 +09:00 committed by GitHub
parent d0aba46ee3
commit 8f2049bcd2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
47 changed files with 18 additions and 3292 deletions

View file

@ -160,12 +160,6 @@ let hasNotSpecifiedMentions = $ref(false);
let recentHashtags = $ref(JSON.parse(miLocalStorage.getItem('hashtags') || '[]'));
let imeText = $ref('');
const typing = throttle(3000, () => {
if (props.channel) {
stream.send('typingOnChannel', { channel: props.channel.id });
}
});
const draftKey = $computed((): string => {
let key = props.channel ? `channel:${props.channel.id}` : '';
@ -447,12 +441,10 @@ function clear() {
function onKeydown(ev: KeyboardEvent) {
if ((ev.which === 10 || ev.which === 13) && (ev.ctrlKey || ev.metaKey) && canPost) post();
if (ev.which === 27) emit('esc');
typing();
}
function onCompositionUpdate(ev: CompositionEvent) {
imeText = ev.data;
typing();
}
function onCompositionEnd(ev: CompositionEvent) {