Method, apparatus, electronic device and medium for instant message presentation
By presenting instant messages in a card view or link view within collaborative documents and supporting navigation to the conversation window containing the message, the issue of unclear presentation of instant messages in collaborative documents is resolved, improving user experience and message flow.
Patent Information
- Application Number
- CN202310332658.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-30
- Publication Date
- 2025-11-11
- Estimated Expiration
- 2043-03-30
AI Technical Summary
In existing technologies, instant messages are not clearly presented in collaborative documents, failing to fully represent the message's complete picture, and the operation steps are cumbersome, affecting the user experience.
This paper provides a method for presenting instant messages, which presents instant messages in a card view or link view in a collaborative document and supports jumping to the session window where the message is located, thus simplifying the operation process.
It enables the complete presentation of instant messages in collaborative documents, reduces operation steps, improves user experience, and enhances message flow and readability.
Smart Images

Figure CN116346759B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of this disclosure relate to the field of computers, and more specifically, to methods, apparatus, electronic devices, and media for presenting instant messages. Background Technology
[0002] Collaborative document technology allows documents to be shared in the cloud and edited online by multiple users, with changes synchronized in real time. Collaborative documents support multi-user collaborative editing and feature real-time visibility of others' changes, automatic online saving, and automatic synchronization across multiple devices. Collaborative documents facilitate team collaboration and are suitable for lightweight mobile office work.
[0003] Instant messaging (IM) is a service that allows two or more people to communicate instantly over the internet by sending text, images, files, voice, and video. Many businesses can also fulfill their daily communication needs through instant messaging software, such as through one-on-one chats or group chats. Summary of the Invention
[0004] Embodiments of this disclosure provide a method, apparatus, electronic device, and computer-readable storage medium for instant messaging.
[0005] According to a first aspect of this disclosure, a method for presenting instant messages is provided. The method includes determining how the instant message is presented in a collaborative document, wherein the presentation method 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 method. The method further includes, in response to receiving a trigger of a jump link for the instant message, jumping to a window of the session containing the instant message.
[0006] According to a second aspect of this disclosure, an apparatus for presenting instant messages is provided. The apparatus includes a presentation mode determination module configured to determine the presentation mode of an instant message in a collaborative document, wherein the presentation mode includes a card view or a link view. The apparatus 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 apparatus further includes a session window jump module configured to jump to the window of the session containing the instant message in response to receiving a jump link for the instant message.
[0007] According to a third aspect of this disclosure, an electronic device is provided. The electronic device includes a processor and a memory coupled to the processor, the memory having instructions stored therein, which, when executed by the processor, cause the electronic device to perform the method according to the first aspect.
[0008] According to a fourth aspect of this disclosure, a computer-readable storage medium is provided. The computer-readable storage medium stores one or more computer instructions, wherein the one or more computer instructions are executed by a processor to implement the method according to the first aspect.
[0009] The summary section is provided to present the chosen concepts in a simplified form, which will be further described in the detailed description below. The summary section is not intended to identify key or principal features of the claimed subject matter, nor is it intended to limit the scope of the claimed subject matter. Attached Figure Description
[0010] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. In the drawings, the same or similar reference numerals denote the same or similar elements, wherein:
[0011] Figure 1 A schematic diagram of an example environment in which a method for presenting instant messages according to certain embodiments of the present disclosure can be implemented is shown;
[0012] Figure 2 A flowchart illustrating a method for presenting instant messages according to certain embodiments of the present disclosure is shown;
[0013] Figure 3 A flowchart illustrating a process for generating a collaborative document including instant messaging, according to certain embodiments of the present disclosure;
[0014] Figure 4 A flowchart illustrating the authentication process for presenting instant messages to a user according to certain embodiments of this disclosure is shown.
[0015] Figure 5 A schematic diagram of a group chat session according to certain embodiments of the present disclosure is shown;
[0016] Figure 6 A schematic diagram of a one-on-one chat session according to certain embodiments of the present disclosure is shown;
[0017] Figure 7 A schematic diagram of a card view according to certain embodiments of the present disclosure is shown;
[0018] Figure 8A A schematic diagram of the first portion of an instant message in a card view according to certain embodiments of the present disclosure is shown;
[0019] Figure 8B A schematic diagram of the second portion of an instant message in a card view according to certain embodiments of the present disclosure is shown;
[0020] Figure 9A schematic diagram of a card view where a user is not in a group chat session is shown according to certain embodiments of the present disclosure;
[0021] Figure 10 A schematic diagram of a user's card view in a one-on-one chat session according to certain embodiments of the present disclosure is shown;
[0022] Figure 11 A schematic diagram illustrating a card view of a user not in a one-on-one chat session according to certain embodiments of the present disclosure is shown;
[0023] Figure 12 A schematic diagram of a link view according to certain embodiments of the present disclosure is shown;
[0024] Figure 13 A schematic diagram of a linked view where the user is not in a session is shown according to certain embodiments of the present disclosure;
[0025] Figure 14 A block diagram of an apparatus for presenting instant messages according to certain embodiments of the present disclosure is shown; and
[0026] Figure 15 A block diagram of a device for presenting instant messages according to certain embodiments of the present disclosure is shown.
[0027] In all the accompanying figures, the same or similar reference numerals denote the same or similar elements. Detailed Implementation
[0028] It is understood 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) shall comply with the requirements of relevant laws, regulations and related provisions.
[0029] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0030] In the description of embodiments of this disclosure, the term "comprising" and similar terms should be understood as open-ended inclusion, i.e., "including but not limited to". The term "based on" should be understood as "at least partially based 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.
[0031] In both work and life, we often encounter scenarios where we need to sync instant messages to collaborative documents. Currently, the only way to fully present an instant message is through a screenshot, which can include the publisher's avatar, the date and time of publication, comments on the message, and the message content. However, screenshots may not be clear, or the screenshot size may not be large enough, requiring multiple screenshots and resulting in poor layout.
[0032] To address the aforementioned shortcomings, embodiments of this disclosure provide a solution for presenting instant messages. This solution offers a method for embedding the full view of an instant message into a collaborative document, and provides a function that allows clicking on the instant message to return to the original instant message's chat window. Thus, while meeting user needs, it reduces operational steps, improves user experience, and enhances message flow to a certain extent.
[0033] The following will combine Figures 1 to 15 This disclosure is described in this way. However, it should be understood that this is merely to enable those skilled in the art to better understand the principles and ideas of the embodiments of this disclosure, and is not intended to limit the scope of this disclosure in any way.
[0034] Figure 1 A schematic diagram of an example environment 100 in which a method for presenting instant messages according to certain embodiments of the present disclosure can be implemented is shown. Figure 1 As shown, the example environment 100 may include a session window 110 and a collaborative document 120. The session window 110 and the collaborative document 120 can run on any electronic device such as a mobile terminal, smartphone, desktop computer, laptop computer, tablet phone, etc.
[0035] Conversation window 110 can be a one-on-one chat window, including conversations with a user or with a chatbot assistant. Conversation window 110 can also be a group chat window, including conversations with multiple users or conversations with multiple users and a chatbot assistant. Conversation window 110 can also be a topic-based conversation window, including the main topic post or reply posts that respond to the main topic post. 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 conversation window 110 can include more or fewer instant messages. Instant messages can also include comments or responses, such as emoticons like: like, +1, thumbs up, laughing-crying, OK, or others. Conversation window 110 can also include messages with nested reply structures, where a reply to a first message combines the content of the first message and the content of the reply message into a single message for display. The session window 110 may also include a status indicator for the sent message after secondary editing, such as displaying "Edited" after the message.
[0036] Collaborative document 120 retrieves instant messages. For example, it receives the action 140 of pasting instant messages 112 and 114. After retrieving instant messages 112 and 114, they can be presented as a card view 130 or a link view 132. In card view 130, the full view or a portion of the full view of instant messages 112 and 114 will be presented. The full view can be presented as a previewable card. The previewable card may include one or more of the publisher's avatar, name, posting time, date, comments on the message, etc. In link view 132, instant messages 112 and 114 will be presented as jump links.
[0037] If a user selects instant message 112 or instant message 114 (e.g., by clicking on a touchscreen), and it is determined that the user is in the session window 110 containing instant message 112 or instant message 114, then the user can be redirected (150) to session window 110. If it is determined that the user is not in session window 110, then the user can be prompted that the user cannot be redirected, and the reason why the user cannot be redirected is also indicated, namely that the user is not in session window 110.
[0038] In some embodiments, a session can include one-on-one chat sessions, private group sessions, and public group sessions. A one-on-one chat session is a chat session between users; a private group session is a group chat session with two or more members, in which only group members or users invited by the group administrator can enter the session, and non-group members cannot actively join; a public group session is a group chat session with two or more members, in which anyone within the organization can find the public group session by searching the group name or group information, and can actively join the session. Additionally, when a link to a public group is obtained, it can also be clicked to join the public group session. Based on this, if the link is for a one-on-one chat session or a private group session, when a user clicks the link in the instant message within the document, and the user is a member of the session, the user can be redirected to the session window; if the user is not a member of the session, the redirection is refused. If the link is for a public group session, when a user clicks the link in the instant message within the document, the user will be directly taken to the session window.
[0039] Figure 2 A flowchart of a method 200 for presenting instant messages according to certain embodiments of the present disclosure is shown. The following will be combined with... Figure 1 and Figure 2 Let's describe method 200. At box 202, determine how the instant messages are presented in the collaborative document, where the presentation method includes card view or link view. As an example, one or more of instant messages 112, 114, 116, and 118 can be selected, and the selected instant messages can be pasted into collaborative document 120. When pasting the selected one or more instant messages, it can be determined whether to use card view 130 or link view 132. For ease of description, assume that user A selects instant messages 112 and 114 and pastes them into collaborative document 120; the following description will be based on this assumption.
[0040] At box 204, within the collaborative document, the instant messages are presented to the user according to the presentation method. For example, if card view 130 was selected when pasting instant messages 112 and 114, then instant messages 112 and 114 can be displayed in card view. If link view 132 was selected when pasting instant messages 112 and 114, then instant messages 112 and 114 can be displayed in link view.
[0041] At box 206, in response to receiving a jump link for an instant message, the user jumps to the window of the session containing the instant message. For example, if user B is editing collaborative document 120 and clicks on instant message 112 or 114, and user B is also in session window 110, then the user can jump to session window 110. In some embodiments, if session window 110 is not open, it can be popped up while keeping collaborative document 120 open. In some embodiments, instant message 110 can be located in session window 110 and highlighted.
[0042] By implementing method 200, instant messages can be displayed in collaborative documents, and if the user is in the session containing the instant message, they can also jump back to the session containing the instant message. Therefore, the user does not need to search for the session window, reducing operation steps and improving user experience.
[0043] Figure 3 A flowchart illustrating a process 300 for generating a collaborative document including instant messaging, according to certain embodiments of this disclosure, is shown. Figure 3 The process 300 shown 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 begins at box 302. At box 304, the action of selecting and copying the instant message is received. The instant message can originate from a group chat, a one-on-one chat, or other collaborative documents. In some embodiments, copying the instant message includes copying a link to the instant message. This link can be understood as an anchor point through which the original location of the instant message can be located, i.e., its specific location within its original session. Types of original sessions include group chat sessions and one-on-one chat sessions, which will be discussed below. Figure 5 and Figure 6 Used to describe group chat and one-on-one chat conversations.
[0044] Figure 5 A schematic diagram of a group chat session 500 according to certain embodiments of the present disclosure is shown. The group chat session 500 is displayed on the screen 502 of an electronic device, for example, within area 504 of the screen 502. At the top of the group chat session 500, a name 506 for the group chat may be included, such as "First Business Unit Group". The 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.
[0045] Next to the poster's avatar (508), the posting date (510) and time (512) can also be included. Next to the instant message (514), an icon (516) indicating further actions can also be included. Clicking or hovering over the icon (516) can display more action boxes (518), such as commenting, cutting, copying, copying links, multi-selection, and deleting. Below the instant message (514), comments (522) on the instant message (514) can also be included, such as liking. Below the instant message (514), a reading status icon (520) can also be included, such as a solid icon indicating all messages have been read.
[0046] Understandably, the date 510, time 512, icon 516, comment 522, and reading status icon 520 displayed around the instant message 514 can change their positions as needed, or they may not always be displayed, but appear in response to the mouse moving to the vicinity of the instant message.
[0047] Similarly, group chat session 500 can also include the avatars of instant message 526 and its sender 524, and can also include icons surrounding it similarly to those for instant message 514, which will not be elaborated here. The read status icon 528 of instant message 526 indicates that some users have read it, with the larger the proportion of black text, the more users have read it.
[0048] Similarly, group chat session 500 may also include instant message 532 and the avatar of its sender 530, and may also include icons surrounding it similarly to those for instant messages 514 or 526, which will not be elaborated further here. The read status icon 534 for instant message 532 is hollow, indicating that it is unread, meaning no other user has read instant message 532.
[0049] Figure 6 A schematic diagram of a one-on-one chat session 600 according to certain embodiments of the present disclosure is shown. The one-on-one chat session 600 can be displayed on the screen 602 of an electronic device, for example, within area 604 of screen 602. At the top of the one-on-one chat session 600, the names of the chat participants can be included. For example, if the one-on-one chat session 600 is a chat window between user D and user E, and the one-on-one chat session 600 is viewed from user D's chat window, then user E's name can be displayed at name 606.
[0050] A one-on-one chat session 600 may also include multiple instant messages, such as instant message 614 and instant message 626. Above instant message 614, the avatar of the publisher 608 of instant message 614 may also be included. Next to the publisher 608's avatar, the date 610 and time 612 of publication may also be included. Next to instant message 614, an icon 616 indicating further actions may also be included. Clicking or hovering the mouse over icon 616 may display a box 618 indicating further actions, such as commenting, cutting, copying, copying links, multi-selection, and deletion. Below instant message 614, comments 622 on 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 checkmark indicating that instant message 614 has been read.
[0051] Similarly, a one-on-one chat session 600 may also include the avatar of instant message 626 and its sender 624, and may also include icons that appear around it in the same way as instant message 614, which will not be elaborated here.
[0052] Now return to Figure 3 At box 306, the source of the instant message is determined. If the source of the instant message is source 308, i.e., an instant message that has been copied from another document, and the instant message is pasted to be presented in card view, then process 300 proceeds to box 310. If the source of the instant message is source 314, i.e., an instant message that has been copied from another document, and the instant message is pasted to be presented in link view, then process 300 proceeds to box 316. In some embodiments, if the source of the instant message is the current collaborative document, and for the case of copying a message link from the current collaborative document, then the content of the text link generated after pasting is still "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, then process 300 proceeds to box 326.
[0053] To better understand card views and link views, the following will combine... Figures 7 to 8B To describe the card view. Figure 7A schematic diagram of a card view 700 according to certain embodiments of the present disclosure is shown. In a collaborative document 702, a card view icon 704 presented in card view and a link view icon 706 presented in link view may be determined. The presentation mode can be switched by selecting either the card view icon 704 or the link view icon 706. It is understood that the card view icon 704 or the link view icon 706 need not be constantly displayed in the collaborative document; it can be displayed in response to the mouse or finger being in the active area, and not displayed if the mouse or finger is not in the active area.
[0054] The collaborative document 702 may include a predefined presentation area 708. The predefined presentation area 708 can be used to present instant messages pasted into the collaborative document 702. For example, instant messages 716, 722, and 726 are pasted into the collaborative document 702. The information presented around instant message 716 may also include the publisher 710, publication date 712, publication time 714, and comments 718.
[0055] Similarly, the information displayed around instant message 722 may also include publisher 720, as well as other information or icons (not shown), and the information displayed around instant message 726 may also include publisher 724, as well as other information or icons (not shown). At the bottom of the designated display area 708, the source 728 of the instant message may also be included, for example, instant message 716, instant message 722 and instant message 726 originate from the First Business Division Group.
[0056] The predetermined rendering area 708 has a threshold height 730, which can be determined, for example, in pixels. If the pixel threshold required to render the instant message is less than or equal to the threshold height, the instant message can be rendered entirely within the predetermined rendering area 708. If the threshold required to render the instant message is greater than the threshold height, a portion of the instant message can be rendered within the predetermined rendering area 708.
[0057] Figure 8AA schematic diagram of a first portion 800A of an instant message in a card view according to certain embodiments of the present disclosure is shown. In a collaborative document 802, a card view icon 804 presented in a card view and a link view icon 806 presented in a link view may be determined. Similarly, the presentation mode can be switched by selecting either the card view icon 804 or the link view icon 806. In the collaborative document 802, a threshold height 830 of a predetermined presentation area 832 is less than the pixel height required to present all instant messages. Thus, as an example, instant messages 816 and 822 (also referred to as the first portion) may be determined to be presented in the predetermined presentation area 832. A side scrollbar 840 may be generated. The side scrollbar 840 may initially be at the top and may be pulled down (842) to a lower position.
[0058] Figure 8B A schematic diagram of the second part 800B of an instant message in a card view according to certain embodiments of the present disclosure is shown. Figure 8B In this configuration, 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 instant messages 822 and 826 (also referred to as the second part) are presented in the predetermined presentation area 832. It is understood that, in the case of more instant messages, the change in the presentation content that can be controlled by the side scroll bar every certain distance (e.g., one pixel) can be redefined.
[0059] Now return to Figure 3 At box 310, the instant message pasted into the collaborative document is received. At box 312, a copy of the instant message identical to that from source 308 is generated. At box 316, the pasting of the instant message is received. At box 318, it is determined whether the user is in the original session of the instant message. If the user is in the original session of the instant message, process 300 proceeds to box 320. At box 320, the message link is resolved to the message title as a text link (e.g., ...). Figure 7 (Source 728 in the context). If the user is not in the original session of the instant message, process 300 proceeds to box 322. At box 322, the message link is not resolved to a text link, but a jump link (also known as a naked link) is directly presented.
[0060] At box 326, the instant message is pasted, and by default, it will be presented in card view. At box 328, it is determined whether there is an action to switch views. If there is an action to switch the card view to a linked view, process 300 proceeds to 332. If there is no action to switch the card view to a linked view, process 300 proceeds to 330. At box 330, the instant message is parsed into a message card and presented in the collaborative document. At box 332, the instant message is parsed into a message title and presented in the collaborative document. At box 334, process 300 ends.
[0061] By implementing process 300, messages can be linked and copied into collaborative documents. Collaborative documents have the ability to parse message links and present instant messages according to their presentation style. This allows messages to be consolidated into documents, enhancing message flow, lowering the barrier to message transfer, and improving the readability of instant messages within the document because the complete message structure is preserved.
[0062] Figure 4 A flowchart illustrating an authentication process 400 for presenting instant messages to a user according to certain embodiments of this disclosure is shown. Figure 4 The process 400 shown is for editing collaborative documents (e.g., in the description) Figure 2 The process of reading and editing instant messages in a collaborative document is described from the perspective of user B). Process 400 begins at box 402. At box 404, the presentation method of the instant message is determined. If the presentation method is a card view, process 400 proceeds to box 406. If the presentation method is a link view, process 400 proceeds to box 424.
[0063] In box 406, determine the operation scenario. For example, if the user selects to switch views, which falls under the view switching scenario, then process 400 proceeds to box 408. If the user clicks on an instant message, which falls under the message source viewing scenario, then process 400 proceeds to box 416. In box 408, confirm that the current operation is view switching. In box 410, determine if the user has permission to edit collaborative documents. If the user has permission to edit collaborative documents, then process 400 proceeds to box 412. In box 412, the presentation mode can be switched from card view to linked view, and process 400 proceeds to box 428. If the user does not have permission to edit collaborative documents, then process 400 proceeds to box 414. In box 414, confirm that the presentation mode cannot be switched from card view to linked view, and also prompt the user with the reason.
[0064] At box 416, it is determined that the current action is to view the message source. At box 418, it is determined whether the user is in the original session of the instant message. If the user is in the original session of the instant message, process 400 proceeds to box 420. At box 420, the message source can be presented in card view. At box 454, in response to the user clicking the instant message presented in card view, process 400 can proceed to box 452.
[0065] If the user is not in the original instant messaging session, process 400 proceeds to box 422. At box 422, the specific source of the message is not displayed in the card view. For example, the name of the group chat from which the message originated is not displayed; only the group chat name is shown. This will be discussed in conjunction with... Figure 9 Describe the difference between displaying the message source in the card view and displaying the message source.
[0066] Figure 9 A schematic diagram of a card view 900, according to certain embodiments of the present disclosure, is shown where a user is not in a group chat session. A predetermined presentation area 904 may be included in the collaborative document 902. The predetermined presentation area 904 may be used to present instant messages pasted into the collaborative document 902. For example, instant messages 912, 916, and 920 are pasted into the collaborative document 902. The information presented around instant message 912 may also include the publisher 906, publication date 908, and publication time 910.
[0067] Similarly, the information displayed around instant message 916 may include the publisher 914, as well as other information or icons (not shown), and the information displayed around instant message 920 may include the publisher 918, as well as other information or icons (not shown). At the bottom of the designated display area 904, the specific sources of instant messages 912, 916, and 920 are not displayed; only the source from the group chat is shown (at box 922). For a clearer understanding, you can also review... Figure 7 Examples, such as Figure 7 The source of the instant message presented is 728, which shows the specific name of the source, such as the First Business Division Group.
[0068] If the instant message comes from a one-on-one chat session, you can combine... Figure 10 and Figure 11 To understand the difference between presenting the message source of a one-on-one chat session in the card view and presenting the message source of a one-on-one chat session in the card view. Figure 10A schematic diagram of a card view 1000 in a one-on-one chat session according to certain embodiments of the present disclosure is shown. In a collaborative document 1002, a card view icon 1004 presented in card view and a link view icon 1006 presented in link view may be included. The presentation mode can be switched by selecting either the card view icon 1004 or the link view icon 1006. It is understood that the card view icon 1004 or the link view icon 1006 does not necessarily need to be constantly displayed in the collaborative document; it may be displayed in response to the mouse or finger being in the active area, and not displayed if the mouse or finger is not in the active area.
[0069] The collaborative document 1002 may include a predefined presentation area 1008. The predefined presentation area 1008 can be used to present instant messages pasted into the collaborative document 1002. For example, instant messages 1018 and 1022 are pasted into the collaborative document 1002. The information presented around instant message 1018 may also include the publisher 1012, publication date 1014, and publication time 1016.
[0070] Similarly, the information displayed around instant message 1022 may also include the publisher 1020, as well as other information or icons (not shown). At the bottom of the designated display area 1008, the specific source of instant messages 1018 and 1022 is displayed, such as a group chat with E (in box 1024).
[0071] Figure 11 A schematic diagram of a card view 1100 not in a one-on-one chat session according to certain embodiments of the present disclosure is shown. A predetermined presentation area 1104 may be included in the collaborative document 1102. The predetermined presentation area 1104 may be used to present instant messages pasted into the collaborative document 1102. For example, instant messages 1114 and 1118 are pasted into the collaborative document 1102. The publisher 1108, publication date 1110, and publication time 1112 may also be presented around instant message 1114.
[0072] Similarly, the information displayed around instant message 1118 may also include the publisher 1116, as well as other information or icons (not shown). At the bottom of the designated display area 1104, the specific source of instant messages 1114 and 1118 is not displayed; only the source from the one-on-one chat is displayed (at box 1120).
[0073] Now let's go back to... Figure 4At box 424, determine the operation scenario. If the scenario involves the user pasting a message link into a collaborative document, or copying a message link from another document into the collaborative document, then process 400 proceeds to box 426. If the scenario involves switching views, such as receiving a user's action to switch views, then process 400 proceeds to box 434. If the scenario involves a click to navigate, such as the user clicking on an instant message, then process 400 proceeds to box 442.
[0074] At box 426, the operation scenario is determined to be copying the message link to a collaborative document. At box 428, it is determined whether the user is in the original instant message session. If the user is in the original instant message session, process 400 proceeds to 430. If the user is not in the original instant message session, process 400 proceeds to 432. At box 430, the message link can be parsed into a title and presented as a text link. At box 432, the message link can be presented as a jump link instead of parsing it into a text link. The following will combine... Figure 12 and Figure 13 Used to describe text links and jump links.
[0075] Figure 12 A schematic diagram of a link view 1200 according to certain embodiments of the present disclosure is shown. In the collaborative document 1202, a card view icon 1204 and a link view icon 1206 may be included. Figure 12 In the document 1202, link view icon 1206 is selected, so text link 1208 is displayed. Text link 1208 is presented as text, which can represent the name of the specific source of the instant message. Hovering the mouse over text link 1208 displays icons for more actions. Clicking the text link, if permissions permit, will jump to the original instant message session window. Figure 13 A schematic diagram of a link view 1300 where the user is not in a session, according to certain embodiments of the present disclosure, is shown. In the collaborative document 1302, the jump link 1304 is presented in the form of a Uniform Resource Locator (URL) address. Clicking this URL link allows navigation to the original session window of the instant message, provided permissions permit.
[0076] Now return to Figure 4 At box 434, the scenario is determined to be a view switch. At box 436, it is determined whether the user has editing permissions for the collaborative document. If the user has editing permissions for the collaborative document, process 400 proceeds to 438. If the user does not have editing permissions for the collaborative document, process 400 proceeds to 440. At box 438, the presentation of the instant message is switched to a card view. At box 440, the view is not switched. In some embodiments, the user may also be prompted with the reason why the switch cannot be performed.
[0077] At box 442, the scenario is determined to be a click jump. At box 444, it is determined whether the user is in the original instant message session. If it is determined that the user is in the original instant message session, process 400 proceeds to box 446. If it is determined that the user is not in the original instant message session, or it cannot be determined, process 400 proceeds to 448. At box 446, a jump is made to the corresponding position (anchor point) in the original session window where the instant message is located. In some embodiments, the instant message can also be highlighted in the original session window.
[0078] At box 448, it is determined whether the user is already logged into the collaborative document account or the instant messaging software account. In some embodiments, both can be the same account, or instant messaging and collaborative documents can use the same software, which are different functions or services of that software. If it is determined that the user is already logged in, process 400 proceeds to box 450. If it is determined that the user is not logged in, process 400 proceeds to box 452. At box 450, the user is prompted that they are not in the instant messaging session and cannot be redirected. At box 452, the user is prompted to log in. At box 456, process 400 ends.
[0079] By implementing process 400, users with document editing permissions can view relevant real-time messages based on their permissions, thus enhancing security. Users with editing permissions can flexibly switch between displaying messages as cards or links, and the viewing experience for other users will change synchronously after the action, providing a more personalized user experience.
[0080] In some embodiments, when obtaining a link to an instant message from a session window, a message content block can be created, and the instant message link can be parsed to obtain the message content. The link type of the instant message link can also be determined, and based on the link type and message content, the message content block can be converted into a message preview content block corresponding to the link type.
[0081] In some embodiments, when retrieving a link to an instant message from a collaborative document, three operations (i) to (iii) are performed. Operation (i) may include resolving the link into a text content block in response to a copy operation of the instant message in the collaborative document, wherein the text content block includes the link to the instant message. Operation (ii) may include, in response to pasting an instant message into the current collaborative document, reading message data from a cached message service; if the user has permission to read the instant message, generating and displaying a message content block based on the text content block; otherwise, displaying the link to the instant message. Operation (iii) may include, in response to pasting an instant message into another collaborative document, retrieving message data from an instant messaging client via a message service; if the user has permission to read the instant message, generating and displaying a message content block based on the text content block; otherwise, displaying the link to the instant message.
[0082] In some embodiments, if a reply 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 to an instant message presented in a collaborative document is received, operations (iv) to (vi) can be performed. Operation (iv) may include generating emoticon information within a message entry of the target message in response to an emoticon response to the target message, with the emoticon information placed at the bottom of the message entry. Operation (v) may include displaying a message including the target message content and the reply content in the collaborative document in response to a reference reply to the target message. Operation (vi) may include displaying a new message including the reply content in the collaborative document in response to a reply to the instant message. In some embodiments, the reply message may also be synchronously displayed in the session corresponding to the instant message.
[0083] In some embodiments, if the instant message is a topic message, a schedule message, or a workflow message, operations (vii) to (ix) are further included. Operation (vii) may include displaying a reply message in the instant message presented in the collaborative document when a new reply message is generated in a topic message in the session. Operation (viii) may include displaying a status change in the instant message presented in the collaborative document when a new status change is generated in a schedule message in the session. Operation (ix) may include displaying a node message in the workflow message presented in the collaborative document when a new node message is generated in a workflow message in the session. 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 of the approval flow, the resulting item change is synchronized to the document. Correspondingly, synchronization is performed when a reply is generated in the email.
[0084] In some embodiments, the instant message presented in the collaborative document may also include the sender's user identification information. If an action is triggered 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.
[0085] In some embodiments, if the instant message includes a link to the target collaborative document, it can be determined whether the current user has reading permissions for the target collaborative document. If the current user has reading permissions 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 reading permissions for the target collaborative document, the link is displayed in the instant message.
[0086] Figure 14 A block diagram of an apparatus 1400 for presenting instant messages according to certain embodiments of the present disclosure is shown. Figure 14 As shown, device 1400 includes a presentation mode determination module 1402, configured to determine the presentation mode of instant messages in a collaborative document, wherein the presentation mode includes a card view or a link view. Device 1400 also includes an instant message presentation module 1404, configured to present instant messages to the user in the collaborative document according to the presentation mode. Device 1400 also includes a session window jump module 1406, configured to jump to the window of the session containing the instant message in response to receiving a jump link for the instant message. Device 1400 may also include other modules to implement the same functionality as method 200; for simplicity, these will not be described further here.
[0087] It is understood that the apparatus 1400 of this disclosure can achieve at least one of the many advantages that can be achieved 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 session containing the instant message, they can jump back to that session, thus eliminating the need for the user to search for the session window, reducing operation steps, and improving the user experience. In some embodiments, users with document editing permissions are also allowed to flexibly switch between displaying the message as a card or a link, and the viewing effect of other viewers will change synchronously after the operation, thereby providing a more personalized user experience.
[0088] Figure 15 A block diagram of a device 1500 for instant messaging according to certain embodiments of the present disclosure is shown. Device 1500 may be the device or apparatus described in the embodiments of the present disclosure. Figure 15As shown, device 1500 includes a central processing unit (CPU) 1501, which can perform various appropriate actions and processes according to computer program instructions stored in read-only memory (ROM) 1502 or loaded from storage unit 1508 into random access memory (RAM) 1503. Various programs and data required for the operation of device 1500 can also be stored in RAM 1503. CPU 1501, ROM 1502, and RAM 1503 are interconnected via bus 1504. Input / output (I / O) interface 1505 is also connected to bus 1504. Although not shown in... Figure 15 As shown, device 1500 may also include a coprocessor.
[0089] Multiple components in device 1500 are connected to I / O interface 1505, including: input unit 1506, such as keyboard, mouse, etc.; output unit 1507, such as various types of monitors, speakers, etc.; storage unit 1508, such as disk, optical disk, etc.; and communication unit 1509, such as network card, modem, wireless transceiver, etc. Communication unit 1509 allows device 1500 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0090] The various methods or processes described above can be executed by CPU 1501. For example, in some embodiments, the methods may be implemented as computer software programs tangibly contained in a machine-readable medium, such as storage unit 1508. In some embodiments, part or all of the computer program may be loaded and / or installed on device 1500 via ROM 1502 and / or communication unit 1509. When the computer program is loaded into RAM 1503 and executed by CPU 1501, one or more steps or actions in the methods or processes described above may be performed.
[0091] In some embodiments, the methods and processes described above can be implemented as a computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for performing various aspects of this disclosure.
[0092] Computer-readable storage media can be tangible devices capable of holding and storing instructions for use by an instruction execution device. Computer-readable storage media can be, for example, but not limited to, electrical storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any suitable combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disc read-only memory (CD-ROM), digital multifunction disc (DVD), memory sticks, floppy disks, mechanical encoding devices, such as punch cards or recessed protrusions storing instructions thereon, and any suitable combination thereof. The computer-readable storage media used herein are not to be construed as transient signals themselves, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., light pulses through fiber optic cables), or electrical signals transmitted through wires.
[0093] The computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network, such as the Internet, a local area network (LAN), a wide area network (WAN), and / or a wireless network, to an external computer or external storage device. The network may include copper cables, fiber optic cables, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing / processing device.
[0094] Computer program instructions used to perform the operations of this disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, status setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages and conventional procedural programming languages. The computer-readable program instructions may execute entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, electronic circuitry, such as programmable logic circuitry, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), is personalized by utilizing the status information of the computer-readable program instructions to implement various aspects of this disclosure.
[0095] 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 apparatus to produce a machine such that, when executed by the processing unit of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner. Thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.
[0096] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be 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 perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.
[0097] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of devices, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction containing one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0098] The various embodiments of this disclosure have been described above. These descriptions are exemplary and not exhaustive, nor are they 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 chosen to best explain the principles, practical applications, or technical improvements to the technology in the market, or to enable others skilled in the art to understand the embodiments disclosed herein.
[0099] The following are some example implementations of this disclosure.
[0100] Example 1. A method for presenting instant messages, comprising:
[0101] Determine how instant messages are presented in collaborative documents, including either a card view or a link view;
[0102] In the collaborative document, the instant message is presented to the user according to the presentation method; and
[0103] In response to receiving a link to the instant message, the system jumps to the window of the session containing the instant message.
[0104] Example 2. According to 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.
[0105] Example 3. According to the method described in Examples 1-2, the link view includes text links generated based on the source of the instant message, and the text links are associated with the jump links.
[0106] Example 4. The method according to any one of Examples 1-3 further includes:
[0107] Obtain the user's choice of how the instant message is presented in the collaborative document; or
[0108] In response to the user not selecting the presentation method, the presentation method is determined to be the card view.
[0109] Example 5. The method according to any one of Examples 1-4 further includes:
[0110] Obtain the user's permission to edit the collaborative document;
[0111] Receive the user's action of switching the presentation mode; and
[0112] Based on the switched presentation method, the instant message is presented to the user in the collaborative document.
[0113] Example 6. According to any one of Examples 1-5, the jump to the window of the session where the instant message is located includes:
[0114] In response to determining that the instant message belongs to a one-on-one chat session or a private group session, and that the user is a member of the session, the system navigates to the window, locates and highlights the instant message within the window of the session; or,
[0115] In response to determining that the session containing the instant message is a one-on-one chat session or a private group session, and that the user is not in the session containing the instant message, the user is prompted that they cannot be redirected; or...
[0116] In response to determining that the session containing the instant message is a public group session, the system navigates to the window containing the instant message, locates and highlights the instant message within that window.
[0117] Example 7. The method according to any one of Examples 1-6, wherein the source of the instant message includes one of the following:
[0118] Group chat messages from a group chat session; or
[0119] One-on-one messages from a one-on-one chat session; or
[0120] Instant messages that are already presented in the collaborative document.
[0121] Example 8. The method according to any one of Examples 1-7, wherein the presentation mode is the card view, and the method further includes:
[0122] Determine whether the user is in the session; and
[0123] In response to determining that the user is in the session, the name of the session is presented to the user; or
[0124] In response to determining that the user is not in the session, the source of the instant message is presented to the user, but the name of the session is not presented.
[0125] Example 9. The method according to any one of Examples 1-8, wherein the presentation mode is the link view, and the method further includes:
[0126] Determine whether the user is in the session; and
[0127] In response to determining that the user is in the session, the text link is presented to the user; or
[0128] 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, instead of the text link.
[0129] Example 10. The method according to any one of Examples 1-9, wherein presenting the instant message to the user in the collaborative document according to the presentation method includes:
[0130] Obtain the pixel height of the instant message;
[0131] Determine the threshold height of the predetermined rendering area in the collaborative document; and
[0132] In response to the pixel height being greater than a threshold height, a portion of the instant message matching the threshold height is presented in the collaborative document.
[0133] Example 11. Presenting a portion of the instant message in the collaborative document that matches the threshold height according to any one of Examples 1-10 includes:
[0134] A first portion of the instant message is determined, wherein the pixel height of the first portion is less than or equal to the threshold height, and the first portion is presented by default in the predetermined presentation area;
[0135] Generate a side scrollbar, wherein the side scrollbar is used to control the displayable portion of the instant message;
[0136] The first portion is presented in the predetermined presentation area on the screen; and
[0137] In response to receiving an action of scrolling the side scroll bar, a second portion of the instant message is presented, wherein the second portion is associated with the scroll position of the side scroll bar.
[0138] Example 12. The method according to any one of Examples 1-11 further includes:
[0139] Determine whether the user is already logged into the collaborative document's account; and
[0140] In response to the user not being logged in, the user is prompted to log in to the collaborative document's account.
[0141] Example 13. The method according to any one of Examples 1-12, wherein the previewable card includes at least one of the following:
[0142] The avatar of the sender of the instant message;
[0143] The name of the publisher of the instant message;
[0144] The time or date the instant message was published;
[0145] The content of the instant message; or
[0146] Comments on the instant message.
[0147] Example 14. According to any one of Examples 1-13, if a link to the instant message is obtained from a session window, the instant message is presented to the user in the collaborative document according to the presentation method, including:
[0148] Create a message content block, parse the link of the instant message, and obtain the message content;
[0149] Determine the link type of the instant message link, and based on the link type and the message content, convert the message content block into a message preview content block corresponding to the link type.
[0150] Example 15. According to any one of Examples 1-14, if a link to the instant message is obtained from a collaborative document, the instant message is presented to the user in the collaborative document according to the presentation method, including:
[0151] In response to a copy operation of an instant message in the collaborative document, the link is parsed into a text content block, the text content block including the link of the instant message;
[0152] In response to pasting the instant message into the current collaborative document, the message data in the cache is read through the message service. 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...
[0153] In response to pasting the instant message into other collaborative documents, message data is retrieved from the instant messaging client via the messaging service. 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.
[0154] Example 16. The method according to any one of Examples 1-15 further includes:
[0155] In response to a reply to an instant message presented in the collaborative document, a reply message is displayed in the collaborative document.
[0156] Example 17. According to any one of Examples 1-16, in response to a reply operation to an instant message presented in the collaborative document, displaying a reply message in the collaborative document includes:
[0157] In response to an emoji in the target message, emoji information is generated within the message entry of the target message, and the emoji information is placed at the bottom of the message entry; or,
[0158] In response to a reference reply to the target message, a message including the content of the target message and the reply content is displayed in the collaborative document; or,
[0159] In response to a reply to the instant message, a new message including the reply content is displayed in the collaborative document.
[0160] Example 18. The method according to any one of Examples 1-17 further includes:
[0161] The reply message will be displayed synchronously in the session corresponding to the instant message.
[0162] Example 19. The method according to any one of Examples 1-18, in response to the instant message being a topic message, a schedule message, or a workflow message, further includes any one of the following:
[0163] When a new reply message is generated from the topic message in the session, the reply message is displayed in the instant message presented in the collaborative document; or,
[0164] When a new status change occurs in the schedule message during the session, the status change is displayed in the instant message presented in the collaborative document; or,
[0165] When a new node message is generated in the workflow message of the session, the node message is displayed in the workflow message presented in the collaborative document.
[0166] Example 20. According to any one of Examples 1-19, the instant message presented in the collaborative document includes user identification information of the message sender;
[0167] In response to a trigger operation on the user identification information, the user's contact card is displayed; in response to a trigger operation on a preset control in the contact card, an instant messaging session window with the user is displayed.
[0168] Example 21. The method according to any one of Examples 1-20, wherein the instant message includes a link to the target collaborative document;
[0169] Determine whether the current user has reading permissions for the target collaborative document;
[0170] If available, the document preview information corresponding to the link will be displayed in the instant message;
[0171] If not available, the link will be displayed in the instant message.
[0172] Example 22. An apparatus for presenting instant messages, comprising:
[0173] The presentation mode determination module is configured to determine the presentation mode of instant messages in collaborative documents, wherein the presentation mode includes card view or link view;
[0174] An instant messaging presentation module is configured to present the instant message to the user in the collaborative document according to the presentation method; and
[0175] The session window jump module is configured to jump to the window of the session containing the instant message in response to receiving a jump link for the instant message.
[0176] Example 23. An electronic device comprising:
[0177] Processor; and
[0178] A memory coupled to the processor, the memory having instructions stored therein, the instructions which, when executed by the processor, cause the electronic device to perform actions, the actions including:
[0179] Determine how instant messages are presented in collaborative documents, including either a card view or a link view;
[0180] In the collaborative document, the instant message is presented to the user according to the presentation method; and
[0181] In response to receiving a link to the instant message, the system jumps to the window of the session containing the instant message.
[0182] Example 24. A computer-readable storage medium having stored thereon one or more computer instructions, 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.
[0183] 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 according to any one of Examples 1 to 21.
[0184] Although this disclosure has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.
Claims
1. A method for presenting instant messages, comprising: Determine how instant messages are presented in collaborative documents that support multi-user collaborative editing, wherein the presentation method includes card view or link view; In the collaborative document, the instant message is presented to the user according to the presentation method. as well as In response to receiving a redirect link for the instant message, the system navigates to the window of the session containing the instant message. In the collaborative document, presenting the instant message to the user according to the presentation method includes: in response to a copy operation of the instant message in the collaborative document, parsing the link of the instant message into a text content block, the text content block including the link of the instant message; in response to pasting the instant message into the current collaborative document, reading message data from the cache through the message service; 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 of the instant message.
2. The method of claim 1, wherein the card view comprises a previewable card rendered based on the content of the instant message, the previewable card further comprising a text link generated based on the source of the instant message, the text link being associated with the jump link.
3. The method of claim 1, wherein the link view includes text links generated based on the source of the instant message, the text links being associated with the jump links.
4. The method according to claim 1, further comprising: Obtain the user's choice regarding how the instant message is presented in the collaborative document; or In response to the user not selecting the presentation method, the presentation method is determined to be the card view.
5. The method according to claim 4, further comprising: Obtain the user's permission to edit the collaborative document; Receive the user's action of switching the presentation mode; as well as Based on the switched presentation method, the instant message is presented to the user in the collaborative document.
6. The method according to claim 1, wherein jumping to the window of the session containing the instant message comprises: In response to determining that the instant message is in a one-on-one chat session or a private group session, and that the user is a member of the session, the system jumps to the window, locates and highlights the instant message in the window of the session; or, In response to determining that the session containing the instant message is a one-on-one chat session or a private group session, and that the user is not in the session containing the instant message, the user is prompted that they cannot be redirected; or... In response to determining that the session containing the instant message is a public group session, the system navigates to the window in which the instant message is located and highlighted.
7. The method of claim 2 or 3, wherein the source of the instant message includes one of the following: Group chat messages from a group chat session; or, One-on-one messages from a one-on-one chat session; or Instant messages that are already presented in the collaborative document.
8. The method of claim 7, wherein the presentation mode is the card view, and the method further comprises: Determine whether the user is in the session; as well as In response to determining that the user is in the session, the name of the session is presented to the user; or In response to determining that the user is not in the session, the source of the instant message is presented to the user, but the name of the session is not presented.
9. The method of claim 7, wherein the presentation mode is the link view, and the method further comprises: Determine whether the user is in the session; as well as In response to determining that the user is in the session, the text link is presented 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, instead of the text link.
10. The method of claim 1, wherein presenting the instant message to the user in the collaborative document according to the presentation method comprises: Obtain the pixel height of the instant message; Determine the threshold height of a predetermined rendering area in the collaborative document; as well as In response to the pixel height being greater than a threshold height, a portion of the instant message matching the threshold height is presented in the collaborative document.
11. The method of claim 10, wherein presenting a portion of the instant message in the collaborative document that matches the threshold height comprises: A first portion of the instant message is determined, wherein the pixel height of the first portion is less than or equal to the threshold height, and the first portion is presented by default in the predetermined presentation area; Generate a side scrollbar, wherein the side scrollbar is used to control the displayable portion of the instant message; The first portion is presented in the predetermined presentation area on the screen; as well as In response to receiving an action of scrolling the side scroll bar, a second portion of the instant message is presented, wherein the second portion is associated with the scroll position of the side scroll bar.
12. The method according to claim 1, further comprising: Determine whether the user has already logged into the account for the collaborative document; as well as In response to the user not being logged in, the user is prompted to log in to the collaborative document's account.
13. The method of claim 2, wherein the previewable card comprises at least one of the following: The avatar of the sender of the instant message; The name of the publisher of the instant message; The time or date the instant message was published; The content of the instant message; or Comments on the instant message.
14. The method according to claim 1, wherein if a link to the instant message is obtained from a session window, the instant message is presented to the user in the collaborative document according to the presentation method, comprising: Create a message content block, parse the link of the instant message, and obtain the message content; Determine the link type of the instant message link, and based on the link type and the message content, convert the message content block into a message preview content block corresponding to the link type.
15. The method according to claim 1, wherein if a link to the instant message is obtained from a collaborative document, and the instant message is presented to the user in the collaborative document according to the presentation method, the method further includes: In response to pasting the instant message into other collaborative documents, message data is obtained from the instant messaging client through the message service. If the user has permission to read the instant message, a message content block is generated and displayed based on the text content block. If the user does not have permission to read the instant message, a link to the instant message will be displayed.
16. The method according to claim 1, further comprising: In response to a reply to an instant message presented in the collaborative document, a reply message is displayed in the collaborative document.
17. The method of claim 16, wherein in response to a reply operation to an instant message presented in the collaborative document, a reply message is displayed in the collaborative document, comprising: In response to an emoji in a target message, emoji information is generated within the message entry of the target message, and the emoji information is placed at the bottom of the message entry; or, In response to a reference reply to the target message, a message including the content of the target message and the reply content is displayed in the collaborative document; or, In response to a 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 will be displayed synchronously in the session corresponding to the instant message.
19. The method of claim 1, further comprising, in response to the instant message being a topic message, a schedule message, or a workflow message, any one of the following: When a new reply message is generated from the topic message in the session, the reply message is displayed in the instant message presented in the collaborative document; or, When a new status change occurs in the schedule message during the session, the status change is displayed in the instant message presented in the collaborative document; or, When a new node message is generated in the workflow message of the session, 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 trigger operation on the user identification information, the user's contact card is displayed; in response to a trigger 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, wherein the instant message includes a link to the target collaborative document; Determine whether the current user has reading permissions for the target collaborative document; If available, the document preview information corresponding to the link will be displayed in the instant message; If not available, the link will be displayed in the instant message.
22. An instant messaging device, comprising: The presentation mode determination module is configured to determine the presentation mode of instant messages in collaborative documents that support multi-user collaborative editing, wherein the presentation mode includes card view or link view; The instant message presentation module is configured to present the instant message to the user in the collaborative document according to the presentation method; as well as The session window navigation module is configured to navigate to the window of the session containing the instant message in response to receiving a navigation link for the instant message. The instant message presentation module is also configured to, in response to a copy operation of an instant message in the collaborative document, parse the link of the instant message into a text content block, wherein the text content block includes the link of the instant message; In response to pasting the instant message into the current collaborative document, the system reads the message data from the cache via the message service. 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.
23. An electronic device, comprising: processor; as well as A memory coupled to the processor, the memory having instructions stored therein, 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 stored thereon computer-executable instructions, 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
Message processing method and device, storage medium and electronic device
CN110377199A
Message forwarding method and device, computer equipment and storage medium
CN112286608A
Schedule sharing method and device and equipment
CN113888104A
Message processing method and device, equipment and medium
CN115022269A
Information interaction method and device and electronic equipment
CN115250259A