Method and apparatus for instant message presentation, and electronic device and medium
By using card view or link view to present instant messages in collaborative documents, and allowing jumps to the chat window, the problem of unclear message presentation in the prior art is solved, and user experience and message circulation are improved.
Patent Information
- Application Number
- PCT/CN2024/081483
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-30
- Filing Date
- 2024-03-13
- Publication Date
- 2024-10-03
AI Technical Summary
When synchronizing instant messages to collaborative documents, the existing technology cannot clearly and completely present the entire message, resulting in increased user operation steps and poor user experience.
Provide a method for presenting instant messages by using card view or link view in collaborative documents to present instant messages, and allow users to click on the message to jump to the original chat window, reducing operating steps and improving user experience.
It realizes the clear presentation of the full picture of instant messages in collaborative documents, reduces user operation steps through the jump function, and improves the circulation of messages and user experience.
Smart Images

Figure CN2024081483_03102024_PF_FP_ABST
Abstract
Description
Instant message presentation method, device, electronic device, and medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to the Chinese invention patent application with application number 202310332658.1, entitled “Method, device, electronic device and medium for instant message presentation” and filing date March 30, 2023, and the entire application is incorporated herein by reference. Technical Field
[0003] Embodiments of the present disclosure relate to the field of computers, and more particularly, to a method, apparatus, electronic device, and medium for presenting an instant message. Background Art
[0004] Collaborative document technology allows you to share documents in the cloud and enable multiple people to edit them online, with changes synchronized in real time. Collaborative documents support collaborative editing by multiple people, with features like real-time visibility of others' changes, automatic online saving, and automatic synchronization across multiple devices. Collaborative documents facilitate teamwork and are ideal for lightweight mobile office work.
[0005] Instant messaging (IM) is a service that allows two or more people to instantly exchange text, images, files, voice, and video messages over the internet. Many businesses use IM software for daily office communication, such as through one-on-one chats or group chats.
[0006] Summary of the Invention
[0007] Embodiments of the present disclosure provide a method, apparatus, electronic device, and computer-readable storage medium for presenting an instant message.
[0008] According to a first aspect of the present disclosure, a method for presenting an instant message is provided. The method includes determining a presentation mode for an instant message in a collaborative document, wherein the presentation mode includes a card view or a link view. The method also includes presenting the instant message to a user in the collaborative document according to the presentation mode. The method also includes, in response to receiving a trigger for a jump link to the instant message, jumping to a window of a conversation containing the instant message.
[0009] According to a second aspect of the present disclosure, a device for presenting an instant message is provided. The device includes a presentation mode determination module configured to determine a presentation mode for an instant message in a collaborative document, wherein the presentation mode includes a card view or a link view. The device also includes an instant message presentation module configured to present the instant message to a user in the collaborative document according to the presentation mode. The device also includes a session window jump module configured to jump to the window of the session containing the instant message in response to receiving a trigger for a jump link to the instant message.
[0010] According to a third aspect of the present disclosure, an electronic device is provided, comprising a processor and a memory coupled to the processor, wherein the memory has instructions stored therein, and when the instructions are executed by the processor, the electronic device executes the method according to the first aspect.
[0011] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, wherein one or more computer instructions are stored on the computer-readable storage medium, wherein the one or more computer instructions are executed by a processor to implement the method according to the first aspect.
[0012] This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. It is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to limit the scope of the claimed subject matter. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:
[0014] FIG1 is a schematic diagram showing an example environment in which a method for instant message presentation according to certain embodiments of the present disclosure can be implemented;
[0015] FIG2 shows a flow chart of a method for instant message presentation according to certain embodiments of the present disclosure;
[0016] FIG3 shows a flowchart of a process for generating a collaborative document including an instant message according to certain embodiments of the present disclosure;
[0017] 4 illustrates a flow chart of a process for presenting authentication of an instant message to a user according to certain embodiments of the present disclosure;
[0018] FIG5 shows a schematic diagram of a group chat session according to certain embodiments of the present disclosure;
[0019] FIG6 shows a schematic diagram of a single chat session according to certain embodiments of the present disclosure;
[0020] FIG7 shows a schematic diagram of a card view according to certain embodiments of the present disclosure;
[0021] FIG8A shows a schematic diagram of a first portion of an instant message in a card view according to certain embodiments of the present disclosure;
[0022] FIG8B shows a schematic diagram of the second portion of an instant message in a card view according to certain embodiments of the present disclosure;
[0023] FIG9 illustrates a schematic diagram of a card view in which a user is not in a group chat session according to certain embodiments of the present disclosure;
[0024] FIG10 illustrates a schematic diagram of a card view of a user in a single chat session according to certain embodiments of the present disclosure;
[0025] FIG11 illustrates a schematic diagram of a card view in which a user is not in a single chat session according to certain embodiments of the present disclosure;
[0026] FIG12 shows a schematic diagram of a link view according to certain embodiments of the present disclosure;
[0027] FIG13 illustrates a schematic diagram of a link view where a user is not in a session according to certain embodiments of the present disclosure;
[0028] FIG14 shows a block diagram of an apparatus for instant message presentation according to certain embodiments of the present disclosure; and
[0029] FIG15 shows a block diagram of a device for instant message presentation according to certain embodiments of the present disclosure.
[0030] Throughout the drawings, the same or similar reference numbers denote the same or similar elements. DETAILED DESCRIPTION
[0031] It is understandable that the data involved in this technical solution (such as chat messages, and including but not limited to the data itself, the acquisition or use of the data) must comply with the requirements of relevant laws, regulations and relevant provisions.
[0032] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.
[0033] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, i.e., "including but not limited to." The term "based on" should be understood as "based at least in part on." The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment." The terms "first," "second," etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.
[0034] In work and life, you often need to synchronize instant messages with collaborative documents. Currently, the only way to fully display an instant message is through screenshots, which can include the sender's profile picture, the date and time of the post, comments on the message, and the message content. However, screenshots can be unclear or insufficiently large, requiring multiple screenshots and resulting in an unsightly layout.
[0035] To address the aforementioned shortcomings, embodiments of the present disclosure provide a solution for instant message presentation. This solution provides a method for storing the full content of an instant message in a collaborative document, and allows users to click on the instant message to jump back to the chat window of the original instant message. This solution not only meets user needs, but also reduces the number of steps required, improves the user experience, and enhances the flow of messages to a certain extent.
[0036] The present disclosure will be described below in conjunction with Figures 1 to 15. However, it should be understood that this is only for the purpose of enabling those skilled in the art to better understand the principles and concepts of the embodiments of the present disclosure, and is not intended to limit the scope of the present disclosure in any way.
[0037] FIG1 illustrates a schematic diagram of an example environment 100 in which instant messaging methods according to certain embodiments of the present disclosure can be implemented. As shown in FIG1 , example environment 100 may include a conversation window 110 and a collaborative document 120. Conversation window 110 and collaborative document 120 may be run on any electronic device, such as a mobile terminal, smartphone, desktop computer, laptop computer, tablet phone, or the like.
[0038] The conversation window 110 can be a single chat window, which includes a conversation with a user or a conversation with a robot assistant. It can also be a group chat window, which includes a conversation with multiple users or a conversation with multiple users and a robot assistant. The conversation window 110 can also be a topic conversation window for a specific topic, where a topic conversation includes a main topic post or a reply post to a main topic post. The conversation window 110 can include multiple instant messages, such as instant message 112, instant message 114, instant message 116, and instant message 118. The publishers of the instant messages can be the same or different. It is understood that the conversation window 110 can include more or fewer instant messages. Instant messages can also include responses to them, such as emojis representing the following: like, +1, thumbs up, laughing and crying, OK, or other expressions. The conversation window 110 can also include messages with a nested reply structure. This nested reply structure refers to a reply to a first message, where the content of the first message and the reply message are combined into a single message and displayed. The conversation window 110 may further include a status indicator indicating that the sent message has been edited for the second time, such as displaying “Edited” after the message.
[0039] Collaborative document 120 retrieves instant messages. For example, an action 140 is received to paste instant messages 112 and 114. After IM 112 and 114 are retrieved, they can be presented in a card view 130 or a link view 132. In card view 130, the entirety or a portion of the entirety of IM 112 and 114 is presented. The entirety can be presented in the form of a previewable card. The previewable card can include one or more items such as the publisher's avatar, name, posting time, date, and comments on the message. In link view 132, IM 112 and 114 are presented as jump links.
[0040] If a user selects an instant message 112 or an instant message 114 (e.g., clicks on a touch screen), and it is determined that the user is in the conversation window 110 where the instant message 112 or the instant message 114 is located, then the process may jump (150) to the conversation window 110. If it is determined that the user is not in the conversation window 110, then the process may prompt the user that the jump cannot be made, and also prompt the user why the jump cannot be made, i.e., the user is not in the conversation window 110.
[0041] In some embodiments, a conversation may include a one-on-one chat conversation, a private group conversation, and a public group conversation. A one-on-one chat conversation is a one-on-one chat conversation between users. A private group conversation is a group conversation with two or more members. Only group members or users invited by the group administrator can enter the conversation. Non-group members cannot actively join the private group conversation. A public group conversation is a group conversation with two or more members. Anyone in the organization can find the public group conversation by searching for the group name and group information, and can actively join the conversation. In addition, when a link to a public group is obtained, the user can also join the public group conversation by clicking on the link. On this basis, if the link is a one-on-one chat conversation or a private group conversation, when the user clicks the link in the instant message in the document and the user is a member of the conversation, the user can jump to the conversation window; if the user is not a member of the conversation, the jump is denied. If the link is a public group conversation, when the user clicks the link in the instant message in the document, the user can directly go to the conversation window.
[0042] FIG2 shows a flowchart of a method 200 for presenting instant messages according to certain embodiments of the present disclosure. The method 200 will be described below in conjunction with FIG1 and FIG2. At box 202, a presentation mode of the instant message in the collaborative document is determined, wherein the presentation mode includes a card view or a link view. As an example, one or more of instant message 112, instant message 114, instant message 116, and instant message 118 can be selected, and the selected instant messages can be pasted into the collaborative document 120. When pasting the selected one or more instant messages, it can be determined whether to use the card view 130 or the link view 132. For the sake of convenience of description, it is assumed that user A selects instant message 112 and instant message 114 and pastes them into the collaborative document 120. The following description will be based on this assumption.
[0043] At block 204, the instant messages are presented to the user in the collaborative document according to a presentation mode. For example, if the card view 130 is selected when pasting the instant message 112 and the instant message 114, the instant message 112 and the instant message 114 may be presented in a card view. If the link view 132 is selected when pasting the instant message 112 and the instant message 114, the instant message 112 and the instant message 114 may be presented in a link view.
[0044] At block 206, in response to receiving a trigger for a jump link to an instant message, the window of the conversation containing the instant message is jumped to. For example, if user B is editing collaborative document 120 and clicks instant message 112 or instant message 114, and user B is also in conversation window 110, the window may be jumped to conversation window 110. In some embodiments, if conversation window 110 is not open, conversation window 110 may be popped up while collaborative document 120 remains open. In some embodiments, instant message 110 may be located in conversation window 110 and highlighted.
[0045] By implementing method 200, instant messages can be presented in collaborative documents, and if the user is in the session where the instant message is located, the user can jump back to the session where the instant message is located. Therefore, the user does not need to further search for the session window, which reduces the operation steps and improves the user experience.
[0046] Figure 3 shows a flowchart of a process 300 for generating a collaborative document including an instant message according to certain embodiments of the present disclosure. The process 300 shown in Figure 3 describes the process of pasting an instant message into a collaborative document and determining different permissions from the perspective of the generator (e.g., user A mentioned above). Process 300 starts at box 302. At box 304, an action of selecting an instant message and copying the instant message is received. The instant message can come from a group chat or a single chat, or other collaborative documents. In some embodiments, copying the instant message includes copying a link to the instant message. The link can be understood as an anchor point, through which the original location of the instant message can be located, that is, the specific location in its original session. The types of original sessions include group chat sessions and single chat sessions. The group chat and single chat sessions will be described below in conjunction with Figures 5 and 6.
[0047] FIG5 illustrates a schematic diagram of a group chat session 500 according to certain embodiments of the present disclosure. Group chat session 500 is presented on screen 502 of an electronic device, for example, within area 504 of screen 502. At the top of group chat session 500, a name 506 of the group chat may be included, such as "First Business Unit Group." Group chat session 500 may also include multiple instant messages, such as instant message 514, instant message 526, and instant message 532. Above instant message 514, an avatar of the publisher 508 of instant message 514 may also be included.
[0048] Next to the publisher's avatar 508, the date 510 and time 512 of the post may also be included. Next to the instant message 514, an icon 516 indicating more actions may also be included. Clicking or hovering over icon 516 will present a more action box 518, such as commenting, cutting, copying, copying links, multi-selecting, and deleting. Below the instant message 514, comments 522 on the instant message 514 may also be included, such as likes. Below the instant message 514, a reading status icon 520 may also be included, such as a solid icon indicating that all messages have been read.
[0049] It is understandable that the date 510, time 512, icon 516, comment 522 and reading status icon 520 presented around the instant message 514 can change position as needed, or may not always be presented, but appear in response to the mouse moving to a position near the instant message.
[0050] Similarly, group chat session 500 may also include instant message 526 and the avatar of its publisher 524, and may also include icons surrounding the instant message 514, which are not described in detail here. The read status icon 528 of instant message 526 indicates that some users have read it, where the larger the proportion of black, the more users have read it.
[0051] Similarly, group chat session 500 may also include instant message 532 and an avatar of its publisher 530, and may also include icons surrounding the instant message 532, similar to instant message 514 or instant message 526. Details are omitted here. Reading status icon 534 of instant message 532 is hollow, indicating that it is unread, i.e., no other user has read instant message 532.
[0052] Figure 6 shows a schematic diagram of a single chat session 600 according to certain embodiments of the present disclosure. Single chat session 600 may be presented on a screen 602 of an electronic device, for example, within an area 604 of screen 602. The top of single chat session 600 may include the name of the subject of the single chat. For example, if single chat session 600 is a chat window between user D and user E, and single chat session 600 is viewed from the perspective of user D's chat window, user E's name may be displayed at name 606.
[0053] Single chat session 600 may also include multiple instant messages, such as instant message 614 and instant message 626. Above instant message 614, an avatar of the publisher 608 of instant message 614 may also be included. Next to the avatar of publisher 608, the date 610 and time 612 of the posting may also be included. Next to instant message 614, an icon 616 indicating more operations may also be included. Clicking or hovering the mouse over icon 616 will present a box 618 indicating more operations, such as commenting, cutting, copying, copying links, multi-selecting, and deleting. Below instant message 614, comments 622 regarding instant message 614 may also be included, such as "OK." Below instant message 614, a read status icon 620 may also be included, such as a circular icon with a check mark indicating that instant message 614 has been read.
[0054] Similarly, the single chat session 600 may also include an instant message 626 and an avatar of its publisher 624, and may also include icons presented around the instant message 614, which will not be described in detail here.
[0055] Returning now to FIG. 3 , at block 306 , the source of the instant message is determined. If the source of the instant message is source 308, i.e., an instant message in another document that has been copied and pasted in card view, process 300 proceeds to block 310 . If the source of the instant message is source 314, i.e., an instant message in another document that has been copied and pasted in link view, process 300 proceeds to block 316 . In some embodiments, if the source of the instant message is the current collaborative document, and if the message link is copied from the current collaborative document, the content of the text link generated after pasting remains "From XX Session," where XX represents the current collaborative document. If the source of the instant message is source 324, i.e., an instant message in a chat session, process 300 proceeds to block 326 .
[0056] In order to more clearly understand the card view and the link view, the card view will be described below in conjunction with Figures 7 to 8B. Figure 7 shows a schematic diagram of a card view 700 according to certain embodiments of the present disclosure. In a collaborative document 702, a card view icon 704 that is determined to be presented in card view and a link view icon 706 that is presented in link view may be included. The presentation mode can be switched by selecting the card view icon 704 or selecting the link view icon 706. It can be understood that the card view icon 704 or the link view icon 706 does not need to be presented in the collaborative document all the time, and can be presented in response to the mouse or finger being in the activation area. If the mouse or finger is not in the activation area, the card view icon 704 or the link view icon 706 is not presented.
[0057] Collaborative document 702 may include a predetermined presentation area 708. Predetermined presentation area 708 may be used to present instant messages posted in collaborative document 702. For example, instant message 716, instant message 722, and instant message 726 are posted in collaborative document 702. Messages presented around instant message 716 may also include publisher 710, posting date 712, posting time 714, and comments 718.
[0058] Similarly, the content surrounding instant message 722 may also include publisher 720 and other information or icons (not shown), and the content surrounding instant message 726 may also include publisher 724 and other information or icons (not shown). The source 728 of the instant message may also be included at the bottom of the predetermined presentation area 708. For example, the source of instant messages 716, 722, and 726 is the First Business Unit Group.
[0059] The predetermined presentation area 708 has a threshold height 730, which can be determined, for example, in pixels. If the pixel threshold required to present the instant message is less than or equal to the threshold height, the instant message can be presented entirely in the predetermined presentation area 708. If the pixel threshold required to present the instant message is greater than the threshold height, a portion of the instant message can be presented in the predetermined presentation area 708.
[0060] Figure 8A shows a schematic diagram of the first part 800A of instant messages in a card view according to certain embodiments of the present disclosure. In the collaborative document 802, a card view icon 804 for determining presentation in card view and a link view icon 806 for determining presentation in link view may be included. Similarly, the presentation mode can be switched by selecting the card view icon 804 or selecting the link view icon 806. In the collaborative document 802, the threshold height 830 of the predetermined presentation area 832 is less than the pixel height required to present all instant messages. Then, as an example, it can be determined that instant message 816 and instant message 822 (also referred to as the first part) are presented in the predetermined presentation area 832. A side scroll bar 840 can be generated. The side scroll bar 840 can initially be located at the top and can be pulled down (842) to a lower position.
[0061] Figure 8B shows a schematic diagram of the second part 800B of instant messages in the card view according to certain embodiments of the present disclosure. In Figure 8B, the side scroll bar 840 has been pulled down to a lower position and can be pulled up (844) to a higher position. Under the control of the side scroll bar 840, it can be determined that the instant message 822 and the instant message 826 (also referred to as the second part) are presented in the predetermined presentation area 832. It will be understood that when there are more instant messages, the change in the presentation content that can be controlled by the side scroll bar sliding a certain distance (e.g., one pixel) can be redefined.
[0062] Returning now to FIG. 3 , at block 310 , an instant message is received that is pasted into the collaborative document. At block 312 , a copy of the instant message is generated that is consistent with source 308 . At block 316 , the pasted instant message is received. At block 318 , a determination is made as to whether the user is in the original conversation of the instant message. If the user is in the original conversation of the instant message, process 300 proceeds to block 320 . At block 320 , the message link is parsed into the title of the message as a text link (e.g., source 728 in FIG. 7 ). If the user is not in the original conversation of the instant message, process 300 proceeds to block 322 . At block 322 , the message link is not parsed into a text link, but rather presented as a jump link (also known as a naked link).
[0063] At block 326, a pasted instant message is received, and by default, the instant message will be presented in card view. At block 328, a determination is made as to whether a view switch has occurred. If an action has occurred to switch from card view to link view, process 300 proceeds to 332. If an action has not occurred to switch from card view to link view, process 300 proceeds to 330. At block 330, the instant message is parsed into a message card and presented in the collaborative document. At 332, the instant message is parsed into a message title and presented in the collaborative document. At block 334, process 300 ends.
[0064] By implementing process 300, messages can be linked and copied into collaborative documents. Collaborative documents are capable of resolving message links and presenting instant messages in a specific presentation format. This allows messages to be stored in documents, enhancing message liquidity and lowering the barrier to message transfer. Furthermore, by preserving the full message image, instant messages in documents are more readable.
[0065] FIG4 illustrates a flow chart of a process 400 for presenting authentication of instant messages to a user according to certain embodiments of the present disclosure. The process 400, as shown in FIG4 , describes a process for reading and editing instant messages in a collaborative document from the perspective of a user editing the collaborative document (e.g., user B mentioned in the description of FIG2 ). The process 400 begins at block 402. At block 404, a determination is made as to how the instant message should be presented. If the presentation mode is a card view, the process 400 proceeds to block 406. If the presentation mode is a link view, the process 400 proceeds to block 424.
[0066] At block 406, the operation scenario is determined. For example, if the user selects Switch View, which is a scenario for switching views, process 400 proceeds to block 408. If the user clicks on an instant message, which is a scenario for viewing the source of a message, process 400 proceeds to block 416. At block 408, it is determined that the current operation is Switch View. At block 410, it is determined whether the user has permission to edit the collaborative document. If the user has permission to edit the collaborative document, process 400 proceeds to block 412. At block 412, the presentation mode may be switched from card view to link view, and process 400 proceeds to block 428. If the user does not have permission to edit the collaborative document, process 400 proceeds to block 414. At block 414, it is determined that the presentation mode cannot be switched from card view to link view, and the user may be prompted for the reason.
[0067] At block 416, it is determined that the current action is to view the message source. At block 418, it is determined whether the user is in the original conversation of the instant message. If the user is in the original conversation of the instant message, process 400 proceeds to block 420. At block 420, the message source can be presented in a card view. At block 454, in response to the user clicking on the instant message presented in the card view, process 400 can proceed to block 452.
[0068] If the user is not in the original instant message conversation, process 400 proceeds to block 422. At block 422, the specific source of the message is not presented in the card view. For example, instead of displaying the name of the group chat from which the message originated, only the group chat from which it originated is displayed. The difference between not displaying the message source in the card view and displaying the message source will be described below in conjunction with FIG.
[0069] Figure 9 illustrates a card view 900 for a user not in a group chat session, according to certain embodiments of the present disclosure. A collaborative document 902 may include a predetermined presentation area 904. Predetermined presentation area 904 may be used to present instant messages posted to collaborative document 902. For example, instant message 912, instant message 916, and instant message 920 are posted to collaborative document 902. Messages presented around instant message 912 may also include a publisher 906, a posting date 908, and a posting time 910.
[0070] Similarly, the information presented around instant message 916 may also include publisher 914, as well as other information or icons (not shown), and the information presented around instant message 920 may also include publisher 918, as well as other information or icons (not shown). At the bottom of the predetermined presentation area 904, the specific sources of instant message 912, instant message 916, and instant message 920 are not presented, and only the information from the group chat is presented (at box 922). For a clearer understanding, the example in FIG. 7 may also be reviewed, such as the source 728 of the instant message presented in FIG. 7 , which shows the specific name of the source, such as the First Business Unit Group.
[0071] If the instant message comes from a single chat session, the difference between presenting the message source of the single chat session in the card view and presenting the message source of the single chat session can be understood in conjunction with Figures 10 and 11. Figure 10 shows a schematic diagram of a card view 1000 of a user in a single chat session according to certain embodiments of the present disclosure. In the collaborative document 1002, a card view icon 1004 that determines to be presented in card view and a link view icon 1006 that is presented in link view can be included. By selecting the card view icon 1004 or the link view icon 1006, the presentation mode can be switched. It can be understood that the card view icon 1004 or the link view icon 1006 does not have to be presented in the collaborative document all the time, and can be presented in response to the mouse or finger being in the activation area. If the mouse or finger is not in the activation area, the card view icon 1004 or the link view icon 1006 is not presented.
[0072] Collaborative document 1002 may include a predetermined presentation area 1008. Predetermined presentation area 1008 may be used to present instant messages posted in collaborative document 1002. For example, instant message 1018 and instant message 1022 are posted in collaborative document 1002. Information presented around instant message 1018 may also include publisher 1012, posting date 1014, and posting time 1016.
[0073] Similarly, the instant message 1022 may also be presented with the publisher 1020, and other information or icons (not shown), and at the bottom of the predetermined presentation area 1008, the specific sources of the instant message 1018 and the instant message 1022 are presented, such as a group chat with E (at box 1024).
[0074] Figure 11 illustrates a card view 1100 for a user not in a single chat session, according to certain embodiments of the present disclosure. A collaborative document 1102 may include a predetermined presentation area 1104. Predetermined presentation area 1104 may be used to present instant messages posted to collaborative document 1102. For example, instant message 1114 and instant message 1118 are posted to collaborative document 1102. Messages presented around instant message 1114 may also include the publisher 1108, the posting date 1110, and the posting time 1112.
[0075] Similarly, the instant message 1118 may also be presented with the publisher 1116, and other information or icons (not shown). At the bottom of the predetermined presentation area 1104, the specific sources of the instant message 1114 and the instant message 1118 are not presented, only the source from the single chat (at box 1120).
[0076] Returning now to FIG. 4 , at block 424, the operation scenario is determined. If the scenario involves the user pasting a message link into a collaborative document, or copying a message link from another document into a collaborative document, process 400 proceeds to block 426. If the scenario involves switching views, for example, receiving a user action to switch views, process 400 proceeds to block 434. If the scenario involves a click-to-jump, for example, the user clicking on an instant message, process 400 proceeds to block 442.
[0077] At block 426, it is determined that the operation scenario is to copy the message link to a collaborative document. At block 428, it is determined whether the user is in the original instant message conversation. If the user is determined to be in the original instant message conversation, process 400 proceeds to 430. If the user is determined not to be in the original instant message conversation, process 400 proceeds to 432. At block 430, the message link may be parsed as a title and presented as a text link. At block 432, the message link may not be parsed as a text link, but instead presented as a jump link. Text links and jump links will be described below in conjunction with Figures 12 and 13.
[0078] Figure 12 shows a schematic diagram of a link view 1200 according to certain embodiments of the present disclosure. A collaborative document 1202 may include a card view icon 1204 and a link view icon 1206. In Figure 12, link view icon 1206 is selected, resulting in a text link 1208 being presented in collaborative document 1202. Text link 1208 is presented as text and may indicate the name of the specific source of the instant message. Hovering the mouse over text link 1208 presents icons for more actions. Clicking the text link allows the user to jump to the original conversation window of the instant message, if permissions allow. Figure 13 shows a schematic diagram of a link view 1300 when the user is not in a conversation, according to certain embodiments of the present disclosure. In collaborative document 1302, a jump link 1304 is presented as a uniform resource locator (URL). Clicking the URL link allows the user to jump to the original conversation window of the instant message, if permissions allow.
[0079] Now returning to Figure 4 , at block 434, it is determined that the scenario is to switch views. At block 436, it is determined whether the user has edit permissions for the collaborative document. If the user has edit permissions for the collaborative document, process 400 proceeds to 438. If the user does not have edit permissions for the collaborative document, process 400 proceeds to 440. At block 438, the presentation of instant messages is switched to a card view. At block 440, the view is not switched. In some embodiments, the user may be prompted with the reason why the switch cannot be made.
[0080] At block 442, it is determined that the scenario is a click-to-jump. At block 444, it is determined whether the user is in the original conversation of the instant message. If it is determined that the user is in the original conversation of the instant message, process 400 proceeds to block 446. If it is determined that the user is not in the original conversation of the instant message, or if it cannot be determined, process 400 proceeds to block 448. At block 446, the instant message is redirected to the corresponding location (anchor position) in the original conversation window where the instant message was located. In some embodiments, the instant message can also be highlighted in the original conversation window.
[0081] At block 448, a determination is made as to whether the user is logged into the account for the collaborative document or the instant messaging software. In some embodiments, both accounts may be the same, or the instant messaging and collaborative document software may utilize the same software, with the two being different functions or services. If the user is logged in, process 400 proceeds to block 450. If the user is not logged in, process 400 proceeds to block 452. At block 450, the user is prompted that they are not in the instant messaging session and cannot jump to it. At block 452, the user is prompted to log in. At block 456, process 400 ends.
[0082] By implementing process 400, users with editing permissions can view the corresponding instant messages based on their permissions, thus providing greater security. Users with editing permissions can flexibly switch the presentation mode between cards and links, and the viewing experience of other viewers will also change synchronously after the operation, providing a more personalized user experience.
[0083] In some embodiments, when an instant message link is obtained from a conversation window, a message content block may be created and the instant message link may be parsed to obtain the message content. The link type of the instant message link may also be determined, and based on the link type and message content, the message content block may be converted into a message preview content block corresponding to the link type.
[0084] In some embodiments, in the case of obtaining a link to an instant message from a collaborative document, three operations (1) to (3) are performed. Operation (1) may include, in response to a copy operation on an instant message in a collaborative document, parsing the link into a text content block, wherein the text content block includes a link to the instant message. Operation (2) may include, in response to pasting an instant message in the current collaborative document, reading the message data in the cache through the message service, and if the user has permission to read the instant message, generating a message content block based on the text content block and displaying it; if the user does not have permission to read the instant message, displaying the link to the instant message. Operation (3) may include, in response to pasting the instant message in other collaborative documents, obtaining the message data from the instant messaging client through the message service, and if the user has permission to read the instant message, generating a message content block based on the text content block and displaying it; if the user does not have permission to read the instant message, displaying the link to the instant message.
[0085] In some embodiments, if a reply operation to an instant message presented in a collaborative document is triggered, the reply message is displayed in the collaborative document. In some embodiments, if a reply operation to an instant message presented in a collaborative document is received, operations (four) to (six) may be performed. Operation (four) may include generating emoticon information within the message entry of the target message in response to an emoticon response to the target message, and the emoticon information is placed at the bottom of the message entry. Operation (five) may include displaying a message including the target message content and the reply content in the collaborative document in response to a quoted reply to the target message. Operation (six) may include displaying a new message including the reply content in the collaborative document in response to the reply to the instant message. In some embodiments, it also includes synchronously displaying the reply message in the conversation corresponding to the instant message.
[0086] In some embodiments, if the instant message is a topic message, a schedule message, or a workflow message, operations (seven) to (nine) are also included. Operation (seven) may include displaying a reply message in the instant message presented in the collaborative document when a new reply message is generated in the topic message in the conversation. Operation (eight) may include displaying a status change in the instant message presented in the collaborative document when a new status change is generated in the schedule message in the conversation, and operation (nine) may include displaying a node message in the workflow message presented in the collaborative document when a new node message is generated in the workflow message in the conversation. In some embodiments, the workflow message may be an approval flow, an email string, etc. When a new approval item is added to a node in the approval flow, the generated item change is synchronized to the document, and correspondingly, synchronization is performed when a reply is generated in the email.
[0087] In some embodiments, the instant message presented in the collaborative document may further include the user identification information of the message sender. If a trigger operation is performed on the user identification information, the user's contact card is displayed. If a preset control in the contact card is triggered, an instant messaging session window with the user is displayed.
[0088] In some embodiments, if the instant message includes a link to a target collaborative document, it may be determined whether the current user has read permission for the target collaborative document. If the current user has read permission for the target collaborative document, a preview of the document corresponding to the link is displayed in the instant message. If the current user does not have read permission for the target collaborative document, the link is displayed in the instant message.
[0089] Figure 14 shows a block diagram of an apparatus 1400 for instant message presentation according to certain embodiments of the present disclosure. As shown in Figure 14, the apparatus 1400 includes a presentation mode determination module 1402, which is configured to determine the presentation mode of the instant message in the collaborative document, wherein the presentation mode includes a card view or a link view. The apparatus 1400 also includes an instant message presentation module 1404, which is configured to present the instant message to the user in the collaborative document according to the presentation mode. The apparatus 1400 also includes a session window jump module 1406, which is configured to jump to the window of the session where the instant message is located in response to receiving a trigger of a jump link for the instant message. The apparatus 1400 may also include other modules to implement the same functions as method 200, which will not be described here for the sake of brevity.
[0090] It is understood that the apparatus 1400 of the present disclosure can achieve at least one of the advantages achievable by the methods or processes described above. For example, the original appearance of an instant message can be presented in a collaborative document, and if the user is in the conversation containing the instant message, they can jump back to the conversation containing the instant message. This eliminates the need for the user to further search for the conversation window, reduces the number of steps, and improves the user experience. In some embodiments, users with editing permissions for the document can flexibly switch the presentation mode between cards and links. After the operation, the viewing effect of other viewers will also change synchronously, thereby providing a more personalized user experience.
[0091] Figure 15 shows a block diagram of a device 1500 for instant messaging presentation according to certain embodiments of the present disclosure, and device 1500 may be the device or apparatus described in an embodiment of the present disclosure. As shown in Figure 15, device 1500 includes a central processing unit (CPU) 1501, which can perform various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) 1502 or computer program instructions loaded from a storage unit 1508 into a random access memory (RAM) 1503. In RAM 1503, various programs and data required for the operation of device 1500 can also be stored. CPU 1501, ROM 1502, and RAM 1503 are connected to each other via bus 1504. Input / output (I / O) interface 1505 is also connected to bus 1504. Although not shown in Figure 15, device 1500 may also include a coprocessor.
[0092] Various components in device 1500 are connected to I / O interface 1505, including an input unit 1506, such as a keyboard and mouse; an output unit 1507, such as various types of displays and speakers; a storage unit 1508, such as a magnetic disk and optical disk; and a communication unit 1509, such as a network card, a modem, a wireless communication transceiver, etc. Communication unit 1509 allows device 1500 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0093] The various methods or processes described above may be executed by the CPU 1501. For example, in some embodiments, the methods may be implemented as computer software programs that are tangibly embodied in a machine-readable medium, such as the storage unit 1508. In some embodiments, part or all of the computer program may be loaded and / or installed onto the device 1500 via the ROM 1502 and / or the communication unit 1509. When the computer program is loaded into the RAM 1503 and executed by the CPU 1501, one or more steps or actions in the methods or processes described above may be performed.
[0094] In some embodiments, the methods and processes described above may be implemented as a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for executing various aspects of the present disclosure.
[0095] Computer-readable storage medium can be a tangible device that can keep and store the instructions used by the instruction execution device.Computer-readable storage medium can be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device or any suitable combination thereof.More specific examples (non-exhaustive list) of computer-readable storage medium include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, for example, a punch card or a convex structure in a groove having instructions stored thereon, and any suitable combination thereof.Computer-readable storage medium used herein is not interpreted as a transient signal itself, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagated by waveguides or other transmission media (for example, light pulses by fiber optic cables), or electrical signals transmitted by wires.
[0096] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions to be stored in the computer-readable storage medium in each computing / processing device.
[0097] The computer program instructions for performing the disclosed operation can be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data or source code or the object code written in any combination of one or more programming languages, programming languages include object-oriented programming languages, and conventional procedural programming languages.Computer-readable program instructions can be performed completely on a user's computer, partially on a user's computer, performed as an independent software package, partly on a user's computer and partly on a remote computer, or performed completely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer by any type of network-including local area network (LAN) or wide area network (WAN), or can be connected to an external computer (such as utilizing an internet service provider to connect by the internet). In certain embodiments, by utilizing the state information of computer-readable program instructions to carry out personalized customization electronic circuits, such as programmable logic circuits, field programmable gate arrays (FPGAs) or programmable logic arrays (PLA), this electronic circuit can perform computer-readable program instructions, thereby realizing various aspects of the present disclosure.
[0098] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device is generated that implements the functions / actions specified in one or more blocks in the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium, where these instructions cause the computer, programmable data processing device, and / or other device to operate in a specific manner. Thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing various aspects of the functions / actions specified in one or more blocks in the flowchart and / or block diagram.
[0099] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device, so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0100] The flow charts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and the part of the module, program segment or instruction contains one or more executable instructions for realizing the prescribed logical function. In some alternative implementations, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart, can be implemented by a special hardware-based system that performs the prescribed function or action, or can be implemented by a combination of special hardware and computer instructions.
[0101] The embodiments of the present disclosure have been described above. The above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is selected to best explain the principles of the embodiments, practical applications, or technical improvements to existing technologies, or to enable other persons skilled in the art to understand the embodiments disclosed herein.
[0102] Some example implementations of the present disclosure are listed below.
[0103] Example 1. A method for presenting an instant message, comprising:
[0104] Determining a presentation mode of the instant message in the collaborative document, wherein the presentation mode includes a card view or a link view;
[0105] In the collaborative document, presenting the instant message to the user according to the presentation manner; and
[0106] In response to receiving a trigger for a jump link to the instant message, jumping to a window of the session where the instant message is located.
[0107] Example 2. The method of Example 1, wherein the card view includes a previewable card rendered based on the content of the instant message, the previewable card further including a text link generated based on the source of the instant message, the text link being associated with the jump link.
[0108] Example 3. According to the method of Examples 1-2, the link view includes a text link generated based on the source of the instant message, and the text link is associated with the jump link.
[0109] Example 4. The method of any one of Examples 1-3, further comprising:
[0110] Obtaining a user's selection of a presentation method for the instant message in the collaborative document; or
[0111] In response to the user not selecting the presentation mode, determining that the presentation mode is the card view.
[0112] Example 5. The method of any one of Examples 1-4, further comprising:
[0113] Obtaining permission for the user to edit the collaborative document;
[0114] receiving an action by the user to switch the presentation mode; and
[0115] Based on the switched presentation mode, the instant message is presented to the user in the collaborative document.
[0116] Example 6. The method according to any one of Examples 1-5, wherein jumping to the window of the conversation containing the instant message includes:
[0117] In response to determining that the session in which the instant message is located is a single chat session or a private group session, and the user is a member of the session, jumping to the window, locating and highlighting the instant message in the window of the session; or
[0118] In response to determining that the session where the instant message is located is a single chat session or a private group session and the user is not in the session where the instant message is located, prompting the user that the jump cannot be made; or
[0119] In response to determining that the session in which the instant message is located is a public group session, jumping to the window, locating and highlighting the instant message in the window of the session.
[0120] Example 7. The method of any one of Examples 1-6, wherein the source of the instant message comprises one of the following:
[0121] a group chat message from within a group chat session; or
[0122] A one-on-one message from a one-on-one chat session; or
[0123] Instant messages that have been presented in collaborative documents.
[0124] Example 8. The method of any of Examples 1-7, wherein the presentation is the card view, and the method further comprises:
[0125] determining whether the user is in the session; and
[0126] In response to determining that the user is in the session, presenting the user with a name of the session; or
[0127] In response to determining that the user is not in the conversation, the source of the instant message is presented to the user without presenting the name of the conversation.
[0128] Example 9. The method of any of Examples 1-8, wherein the presentation is the link view, and the method further comprises:
[0129] determining whether the user is in the session; and
[0130] In response to determining that the user is in the session, presenting the text link to the user; or
[0131] In response to determining that the user is not in the session, the jump link associated with the instant message is presented to the user without presenting the text link.
[0132] Example 10. The method of any one of Examples 1-9, wherein, in the collaborative document, presenting the instant message to the user according to the presentation mode comprises:
[0133] Obtaining the pixel height of the instant message;
[0134] determining a threshold height of a predetermined presentation area in the collaborative document; and
[0135] In response to the pixel height being greater than a threshold height, presenting a portion of the instant message matching the threshold height in the collaborative document.
[0136] Example 11. The method of any one of Examples 1-10, wherein presenting a portion of the instant message that matches the threshold height in the collaborative document comprises:
[0137] Determining a first portion of the instant message, where a pixel height of the first portion is less than or equal to the threshold height, and the first portion is presented in the predetermined presentation area by default;
[0138] generating a side scroll bar, wherein the side scroll bar is used to control a presentable portion of the instant message;
[0139] presenting the first part in the predetermined presentation area of the screen; and
[0140] In response to receiving an action to scroll the side scroll bar, a second portion of the instant message is presented, wherein the second portion is associated with a scroll position of the side scroll bar.
[0141] Example 12. The method of any one of Examples 1-11, further comprising:
[0142] Determining whether the user has logged into the collaborative document account; and
[0143] In response to the user not being logged in, prompting the user to log in to the collaborative document account.
[0144] Example 13. The method of any of Examples 1-12, wherein the previewable card includes at least one of the following:
[0145] The avatar of the publisher of the instant message;
[0146] The name of the publisher of the instant message;
[0147] The time or date when the instant message was published;
[0148] the content of the instant message; or
[0149] Comments on said instant message.
[0150] Example 14. According to any one of the methods of Examples 1-13, if the link to the instant message is obtained from the conversation window, presenting the instant message to the user in the collaborative document according to the presentation mode includes:
[0151] Creating a message content block, parsing the link of the instant message, and obtaining the message content;
[0152] The link type of the link of the instant message is determined, and according to the link type and the message content, the message content block is converted into a message preview content block corresponding to the link type.
[0153] Example 15. The method according to any one of example claims 1-14, wherein if a link to the instant message is obtained from a collaborative document, presenting the instant message to the user in the collaborative document according to the presentation method includes:
[0154] In response to a copy operation on the instant message in the collaborative document, parsing the link into a text content block, wherein the text content block includes the link to the instant message;
[0155] In response to pasting the instant message in the current collaborative document, the message data in the cache is read through the message service, and if the user has permission to read the instant message, a message content block is generated based on the text content block and displayed; if the user does not have permission to read the instant message, a link to the instant message is displayed; or
[0156] In response to pasting the instant message in other collaborative documents, the message data is obtained from the instant messaging client through the message service. If the user has the permission to read the instant message, the message content block is generated and displayed based on the text content block; if the user does not have the permission to read the instant message, the link to the instant message is displayed.
[0157] Example 16. The method of any one of Examples 1-15, further comprising:
[0158] In response to a reply operation to the instant message presented in the collaborative document, a reply message is displayed in the collaborative document.
[0159] Example 17. The method of any one of Examples 1-16, wherein, in response to a reply operation to an instant message presented in the collaborative document, displaying a reply message in the collaborative document comprises:
[0160] In response to an expression response to a target message, generating expression information within a message item of the target message, the expression information being placed at the bottom of the message item; or
[0161] In response to a reference reply to a target message, displaying a message including the target message content and the reply content in the collaborative document; or
[0162] In response to the reply to the instant message, a new message including the reply content is displayed in the collaborative document.
[0163] Example 18. The method of any one of Examples 1-17, further comprising:
[0164] The reply message is synchronously displayed in the conversation corresponding to the instant message.
[0165] Example 19. The method of any one of Examples 1-18, in response to the instant message being a topic message, a schedule message, or a workflow message, further comprising any of the following:
[0166] When a new reply message is generated by the topic message in the conversation, the reply message is displayed in the instant message presented in the collaborative document; or
[0167] When the schedule message in the conversation generates a new status change, displaying the status change in the instant message presented in the collaborative document; or
[0168] When the workflow message in the conversation generates a new node message, the node message is displayed in the workflow message presented in the collaborative document.
[0169] Example 20. The method according to any one of Examples 1-19, wherein the instant message presented in the collaborative document includes user identification information of the message sender;
[0170] In response to a triggering operation on the user identification information, a contact card of the user is displayed; in response to a triggering operation on a preset control in the contact card, an instant messaging session window with the user is displayed.
[0171] Example 21. The method according to any one of Examples 1-20, wherein the instant message includes a link to a target collaborative document;
[0172] Determine whether the current user has the reading permission for the target collaborative document;
[0173] If so, displaying document preview information corresponding to the link in the instant message;
[0174] If not, the link is displayed in the instant message.
[0175] Example 22. An apparatus for presenting an instant message, comprising:
[0176] a presentation mode determination module configured to determine a presentation mode of the instant message in the collaborative document, wherein the presentation mode includes a card view or a link view;
[0177] an instant message presentation module, configured to present the instant message to the user in the collaborative document according to the presentation mode; and
[0178] The session window jump module is configured to jump to the window of the session where the instant message is located in response to receiving a trigger of a jump link for the instant message.
[0179] Example 23. An electronic device comprising:
[0180] processor; and
[0181] a memory coupled to the processor, the memory having instructions stored therein, the instructions causing the electronic device to perform actions when executed by the processor, the actions comprising:
[0182] Determining a presentation mode of the instant message in the collaborative document, wherein the presentation mode includes a card view or a link view;
[0183] In the collaborative document, presenting the instant message to the user according to the presentation manner; and
[0184] In response to receiving a trigger for a jump link to the instant message, jumping to a window of the session where the instant message is located.
[0185] Example 24. A computer-readable storage medium having one or more computer instructions stored thereon, wherein the one or more computer instructions are executed by a processor to implement the method according to any one of Examples 1 to 21.
[0186] Example 25. A computer program product tangibly stored on a computer-readable medium and comprising computer-executable instructions that, when executed by a device, cause the device to perform the method of any one of Examples 1 to 21.
[0187] Although the present disclosure has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
Claims
1. An instant message presenting method, comprising: Determining a presentation mode of the instant message in the collaborative document, wherein the presentation mode includes a card view or a link view; In the collaborative document, presenting the instant message to the user according to the presentation mode; as well as In response to receiving a trigger for a jump link to the instant message, jumping to a window of the session where the instant message is located.
2. The method according to claim 1, wherein the card view includes a previewable card rendered based on the content of the instant message, the previewable card also includes a text link generated based on the source of the instant message, and the text link is associated with the jump link.
3. The method according to claim 1, wherein the link view comprises a text link generated based on a source of the instant message, the text link being associated with the jump link.
4. The method according to claim 1, further comprising: Obtaining a user's selection of a presentation method of the instant message in the collaborative document; or In response to the user not selecting the presentation mode, determining that the presentation mode is the card view.
5. The method according to claim 4, further comprising: Obtaining permission for the user to edit the collaborative document; Receiving an action of the user switching the presentation mode; as well as Based on the switched presentation mode, the instant message is presented to the user in the collaborative document.
6. The method according to claim 1, wherein the step of jumping to the window of the session where the instant message is located comprises: In response to determining that the session in which the instant message is located is a single chat session or a private group meeting a conversation, and the user is a member of the conversation, jumping to the window, locating and highlighting the instant message in the window of the conversation; or In response to determining that the session where the instant message is located is a single chat session or a private group session and the user is not in the session where the instant message is located, prompting the user that the jump cannot be made; or In response to determining that the session in which the instant message is located is a public group session, jumping to the window, locating and highlighting the instant message in the window of the session.
7. The method according to claim 2 or 3, wherein the source of the instant message comprises one of the following: from a group chat message within a group chat session; or A one-to-one message from a one-to-one chat session; or Instant messages that have been presented in collaborative documents.
8. The method according to claim 7, wherein the presentation mode is the card view, and the method further comprises: determining whether the user is in the session; as well as In response to determining that the user is in the session, presenting the user with a name of the session; or In response to determining that the user is not in the session, presenting the source of the instant message to the user without presenting the name of the session.
9. The method according to claim 7, wherein the presentation mode is the link view, and the method further comprises: determining whether the user is in the session; as well as In response to determining that the user is in the session, presenting the text link to the user; or In response to determining that the user is not in the session, the jump link associated with the instant message is presented to the user without presenting the text link.
10. The method according to claim 1, wherein in the collaborative document, presenting the instant message to the user according to the presentation mode comprises: Obtaining the pixel height of the instant message; determining a threshold height of a predetermined presentation area in the collaborative document; as well as In response to the pixel height being greater than a threshold height, presenting a portion of the instant message matching the threshold height in the collaborative document.
11. The method according to claim 10, presenting in the collaborative document a portion of the instant message that highly matches the threshold comprises: Determine a first part of the instant message, the pixel height of the first part is less than or equal to the threshold height, and the first part is presented in the predetermined presentation area by default; generating a side scroll bar, wherein the side scroll bar is used to control a presentable portion of the instant message; presenting the first part in the predetermined presentation area of the screen; as well as In response to receiving an action to scroll the side scroll bar, presenting a second portion of the instant message, wherein the second portion is associated with a scroll position of the side scroll bar.
12. The method according to claim 1, further comprising: Determining whether the user has logged into the collaborative document account; as well as In response to the user not being logged in, prompting the user to log in to the collaborative document account.
13. The method of claim 1, wherein the previewable card comprises at least one of the following: The avatar of the publisher of the instant message; The name of the publisher of the instant message; The time or date of publication of the instant message; the content of the instant message; or A comment on said instant message.
14. The method according to claim 1, if the link of the instant message is obtained from the conversation window, then in the collaborative document, presenting the instant message to the user according to the presentation mode, comprising: Creating a message content block, parsing the link of the instant message, and obtaining the message content; The link type of the link of the instant message is determined, and according to the link type and the message content, the message content block is converted into a message preview content block corresponding to the link type.
15. The method according to claim 1, if the link of the instant message is obtained from the collaborative document, then in the collaborative document, presenting the instant message to the user according to the presentation mode, comprising: In response to a copy operation on the instant message in the collaborative document, parsing the link into a text content block, wherein the text content block includes the link to the instant message; In response to pasting the instant message in the current collaborative document, the message data in the cache is read through the message service, and if the user has the permission to read the instant message, a message content block is generated according to the text content block and displayed; if the user does not have the permission to read the instant message, a link to the instant message is displayed; or In response to pasting the instant message in other collaborative documents, obtaining message data from an instant messaging client through a message service, and if the user has permission to read the instant message, generating and displaying a message content block based on the text content block; If the user does not have permission to read the instant message, a link to the instant message is displayed.
16. The method according to claim 1, further comprising: In response to a reply operation to the instant message presented in the collaborative document, a reply message is displayed in the collaborative document.
17. The method according to claim 16, in response to a reply operation to an instant message presented in the collaborative document, displaying a reply message in the collaborative document, comprises: In response to the expression response to the target message, generating expression information in the message item of the target message, wherein the expression information is placed at the bottom of the message item; or In response to a reference reply to a target message, displaying a message including the target message content and the reply content in the collaborative document; or In response to the reply to the instant message, a new message including the reply content is displayed in the collaborative document.
18. The method according to claim 16 or 17, further comprising: The reply message is synchronously displayed in the conversation corresponding to the instant message.
19. The method according to claim 1, in response to the instant message being a topic message, a schedule message or a workflow message, further comprising any of the following: When a new reply message is generated by the topic message in the conversation, the reply message is displayed in the instant message presented in the collaborative document; or When the schedule message in the conversation generates a new status change, displaying the status change in the instant message presented in the collaborative document; or When the workflow message in the session generates a new node message, the node message is displayed in the workflow message presented in the collaborative document.
20. The method according to claim 1, wherein the instant message presented in the collaborative document includes user identification information of the message sender; In response to a triggering operation on the user identification information, a contact card of the user is displayed; in response to a triggering operation on a preset control in the contact card, an instant messaging session window with the user is displayed.
21. The method according to claim 1, if the instant message includes a link to the target collaborative document; Determine whether the current user has the reading permission of the target collaborative document; If available, displaying the document preview information corresponding to the link in the instant message; If not available, the link is displayed in the instant message.
22. An instant message presentation device, comprising: A presentation mode determination module, configured to determine a presentation mode of the instant message in the collaborative document, wherein the presentation mode includes a card view or a link view; An instant message presentation module, configured to present the instant message to the user in the collaborative document according to the presentation mode; as well as The session window jump module is configured to jump to the window of the session where the instant message is located in response to receiving a trigger of a jump link for the instant message.
23. An electronic device, comprising: processor; as well as A memory coupled to the processor, the memory having instructions stored therein The apparatus further comprises a processor, wherein the processor executes the instructions, which, when executed by the processor, cause the electronic device to perform the method according to any one of claims 1 to 21.
24. A computer-readable storage medium having computer-executable instructions stored thereon, wherein the computer-executable instructions are executed by a processor to implement the method according to any one of claims 1 to 21.
Citation Information
Patent Citations
Method and apparatus for presenting session message in application
CN110290058A
Document processing and instant messaging method and device, electronic equipment and storage medium
CN111880858A
Session display method and device, computer equipment and storage medium
CN112230821A
Instant message presentation method and device, electronic equipment and medium
CN116346759A
System and method for sharing profile image card for communication
KR1020150055689A
