+
@@ -36,7 +37,7 @@ import { $i } from '@/account.js';
import { globalEvents } from '@/events.js';
import MkChatPreview from '@/components/MkChatPreview.vue';
import MkPagination from '@/components/MkPagination.vue';
-import MkSearchInput from '@/components/MkSearchInput.vue';
+import MkDeprecatedWarning from '@/components/MkDeprecatedWarning.vue';
const pagingComponent = shallowRef>();
@@ -67,36 +68,6 @@ const groupsPagination = {
},
};
-async function search() {
- const query = searchQuery.value.toString().trim();
-
- if (query == null || query === '') return;
-
- if (query.startsWith('https://')) {
- const promise = misskeyApi('ap/show', {
- uri: query,
- });
-
- os.promiseDialog(promise, null, null, i18n.ts.fetchingAsApObject);
-
- const res = await promise;
-
- if (res.type === 'User') {
- router.push(`/@${res.object.username}@${res.object.host}`);
- } else if (res.type === 'Note') {
- router.push(`/notes/${res.object.id}`);
- }
-
- return;
- }
- messagePagination.value = {
- endpoint: 'messaging/message/search',
- recipientId: recipientId.value,
- groupId: groupId.value,
- };
- key.value++;
-}
-
function onMessage(message) {
if (message.recipientId) {
messages = messages.filter(m => !(