A method, apparatus, and device for processing instant messages.
By obtaining the target message link from the instant messaging application and displaying it in the target application, the problem of low efficiency in sharing instant messages between different applications is solved, achieving efficient message flow and improved user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-29
- Publication Date
- 2026-03-13
AI Technical Summary
Existing instant messaging technologies cannot efficiently share and display message content across different applications, resulting in high comprehension costs for users and failing to meet users' higher demands for message forwarding.
By obtaining the target message link from the instant messaging application and adding it to the page within the target application, the target message can be displayed as a link, supporting the display of message links and related information in cloud documents, calendars, emails, browsers, and other instant messaging applications.
It improves message flow and user experience, allowing users to view the context of messages within the target application, reducing the cost of understanding them.
Smart Images

Figure CN116418770B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and specifically to a method, apparatus, and device for processing instant messages. Background Technology
[0002] Currently, the main extension capabilities for instant messaging (IM) are forwarding between different sessions to meet users' needs for sharing instant messages across different sessions. However, these extension capabilities are relatively limited, only enabling the forwarding of instant messaging messages between different sessions, and cannot meet users' higher message forwarding needs. Summary of the Invention
[0003] In view of this, embodiments of this application provide a method, apparatus, and device for processing instant messages, so as to enable instant messages to be shared to other applications and enhance the consumption capability of instant messages.
[0004] To achieve the above objectives, the technical solutions provided in this application are as follows:
[0005] In a first aspect of this application, a method for processing instant messages is provided, which may include:
[0006] In response to a first operation triggered by a target message in a first session of an instant messaging application, obtain the target message link corresponding to the target message;
[0007] In response to a second action triggered in the target application, the target message link is added to the page of the target application.
[0008] In a second aspect of this application, an apparatus for processing instant messages is provided, the apparatus comprising:
[0009] The acquisition unit is configured to, in response to a first operation triggered by a target message in a first session of an instant messaging application, acquire the target message link corresponding to the target message;
[0010] An adding unit is used to add the target message link to the page of the target application in response to a second operation triggered in the target application.
[0011] In a third aspect of this application, an electronic device is provided, the device comprising: a processor and a memory;
[0012] The memory is used to store instructions or computer programs;
[0013] The processor is configured to execute the instructions or computer program in the memory to cause the electronic device to perform the instant messaging method described in the first aspect.
[0014] In a fourth aspect of this application, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium, and when the instructions are executed on a device, the device causes the device to perform the instant messaging processing method described in the first aspect.
[0015] In a fifth aspect of this application, a computer program product is provided that, when run on a computer, causes the computer to execute the instant messaging processing method described in the first aspect.
[0016] Therefore, the embodiments of this application have the following beneficial effects:
[0017] In this embodiment, for any instant message in any session, in response to a first operation triggered by the user for a target message in the first session, the target message link corresponding to the target message is obtained. After obtaining the target message link, in response to a second operation triggered by the user in the target application, the target message link is added to the page of the target application so that the target message link is displayed on the page of the target application. That is, this application enhances message flow and improves user experience by making target messages linked, allowing the target message link corresponding to the target message to be added to other applications. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 A flowchart illustrating an instant messaging processing method provided in this application embodiment;
[0020] Figure 2a This is a schematic diagram of a single target message determination scenario provided in an embodiment of this application;
[0021] Figure 2b This is a schematic diagram illustrating a scenario for determining multiple target messages provided in an embodiment of this application.
[0022] Figure 2c This is a schematic diagram illustrating a target message link display method provided in an embodiment of this application;
[0023] Figure 2d This application provides an embodiment of an example of adding a target message link to a cloud document.
[0024] Figure 3a A schematic diagram of a title card display provided in an embodiment of this application;
[0025] Figure 3b This application provides a schematic diagram of a content card display as an embodiment of the present application.
[0026] Figure 3c Another schematic diagram of content card display provided in this application embodiment;
[0027] Figure 3d This application provides an embodiment of a schematic diagram illustrating the display of a target message link in an instant messaging (IM) system.
[0028] Figure 3e This is a schematic diagram of an unauthorized access target message provided in an embodiment of this application;
[0029] Figure 4 A schematic diagram of an instant messaging processing device provided in an embodiment of this application;
[0030] Figure 5 This is a schematic diagram of an electronic device structure provided in an embodiment of this application. Detailed Implementation
[0031] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present application.
[0032] Currently, forwarding or sharing instant messages within an IM session is limited to between different sessions. When sharing these messages in other applications, the only options are copying or taking screenshots. However, this method limits users to seeing only a portion of the screenshot or copied text, preventing them from grasping the full message and resulting in a high comprehension cost. For example, when User A is using a cloud document for a product presentation and needs to reference feedback from other users in the IM session, they would paste screenshots of the feedback into the document. This requires formatting the screenshots, and the reader can only view a portion of the information, failing to grasp the full picture.
[0033] Based on this, embodiments of this application provide a method for processing instant messaging. When a user needs to share a target message in an IM to other target applications, in response to the user's triggering operation on the target message, the method obtains the target message link corresponding to the target message. When the user triggers a paste or add operation in the target application, the target message link is added to the target application's page, so that the target application can parse the target message link and display the corresponding target message on the target application's page. Furthermore, when the target message link is triggered on the target application's page, it can jump to the page of the first session where the target message is located, thereby allowing the user to view the context of the target message, reducing the message understanding cost and improving the user experience.
[0034] It should be noted that the target application mentioned above can be a cloud document, calendar, email, browser, or other instant messaging application. Alternatively, the target application can be an instant messaging application, and the page of the target application can be a page other than the conversation page of the first session. Specifically, the other page can be the conversation page of another session, or it can be a page related to the first session other than the conversation page, such as the group announcement of the first session. That is, this application can add the target message link to the page of any of the above applications.
[0035] To facilitate understanding of the technical solutions provided in the embodiments of this application, the following description will be provided in conjunction with the accompanying drawings.
[0036] See Figure 1 The figure is a flowchart of an instant messaging processing method provided in an embodiment of this application, as shown below. Figure 1 As shown, this method can be executed by an instant messaging device, which can be a server, an electronic device, or other devices, without limitation. The server can be a cloud server or server cluster, or other devices with storage and computing capabilities. Electronic devices can include mobile phones, tablets, desktop computers, laptops, in-vehicle terminals, wearable electronic devices, all-in-one machines, smart home devices, and other devices with communication capabilities, or devices simulated by virtual machines or simulators. Specifically, the method can include:
[0037] S101: In response to a first operation triggered by a target message in a first session of an instant messaging application, obtain the target message link corresponding to the target message.
[0038] In this embodiment, a user can trigger a first operation on a target message in any session of an instant messaging application. In response to the first operation, the user obtains the target message link corresponding to the target message. The first operation can be determined based on the actual application situation; for example, the first operation might be clicking the "Copy Link" component corresponding to the target message. Specifically, when the user selects the target message to be shared, the "Copy Link" component is displayed, and in response to the user's triggering operation on the copy link component, the user obtains the target message link corresponding to the target message.
[0039] The first session can be a regular chat group or a topic group with topic functionality. Furthermore, the target message can be an instant message in the chat group or a main post or reply message in the topic group. It should be noted that the target message is an instant message that has already been displayed in the first session.
[0040] When a user triggers the first action on a single target message, the link to that single target message is retrieved. For example... Figure 2a As shown, when a target message to be shared is selected, in response to the user's selection, a page including a copy link component is displayed. The user can obtain the target message link corresponding to that target message by clicking on the copy link component. When the user triggers the first operation for multiple target messages at once, the message link corresponding to each of the multiple target messages is obtained; a target message link is generated based on the message links corresponding to each of the multiple target messages, and this target message link is used to indicate the multiple target messages. For example... Figure 2b As shown, when a user selects multiple target messages at once, the system responds to the user's selection by displaying a copy link component. The user can trigger the copy link component to retrieve the message link corresponding to each of the multiple target messages.
[0041] Specifically, when a user selects multiple target messages at once, and the number of messages selected in a single instance equals a preset value, the user will be restricted from continuing to select instant messages. When the number of target messages to be selected exceeds the preset value, a first prompt message will be displayed to inform the user that the maximum number of messages that can be selected is the preset value.
[0042] Optionally, after obtaining the target message link corresponding to the target message, a second prompt message can be displayed to notify the user that the target message link has been copied to the clipboard.
[0043] S102: In response to a second action triggered in the target application, add the target message link to the target application's page.
[0044] After obtaining the target message link, when the user triggers the second action within the target application, the target message link is added to the target application's page. Once the target application obtains the target message link, it can parse the link to retrieve the target message and then display it on its page. The second action can include either a paste operation or an add operation.
[0045] When a target message link is added to a page of the target application, the target message link or its corresponding text link can be displayed on the page. This text link can include the target instant message, the user identifier that sent the instant message, or the source of the instant message. In other words, the target message link can be displayed on the target application's page, for example, by displaying the Uniform Resource Locator (URL). Alternatively, a clickable text link can be displayed on the target application's page. Figure 2c As shown, taking other sessions in IM as the target application as an example, the first image shows the URL, the second image shows the icon and message content, and the third image shows the icon and message source.
[0046] In practical applications, further display distinctions can be made for different application scenarios. Responding to users adding target message links in cloud documents, the target message link, the target message itself, and its associated information are displayed within the cloud document. There are two ways to add target message links in cloud documents: one is by pasting the target message link into the cloud document using a keyboard shortcut. For example, in mobile applications, long-pressing in the cloud document's input mode activates the paste component, allowing the target message link to be pasted into the cloud document; in PC applications, right-clicking and pasting in input mode or using the keyboard shortcut allows pasting into the cloud document. The other method is by triggering the add component in the cloud document to activate the new chat history component, which then pastes the target message link into the displayed input box.
[0047] For example Figure 2d As shown, by triggering the "+" component in the cloud document, a selection page is displayed, which includes a chat history component. By triggering the chat history component, an input box is displayed, and the target message link is pasted into the input box.
[0048] The associated information can include the source of the target message, the user identifier who sent the target message, and the sending time. That is, when a user adds a link to a target message in a cloud document, the target message link, the target message (message content), the source of the target message, the user identifier who sent the target message, and the sending time can be displayed in the cloud document.
[0049] In practice, the target message link, the target instant message, and the associated information of the target instant message can be displayed in the cloud document in the following ways: one is to display it as an information block; the other is to implement it as a clipping method.
[0050] For the first display method, after a user adds the target message link to a cloud document, a placeholder box is displayed at the addition location. This placeholder box displays the target message link, the target message itself, and its associated information. The placeholder box can include a title card and a content card. The title card displays the target message link, and the content card displays the target message and its associated information. Furthermore, the title card can also include a title name and a copy component. The title name is determined based on the message source, and the copy component copies the target message link. Specifically, when the message originates from a one-on-one chat, the title name is "Conversation Record of the First and Second Users," where the first and second users are the two parties in the one-on-one chat. When the message originates from a group chat, the title name is "Group Chat Conversation Record." When the message originates from the main post in a topic group, the title name is "Topic of the Third User," where the third user is the user who initiated the topic. When the message originates from a reply in a topic group, the title name is "Group Conversation Record." Furthermore, the title card can also include a "Enter Conversation" component, which allows the user to access the conversation page containing the target instant message.
[0051] For example Figure 3a The illustrated title card diagram shows that title card 300 may include title name 301, copy component 302, and enter session component 303. See also... Figure 3b The illustrated content card includes a user identifier 304 and a sending time 305. The user identifier 304 may include the user's avatar, user name, and user nickname. The user avatar displayed in the content card is clickable. In response to a trigger action on the user's avatar displayed in the corresponding content card, the user's personal profile page corresponding to that avatar is displayed.
[0052] When using content cards to display a target message and its associated information, the height of the content card can be predefined. When the height of the target message is greater than the height of the content card, a sliding component or a view component can be displayed, allowing users to view the context by sliding the component or view the complete message by triggering the view component. For example... Figure 3c As shown, when the text height of the target message is greater than the height of the content card, the "View Full Chat History" component is displayed. When the user clicks this component, a modal window pops up, allowing them to scroll through all the instant messages.
[0053] Specifically, in response to a user having access permissions to the cloud document, the user can comment on the target message in the content card. In response to the user's comment action, the cloud document retrieves the user's comments on the target message and completes the corresponding processing. Specifically, the cloud document retrieves the user's comments on the target message and displays the added comments in the cloud document's comment content display area.
[0054] For the second display method, after a user adds a target message link to a cloud document, the target message link, the target message itself, and its associated information will be displayed directly, without the need for placeholder boxes. Specifically, the target message link is displayed in the title card, and the target message and its associated information are displayed in the content display area. The title card may also include a title name and a copy component; the title name is determined based on the source of the target message, and the copy component is used to copy the target message link. All target messages can be displayed in a tiled manner within the cloud document in the content display area.
[0055] Optionally, when a user has editing permissions on the cloud document, they can edit the target message in the content display area. In response to the user's edit operation, the system receives the edit operation triggered by the user on the target message and completes the corresponding processing. Specifically, when a user edits the target message displayed in the cloud document, the system retrieves the edited message and displays it in the content display area. Furthermore, with editing permissions, users can also add comments and / or tags to the target message in the content display area. In response to the comments added by the user, the cloud document will display the added comments in the comment content display area, or display the user's added tags in the content display area. Tags can include highlighting, underlining, etc.
[0056] Optionally, when a user has access to the cloud document, the user can highlight and annotate the target message in the content display area. In response to the user's trigger action, the cloud document receives the comments and / or annotations added by the user to the target message in the content display area and completes the corresponding processing. Specifically, the cloud document obtains the comments added by the user to the target message and displays the added comments in the comment content display area, or obtains the annotations added to the target message and displays them in the content display area.
[0057] When a user adds a target message link in another session (second session) and that target message link corresponds to multiple target messages, the target message link and a preset number of target messages will be displayed in that second session. To avoid the target message link corresponding to a large number of target messages occupying a large area of the session page during display, a preset number of messages can be set. When the number of target messages corresponding to a target message link is greater than the preset number, the preset number of target messages will be displayed on the second session page; when the number of target messages corresponding to a target message link is less than or equal to the preset number, all target messages will be displayed on the second session page.
[0058] For example Figure 3d The example shows adding a target message link in the second session of the IM, and displaying the target message chain and the target message corresponding to the target message link on the second session's page.
[0059] When a user adds a target message link to their browser, the system checks if the target client is installed on the browser's device. If the target client exists locally on the device, it is launched. If the user has access to the target message and is logged into the target client, the target message is displayed on the target client based on the link. In other words, when a user adds a copied target message link to their browser, and the user's device has the target client installed and has access to the target message, the target client is used to display the target message. The target client integrates an instant messaging application, which can be a mobile client or a PC client. Specifically, the target client can be enterprise collaboration software, which refers to a suite of software integrating multiple functions such as address book, instant messaging tools, conferencing, cloud documents, approvals, cloud storage, email, and calendar. That is, when the target message link is added to the browser, if the target client exists on the browser's device and the access permissions and target client login conditions are met, the target client will redirect the user to the first session's page to view the target message.
[0060] When a user adds the target message link to a browser and the target client is not present on the browser's terminal device, the web client is launched. In response to the user having access to the target message and being logged into the web client, the target message is displayed on the web client according to the target message link. That is, when the target message link is added to a browser, if the target client is not present on the browser's terminal device, the web client redirects the user to the first session's session page to view the target message.
[0061] For cases where access is denied, a pop-up window can be used to block redirection. If the target client or web client is not already logged in, the system should launch the target client or web client and redirect it to the login page to log in. The target client can be collaborative work software, a multi-functional application integrating IM, cloud documents, a work platform, calendar, and video conferencing.
[0062] Optionally, in response to a user triggering a target message link in the target application, the user is redirected to the session page of the first session containing the target message. When a user adds a target message link to the target application, in response to the user's triggering of the target message link, the user is redirected to the session page of the first session containing the target message. Specifically, to ensure information security, when a user has access rights to the target message, in response to the user triggering the target message link, the user is redirected to the page of the first session containing the target message. When a user does not have access rights to the target message, a pop-up window can be used to block access. Figure 3e As shown, when a user does not have permission to access the target message, a pop-up window is displayed in response to the user's triggering action on the target message link. The pop-up window may include a title "Permission Restriction", a content "Sorry, no permission at the moment", and triggerable operation components.
[0063] As can be seen, in response to a first operation triggered by a user for a target message in the first session, the target message link corresponding to that target message is obtained. After obtaining the target message link, in response to a second operation triggered by the user in the target application, the target message link is added to the target application's page so that it can be displayed on the target application's page. Furthermore, when a user triggers the target message link added in the target application, they can be redirected to the page of the first session where the target message is located, allowing the user to view the context information of the target message. That is, this application, by linking target messages, enables the target message link corresponding to the target message to be added to other applications, thereby realizing the sharing of target messages to other applications. Furthermore, the target message link can also be used for message tracing, enhancing message flow and improving the user experience.
[0064] In practice, when a shared target message is retracted in the session page of the source session (first session), in response to the triggering operation of the target message link, you can continue to jump to the position where the target message was retracted.
[0065] For target message links that are shared to other IM sessions, the following permission scenarios can be considered:
[0066] When the target message is a one-on-one chat message, the users with message access permissions are the two parties in the one-on-one chat.
[0067] When the target message is a message in a public group, the users with message access permissions are those currently within the tenant. In response to any user within the tenant clicking the target message link and joining the public group, the user is redirected to the target message's location on the first session page.
[0068] When the target message is a message in a public group, the user with message access permissions is the user currently using the tenant. In response to any user within the tenant clicking the target message link and joining the group, the page will navigate to the location of the target message on the first session page.
[0069] When the target message is a message from a private group or private subgroup, the user with message access permissions is a user within that private group or subgroup. In response to a user in the group clicking the target message link, the user is redirected to the location of the target message on the first session page.
[0070] In this application embodiment, the type of target message can include a variety of formats, such as message text, images, multimedia files, emails, calendars, emoticons, tags, etc. Multimedia files include audio / video files.
[0071] Based on the above method embodiments, this application provides an instant messaging processing apparatus and device, which will be described below with reference to the accompanying drawings.
[0072] See Figure 4 This figure is a structural diagram of an instant messaging processing device provided in one of the embodiments, such as... Figure 4 As shown, the device may include an acquisition unit 401 and an addition unit 402.
[0073] The acquisition unit 401 is configured to acquire the target message link corresponding to the target message in response to a first operation triggered by a target message in a first session of an instant messaging application.
[0074] Adding unit 402 is used to add the target message link to the page of the target application in response to a second operation triggered in the target application.
[0075] In one specific implementation, the device further includes: a display unit;
[0076] The display unit is used to display the target message on the page of the target application.
[0077] In one specific implementation, the device further includes: a jump unit;
[0078] The redirection unit is used to respond to the user's operation of triggering the target message link in the target application and redirect to the page of the first session where the target message is located.
[0079] In one specific implementation, the jump unit is specifically used to respond to a user triggering the target message link in the target application and the user having access to the first session, by jumping to the session page of the first session where the target message is located.
[0080] In one specific implementation, the target application is a cloud document, calendar, email, browser, or other instant messaging application; or, the target application is the instant messaging application, and the page of the target application is a page other than the session page of the first session.
[0081] In one specific implementation, the acquisition unit 401 is specifically used to respond to a first operation triggered by the user for multiple target messages, acquire the message link corresponding to each target message; generate target message links according to the message links corresponding to each of the multiple target messages, and the target message links are used to indicate the multiple target messages.
[0082] In one specific implementation, the adding unit 402 is specifically used to respond to a second operation triggered in the target application by displaying the target message link or a text link corresponding to the target message link on the page of the target application. The text link includes at least one of the target message, the user identifier that sent the target message, or the source information of the target message.
[0083] In one specific implementation, the display unit is specifically used to display the target message link, the target message, and the associated information corresponding to the target message in the cloud document in response to the user adding the target message link in the cloud document.
[0084] In one specific implementation, the associated information includes one or more of the following: the source of the target message, the user identifier that sent the target message, and the sending time.
[0085] In one specific implementation, the display unit is specifically used to display the target message link, the target message, and the associated information corresponding to the target message in the placeholder box of the cloud document.
[0086] In one specific implementation, the placeholder includes a title card and a content card. The title card is used to display the target message link, and the content card is used to display the target message and the associated information corresponding to the target message.
[0087] In one specific implementation, the display unit is further configured to display a sliding component or a viewing component in response to the height of the target message being greater than the height of the content card.
[0088] In one specific implementation, the acquisition unit 401 is further configured to, in response to the user having access rights to the cloud document, acquire the comments added by the user to the target message and complete the corresponding processing.
[0089] In one specific implementation, the display unit is further configured to display the personal homepage of the user corresponding to the user avatar in the content card in response to the user's trigger operation.
[0090] In one specific implementation, the display unit is specifically used to display the target message link in the title card and to display the target message and its corresponding associated information in the content presentation area.
[0091] In one specific implementation, the acquisition unit 401 is further configured to, in response to the user having editing permissions for the cloud document, receive the editing operation triggered by the user on the target message and complete the corresponding processing operation; or, in response to the user having access permissions for the cloud document, receive the comments and / or tags added by the user to the target message and complete the corresponding processing operation.
[0092] In one specific implementation, the title card further includes a title name and a copy component, wherein the title name is determined according to the source of the target message, and the copy component is used to copy the target message link.
[0093] In one specific implementation, the display unit is specifically used to display the target message link and a preset number of target messages in the second session in response to the user adding the target message link in the second session and the target message link corresponding to multiple target instant messages.
[0094] In one specific implementation, when the target application is a browser, the display unit is specifically used to, in response to the existence of a target client on the terminal device where the browser is located, launch the target client, and the target client forwards the instant messaging application to you; in response to the user having access to the target message and the target client being logged in, display the target message on the target client according to the target message link.
[0095] In one specific implementation, when the target application is a browser, the display unit is specifically used to launch a web client in response to the absence of a target client on the terminal device where the browser is located; the web client integrates the instant messaging application; and in response to the user having access to the target message and the web client being logged in, to display the target message on the web client according to the target message link.
[0096] In one specific implementation, the type of the target message includes at least one or more of the following: text, image, multimedia file, email, calendar, and tag.
[0097] In one specific implementation, the first session is a topic group, and the target message is the main post and / or reply in the topic group.
[0098] It should be noted that the implementation of each unit in this embodiment can be found in the relevant description of the above method embodiment, and will not be repeated here.
[0099] See Figure 5 This document illustrates a structural schematic diagram of an electronic device 500 suitable for implementing embodiments of this application. The terminal devices in these embodiments may include, but are not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Android devices), PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs (television sets), desktop computers, etc. Figure 5 The electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.
[0100] like Figure 5 As shown, the electronic device 500 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. The RAM 503 also stores various programs and data required for the operation of the electronic device 500. The processing unit 501, ROM 502, and RAM 503 are interconnected via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0101] Typically, the following devices can be connected to I / O interface 505: input devices 506 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 507 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 508 including, for example, magnetic tapes, hard disks, etc.; and communication devices 509. Communication device 509 allows electronic device 500 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 5 An electronic device 500 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0102] Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication device 509, or installed from storage device 508, or installed from ROM 502. When the computer program is executed by processing device 501, it performs the functions defined in the methods of embodiments of this application.
[0103] The electronic device provided in this application embodiment and the instant messaging processing method provided in the above embodiments belong to the same inventive concept. Technical details not described in detail in this embodiment can be found in the above embodiments, and this embodiment has the same beneficial effects as the above embodiments.
[0104] This application provides a computer-readable medium storing a computer program thereon, wherein when the program is executed by a processor, it implements the instant messaging processing method as described in any of the above embodiments.
[0105] It should be noted that the computer-readable medium described above in this application can be a computer-readable signal medium, a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0106] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.
[0107] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0108] The aforementioned computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the aforementioned instant message processing method.
[0109] Computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof. These programming languages include, but are not limited to, object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed 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 remote computers, the remote computer can 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 can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0110] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated 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, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0111] The units described in the embodiments of this application can be implemented in software or in hardware. The name of the unit / module does not necessarily limit the unit itself; for example, a voice data acquisition module can also be described as a "data acquisition module".
[0112] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.
[0113] In the context of this application, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0114] It should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the systems or apparatus disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple, and relevant parts can be referred to the method section.
[0115] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.
[0116] It should also be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0117] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0118] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for processing instant messages, characterized in that, The method includes: In response to a first operation triggered by a target message in a first session of an instant messaging application, obtain the target message link corresponding to the target message; In response to a second operation triggered in a target application, the target message link is added to a page of the target application, which is not the instant messaging application. At least a portion of the target message is displayed on the page of the target application; In response to a user triggering an operation that links the target message in the target application, the user is redirected to the session page of the first session in which the target message is located.
2. The method according to claim 1, characterized in that, The step of responding to a user's action of triggering the target message link in the target application and redirecting to the page of the first session where the target message is located includes: In response to a user triggering the target message link in the target application and the user having access to the first session, the user is redirected to the page of the first session where the target message is located.
3. The method according to claim 1, characterized in that, The target application is a cloud document, calendar, email, browser, or other instant messaging application.
4. The method according to claim 1, characterized in that, The first operation triggered in response to a target message in a first session of an instant messaging application, obtaining the message link corresponding to the target message, includes: In response to the user's first action triggered by multiple target messages, retrieve the message link corresponding to each target message; Target message links are generated based on the message links corresponding to each of the multiple target messages, and the target message links are used to indicate the multiple target messages.
5. The method according to claim 1, characterized in that, In response to a second operation triggered in the target application, adding the target message link to the page of the target application includes: In response to a second operation triggered in the target application, the target message link or a text link corresponding to the target message link is displayed on the page of the target application, the text link including at least one of the target message, the user identifier that sent the target message, or the source information of the target message.
6. The method according to claim 1, characterized in that, When the target application is a cloud document, displaying the target message on the page of the target application includes: In response to a user adding a link to the target message in the cloud document, the target message link, the target message, and the associated information corresponding to the target message are displayed in the cloud document.
7. The method according to claim 6, characterized in that, The associated information includes one or more of the following: the source of the target message, the user identifier that sent the target message, and the sending time.
8. The method according to claim 6, characterized in that, The step of displaying the target message link, the target message, and the corresponding associated information in the cloud document includes: The placeholder box in the cloud document displays the target message link, the target message, and the associated information corresponding to the target message.
9. The method according to claim 8, characterized in that, The placeholder includes a title card and a content card. The title card is used to display the target message link, and the content card is used to display the target message and the associated information corresponding to the target message.
10. The method according to claim 9, characterized in that, The method further includes: When the height of the target message is greater than the height of the content card, a sliding component or a viewing component is displayed.
11. The method according to claim 6, characterized in that, The method further includes: In response to the user having access rights to the cloud document, the system retrieves the comments the user added to the target message and completes the corresponding processing.
12. The method according to claim 6, characterized in that, The method further includes: In response to the user's trigger action on the user avatar displayed in the content card, the personal homepage of the user corresponding to the user avatar is displayed.
13. The method according to claim 6, characterized in that, The step of displaying the target message link, the target message, and the associated information corresponding to the target message in the cloud document includes: The target message link is displayed in the title card, and the target message and its associated information are displayed in the content presentation area.
14. The method according to claim 13, characterized in that, The method further includes: In response to the user having editing permissions for the cloud document, the system receives the user's editing operation triggered by the target message and completes the corresponding processing; or, In response to a user having access rights to the cloud document, the system receives comments and / or tags added by the user to the target message and completes the corresponding processing.
15. The method according to claim 9 or 13, characterized in that, The title card also includes a title name and a copy component. The title name is determined based on the source of the target message, and the copy component is used to copy the target message link.
16. The method according to claim 1, characterized in that, The method further includes: In response to a user adding the target message link in a second session, and the target message link corresponding to multiple target messages, the target message link and a preset number of target messages are displayed on the session page of the second session.
17. The method according to claim 1, characterized in that, When the target application is a browser, displaying the target message on the page of the target application includes: In response to the presence of a target client on the terminal device where the browser is located, the target client is launched, and the target client integrates the instant messaging application; In response to a user having access to the target message and the target client being logged in, the target message is displayed on the target client according to the target message link.
18. The method according to claim 1, characterized in that, When the target application is a browser, displaying the target message on the page of the target application includes: In response to the absence of the target client on the terminal device where the browser is located, a web client is launched, which integrates the instant messaging application. In response to the user having access rights to the target message and the web client being logged in, the target message is displayed on the web client according to the target message link.
19. An instant messaging processing device, characterized in that, The device includes: The acquisition unit is configured to, in response to a first operation triggered by a target message in a first session of an instant messaging application, acquire the target message link corresponding to the target message; An adding unit is configured to add the target message link to a page of the target application, which is not the instant messaging application, in response to a second operation triggered in the target application. A display unit is configured to display at least a portion of the content of the target message on the page of the target application; The jump unit is used to jump to the page of the first session where the target message is located in response to the user's operation of triggering the target message link in the target application.
20. An electronic device, characterized in that, The device includes: a processor and a memory; The memory is used to store instructions or computer programs; The processor is configured to execute the instructions or computer program in the memory to cause the electronic device to perform the instant messaging method according to any one of claims 1-18.
21. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed on the device, cause the device to perform the instant messaging method according to any one of claims 1-18.
Citation Information
Patent Citations
Instant messaging realization method and device
CN105871690A
Method for quickly locating and checking specified session message in instant messaging
CN106330677A