Collaborative editing method of an electronic mail, electronic device, and storage medium
View Patent ↗Provided are an information exchange method and apparatus, an electronic device, and a storage medium. The method includes, in response to detecting a coedit trigger operation with regard to a mail, determining a coeditor; acquiring a synchro edit interface containing the content of the mail; and presenting the synchro edit interface to allow the coeditor to coedit the content of the mail through the presented synchro edit interface.
1. An information exchange method, comprising:
in response to detecting a coedit trigger operation with regard to a mail, determining a coeditor;
acquiring a synchro edit interface containing content of the mail; and
presenting the synchro edit interface to allow the coeditor to coedit the content of the mail through the presented synchro edit interface;
wherein after presenting the synchro edit interface, the method further comprises:
in response to detecting an edit operation performed on the content of the mail by the coeditor, sending a mail edit instruction containing edited content of the coeditor to a document server; and
updating the content of the mail according to updated content sent by the document server and displaying the updated content of the mail, wherein the updated content is sent after the document server updates a shared document according to the edited content in the mail edit instruction received, wherein the shared document is generated by the document server based on the content of the mail sent by the mail server.
2. The method of claim 1 , wherein the content of the mail comprises at least one of the following: a mail body, an address bar, a mail subject, or a mail attachment.
3. The method of claim 2 , wherein acquiring the synchro edit interface containing the content of the mail comprises:
receiving a coedit request triggered by a coedit initiator, wherein the coedit request comprises a coeditor identifier, wherein the coedit initiator is comprised in the coeditor; and
sending the coedit request to a mail server to allow the mail server to create, on a mail coeditor client according to the coedit request, the synchro edit interface containing the content of the mail, wherein the mail is a mail shared by the coedit initiator.
4. The method of claim 3 , further comprising:
receiving an updated message sent by the mail server, wherein the updated message is generated based on a preset number of words of content in the updated shared document, wherein the preset number of words is obtained by listening to the document server; and
displaying the updated message at a position of a subject of a draft mail in a mail list.
5. The method of claim 3 , further comprising:
in response to detecting a history edit record query operation with regard to a draft mail, sending a record query request containing identification information of the draft mail to the document server to allow the document server to acquire saved history edit record content corresponding to the draft mail, wherein the history edit record content is generated based on the updated content; and
receiving and presenting the history edit record content sent by the document server.
6. The method of claim 3 , wherein the edited content comprises comment content for the content of the mail and a comment object corresponding to the comment content; and
updating the content of the mail according to the updated content sent by the document server and displaying the updated content of the mail comprise:
updating the content of the mail according to marking comment content sent by the document server and displaying the updated content of the mail, wherein the marking comment content is sent after the document server adds the comment content to the comment object corresponding to the comment content in the shared document according to the mail edit instruction received.
7. The method of claim 6 , wherein the comment object corresponding to the comment content comprises a marking range; and the marking comment content is sent after the document server adds the comment content to the marking range in the shared document according to the mail edit instruction received.
8. The method of claim 7 , after updating the content of the mail according to the marking comment content sent by the document server and displaying the updated content of the mail, the method further comprising:
displaying the marking comment content in a discussion group, wherein
the discussion group is an information exchange group that comprises the coeditor and that is created after the coedit trigger operation is detected.
9. The method of claim 7 , in a case where the content of the mail is at least one of the mail body, the address bar, the mail subject, or the mail attachment, after updating the content of the mail according to the marking comment content sent by the document server and displaying the updated content of the mail, the method further comprising:
displaying the marking comment content in a discussion group, wherein
the discussion group is an information exchange group that comprises the coeditor and that is created after the coedit trigger operation is detected.
10. The method of claim 7 , wherein the marking comment content further comprises a commentator identifier, wherein the commentator identifier comprises the coeditor identifier.
11. The method of claim 7 , wherein the comment object corresponding to the comment content comprises at least one of the following: an address bar of a draft mail, a mail subject of the draft mail, a mail attachment of the draft mail, or a mail body of the draft mail.
12. The method of claim 1 , further comprising:
in response to detecting a preset draft mail deletion trigger event, deleting a draft mail.
13. The method of claim 12 , wherein in response to detecting the preset draft mail deletion trigger event, deleting the draft mail comprises:
in response to detecting a trigger operation with regard to a delete button on the synchro edit interface, deleting the draft mail; or
in response to detecting a trigger operation with regard to a group disbandment button of a discussion group, deleting the draft mail, wherein
the discussion group is an information exchange group that comprises the coeditor and that is created after the coedit trigger operation is detected.
14. The method of claim 1 , further comprising displaying a coeditor identifier of the coeditor on the synchro edit interface.
15. The method of claim 14 , wherein displaying the coeditor identifier of the coeditor on the synchro edit interface comprises displaying a predetermined number of coeditor identifiers on the synchro edit interface and displaying a number of non-displayed coeditor identifiers on the synchro edit interface.
16. The method of claim 15 , further comprising displaying a coedit cursor on the synchro edit interface, wherein the coedit cursor is configured to mark an edit position of the coeditor in a draft mail.
17. The method of claim 16 , wherein displaying the coedit cursor on the synchro edit interface comprises:
displaying edit positions of different coeditors in different marking patterns on the synchro edit interface.
18. The method of claim 2 , wherein in a case where the content of the mail is the attachment,
coediting the content of the mail comprises:
in response to detecting an attachment edit trigger operation with regard to the mail, sending an attachment edit instruction containing content for edit to a document server, wherein the content for edit comprises adding the attachment or deleting the attachment;
receiving an attachment list sent by the document server, wherein the attachment list is sent after the document server adds or deletes the attachment in a shared document according to the attachment edit instruction received; and
presenting the attachment list at an attachment position of a draft mail on the synchro edit interface.
19. The method of claim 2 , further comprising:
in response to detecting a discussion group exit trigger operation of a current user, generating a permission cancellation instruction and sending the permission cancellation instruction to a mail server to allow the mail server to cancel the current user's edit permission of the mail according to the permission cancellation instruction, wherein a discussion group is created synchronously by a coedit initiator with regard to a sharing trigger operation of the mail.
20. The method of claim 19 , wherein the discussion group comprises an information exchange group comprising the coeditor and created on a mail client; or an information exchange group comprising the coeditor and created on an instant messaging (IM) client.
21. An electronic device, comprising:
at least one processor, and
a storage apparatus configured to store at least one program,
wherein when executed by the at least one processor, the at least one program causes the at least one processor to perform the following steps:
in response to detecting a coedit trigger operation with regard to a mail, determining a coeditor;
acquiring a synchro edit interface containing content of the mail; and
presenting the synchro edit interface to allow the coeditor to coedit the content of the mail through the presented synchro edit interface;
wherein when executed by the at least one processor, the at least one program further causes the at least one processor to perform, after presenting the synchro edit interface, the following steps:
in response to detecting an edit operation performed on the content of the mail by the coeditor, sending a mail edit instruction containing edited content of the coeditor to a document server; and
updating the content of the mail according to updated content sent by the document server and displaying the updated content of the mail, wherein the updated content is sent after the document server updates a shared document according to the edited content in the mail edit instruction received, wherein the shared document is generated by the document server based on the content of the mail sent by the mail server.
22. A non-transitory computer-readable storage medium, storing a computer program which, when executed by a processor, causes the processor to perform the following steps:
in response to detecting a coedit trigger operation with regard to a mail, determining a coeditor;
acquiring a synchro edit interface containing content of the mail; and
presenting the synchro edit interface to allow the coeditor to coedit the content of the mail through the presented synchro edit interface;
wherein when executed by the processor, the computer program further causes the processor to perform, after presenting the synchro edit interface, the following steps:
in response to detecting an edit operation performed on the content of the mail by the coeditor, sending a mail edit instruction containing edited content of the coeditor to a document server; and
updating the content of the mail according to updated content sent by the document server and displaying the updated content of the mail, wherein the updated content is sent after the document server updates a shared document according to the edited content in the mail edit instruction received, wherein the shared document is generated by the document server based on the content of the mail sent by the mail server.