summaryrefslogtreecommitdiff
path: root/src/web/app/common/scripts/streaming/messaging.ts
diff options
context:
space:
mode:
authorAkihiko Odaki <nekomanma@pixiv.co.jp>2018-03-26 00:19:07 +0900
committerAkihiko Odaki <nekomanma@pixiv.co.jp>2018-03-26 14:07:16 +0900
commit19b9cb105d49e2a00ae19e3dc1f2d36dc394f148 (patch)
tree5faa9ad213bbf2efdcb4d06cf4fc941a501ab7f8 /src/web/app/common/scripts/streaming/messaging.ts
parentAllow to use domain whose prefix is not misskey (diff)
downloadsharkey-19b9cb105d49e2a00ae19e3dc1f2d36dc394f148.tar.gz
sharkey-19b9cb105d49e2a00ae19e3dc1f2d36dc394f148.tar.bz2
sharkey-19b9cb105d49e2a00ae19e3dc1f2d36dc394f148.zip
Introduce account document to user document
An account document is attached to a user document if an account of the user is on the server. It may be missing if the user is on a remote server.
Diffstat (limited to 'src/web/app/common/scripts/streaming/messaging.ts')
-rw-r--r--src/web/app/common/scripts/streaming/messaging.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/web/app/common/scripts/streaming/messaging.ts b/src/web/app/common/scripts/streaming/messaging.ts
index c1b5875cfb..4c593deb31 100644
--- a/src/web/app/common/scripts/streaming/messaging.ts
+++ b/src/web/app/common/scripts/streaming/messaging.ts
@@ -7,13 +7,13 @@ import MiOS from '../../mios';
export class MessagingStream extends Stream {
constructor(os: MiOS, me, otherparty) {
super(os, 'messaging', {
- i: me.token,
+ i: me.account.token,
otherparty
});
(this as any).on('_connected_', () => {
this.send({
- i: me.token
+ i: me.account.token
});
});
}