groupoffice icon indicating copy to clipboard operation
groupoffice copied to clipboard

Unable to open draft from mobile

Open michalcharvat opened this issue 1 year ago • 1 comments

Since 6.7? there is no option open drafts on mobile.

Workaround - EmailClient.js:616

grid.on('navigate', function (sm, rowIndex, r) {
    if(GO.util.isMobileOrTablet() && (this.messagesGrid.store.reader.jsonData.drafts || this.messagesGrid.store.reader.jsonData.sent)) {
        GO.email.showComposer({
            uid: r.data['uid'],
            task: 'opendraft',
            template_id: 0,
            mailbox: this.mailbox,
            account_id: this.account_id
        });
    } else {
        if (r.data['uid'] != this.messagePanel.uid) {
            this.messagePanel.loadMessage(r.data.uid, r.data['mailbox'], this.account_id);
            this.messagePanel.show();
            if (!r.data.seen && this.messagesGrid.store.reader.jsonData.permission_level > GO.permissionLevels.read) {
                //set read with 2 sec delay.
                this.markAsRead.defer(2000, this, [r.data.uid, r.data['mailbox'], this.account_id]);
            }
        }
    this.messagePanel.show();
    }
},this)

michalcharvat avatar Jan 31 '24 08:01 michalcharvat

@mschering Shall I create PR for it? Do you plan any fix / workaround for 6.7 + 6.8? I assume new email module will be available in 6.11 which will be released ... tomorrow? :-D

michalcharvat avatar Feb 08 '24 16:02 michalcharvat