Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to open draft from mobile #1106

Open
michalcharvat opened this issue Jan 31, 2024 · 1 comment
Open

Unable to open draft from mobile #1106

michalcharvat opened this issue Jan 31, 2024 · 1 comment

Comments

@michalcharvat
Copy link
Contributor

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
Copy link
Contributor Author

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant