Session data processing method, device, user terminal, and storage medium
Patent Information
- Authority / Receiving Office
- MY · MY
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-08-12
- Publication Date
- 2026-07-24
AI Technical Summary
In group chats, when there are too many messages, it is difficult for users to quickly find and view the required messages, resulting in inefficient browsing.
By interacting between the user terminal and the server, a conversation collection is generated, all messages associated with replies to a certain message are aggregated and displayed, and a conversation collection page is created to allow users to aggregately view and reply to multiple topics without affecting the group chat. information.
The browsing efficiency of conversation data is improved, users can more conveniently manage and find all messages under the same topic, and the user experience of group chat is improved.
Abstract
Description
Session data processing methods, apparatus, user terminals, and storage media
[0001] This application claims priority to Chinese Patent Application No. 201910760786.X, filed on August 16, 2019, entitled "A Session Data Processing Method, Apparatus and Computer-Readable Storage Medium". Technical Field
[0002] This application relates to the field of data processing technology, and more particularly to a session data processing method, apparatus, user terminal, and storage medium.
[0003] Background of the Invention
[0004] With the continuous development of computer networks, various communication applications have emerged. Group chat functionality is common in communication applications. When there are too many users in a group chat, the number of messages can be enormous, thus placing higher demands on the group chat functionality of communication applications.
[0005] Currently, group chat messages are typically displayed on the group chat page according to the time they were received. Therefore, users can only browse all the messages on the group chat page sequentially by swiping up and down. When the number of messages on the group chat page becomes too large, it is difficult for users to quickly find and view the messages they want, resulting in low browsing efficiency.
[0006] Summary of the Invention
[0007] This application provides a method, apparatus, user terminal, and storage medium for processing session data, which can enrich the ways of displaying session data and improve the browsing efficiency of session data.
[0008] One embodiment of this application provides a session data processing method, executed by a user terminal, including:
[0009] In response to the first reply operation on the first session data in the main session page, the second session data that has a reply relationship with the first session data is obtained, the collection entry of the session set corresponding to the first session data is output, and a collection creation instruction for the first session data is generated.
[0010] The set creation instruction and the second session data are sent to the server so that the server determines the session set based on the set creation instruction, the first session data, and the second session data;
[0011] In the main session page, in response to the expand operation for the collection entry, a session collection page corresponding to the session collection is created, and a retrieval command is sent to the server; and,
[0012] The server receives the session set and outputs the session data in the session set on the session set page. The session set includes the first session data and at least one second session data, and each second session data has a reply association with the first session data.
[0013] Another aspect of this application provides a session data processing method, executed by a server, including:
[0014] The user terminal obtains a set creation instruction for the first session data in the main session page and a second session data that has a reply relationship with the first session data. The user terminal responds to a first reply operation for the first session data, obtains the second session data, and outputs the set entry of the session set corresponding to the first session data.
[0015] The session set is determined based on the set creation instruction, the first session data, and the second session data; the session set includes the first session data and at least one second session data, each second session data having a reply association relationship with the first session data; and,
[0016] When a request for the session set is received from the user terminal, the session set is sent to the user terminal according to the request. The user terminal, in the main session page, responds to the expansion operation for the set entry, creates a session set page corresponding to the session set, and generates the request.
[0017] Another aspect of this application provides a session data processing apparatus, including:
[0018] The first acquisition module is used to respond to a first reply operation on the first session data in the main session page, acquire second session data that has a reply relationship with the first session data, output the collection entry of the session set corresponding to the first session data, and generate a collection creation instruction for the first session data; send the collection creation instruction and the second session data to the server, so that the server determines the session set according to the collection creation instruction, the first session data and the second session data;
[0019] A creation module is used in the main session page to respond to the expansion operation of the collection entry, create a session collection page corresponding to the session collection, and send a retrieval instruction to the server; receive the session collection from the server, and output the session data in the session collection in the session collection page, wherein the session collection includes the first session data and at least one second session data, and each second session data has a reply association relationship with the first session data.
[0020] Another aspect of this application provides a session data processing apparatus, including:
[0021] The instruction acquisition module is used to acquire from the user terminal a set creation instruction for first session data in the main session page and second session data that has a reply association relationship with the first session data. The user terminal responds to a first reply operation for the first session data, acquires the second session data, and outputs the set entry for the session set corresponding to the first session data. The session set is determined based on the set creation instruction, the first session data, and the second session data. The session set includes the first session data and at least one second session data, and each second session data has a reply association relationship with the first session data.
[0022] The sending module is used to send the session set to the user terminal according to the acquisition instruction when an acquisition instruction for the session set is obtained from the user terminal. The user terminal, in the main session page, responds to the expansion operation for the set entry, creates a session set page corresponding to the session set, and generates the acquisition instruction.
[0023] Another embodiment of this application provides a user terminal, including: a processor and a memory;
[0024] The processor is connected to a memory, wherein the memory is used to store a computer program, and the processor is used to invoke the computer program to execute the method as described in one aspect of the embodiments of this application.
[0025] One aspect of this application provides a computer-readable storage medium storing a computer program, the computer program including program instructions that, when executed by a processor, cause the processor to perform the method described above.
[0026] Brief description of the attached figures
[0027] To more clearly illustrate the technical solutions in 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 of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0028] Figure 1 is a schematic diagram of the architecture of a system provided in an embodiment of this application;
[0029] Figure 2 is a schematic diagram of the interface of a terminal provided in this application;
[0030] Figure 3A is a schematic flowchart of a session data processing method provided in an embodiment of this application;
[0031] Figure 3B is a flowchart illustrating another session data processing method provided in an embodiment of this application;
[0032] Figure 3C is a flowchart illustrating another session data processing method provided in an embodiment of this application;
[0033] Figure 4 is a schematic diagram of a scenario for adding an identifier according to an embodiment of this application;
[0034] Figure 5 is a flowchart illustrating another session data processing method provided in an embodiment of this application;
[0035] Figure 6 is a schematic diagram of the interface of another terminal provided in an embodiment of this application;
[0036] Figure 7 is a schematic diagram of the interface of another terminal provided in an embodiment of this application;
[0037] Figure 8 is a schematic diagram of the interface of another terminal provided in an embodiment of this application;
[0038] Figure 9 is a schematic diagram of the interface of another terminal provided in an embodiment of this application;
[0039] Figure 10 is a schematic diagram of the interface of another terminal provided in an embodiment of this application;
[0040] Figure 11 is a schematic diagram of the interface of another terminal provided in an embodiment of this application;
[0041] Figure 12 is a schematic diagram of the interface of another terminal provided in an embodiment of this application;
[0042] Figure 13 is a schematic diagram of the interface of another terminal provided in an embodiment of this application;
[0043] Figure 14 is a schematic diagram of the interface of another terminal provided in an embodiment of this application;
[0044] Figure 15 is a schematic diagram of the structure of a session data processing device provided in an embodiment of this application;
[0045] Figure 16 is a schematic diagram of another session data processing device provided in an embodiment of this application;
[0046] Figure 17 is a schematic diagram of the structure of a user terminal provided in an embodiment of this application.
[0047] Implementation
[0048] The technical solutions of this application will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0049] Please refer to Figure 1, which is a schematic diagram of the system architecture provided in an embodiment of this application. As shown in Figure 1, the system architecture includes a server 100, a terminal 200a, a terminal 200b, and a terminal 200c. The server 100 can communicate with terminals 200a, 200b, and 200c. This embodiment of the application will be described here using the communication between the server 100 and terminal 200a as an example. Specifically, the description will focus on the communication between terminal 200a and server 100.
[0050] Please refer to Figure 2, which is a schematic diagram of the interface of a terminal provided in this application embodiment. As shown in Figure 2, pages A1, A2, A3, A4, A5, and A6 are six pages of terminal 200a, which is the terminal corresponding to user "Duoduo". Page A1 is the group chat page corresponding to the group "Chat Group". On page A1, three group chat messages sent by three users are displayed: "The weather is so nice today" sent by user "Mingming", "Yes" sent by user "Tiantian", and "Want to go out and play?" sent by user "Lele". Terminal 200a can respond to user "Duoduo's" user operation on the group chat message "Want to go out and play?" on page A1, and display the menu bar A1 in the area where the message "Want to go out and play?" is located (which may be the area above the message "Want to go out and play?"), as shown on page A1.
[0051] Terminal 200a can respond to user actions on the "Reply" menu in menu bar A1, displaying a message input box containing the object to be replied to, which is the group chat message "Want to go out and play?", i.e., message input box A22 on page A2 containing the object to be replied to, a21. Simultaneously, terminal 200a generates a set creation command. When user Duo Duo enters the message "Okay, okay!" in message input box a22 on page A2 and clicks the "Send" button on the keyboard on page A2, terminal 200a can obtain the message "Okay, okay!" entered by user Duo Duo. Terminal 200a can send the generated set creation command and the obtained message "Okay, okay!" to server 100. Simultaneously, terminal 200a can output (i.e., display) the obtained reply message "Okay, okay!" on the group chat page of the chat group, i.e., message a4 output on the group chat page of page A3. In addition to the reply message "Okay, okay!", message a4 also includes the object to be replied to (i.e., the message "Want to go out and play?") and the time the object to be replied to is retrieved (i.e., the time the message "Want to go out and play?" was retrieved is 8:50). It also includes a collection entry a3, which is used to retrieve a session collection, which is created based on the message to be replied to "Want to go out and play?" and the reply message "Okay, okay!".
[0052] Server 100 can create a session set based on the obtained set creation instruction. This session set includes the message to be replied to, "Want to go out and play?", and the reply message, "Sure, sure!". Terminal 200a can respond to user operations on the set entry point a3, creating a session set page. This session set page is used to output all messages in the session set. Simultaneously, terminal 200a generates a retrieval instruction and sends it to server 100. When server 100 receives the retrieval instruction from the terminal, it retrieves the session set and sends the retrieved session set back to terminal 200a.
[0053] Terminal 200a can output the messages received from the session set sent by server 100 in the created session set page, as shown in session set page a8 on page A4. Session set page a8 is the chat page corresponding to the session set. Session set page a8 can be a subpage displayed independently above the group chat page (it can be a half-screen overlay, pop-up, or floating window). The title bar a9 of session set page a8 displays the message "Want to go out?" awaiting reply. Below the title bar a9 of session set page a8, the reply message "Sure! Sure!" is displayed, i.e., message a5. Message a5 also displays the message "Want to go out?" awaiting reply. Terminal 200a can display and retrieve all messages in session set page a8 that have a reply relationship with the initial message "Want to go out?" awaiting reply.
[0054] For example, let's call the message "Want to go out and play?" message 1, and the message "Sure, sure!" message 2. The object to be replied to in message 2 is message 1. The object to be replied to in message 3 is message 2, and the object to be replied to in message 4 is message 3. Messages 4, 3, and 2 all have a reply relationship with message 1. We can further illustrate the messages with a reply relationship with message 1 using a chain, namely chain 1:
[0055]
[0056] Chain 2 can be derived from chain 1:
[0057]
[0058] In chain 2, all messages except message 1 have a reply relationship with message 1, that is, messages from 2 to n all have a reply relationship with message 1.
[0059] The system allows users to enter messages with a reply relationship to the message "Want to go out and play?" in the conversation collection page a8. The terminal can respond to user operations in the input box of the conversation collection page a8, displaying a message input box a62 (as shown on page A5, the message input box will automatically display the message to be replied to, a61) and a keyboard on the conversation collection page a8. When user Duoduo enters the message "How about going ice skating?" in the message input box on page A5 and clicks the "send" button on the keyboard on page A5, the terminal 200a can obtain the message "How about going ice skating?" and send the message a62 "How about going ice skating?" including the message to be replied to, a61, to the chat page of the conversation collection, as shown in message a7 on page A6. Message a7 is the message "How about going ice skating?" sent by user Duoduo, and message a7 includes the message to be replied to, a61 (i.e., user Lele's message "Want to go out and play?"). The message "How about going ice skating?" is also related to the message "Want to go out and have fun?". At the same time, terminal 200a will send the received message "How about going ice skating?" to server 100, and server 100 will add the received message "How about going ice skating?" to the previously created session set.
[0060] Furthermore, terminal 200a can also respond to user actions (such as clicks) on message a7 in page A6. It can treat the message "How about going ice skating?" in message a7 as the object to be replied to, and retrieve the message "How about going ice skating?" from the session collection page in page A6. This message can be called a selective reply message. Terminal 200a can display the selective reply message, including the object to be replied to, on the session collection page. Simultaneously, terminal 200a will also send the retrieved selective reply message to server 100, which will also add the received selective reply message to the previously created session collection. Therefore, the session collection in server 100 will include the message "Want to go out?" and all messages with reply relationships to the message "Want to go out?".
[0061] Based on page A6, terminal 200a can respond to the close operation of the conversation collection page in page A6, close the conversation collection page, and display the group chat page of the chat group, as shown in page A7. Messages obtained in the chat page of the conversation collection (such as the conversation collection page a8 mentioned above) will also be displayed sequentially in the group chat page of the chat group. For example, based on the time the messages were obtained, messages obtained in the group chat page of the chat group and messages obtained in the conversation collection page can be output (i.e., displayed sequentially) sequentially in the group chat page of the chat group. As shown in page A7, the group chat page in page A7 displays the message "Sure, sure!" obtained from the conversation collection page, with the message "Want to go out?" awaiting a reply, and the message "How about ice skating?" (i.e., message a10), which also awaits a reply to the message "Want to go out?". Furthermore, the collection entry point, which was originally carried by the message "Okay, okay!" (such as the collection entry point carried by message a4 in page A3), is now carried by the latest obtained message a10. That is, the latest obtained message in the session collection that has a reply relationship with the message "Want to go out and play?" can be used as the carrying object of the collection entry point.
[0062] Optionally, each message on the group chat page that has a reply relationship with the message "Want to go out and play?" can carry a collection entry. When a user clicks on a collection entry, the terminal 200a can create a session collection page and display the message corresponding to the clicked collection entry on the session collection page, that is, jump to the location of the message corresponding to the clicked collection entry.
[0063] The terminal can respond to the user operation on the collection entry carried by message a10 in page A7, create a session collection page, generate a retrieval command, and send the retrieval command to server 100. Server 100 can retrieve the session collection according to the received retrieval command. At this time, the session collection includes the messages "Want to go out and play?", "Sure! Sure!", and "How about going ice skating?". Server 100 sends the retrieved session collection to terminal 200a. Terminal 200a can display all the messages in the session collection sent by the server in the created session collection page, as shown in page A8. The session collection page in page A8 displays the messages "Want to go out and play?", "Sure! Sure!" (including the message to be replied to), and "How about going ice skating?" (including the message to be replied to).
[0064] The above steps enable the aggregation and display of all messages with a reply relationship to the message "Want to go out and play?" on the conversation collection page. The conversation collection created using the message "Want to go out and play?" can be understood as a small topic or discussion, allowing users to engage in aggregated conversations on that topic within the conversation collection page.
[0065] The user actions mentioned above—on the group chat message "Want to go out?" in page A1, the user actions on the "Reply" menu, the user actions on the collection entry point a3, the user actions in the input box on the conversation collection page a8, the user actions on message a7, and the user actions on the collection entry point carried by message a10—can be any of the following actions: click, swipe, double-tap, long-press, or two-finger swipe in two directions simultaneously. The specific method of user action depends on the actual application scenario and is not limited here.
[0066] When the server creates a session set in a group chat, it broadcasts the session set to all users in the group chat, including their devices and / or user accounts. This means that all users in the group chat can see and participate in the session set. In other words, any user operation related to the session set can be performed by any other user in the group chat, except that the device and / or user account used for the operation are different.
[0067] The method proposed in this application allows users to aggregate and view messages from multiple topics in a group chat without affecting the chat itself. For example, if a group chat includes the topics "Where to go?" and "When to go?", a separate conversation set can be created for each topic. Users can discuss related matters on the conversation set pages corresponding to the two conversation sets, meaning the discussions between the two topics are independent and do not affect each other. However, the messages obtained from the conversation set pages corresponding to the two topics will be displayed simultaneously on the group chat page (e.g., pages A1, A3, and A7 mentioned above). Therefore, it can help users better manage, find, and read all messages under the same topic.
[0068] Please refer to Figure 3A, which is a flowchart illustrating a session data processing method provided in an embodiment of this application. As shown in Figure 3A, the method is applied to a user terminal and a server, reflecting the interaction between them. For example, any one of the terminals 200a, 200b, and 200c shown in Figure 1 can be used as a user terminal to interact with the server 100 shown in Figure 1. Specifically, the method may include:
[0069] Step S101: The user terminal responds to the first reply operation for the first session data in the main session page, obtains the second session data that has a reply relationship with the first session data, outputs the set entry of the session set corresponding to the first session data, and generates a set creation instruction.
[0070] Specifically, if the user terminal is the terminal corresponding to the first user's communication application, then the user terminal can respond to the first user's first reply operation regarding the first session data on the main session page. The main session page can refer to the chat page between the first user and other friends or users, or it can be the group chat page where the first user is in a group chat (e.g., page A1, page A3, or page A7 in Figure 2 above). The first session data can be any session data within the main session page; session data is essentially a chat message. One session data can be understood as one message, meaning the first session data can be any message sent by other users on the main session page or any message sent by the first user themselves. For example, the first session data could be the message "The weather is nice today," the message "Yes," or the message "Want to go out?" on interface A1.
[0071] The first reply operation is the first user's reply operation to the first session data. For example, the user operation on the group chat message "Want to go out and play?" in page A1 and the user operation on the "Reply" menu can be collectively referred to as the first reply operation. Correspondingly, the first session data is the group chat message "Want to go out and play?" in page A1. That is, through the first reply operation, the first session data can be used as the object to be replied to.
[0072] The user terminal can respond to the first user's first reply to the first session data and output the collection entry of the session set corresponding to the first session data. This collection entry is used to trigger the user terminal to obtain the session set and create a session set page for the session set. At the same time, the user terminal will also generate a collection creation instruction.
[0073] When the first session data is text data, when the user terminal responds to the first user's first reply operation on the first session data, it can also obtain the first user's reply session data on the first session data. The first user's reply session data on the first session data can be called the first reply session data and used as the second session data. The first reply session data carrying the collection entry is output on the main session page.
[0074] The user terminal can output the collection entry in the main session page. The output method can be to output a collection entry separately, or it can be output through the first reply session data. For example, the user terminal can output the first reply session data carrying the collection entry in the main session page (for example, message a4 carrying collection entry a3 in Figure 2. Here, message a4 is the first reply session data. Message a4 includes the message "Okay, okay!" which is the object to be replied to as the first session data, and the message "Want to go out and play?" is the first session data).
[0075] Step S102: The user terminal sends the set creation instruction to the server;
[0076] Specifically, the user terminal sends the set creation instruction generated through the first reply operation to the server. The user terminal can also send the acquired first reply session data to the server. Each time the user terminal acquires session data, it sends the acquired session data to the server.
[0077] Step S103: The server obtains a set creation instruction for the first session data in the main session page, and determines the session set corresponding to the first session data based on the set creation instruction, the first session data, and the obtained second session data.
[0078] Specifically, the server receives the set creation instruction sent by the user terminal and creates a session set according to the instruction. Specifically, the server generates a session set identifier (which can be understood as creating a session set). The server sets identifier information for the first session data and all second session data, including the aforementioned session set identifier. That is, the server sets a session set identifier for the first session data and all second session data. One session set corresponds to one session set identifier. Session data with the same session set identifier indicate that they belong to the same session set. The session set identifier of the session set is the same as the session set identifier of the session data within the session set; that is, the identifier corresponding to the session set is also the aforementioned session set identifier. The aforementioned second session data refers to session data that has a reply relationship with the first session data. Here, the second session data includes the first reply session data. The server can set a session set identifier for the first session data and the first reply session data, indicating that the first session data and the first reply session data belong to the same session set. That is, the session set corresponding to the first session data includes all session data with the aforementioned session set identifier (including the first session data and the first reply session data).
[0079] The identification information set by the server for the first and second session data may include a sender identifier (or sender's identifier), a reply-pending identifier (or identifier of the referenced message), and a session data identifier (or topic identifier). The sender identifier indicates which user sent the session data; for example, in page A1 of Figure 2 above, the message "The weather is so nice today" was sent to user Mingming. The reply-pending identifier indicates which session data is being replied to; for example, in page A3 of Figure 2 above, the message a4 "Okay, okay!" was replied to by user Lele's message "Want to go out and play?". The session data identifier is a unique identifier corresponding to a single session data; it can be understood as the ID number of that session data.
[0080] For example, please refer to Figure 4, which is a schematic diagram of a scenario for adding an identifier according to an embodiment of this application. Message 1 is the first session data mentioned above, and messages 2 and 3 are the second session data corresponding to the first session data. The identifier is an ID (identity identifier). The identifier information set by the server for message 1 includes the sender's identifier as 'a' (i.e., the sender's identifier is 'a'), the message identifier as '1' (i.e., the session data identifier is '1'), the identifier of the referenced message as 'empty' (i.e., the identifier of the object to be replied to is empty, indicating that message 1 does not reference other messages), and the topic identifier as '1' (indicating that the session set identifier is '1'). The identifier information set by the server for message 2 includes the sender's identifier as 'b' (i.e., the sender's identifier is 'b'), the message identifier as '2' (i.e., the session data identifier is '2'), the identifier of the referenced message as '1' (i.e., the identifier of the object to be replied to is '1', indicating that the object to be replied to in message 2 is message 1), and the topic identifier as '1' (indicating that the session set identifier is '1'). The server sets the following identification information for message 3: sender identifier is c (i.e., the sender identifier is c), message identifier is 3 (i.e., the session data identifier is 3), reference message identifier is 2 (i.e., the object to be replied to is 2, indicating that the object to be replied to in message 3 is message 2), and topic identifier is 1 (indicating that the session set identifier is 1).
[0081] The second session data of the first session data can also include more; here, we only use messages 2 and 3 as examples of the second session data of message 1. The session set identifiers of messages 1, 2, and 3 are all 1, indicating that messages 1, 2, and 3 belong to the same session set. Furthermore, message 1 is the first session data referenced; therefore, message 1 is replied to, but has no object to reply to, meaning the referencing message is empty. The object to reply to message 2 is message 1, and the object to reply to message 3 is message 2. The sender identifier can refer to the user identifier; that is, message 1 was sent by user a, message 2 by user b, and message 3 by user c.
[0082] Specifically, the session data identifier of the session data can be associated with the corresponding sender identifier, reply recipient identifier, and session set identifier. The sender, reply recipient, and session set corresponding to a session data can be represented and searched through the sender identifier, reply recipient identifier, and session set identifier associated with the session data identifier of that session data.
[0083] The server can store session data with identification information (including session set identifier) in the database. In other words, the server can store session sets with identification information in the database. The session set with identification information refers to the session data set consisting of the first session data with identification information and the second session data with identification information.
[0084] Step S104: In the main session page, the user terminal responds to the expansion operation for the collection entry, creates the session collection page corresponding to the session collection, and generates an acquisition command.
[0085] Specifically, the user terminal can respond to the expansion operation of the collection entry in the main session page. For example, for the expansion operation of the collection entry a3 in page A3 in Figure 2 above (which could be a click operation on the collection entry a3), a session collection page corresponding to the session collection is created, and a retrieval command is generated at the same time.
[0086] When the first reply session data in the main session page carries a collection entry, the user terminal can respond to the expansion operation of the collection entry carried by the first reply session data, thereby creating a session collection page corresponding to the session collection. The session collection page is a sub-page displayed independently above the main session page, and a retrieval command is generated. The created session collection page is used to display the session data in the session collection, and more second session data can be retrieved from the session collection page. The generated retrieval command is used to retrieve the session collection.
[0087] Step S105: The user terminal sends the acquisition instruction to the server;
[0088] Specifically, the user terminal can send the generated acquisition command to the server.
[0089] Step S106: When the server receives a retrieval instruction for the session set, it retrieves the session set according to the retrieval instruction;
[0090] Specifically, the aforementioned retrieval command can carry a session set identifier. When the server receives a retrieval command for a session set, it can retrieve the session set corresponding to the session set identifier from the database based on the session set identifier carried in the retrieval command. For example, when the session set identifier carried in the retrieval command is 1, the server can retrieve all session data with a session set identifier of 1 from the database as the aforementioned session set. If the session data with a session set identifier of 1 includes message 1 and message 2, the session set retrieved by the server will include message 1 and message 2.
[0091] Furthermore, when the server sets identifiers for each session data entry that include a sending object identifier, a reply-pending object identifier, and a session data identifier, the server can use the session set identifier carried in the retrieval command to find the session data identifier corresponding to each session data entry that shares the same session set identifier. Then, using the session data identifier for each session data entry, the server can find the sending object identifier and the reply-pending object identifier associated with each session data entry. The server can then use these associated identifiers to retrieve the sending object and the reply-pending object for each session data entry. The sending object is obtained through its corresponding sending object identifier, and the reply-pending object is obtained through its corresponding reply-pending object identifier.
[0092] For example, when the server finds messages 1, 2, and 3 with the same session set identifier 1 by using the session set identifier 1 carried in the retrieval command, it then uses the session data identifier 1 of message 1 to find that the sender identifier of message 1 is 'a' and the reply identifier is empty. Therefore, the server can determine that the sender of message 1 is user 'a', message 1 has no reply recipient, and message 1 is the first session data. Using the session data identifier 2 of message 2, the server finds that the sender identifier of message 2 is 'b' and the reply identifier is '1'. Therefore, the server can determine that the sender of message 2 is user 'b', the reply recipient of message 2 is message 1, and message 2 is the second session data of message 1. Using the session data identifier 3 of message 3, the server finds that the sender identifier of message 3 is 'c' and the reply identifier is '2'. Therefore, the server can determine that the sender of message 3 is user 'c' and the reply recipient is message 2, and message 3 is the second session data of message 1.
[0093] Step S107: The server sends the session set to the user terminal;
[0094] Specifically, the server can send the acquired session set to the user terminal. In addition to the first and second session data, the session set sent by the server to the user terminal may also include the sender and the responder for each piece of session data in the session set. For example, if the session set acquired by the server includes message 1, message 2, and message 3, then the session set sent by the server to the user terminal may include message 1, the sender and the responder for message 1, message 2, the sender and the responder for message 2, message 3, and the sender and the responder for message 3.
[0095] Step S108: The user terminal outputs the session data in the session set on the session set page;
[0096] Specifically, the user terminal can output (i.e. display) all the session data sent to it by the server in the session collection page created above. Each piece of session data output by the user terminal in the session collection page can also include the sending object and the object to be replied to for each piece of session data.
[0097] For example, in page A4 of Figure 2 above, the output message a5 includes the original message content "Okay, okay!", as well as the sender "Duoduo" and the reply recipient "Want to go out and play?". Users can enter more session data in the session collection page. All session data entered by the user in the session collection page is second session data, meaning that all messages entered by the user in the session collection page have a reply relationship with the first session data. Messages entered by the user in the session collection page will also be output in the main session page, meaning that the user terminal can output all the second session data in the session collection in the main session page.
[0098] The user terminal can obtain the addition time of each piece of session data (including the first and second session data) in the session set. This addition time refers to the time when the session data was added to the session set, which can also refer to the time when the user terminal obtains the session data sent by the user. The user terminal can use the session data with the longest addition time in the session set (referring to the most recently obtained session data, i.e., the latest obtained session data) as the carried session data. The user terminal can delete the existing session set entry in the main session page and output the carried session data with the set entry in the main session page.
[0099] The user terminal can also sequentially output each piece of second-session data in the session collection to the main session page based on the addition time of each piece of second-session data in the session collection. That is, the output time of each piece of second-session data on the main session page is the same as the addition time of the second-session data when it was added to the session collection. The method provided by the embodiments of this application ensures that users can engage in targeted topic chats on the session collection page without affecting the overall group chat at the user level.
[0100] Optionally, users can also reply to the conversation data in the conversation set output on the main conversation page, and the reply message from the user to the conversation data in the conversation set on the main conversation page is also the second conversation data in the conversation set. For example, it supports users replying to the message "Want to go out and play?" in page A7 of Figure 2 above, which is to be replied to. When the user long-presses the message "Okay, okay!" in page A7, the terminal 200a can pop up a menu bar (the same menu bar as menu bar a1). When the user clicks the "Reply" menu in the menu bar, the terminal 200a can display a message input page (including a message input box and keyboard for the message "Okay, okay!") on the current page, and obtain the second conversation data of the message "Okay, okay!" entered by the user in the message input page. This second conversation data belongs to the same conversation set as the message "Okay, okay!" in page A7. The user terminal can output the second session data obtained on the main session page. At the same time, the user terminal can display the second session data obtained on the main session page on the session collection page. The second session data obtained on the main session page and the second session data obtained on the session collection page can be output and displayed sequentially on the session collection page according to the addition time of the second session data obtained on the main session page and the second session data obtained on the session collection page.
[0101] Please refer to Figure 3B, which is a flowchart illustrating another session data processing method provided in an embodiment of this application. As shown in Figure 3B, the method is applied to a user terminal, for example, any one of terminals 200a, 200b, and 200c shown in Figure 1 can be used as a user terminal. Specifically, the method may include:
[0102] Step S111: Respond to the first reply operation for the first session data in the main session page, obtain the second session data that has a reply relationship with the first session data, output the collection entry of the session set corresponding to the first session data, and generate a collection creation instruction for the first session data.
[0103] Step S112: Send the set creation instruction and the second session data to the server so that the server determines the session set based on the set creation instruction, the first session data, and the second session data.
[0104] For a description of steps S111 and S112, please refer to the description of step S101 above, and will not be repeated here.
[0105] Step S113: In the main session page, respond to the expansion operation for the collection entry, create the session collection page corresponding to the session collection, and send a retrieval command to the server.
[0106] Please refer to the descriptions of steps S104 and S105 above for the description of this step, which will not be repeated here.
[0107] Step S114: Receive the session set from the server and output the session data in the session set on the session set page. The session set includes the first session data and at least one second session data, and each second session data has a reply association relationship with the first session data.
[0108] Please refer to the descriptions of steps S107 and S108 above for the description of this step, which will not be repeated here.
[0109] Therefore, the method proposed in this application embodiment can uniformly display session data that has a reply relationship with the first session data on the session collection page, thus enriching the display methods of session data and improving the browsing efficiency of session data.
[0110] Please refer to Figure 3C, which is a flowchart illustrating a session data processing method provided in an embodiment of this application. As shown in Figure 3C, the method is applied to a server, such as the server 100 shown in Figure 1. Specifically, the method may include:
[0111] Step S121: Obtain from the user terminal a set creation instruction for the first session data in the main session page and second session data that has a reply relationship with the first session data.
[0112] The user terminal responds to the first reply operation for the first session data, obtains the second session data, and outputs the set entry of the session set corresponding to the first session data.
[0113] Step S122: Determine the session set according to the set creation instruction, the first session data, and the second session data; the session set includes the first session data and at least one second session data, and each second session data has a reply association relationship with the first session data.
[0114] Please refer to the description of step S103 above for the description of this step, and it will not be repeated here.
[0115] Step S123: When an acquisition instruction for the session set is obtained from the user terminal, the session set is sent to the user terminal according to the acquisition instruction.
[0116] Specifically, the user terminal, in the main session page, responds to the expansion operation for the collection entry, creates the session collection page corresponding to the session collection, and generates the acquisition instruction.
[0117] Please refer to the description of step S106 above for the description of this step, and it will not be repeated here.
[0118] Please refer to Figure 5, which is a flowchart illustrating another session data processing method provided in this application embodiment. The session data processing method described in Figure 5 is applied to a user, a user terminal, and a server. For example, any one of terminals 200a, 200b, and 200c shown in Figure 1 serves as a user terminal, and the server 100 shown in Figure 1 is also an example. The chat interface and topic chat page are displayed on the user terminal. Message 1, Message 2, and Message 3 all belong to the session set identified by session set 1. As shown in Figure 5, the session data processing method includes:
[0119] Step S201: On the main session page, retrieve message 2, which is the user's reply based on reference message 1, and send message 2 to the server;
[0120] Specifically, the chat interface is the main conversation page on the user's terminal, and the topic chat page is the aforementioned collection of conversation pages. User B can reference message 1 in the main conversation page (i.e., the chat interface), treating message 1 as the object to be replied to, and simultaneously send message 2 to the main conversation page, where message 1 becomes the object to be replied to in message 2.
[0121] Step S202: Add topic identifier 1 to message 1 and message 2, and store it in the database;
[0122] Specifically, the user terminal sends message 2, which is obtained from the chat interface, to the server. The server has already stored message 1. The server can add a topic identifier 1 to both message 1 and message 2. This topic identifier 1 indicates that the session set identifier is 1. The server can then store message 1 and message 2, which have been marked with the session set identifier, in the database.
[0123] Step S203: Based on the user's click on message 3, generate a retrieval request;
[0124] Specifically, message 3 also references message 1 or message 2. Message 1 is the first session data, while message 3 and message 2 are the second session data corresponding to message 1. Users can click on message 3 in the chat interface. Optionally, message 3 on the main session page carries a set entry. Clicking message 3 means clicking the set entry carried by message 3. When the user clicks the set entry carried by message 3, the user terminal can generate a retrieval request, which carries the session set identifier 1 corresponding to message 3.
[0125] Step S204: Send the generated retrieval request to the server;
[0126] Specifically, message 3 also belongs to a session set, and the session set identifier for message 3 is also 1. The topic chat page is also the chat page corresponding to the session set with session set identifier 1. The user terminal can transmit the topic identifier 1 of message 3.
[0127] Step S205: The server queries messages for topic 1;
[0128] Specifically, the server retrieves the session set identifier 1 carried in the request and queries the database for all session data with session set identifier 1 added. In other words, all session data with session set identifier 1 added are messages with topic 1.
[0129] Step S206, the server returns a message for topic 1;
[0130] Specifically, the server returns the retrieved messages for topic 1 to the user terminal, and the user terminal can display the messages for topic 1 in the topic chat page.
[0131] Step S207: Aggregate and display all messages for topic 1 on the conversation collection page;
[0132] Specifically, the user terminal can aggregate and display all messages of topic 1 to user b on the conversation collection page (i.e., the topic chat page). In other words, user b can view only the messages of topic 1 on the topic chat page, which realizes the message categorization display.
[0133] Please refer to Figure 6, which is a schematic diagram of another terminal interface provided in an embodiment of this application. As shown in Figure 6, pages G1, G2, G3, and G4 are four pages of the user terminal. Page G1 is the page that displays the session collection page. The user terminal can respond to the third reply operation for the second session data in the session collection page, and use the second session data received from the third reply operation as the selected reply object, while displaying the session entry page with the selected reply object.
[0134] For example, the second conversation data in the conversation collection page of page G1 includes the messages "Okay, okay!" and "Let's choose a place." When the user clicks "Let's choose a place" in message g1, "Let's choose a place" can be selected as the reply object. The user's action of clicking "Let's choose a place" in message g1 is the aforementioned third reply action. At the same time, the user terminal can display a conversation entry page in the conversation collection page that includes the reply object "Let's choose a place," as shown in page G2. The user terminal displays a conversation entry box and keyboard (the page consisting of the conversation entry box and keyboard is the conversation entry page) in the conversation collection page.
[0135] The user terminal can respond to a conversation entry operation on a conversation entry page that includes a selected reply object, and obtain third reply conversation data, wherein the third reply conversation data includes the selected reply object. For example, the user terminal can respond to a conversation entry operation on a conversation entry page that includes a selected reply object g2 on page G2 (which can be a message entry operation, such as the entry of text, images, emoticons, or video messages), and obtain the message "How about Central Park?" with the selected reply object "Let's choose a place". As shown on page G3, message g3 is the aforementioned third reply conversation data, which includes the selected reply object "Let's choose a place" and the message "How about Central Park?".
[0136] The user terminal can output third reply session data carrying the set entry in the main session page. In the main session page, the set entry of the session set can be carried by the most recently acquired second session data. Since the third reply session data is the most recently acquired second session data, the set entry carried by the second session data acquired before the third reply session data was acquired can be deleted from the main session page, and the third reply session data carrying the set entry can be output in the main session page. Here, the second session data acquired before the third reply session data was acquired should be the message "Let's choose a place" to be replied to, which is the message "Want to go out and play?" in page G4. That is, the message originally carrying set entry g5 in page G4 should be the message "Let's choose a place" that the user sends every day. The user terminal deleted the set entry carried by the message "Let's choose a place" in the main session page of page G4 and displayed message g4 "How about Central Park?" carrying set entry g5 in the main session page of page G4. Message g4 is message g3 acquired in page G3. One session set corresponds to one set entry. Optionally, when a user clicks on a message to be replied to in a conversation collection page (e.g., the conversation collection page in page G3), the user's terminal can be redirected to the location of the clicked message to be replied to in the conversation collection page.
[0137] Furthermore, the user terminal can respond to a session triggering operation on the session collection page, using the first session data as the target reply object, and display a session entry page containing the target reply object. The session triggering operation can be a user click on an input box on page G1. When the user clicks an input box on page G1, the user terminal can automatically use the first session data as the target reply object and display a session entry page including the object to be replied to as the target reply object.
[0138] Optionally, when a conversation entry page including the target reply object is displayed, when a user clicks on a second conversation data in the conversation collection page, the user terminal can directly switch the object to be replied to in the conversation entry page from the target reply object to the clicked second conversation data. The user terminal can respond to the conversation entry operation in the conversation entry page including the target reply object and obtain the second reply conversation data; the second reply conversation data includes the target reply object. The user terminal can obtain the second reply conversation data through the conversation entry interface including the target reply object, where the object to be replied to in the second reply conversation data is the target reply object, and the second reply conversation data may include the target reply object. The user terminal can output the second reply conversation data carrying the collection entry in the main conversation page.
[0139] Similarly, in the main session page, the collection entry for the session set can be carried by the latest acquired second session data. When the session set only includes the first reply session data as the second session data before the second reply session data is acquired, the user terminal can delete the collection entry originally carried by the first reply session data and output the second reply session data carrying that collection entry in the main session page.
[0140] Please refer to Figure 7, which is a schematic diagram of the interface of another terminal provided in an embodiment of this application. Pages C1, C2, C3, and C4 are four pages of the user terminal. The user terminal can respond to a sharing operation for the session set, generate sharing information, and send the sharing information to the sharing object. That is, it supports users to share the session set with other users, and when sharing, it will share the session data currently contained in the session set with other users.
[0141] For example, if a user shares a session collection at time t1, and the session collection includes 3 session data points at time t1, then the share will also share those 3 session data points; if a user shares a session collection at time t2, and the session collection includes 5 session data points at time t2, then the share will also share those 5 session data points. For example, page C1 includes a session collection page. When a user clicks button c1 on page C1, the user terminal can display an operation menu bar c2 at the top of the session collection page, as shown on page C2. This operation menu bar c2 includes a "Share with Friends" menu, a "Add to Favorites" menu, and a "Cancel" menu. When the user clicks the "Share with Friends" menu, the user terminal can generate sharing information. Then, through a friend selector, the user can select one (or multiple) friend, group, or non-friend user as the sharing target and send the aforementioned sharing information to the target. The click operation on the operation menu bar c2 and the click operation on the "Share with Friends" menu can be collectively referred to as the sharing operation.
[0142] As shown on page C3, message C3 is the shared information sent by user Duoduo in the rant group (i.e., the sharing target). Message C3 includes the first session data in the session set, which is the message "Want to go out and play?" sent by user Lele. Message C3 can also display some of the second session data in the session set (which can be sorted according to the message acquisition time), including user Duoduo's reply "Okay, okay!", user Lele's reply "Let's choose a place", and user Duoduo's reply "Central Park...". The user terminal can respond to the display operation on the shared information (such as the click operation on message C3) and display the session display page C4. This session display page C4 is used to display the session data in the session set shared by user Duoduo to the rant group.
[0143] The user terminal can also respond to favorites operations on a session collection (such as clicking the "Add to Favorites" menu in the operation menu bar c2 mentioned above), adding the session collection to the favorites bar for easy viewing of session data later. When the user clicks the "Cancel" menu in the operation menu bar c2, the user terminal can close the operation menu bar c2. Both the session display page c3 and the operation menu bar c2 can be independent subpages displayed on the current page (which can be pop-ups or floating windows).
[0144] The user terminal can also use the session set as historical session set data and add this historical session set data to the historical session set list. Please refer to Figure 8, which is a schematic diagram of another terminal interface provided in this application embodiment. Pages D1 and D2 are two pages in the user terminal. As shown on page D1, in the "View Chat Content" section corresponding to a group chat or a chat with a friend, there will be multiple category columns for the chat content, including a category column for all chat content, a category column for image / video chat content, a category column for file chat content, and a category column d4 for mini-discussions. Among them, the category column d4 corresponding to "mini-discussions" can be used to store session sets created during the chat. There can be multiple session sets in a group chat at the same time.
[0145] Optionally, a timer can be started when the session collection is created. When the timer reaches a threshold, new second session data will no longer be retrieved from the session collection. Instead, the session collection whose timer has reached the threshold will be added to the historical session collection list as historical session collection data. For example, if a session collection is created at 00:00 on August 8th and the timer threshold is set to 24 hours, then at 00:00 on August 9th, second session data from that session collection will no longer be retrieved. Instead, that session collection will be added to the historical session collection list as historical session collection data. The category bar d4 corresponding to "Mini-Discussions" on page D1 can be considered a historical session collection list. This historical session collection list on page D1 includes two session collections created in August 2019. These two session collections each have an information bar in the historical session collection list, namely information bar d1 and information bar d2. Through the information bars, we can see that the first session data for the session collection corresponding to information bar d1 is the message "Want to go out and play?" sent by user "Lele" one day ago. The first session data is the data that was the first reply when the session collection was created. The first session data in the session set corresponding to information bar d2 is the message "The weather is nice today" sent by user "Mingming" on August 1st. When the user clicks on an information bar of the session set, for example, clicking information bar d1, the user's terminal can display the historical session display page d3 on the current page, which will display all the session data in the session set corresponding to information bar d1.
[0146] Please refer to Figure 9, which is a schematic diagram of another terminal interface provided in this application embodiment. Page B1 is the main session page corresponding to the chat group in the user terminal. Multiple session sets can be created simultaneously in a chat group. Here, page B1 includes two session sets. The entry point of one session set is entry point b3 carried by message b1, and the entry point of the other session set is entry point b4 carried by message b2. When multiple session sets appear in a group chat, the entry point of each session set on the main session page can be distinguished by different colors or styles. For example, the color of entry point b3 is white, the color of entry point b4 is gray, and entry point b3 is a circular bubble-shaped entry point, while entry point b4 is a square bubble-shaped entry point. The method of distinguishing different set entry points is determined according to the actual application scenario and is not limited here.
[0147] Please refer to Figure 10, which is a schematic diagram of another terminal interface provided in this application embodiment. Page B1 is page B1 in Figure 9. When the user clicks entry point b3, the user terminal can display the session collection page corresponding to the session collection of entry point b3, as shown in page B2. Furthermore, in area b5 of page B2, the collection entry points corresponding to all session collections in the chat group can also be displayed. Here, area b5 displays entry point b3 and entry point b4. When the user clicks entry point b4 in area b5, the user terminal can switch the display of the session collection page corresponding to the current entry point b3 to the session collection page corresponding to entry point b4, as shown in page B3.
[0148] Please refer to Figure 11, which is a schematic diagram of the interface of another terminal provided in an embodiment of this application. Pages E1, E2, and E3 are three pages of the user terminal. The user terminal can respond to a second reply operation on the first session data in the main session page and display a tag selection page, which includes multiple comment tags.
[0149] For example, page E1 includes the message "Want to go out and play?" sent by user Lele. When the user long-presses the message "Want to go out and play?" on page E1, the menu bar e4 and the tag selection page e1 can be displayed simultaneously. The tag selection page e1 includes multiple emoticons, i.e., multiple comment tags. The long-press operation by the user on the message "Want to go out and play?" on page E1 is the second reply operation mentioned above. The multiple comment tags on the tag selection page e1 can be system-preset comment tags or comment tags saved by the user. When the user swipes up on the tag selection page e1 of page E1, more comment tags can be displayed on the tag selection page. That is, the tag selection page e1, which originally displays two rows of comment tags, can display three rows of comment tags, as shown in interface E2. When the user continues to swipe up on the tag selection page in interface E2, the tag selection page still displays three rows of comment tags, but the comment tags in these three rows can be different from those in the tag selection page of page E2; that is, more comment tags can be displayed after the currently displayed comment tags.
[0150] The user terminal can respond to a selection operation on a comment tag in the tag selection page and determine the comment tag corresponding to the selection operation as the target comment tag. For example, the user terminal can respond to a user's selection operation (e.g., a click operation) on comment tag e2 in the tag selection page of page E2 and can use comment tag e2 with the selection operation as the target comment tag. The user terminal can display the target comment tag in the area where the first session data is located.
[0151] The area containing the first session data can be the adjacent surrounding area. For example, area e3 could be the area containing the session data "Want to go out and play?". The target comment marker, i.e., comment marker e2, can be displayed in area e3. As shown on page E3, in area e3 containing the session data "Want to go out and play?" with a second reply action, the comment marker e2 with a selection action action can be displayed.
[0152] Optionally, when a user long-presses the message "Want to go out and play?" on page E1, the user terminal can first display the menu bar e4, which includes an "Emoji" menu. Then, when the user clicks the "Emoji" menu in the menu bar e4, the user terminal can display a marker to select page e1. At this point, the user's long-press operation on the message "Want to go out and play?" on page E1 and the click operation on the "Emoji" menu in the menu bar e4 can be collectively referred to as the aforementioned second reply operation.
[0153] Please refer to Figure 12, which is a schematic diagram of another terminal interface provided in this application embodiment. As shown in Figure 12, pages F1 and F2 are two pages of the user terminal. In page F1, each user in the chat group can add comment tags to each piece of conversation data in page F1. Here, five comment tags are added to area f1 where the conversation data "Want to go out?" is located in page F1. The user terminal can respond to the tag browsing operation for the comment area, display the tag browsing page, and output all the target comment tags included in the comment area and the comment object corresponding to each target comment tag in the tag browsing page. Here, the comment area can refer to the area where the first conversation data with comment tags is displayed, and the comment tags displayed in the area where the first conversation data is located can all be called target comment tags.
[0154] For example, when a user clicks on a comment marker in area f1, the terminal can display the marker browsing page f2. The user's click on the comment marker in area f1 constitutes the marker browsing operation. The marker browsing page f2 includes each target comment marker, the corresponding comment object for each target comment marker, and the addition time of each target comment marker. The comment object refers to the user who added the target comment marker. The marker browsing page f2 displays the target comment marker "pig head" added by comment object "user Duoduo," the target comment marker "flower" added by comment object "user Tiantian," and the target comment marker "grape" added by comment object "user Mingming." When the user swipes up on the marker browsing page f2, they can browse more target comment markers and the corresponding comment objects for each target comment marker. Here, the more target comment markers include two additional target comment markers (i.e., the "like" target comment marker and the "heart" target comment marker).
[0155] The user terminal can respond to a retraction operation for the target comment tag and delete the target comment tag. Users can retract target comment tags added within a specified time period; for example, users can retract target comment tags added within two minutes. As shown on the tag browsing page f2, if a user adds the comment tag "pig head" within the specified time, a "Retract" button f3 can be displayed next to the user's added comment tag "pig head" on the tag browsing page f2. When the user clicks the "Retract" button f3, the user terminal can delete the user's added comment tag "pig head" from area f1.
[0156] When the first session data is text-based, the session collection entry can be carried by the latest acquired second session data, as described above, and then the second session data carrying the collection entry can be output to the main session page. When the first session data is image-based (e.g., pictures, emoticons, or videos), the session collection entry can be carried by the first session data, and then the first session data carrying the collection entry can be output to the main session page. See below for details:
[0157] The user terminal can respond to the first reply operation of the first session data in the main session page, and output the first session data carrying the collection entry in the main session page. Then, the user terminal can respond to the expansion operation of the collection entry carried by the first session data to create a session collection page; the session collection page is a subpage displayed independently on the main session page.
[0158] Please refer to Figure 13 for a detailed process, which is a schematic diagram of the interface of another terminal provided in this application embodiment. Pages H1, H2, H3, H4, and H5 are five pages of the user terminal. The conversation data h1 in page H1 can be image data or video data. Here, we will use image data as an example for explanation. When the user long-presses the conversation data h1, the user terminal will pop up a menu bar, which includes a "Reply" menu. When the user clicks the "Reply" menu in the menu bar, the user terminal can display a conversation entry page including the object to be replied to h2 (i.e., image h1), as shown in page H2. The user can enter the conversation data "Who is this?" in the conversation entry page of page H2 and click the send button on the keyboard in the conversation entry page. The user terminal can obtain the collection entry h3, and the collection entry h3 will be displayed next to the image h1 sent by the user, as shown in page H3. This indicates that a conversation collection has been created for image h1, and the first conversation data in the conversation collection is image h1.
[0159] The long press operation on the conversation data h1, the click operation on the "Reply" menu, and the click operation on the "Send" key on the keyboard can be collectively referred to as the first reply operation. That is, by responding to the first reply operation, the user terminal outputs the first conversation data (i.e., image h1) carrying the collection entry (i.e., collection entry h3) in the main conversation page. The collection entry can also display the number of second conversation data included in the current conversation collection. As shown in page H3, the collection entry h3 in page H3 displays the number of second conversation data as 1. This is because, at this time, there is only 1 second conversation data (i.e., the "Who is this?" sent by the user Duoduo) in the conversation collection corresponding to the first conversation data (i.e., image h1).
[0160] When user Duoduo clicks on image h1 sent by user Mingming on page H3, the user terminal can enlarge image h1, as shown on page H4. Page H4 also contains a collection entry point. When user Duoduo clicks on this collection entry point (which can be called the collection entry point expansion operation), the user terminal can create a session collection page h4 corresponding to image h1. The user terminal can then display the created session collection page h4 on the current page. In session collection page h4, the first session data is the image sent by user Mingming, and corresponding to this first session data is a second session data point, which is the message "Who is this?" sent by user Duoduo.
[0161] Optionally, users can directly click the collection entry h3 on page H3. The user's terminal will also create a session collection page h4 and display it on top of page H3. The user's click operation on the collection entry h3 can be referred to as the expansion operation of the collection entry carried by the first session data.
[0162] Please refer to Figure 14, which is a schematic diagram of the interface of another terminal provided in this application embodiment. Consistent with the process described in Figure 13 above, page J1 includes an emoticon j1 sent by user Mingming. When the user long-presses emoticon j1, the user terminal can display a menu bar, which includes a "Reply" menu. When the user clicks the "Reply" menu, the user terminal can display a conversation entry page including the object to be replied to j2 (i.e., emoticon j1), as shown on page J2. The user can enter the conversation data "Why are you sad?" on the conversation entry page including the object to be replied to j2 on page J2, and click the send button on the keyboard of the conversation entry page. At this time, emoticon j1 is the first conversation data, that is, a conversation set corresponding to emoticon j1 has been created. It can be seen that page J3 also carries a set entry j3 next to the emoticon sent by user Mingming.
[0163] When a user clicks on the emoticon sent by user Mingming on page J3, the user terminal can enlarge the emoticon, as shown on page J4. Page J4 also contains a collection entry point. When the user clicks on this entry point, the user terminal will display the conversation collection page J4 corresponding to emoticon j1 on the current page. Conversation collection page J4 includes the first conversation data (the emoticon sent by user Mingming) and the second conversation data ("Why are you sad?") sent by user Duoduo. Similarly, clicking on the collection entry point J3 on page J3 will also display the conversation collection page J4 on top of page J3.
[0164] Please refer to Figure 15, which is a schematic diagram of the structure of a session data processing device provided in an embodiment of this application. As shown in Figure 15, the session data processing device 1 can be applied to a user terminal and includes: a first acquisition module 101 and a creation module 102;
[0165] The first acquisition module 101 is used to respond to a first reply operation on the first session data in the main session page, acquire second session data that has a reply relationship with the first session data, output the collection entry of the session set corresponding to the first session data, and generate a collection creation instruction for the first session data; send the collection creation instruction and the second session data to the server so that the server determines the session set according to the collection creation instruction, the first session data and the second session data;
[0166] The creation module 102 is used in the main session page to respond to the expansion operation of the collection entry, create a session collection page corresponding to the session collection, and send a retrieval instruction to the server; receive the session collection from the server, and output the session data in the session collection in the session collection page, wherein the session collection includes the first session data and at least one second session data, and each second session data has a reply association relationship with the first session data.
[0167] Wherein, when the first session data is text type data, the first acquisition module 101 includes:
[0168] The first acquisition unit 1011 is used to respond to the first reply operation, acquire the first reply session data corresponding to the first session data as the second session data, and output the first reply session data carrying the collection entry on the main session page;
[0169] The creation module 102 includes:
[0170] The first creation unit 1021 is used to create the session collection page in response to the expansion operation carried by the collection entry in the first reply session data; the session collection page is a sub-page that is displayed independently on the main session page.
[0171] Wherein, when the first session data is image type data, the first acquisition module 101 includes:
[0172] The second acquisition unit 1012 is used to output the first session data carrying the collection entry in the main session page;
[0173] The creation module 102 includes:
[0174] The second creation unit 1022 is used to create the session collection page in response to the expansion operation of the collection entry carried by the first session data; the session collection page is a sub-page that is displayed independently on the main session page.
[0175] The session data processing device 1 further includes a second acquisition module 103, a first determination module 104, and a first output module 105.
[0176] The second acquisition module 103 is used to acquire the addition time of each piece of session data in the session set; the addition time refers to the time when the session data is added to the session set.
[0177] The first determining module 104 is used to determine the second session data with the latest addition time as carrying session data;
[0178] The first output module 105 is used to output the session data carrying the collection entry in the main session page.
[0179] The first output module 105 is further configured to:
[0180] The main session page sequentially outputs each piece of second session data from the session set; wherein the output time of each piece of second session data on the main session page is the same as the addition time of the second session data to the session set.
[0181] The session data processing device 1 further includes a marking module 106, a selection module 107, and a display module 108.
[0182] The tagging module 106 is used to respond to a second reply operation on the first session data in the main session page and display a tag selection page; the tag selection page includes multiple comment tags; the tag selection page is a subpage displayed independently on the main session page;
[0183] Selection module 107 is used to respond to a selection operation of a comment tag in the tag selection page and determine the comment tag corresponding to the selection operation as the target comment tag;
[0184] Display module 108 is used to display the target comment tag in the area where the first session data is located.
[0185] The session data processing device 1 further includes a second determining module 109 and a browsing module 110.
[0186] The second determining module 109 is used to determine the area where the first session data containing the target comment mark is located as the comment area;
[0187] The browsing module 110 is used to respond to the tag browsing operation for the comment area, display the tag browsing page, and output all target comment tags included in the comment area and the comment object corresponding to each target comment tag in the tag browsing page.
[0188] The session data processing device 1 further includes a third determining module 111, a third acquiring module 112, and a first deleting module 113.
[0189] The third determining module 111 is used to respond to the session triggering operation in the session collection page, determine the first session data as the target reply object, and display the session entry page with the target reply object;
[0190] The third acquisition module 112 is used to respond to the session entry operation on the session entry page with the target reply object and acquire second reply session data; the second reply session data includes the target reply object.
[0191] The first deletion module 113 is used to output the second reply session data carrying the collection entry in the main session page.
[0192] The session data processing device 1 further includes a fourth determining module 114, a fourth acquiring module 115, and a second deleting module 116.
[0193] The fourth determining module 114 is used to respond to the third reply operation for the second session data in the session collection page, determine the second session data that responds to the third reply operation as the selected reply object, and display the session entry page with the selected reply object;
[0194] The fourth acquisition module 115 is used to respond to the session entry operation on the session entry page with the selected reply object and acquire the third reply session data; the third reply session data includes the selected reply object;
[0195] The second deletion module 116 is used to output the third reply session data carrying the collection entry in the main session page.
[0196] The session data processing device 1 further includes a sharing module 117, a collection module 118, and an adding module 119.
[0197] Sharing module 117 is used to respond to a sharing operation for the session set, generate sharing information, and send the sharing information to the user terminal of the sharing object through the server, so that the user terminal of the sharing object responds to a display operation and outputs a session display page corresponding to the session set; the session display page is used to display the session data in the session set; or,
[0198] The favorites module 118 is used to respond to a favorites operation on the session set by adding the session set to the favorites bar; or,
[0199] Add module 119, used to determine the session set as historical session set data, and add the historical session set data to the historical session set list.
[0200] The creation module 1 includes a third acquisition unit 1023 and an output unit 1024.
[0201] The third acquisition unit 1023 is used to acquire each piece of session data in the session set, and to acquire the sender and the object to be replied to corresponding to each piece of session data;
[0202] The output unit 1024 is used to output each piece of session data in the session collection page; each piece of session data in the session collection page includes the corresponding sender and the object to be replied to.
[0203] Please refer to Figure 16, which is a schematic diagram of another session data processing device provided in an embodiment of this application. As shown in Figure 16, the session data processing device 2 may include: an instruction acquisition module 21 and a sending module 22;
[0204] The instruction acquisition module 21 is used to acquire from the user terminal a set creation instruction for first session data in the main session page and second session data that has a reply relationship with the first session data. The user terminal responds to a first reply operation for the first session data, acquires the second session data, and outputs the set entry for the session set corresponding to the first session data. The session set is determined based on the set creation instruction, the first session data, and the second session data. The session set includes the first session data and at least one second session data, and each second session data has a reply relationship with the first session data.
[0205] The sending module 22 is used to send the session set to the user terminal according to the acquisition instruction when it receives an acquisition instruction for the session set from the user terminal. The user terminal responds to the expansion operation for the set entry in the main session page, creates a session set page corresponding to the session set, and generates the acquisition instruction.
[0206] The instruction acquisition module 21 includes an identifier addition unit 211 and a storage unit 212.
[0207] The identifier addition unit 211 is used to set identifier information for the first session data and the second session data respectively; the identifier information includes a session set identifier.
[0208] Storage unit 212 is used to determine the first session data and at least one second session data carrying the same session set identifier as the session set, and store the session set with the added session set identifier to the database;
[0209] The sending module 22 is further configured to:
[0210] Based on the session set identifier carried in the acquisition instruction, the session set corresponding to the session set identifier is retrieved from the database, and the retrieved session set is sent to the user terminal.
[0211] Please refer to Figure 17, which is a schematic diagram of the structure of a user terminal provided in an embodiment of this application. As shown in Figure 17, the user terminal 1000 may include: a processor 1001, a network interface 1004, and a memory 1005. In addition, the user terminal 1000 may also include: a user interface 1003, and at least one communication bus 1002.
[0212] In the user terminal 1000 shown in Figure 17, the network interface 1004 can provide network communication functions; while the user interface 1003 is mainly used to provide an input interface for the user; and the processor 1001 can be used to call the device control application stored in the memory 1005 to implement the session data processing method described in any of the corresponding embodiments in Figures 3A-C and Figure 5 above.
[0213] Furthermore, it should be noted that this application also provides a computer-readable storage medium storing a computer program executed by the aforementioned session data processing device 1 and session data processing device 2. The computer program includes program instructions, which, when executed by the processor, enable the execution of the session data processing method described in any of the corresponding embodiments of Figures 2 and 5. Therefore, further details will not be provided here. Additionally, the beneficial effects of using the same method will also not be repeated. For technical details not disclosed in the computer storage medium embodiments of this application, please refer to the description of the method embodiments of this application.
[0214] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0215] The above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of this application. Therefore, any equivalent variations made in accordance with the claims of this application shall still fall within the scope of this application.
Claims
1. A session data processing method, It is characterized in that Executed by the user terminal, including: In response to a first reply operation on first session data in a main session page, obtaining second session data having a reply association relationship with the first session data, outputting a set entry of a session set corresponding to the first session data, and generating a set creation instruction for the first session data; sending the set creation instruction and the second session data to a server, so that the server determines the session set according to the set creation instruction, the first session data and the second session data; In the main session page, in response to an expansion operation on the set entry, a session set page corresponding to the session set is created, and a retrieval instruction is sent to the server; and, The session set is received from the server, and the session data in the session set is output in the session set page, wherein the session set includes the first session data and at least one second session data, and each second session data has a reply association relationship with the first session data.
2. The method according to claim 1, in, When the first session data is text type data, the responding to a first reply operation on the first session data in the main session page, acquiring second session data having a reply association relationship with the first session data, and outputting a set entry of a session set corresponding to the first session data, includes: In response to the first reply operation, obtaining first reply session data corresponding to the first session data as the second session data, and outputting the first reply session data carrying the collection entry on the main session page; The step of creating a session collection page corresponding to the session collection in response to the expansion operation on the collection entry includes: In response to the expansion operation on the collection entry carried by the first reply conversation data, the conversation collection page is created; the conversation collection page is a sub-page displayed independently on the main conversation page.
3. The method according to claim 1, in, When the first session data is image type data, the outputting the set entry of the session set corresponding to the first session data includes: Outputting the first session data carrying the collection entry in the main session page; The step of creating a session collection page corresponding to the session collection in response to an expansion operation on the collection entry in the main session page includes: In response to the expansion operation on the collection entry carried by the first session data, the session collection page is created; the session collection page is a sub-page displayed independently on the main session page.
4. The method according to claim 2, in, Also includes: Obtaining the adding time of each session data in the session set; The adding time refers to the time when the session data is added to the session set; The session data with the latest adding time is determined as the carried session data; The session data carrying the collection entry is output in the main session page.
5. The method according to claim 4, in, Also includes: Output each second session data in the session set in sequence on the main session page; wherein the output time of each second session data on the main session page is the same as the addition time of the second session data to the session set.
6. The method according to claim 1, in, Also includes: In response to a second reply operation on the first session data in the main session page, displaying a tag selection page; The tag selection page includes a plurality of comment tags; The tag selection page is a sub-page displayed independently on the main session page; In response to a selection operation on a comment tag in the tag selection page, determining the comment tag corresponding to the selection operation as a target comment tag; The target comment mark is displayed in the area where the first conversation data is located.
7. The method according to claim 6, in, Also includes: Determine the area where the first conversation data having the target comment mark is located as the comment area; In response to a tag browsing operation on the comment area, a tag browsing page is displayed, and target comment tags included in the comment area and comment objects corresponding to each target comment tag are output on the tag browsing page.
8. The method according to claim 1, in, Also includes: In response to a session triggering operation in the session collection page, determining the first session data as a target reply object, and displaying a session entry page having the target reply object; In response to a session entry operation in the session entry page having the target reply object, obtaining second reply session data; The second reply conversation data includes the target reply object; The second reply session data carrying the collection entry is output in the main session page.
9. The method according to claim 1, in, Also includes: In response to a third reply operation on the second conversation data in the conversation collection page, determining the second conversation data in response to the third reply operation as a selected reply object, and displaying a conversation entry page with the selected reply object; In response to a session entry operation in the session entry page having the selected reply object, obtaining third reply session data; The third reply conversation data includes the selected reply object; The third reply session data carrying the collection entry is output in the main session page.
10. The method according to claim 1, in, Also includes: In response to a sharing operation on the session set, sharing information is generated, and the sharing information is sent to a user terminal of a sharing object through the server, so that the user terminal of the sharing object responds to a display operation and outputs a session display page corresponding to the session set; the session display page is used to display the session data in the session set.
11. The method according to claim 1, in, Also includes: In response to a favorite operation on the conversation collection, the conversation collection is added to a favorites bar.
12. The method according to claim 1, in, Also includes: The session set is determined as historical session set data, and the historical session set data is added to a historical session set list.
13. The method according to claim 1, in, The step of receiving the session set from the server and outputting the session data in the session set on the session set page includes: Obtain each piece of session data in the session set, and obtain the sender and the object to be replied corresponding to each piece of session data; Output each piece of session data in the session collection page; each piece of session data in the session collection page includes the corresponding sender and the object to be replied.
14. A method for processing session data, It is characterized in that Executed by the server, including: Acquire, from a user terminal, a set creation instruction for first session data in a main session page and second session data having a reply association relationship with the first session data, wherein the user terminal responds to a first reply operation for the first session data, acquires the second session data, and outputs a set entry of a session set corresponding to the first session data; Determine the session set according to the set creation instruction, the first session data and the second session data; the session set includes the first session data and at least one second session data, each second session data has a reply association relationship with the first session data; and, When an acquisition instruction for the session set is obtained from the user terminal, the session set is sent to the user terminal according to the acquisition instruction, wherein the user terminal responds to the expansion operation for the set entry in the main session page, creates a session set page corresponding to the session set, and generates the acquisition instruction.
15. The method according to claim 14, in, The determining the session set according to the set creation instruction, the first session data, and the second session data includes: Setting identification information of the first session data and the second session data respectively; the identification information includes a session set identifier; Determine the first session data and at least one second session data carrying the same session set identifier as the session set, and store the session set with the session set identifier added into a database; When an acquisition instruction for the session set is acquired from the user terminal, sending the session set to the user terminal according to the acquisition instruction includes: According to the session set identifier carried by the acquisition instruction, a session set corresponding to the session set identifier is pulled from the database, and the pulled session set is sent to the user terminal.
16. A session data processing device, It is characterized in that include: A first acquisition module, configured to respond to a first reply operation on first session data in a main session page, acquire second session data having a reply association relationship with the first session data, output a set entry of a session set corresponding to the first session data, and generate a set creation instruction for the first session data; sending the set creation instruction and the second session data to a server, so that the server determines the session set according to the set creation instruction, the first session data and the second session data; A creation module, configured to create a session set page corresponding to the session set in response to an expansion operation on the set entry in the main session page, and send an acquisition instruction to the server; The session set is received from the server, and the session data in the session set is output in the session set page, wherein the session set includes the first session data and at least one second session data, and each second session data has a reply association relationship with the first session data.
17. The device according to claim 16, in, When the first conversation data is text type data, the first acquisition module includes: a first acquiring unit, configured to respond to the first reply operation, acquire first reply session data corresponding to the first session data as the second session data, and output the first reply session data carrying the collection entry on the main session page; The creation module includes: The first creation unit is used to create the conversation collection page in response to the expansion operation on the collection entry carried by the first reply conversation data; the conversation collection page is a sub-page displayed independently on the main conversation page.
18. The device according to claim 16, in, When the first session data is image type data, the first acquisition module includes: A second acquisition unit, configured to output the first session data carrying the collection entry in the main session page; The creation module includes: The second creation unit is used to create the session collection page in response to the expansion operation on the collection entry carried by the first session data; the session collection page is a sub-page displayed independently on the main session page.
19. The device according to claim 16, further comprising: include: a marking module, configured to respond to a second reply operation on the first session data in the main session page and display a marking selection page; The tag selection page includes a plurality of comment tags; The tag selection page is a sub-page displayed independently on the main session page; A selection module, configured to respond to a selection operation on a comment mark in the mark selection page and determine the comment mark corresponding to the selection operation as a target comment mark; A display module is used to display the target comment mark in the area where the first conversation data is located.
20. The device according to claim 16, further comprising: include: A third determination module is used to respond to the session triggering operation in the session collection page, determine the first session data as a target reply object, and display a session entry page with the target reply object; A third acquisition module, configured to respond to a session entry operation in the session entry page having the target reply object and acquire second reply session data; The second reply conversation data includes the target reply object; The first deletion module is used to output the second reply session data carrying the collection entry in the main session page.
21. The device according to claim 16, further comprising: include: A fourth determining module is used to respond to a third reply operation on the second conversation data in the conversation collection page, determine the second conversation data in response to the third reply operation as a selected reply object, and display a conversation entry page with the selected reply object; A fourth acquisition module, configured to respond to a session entry operation in the session entry page having the selected reply object, and acquire third reply session data; The third reply conversation data includes the selected reply object; The second deletion module is used to output the third reply session data carrying the collection entry in the main session page.
22. A session data processing device, It is characterized in that include: an instruction acquisition module, configured to acquire, from a user terminal, a set creation instruction for first session data in a main session page and second session data having a reply association relationship with the first session data, wherein the user terminal responds to a first reply operation for the first session data, acquires the second session data, and outputs a set entry of a session set corresponding to the first session data; determines the session set according to the set creation instruction, the first session data, and the second session data; the session set includes the first session data and at least one second session data, and each second session data has a reply association relationship with the first session data; A sending module is used to send the session set to the user terminal according to the acquisition instruction when an acquisition instruction for the session set is obtained from the user terminal, wherein the user terminal responds to the expansion operation for the set entry in the main session page, creates a session set page corresponding to the session set, and generates the acquisition instruction.
23. The device according to claim 22, in, The instruction acquisition module includes: an identification adding unit, used to set identification information of the first session data and the second session data respectively; the identification information includes a session set identification; a storage unit, configured to determine the first session data and at least one second session data carrying the same session set identifier as the session set, and store the session set with the session set identifier added into a database; The sending module is used to pull the session set corresponding to the session set identifier from the database according to the session set identifier carried by the acquisition instruction, and send the pulled session set to the user terminal.
24. A user terminal, It is characterized in that include: Processor and memory; The processor is connected to a memory, wherein the memory is used to store a computer program, and the processor is used to call the computer program to execute the method according to any one of claims 1 to 13.
25. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the method according to any one of claims 1 to 13 is executed.