diff --git a/js/models/messages.js b/js/models/messages.js index 4e558816f..a63aa42f4 100644 --- a/js/models/messages.js +++ b/js/models/messages.js @@ -449,12 +449,9 @@ getPropsForGroupInvitation() { const invitation = this.get('group_invitation'); - let direction = 'incoming'; - - if (this.get('direction')) { - direction = this.get('direction'); - } else if (this.get('type') === 'outgoing') { - direction = 'outgoing'; + let direction = this.get('direction'); + if (!direction) { + direction = this.get('type') === 'outgoing' ? 'outgoing' : 'incoming'; } return {