We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 617f1f9 + 5931ead commit 275c5ecCopy full SHA for 275c5ec
src/components/NewMessage/NewMessageAbsenceInfo.vue
@@ -42,6 +42,7 @@
42
<script>
43
import ChevronUp from 'vue-material-design-icons/ChevronUp.vue'
44
45
+import { getCurrentUser } from '@nextcloud/auth'
46
import { t } from '@nextcloud/l10n'
47
import moment from '@nextcloud/moment'
48
@@ -142,6 +143,16 @@ export default {
142
143
},
144
145
async openConversationWithReplacementUser() {
146
+ if (this.userAbsence.replacementUserId === getCurrentUser().uid) {
147
+ // Don't open a chat with one-self
148
+ return
149
+ }
150
+
151
+ if (this.userAbsence.replacementUserId === this.userAbsence.userId) {
152
+ // Don't recursively go to the current chat
153
154
155
156
this.$router.push({
157
name: 'root',
158
query: {
0 commit comments