diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2020-02-13 11:44:58 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2020-02-13 11:44:58 +0900 |
| commit | c22815551487138fbbc5ca75efb67c5713a4c825 (patch) | |
| tree | 5c46382072324f4c9b83e59b2dfd6a8e5de17232 /src/client | |
| parent | Refactor (diff) | |
| download | misskey-c22815551487138fbbc5ca75efb67c5713a4c825.tar.gz misskey-c22815551487138fbbc5ca75efb67c5713a4c825.tar.bz2 misskey-c22815551487138fbbc5ca75efb67c5713a4c825.zip | |
Fix #5930
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/pages/messaging.vue | 8 |
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'), |