summaryrefslogtreecommitdiff
path: root/src/client/app/mobile/views/components
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-10-09 15:08:31 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-10-09 15:08:31 +0900
commit136b13e7ca2163f37ee81a8981f0b2205e7303c9 (patch)
tree1f92e693afe46ee6ab7327814eaa386edce92b6a /src/client/app/mobile/views/components
parent:art: (diff)
downloadmisskey-136b13e7ca2163f37ee81a8981f0b2205e7303c9.tar.gz
misskey-136b13e7ca2163f37ee81a8981f0b2205e7303c9.tar.bz2
misskey-136b13e7ca2163f37ee81a8981f0b2205e7303c9.zip
Fix bug and refactor
Diffstat (limited to 'src/client/app/mobile/views/components')
-rw-r--r--src/client/app/mobile/views/components/notifications.vue3
-rw-r--r--src/client/app/mobile/views/components/ui.vue3
2 files changed, 2 insertions, 4 deletions
diff --git a/src/client/app/mobile/views/components/notifications.vue b/src/client/app/mobile/views/components/notifications.vue
index e43ec41a37..1cdcad1e4a 100644
--- a/src/client/app/mobile/views/components/notifications.vue
+++ b/src/client/app/mobile/views/components/notifications.vue
@@ -98,8 +98,7 @@ export default Vue.extend({
onNotification(notification) {
// TODO: ユーザーが画面を見てないと思われるとき(ブラウザやタブがアクティブじゃないなど)は送信しない
- this.connection.send({
- type: 'readNotification',
+ (this as any).os.stream.send('readNotification', {
id: notification.id
});
diff --git a/src/client/app/mobile/views/components/ui.vue b/src/client/app/mobile/views/components/ui.vue
index b16c246b10..6f77f44454 100644
--- a/src/client/app/mobile/views/components/ui.vue
+++ b/src/client/app/mobile/views/components/ui.vue
@@ -58,8 +58,7 @@ export default Vue.extend({
methods: {
onNotification(notification) {
// TODO: ユーザーが画面を見てないと思われるとき(ブラウザやタブがアクティブじゃないなど)は送信しない
- this.connection.send({
- type: 'readNotification',
+ (this as any).os.stream.send('readNotification', {
id: notification.id
});