summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2020-02-13 11:44:58 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2020-02-13 11:44:58 +0900
commitc22815551487138fbbc5ca75efb67c5713a4c825 (patch)
tree5c46382072324f4c9b83e59b2dfd6a8e5de17232 /src/client
parentRefactor (diff)
downloadmisskey-c22815551487138fbbc5ca75efb67c5713a4c825.tar.gz
misskey-c22815551487138fbbc5ca75efb67c5713a4c825.tar.bz2
misskey-c22815551487138fbbc5ca75efb67c5713a4c825.zip
Fix #5930
Diffstat (limited to 'src/client')
-rw-r--r--src/client/pages/messaging.vue8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/client/pages/messaging.vue b/src/client/pages/messaging.vue
index 4b6f49d82a..e2880306f2 100644
--- a/src/client/pages/messaging.vue
+++ b/src/client/pages/messaging.vue
@@ -139,6 +139,14 @@ export default Vue.extend({
async startGroup() {
const groups1 = await this.$root.api('users/groups/owned');
const groups2 = await this.$root.api('users/groups/joined');
+ if (groups1.length === 0 && groups2.length === 0) {
+ this.$root.dialog({
+ type: 'warning',
+ title: this.$t('noGroups'),
+ text: this.$t('joinOrCreateGroup'),
+ });
+ return;
+ }
const { canceled, result: group } = await this.$root.dialog({
type: null,
title: this.$t('group'),