Comment processing method involving displaying preview of comment content in instant messaging chat, electronic device, and storage medium
View Patent ↗A comment processing method, an electronic device, and a storage medium are provided. The comment processing method includes: obtaining comment content in a document; and sending the comment content to an instant messaging chat, and generating and displaying a corresponding preview of the comment content in the instant messaging chat.
1 . A comment processing method, comprising:
in response to a selection operation triggered by a send user, obtaining comment content that is selected in a document; and
sending the comment content to an instant messaging chat, and generating and displaying a message card corresponding to the comment content in the instant messaging chat in a form of a chat message, wherein the chat message is sent on behalf of the send user, the message card prompts a user of user permission information, the message card is forwardable, and a preview of the comment content corresponding to the message card is seen by only a recipient who has a document read permission, and the preview of the comment content corresponding to the message card comprises an avatar of a comment user which generates the comment content and an identifier of the comment user,
wherein the sending the comment content to an instant messaging chat comprises:
sending the comment content to the instant messaging chat in response to a forward operation triggered by the user on the comment content, or
sending the comment content to the instant messaging chat in response to a copy-and-paste link operation triggered by the user on the comment content.
2 . The method according to claim 1 , wherein the sending the comment content to an instant messaging chat comprises:
sending a link to the comment content to the instant messaging chat in the form of the chat message.
3 . The method according to claim 1 , wherein an account for the document and an instant messaging account are accounts set up by the same user in an application suite.
4 . The method according to claim 1 , wherein the preview comprises the comment content and body content in the document corresponding to the comment content.
5 . The method according to claim 1 , wherein the sending the comment content to the instant messaging chat in response to a copy-and-paste link operation on the comment content further comprises:
generating a copied link to the comment content in response to a copy link operation on the comment content; and
sending the comment content to the instant messaging chat in response to a forward operation on the copied link.
6 . The method according to claim 1 , further comprising:
obtaining, in response to the forward operation on the comment content, an instant messaging account that matches an account for the document, and displaying an instant messaging interface corresponding to the instant messaging account; and
sending, in response to a trigger operation on a target chat in the instant messaging interface, the comment content to the target chat.
7 . The method according to claim 1 , wherein the preview comprises a document link to the document; and
in response to a trigger operation on the document link, the document is displayed and a position of the comment content is jumped to.
8 . The method according to claim 5 , wherein after the generating a copied link to the comment content, the method further comprises:
displaying copy result prompt information at a preset position of the document.
9 . The method according to claim 1 , wherein
read permission information is displayed at a preset position of the message card in response to that a user has a read permission for the document;
edit permission information is displayed at a preset position of the message card in response to that the user has an edit permission for the document; and
manage permission information is displayed at a preset position of the message card in response to that the user has a manage permission for the document.
10 . The method according to claim 1 , wherein the preview further comprises at least one of a comment editing status, a comment time, or an emoji reaction to the comment.
11 . The method according to claim 2 , wherein an account for the document and an instant messaging account are accounts set up by the same user in an application suite.
12 . The method according to claim 2 , wherein the preview comprises the comment content and body content in the document corresponding to the comment content.
13 . The method according to claim 3 , wherein the preview comprises the comment content and body content in the document corresponding to the comment content.
14 . The method according to claim 2 , wherein the preview comprises a document link to the document; and
in response to a trigger operation on the document link, the document is displayed and a position of the comment content is jumped to.
15 . An electronic device, comprising:
at least one memory and at least one processor,
wherein the at least one memory is configured to store program code, and the at least one processor is configured to call the program code stored in the at least one memory to perform a comment processing method,
wherein the comment processing method comprises:
in response to a selection operation triggered by a send user, obtaining comment content that is selected in a document; and
sending the comment content to an instant messaging chat, and generating and displaying a message card corresponding to the comment content in the instant messaging chat in a form of a chat message, the chat message is sent on behalf of the send user, the message card prompts a user of user permission information, the message card is forwardable, and a preview of the comment content corresponding to the message card is seen by only a recipient who has a document read permission, and the preview of the comment content corresponding to the message card comprises an avatar of a comment user which generates the comment content and an identifier of the comment user,
wherein the sending the comment content to an instant messaging chat comprises:
sending the comment content to the instant messaging chat in response to a forward operation triggered by the user on the comment content, or
sending the comment content to the instant messaging chat in response to a copy-and-paste link operation triggered by the user on the comment content.
16 . A non-transitory computer-readable storage medium, configured to store program code that, when executed by a computer device, causes the computer device to perform a comment processing method,
wherein the comment processing method comprises:
in response to a selection operation triggered by a send user, obtaining comment content that is selected in a document; and
sending the comment content to an instant messaging chat, and generating and displaying a message card corresponding to the comment content in the instant messaging chat in a form of a chat message, wherein the chat message is sent on behalf of the send user, the message card prompts a user of user permission information, the message card is forwardable, and a preview of the comment content corresponding to the message card is seen by only a recipient who has a document read permission, and the preview of the comment content corresponding to the message card comprises an avatar of a comment user which generates the comment content and an identifier of the comment user,
wherein the sending the comment content to an instant messaging chat comprises:
sending the comment content to the instant messaging chat in response to a forward operation triggered by the user on the comment content, or
sending the comment content to the instant messaging chat in response to a copy-and-paste link operation triggered by the user on the comment content.