mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix message category
This commit is contained in:
1 parent
700de4fc9d
commit
8bb268846e
1 file changed
+1
-2
@@ -363,8 +363,6 @@ class HomeDomainCreateHandler extends Handler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class HomeMessagesHandler extends Handler {
|
class HomeMessagesHandler extends Handler {
|
||||||
category = '#message';
|
|
||||||
|
|
||||||
async get() {
|
async get() {
|
||||||
// TODO(iceboy): projection, pagination.
|
// TODO(iceboy): projection, pagination.
|
||||||
const messages = await message.getByUser(this.user._id);
|
const messages = await message.getByUser(this.user._id);
|
||||||
@@ -421,6 +419,7 @@ class HomeMessagesHandler extends Handler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class HomeMessagesConnectionHandler extends ConnectionHandler {
|
class HomeMessagesConnectionHandler extends ConnectionHandler {
|
||||||
|
category = '#message';
|
||||||
dispose: bus.Disposable;
|
dispose: bus.Disposable;
|
||||||
|
|
||||||
async prepare() {
|
async prepare() {
|
||||||
|
|||||||
Reference in new issue
Block a user