Chat session display method, apparatus and device, and computer readable storage medium
By displaying the browsed chat session information in the chat session interface of the instant messaging client and determining its display position according to the browsed information, the problem of users having to spend a long time and inefficiency in searching for chat sessions is solved, and the chat session search efficiency and user experience are improved.
Patent Information
- Application Number
- CN202410382076.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-29
- Publication Date
- 2025-09-30
AI Technical Summary
Users spend a long time searching for chat sessions in instant messaging clients and the efficiency is low, resulting in a poor chat experience.
A method for displaying chat sessions is provided, which realizes quick search and management by displaying the session information of browsed chat sessions in a chat session interface and determining the display position according to the browsed information.
It shortens the time to search for chat sessions, improves the search efficiency and user experience of chat sessions, and improves the efficiency and orderliness of information management.
Smart Images

Figure CN120723116A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a method, apparatus, device, and computer-readable storage medium for displaying a chat session. Background Art
[0002] With the continuous development of computer technology, instant messaging clients have emerged, and people chat and interact through instant messaging clients.
[0003] However, users generate a large number of chat sessions every day. Users often browse the content of a first chat session and then switch to a second chat session to browse the content of the second chat session. After that, users need to traverse all chat sessions and spend a lot of time to find the first chat session, which takes a long time to find the chat session and has low chat session search efficiency, resulting in a poor chat experience for users. Summary of the Invention
[0004] The present invention provides a method, apparatus, device, and computer-readable storage medium for displaying chat sessions, which can be used to address the problems in related technologies such as the long time required to search for chat sessions, low chat session search efficiency, and poor user chat experience. The technical solution includes the following content.
[0005] In one aspect, an embodiment of the present application provides a method for displaying a chat session, the method comprising:
[0006] displaying a chat session interface, wherein the chat session interface displays session information of at least one first chat session;
[0007] When a function for viewing a chat session browsing record is triggered, session information of at least one second chat session is displayed in the chat session interface. Any second chat session is a chat session that has been browsed in the first chat session. A display position of the session information of any second chat session in the chat session interface is determined based on the browsing information of the any second chat session.
[0008] On the other hand, an embodiment of the present application provides a device for displaying a chat session, the device comprising:
[0009] A display module, configured to display a chat session interface, wherein the chat session interface displays session information of at least one first chat session;
[0010] The display module is further configured to display session information of at least one second chat session in the chat session interface when a function of viewing the chat session browsing history is triggered, wherein any second chat session is a chat session that has been browsed in the first chat session, and a display position of the session information of any second chat session in the chat session interface is determined based on the browsing information of the any second chat session.
[0011] In one possible implementation, the chat session interface includes a first functional area and a second functional area, the first functional area being used to display session information of the at least one first chat session, and the second functional area being used to display a chat session browsing history, and when the second functional area is selected, a function for viewing the chat session browsing history is triggered;
[0012] The display module is configured to display the chat session browsing record, where the chat session browsing record includes session information of the at least one second chat session.
[0013] In one possible implementation, the display module is further configured to, in response to a triggering operation on session information of a third chat session, display a session page of the third chat session, wherein the session page of the third chat session displays session content of the third chat session, and the third chat session is a chat session within the second chat session; and when the session page of the third chat session is closed, display the session information of the third chat session at the top of the chat session interface.
[0014] In a possible implementation, the display module is further configured to, upon receiving the session content of a fourth chat session and receiving a viewing operation for the session content of the fourth chat session, display a session page of the fourth chat session, wherein the session content of the fourth chat session is displayed on the session page of the fourth chat session, and the fourth chat session is different from the third chat session.
[0015] In a possible implementation, a return control is displayed on the session page of the fourth chat session, and the return control is used to return to the session page of the third chat session;
[0016] The display module is further configured to display a session page of the third chat session in response to a triggering operation on the return control.
[0017] In a possible implementation, at least one of prompt information and session information of the third chat session is displayed in the return control, and the prompt information is used to prompt the return control to return to the session page of the third chat session.
[0018] In a possible implementation, the apparatus further includes:
[0019] a determination module, configured to determine candidate reply content based on the conversation content of the third chat conversation;
[0020] The display module is further configured to display the candidate reply content on the session page of the third chat session;
[0021] The reply module is configured to reply to the target reply content in response to a triggering operation on the target reply content in the candidate reply content.
[0022] In a possible implementation, the apparatus further includes:
[0023] an acquisition module, configured to acquire, when a function of viewing a chat session browsing record is triggered, a plurality of browsing records, wherein any browsing record includes session information of a browsed second chat session and a browsing time of the second chat session;
[0024] a determination module, configured to determine a display position of the session information of the second chat session corresponding to each browsing record in the chat session interface according to the browsing time of the second chat session corresponding to each browsing record;
[0025] The display module is further configured to display the session information of the second chat session corresponding to each browsing record in the chat session interface according to the display position of the session information of the second chat session corresponding to each browsing record in the chat session interface.
[0026] In a possible implementation, the acquisition module is configured to generate an acquisition request carrying an object identifier of a target object; send the acquisition request to a server; and receive multiple browsing records of the target object returned by the server based on the acquisition request.
[0027] In a possible implementation, the chat session interface further displays a chat session type control and a browsing time control;
[0028] The device further comprises:
[0029] a determination module, configured to determine a target chat session type according to the chat session type control; and determine a target time period according to the browsing time control;
[0030] The determining module is further configured to determine, in the second chat session, a fifth chat session based on the target chat session type and the target time period, where the chat session type of the fifth chat session is the target chat session type and the browsing time of the fifth chat session is within the target time period; and determine, based on the browsing time of each fifth chat session, a display position of the session information of each fifth chat session in the chat session interface;
[0031] The display module is further configured to display the session information of each fifth chat session in the chat session interface according to a display position of the session information of each fifth chat session in the chat session interface.
[0032] In a possible implementation, the apparatus further includes:
[0033] a sending module, configured to send browsing information to a server in response to a triggering operation on session information of a sixth chat session, the browsing information including an object identifier of a target object, a session identifier of the sixth chat session, and a browsing time of the sixth chat session, where the sixth chat session is any chat session in the first chat session; the browsing information being used by the server to generate a browsing record based on the session identifier of the sixth chat session and the browsing time of the sixth chat session, and to add the browsing record to a browsing record table corresponding to the object identifier of the target object.
[0034] On the other hand, an embodiment of the present application provides a computer device, which includes a processor and a memory, wherein the memory stores at least one program code, and the at least one program code is loaded and executed by the processor so that the computer device implements any of the above-mentioned chat session display methods.
[0035] On the other hand, a computer-readable storage medium is provided, in which at least one program code is stored. The at least one program code is loaded and executed by a processor to enable a computer to implement any of the above-mentioned chat session display methods.
[0036] On the other hand, a computer program or computer program product is also provided, wherein the computer program or computer program product stores at least one computer instruction, and the at least one computer instruction is loaded and executed by a processor to enable a computer to implement any of the above-mentioned chat session display methods.
[0037] The technical solutions provided by the embodiments of the present application bring at least the following beneficial effects:
[0038] The technical solution provided by the embodiment of the present application provides a chat session browsing history search function. When the chat session browsing history search function is triggered, the session information of at least one second chat session that has been browsed is displayed in the chat session interface. In this way, the previously browsed chat session can be searched in the chat session interface, which shortens the time required to search for the chat session, greatly improves the chat session search efficiency, enhances the chat experience, and also improves the efficiency of information management, making information management more orderly. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0040] Figure 1 This is a schematic diagram of an implementation environment of a method for displaying a chat session provided in an embodiment of the present application;
[0041] Figure 2 This is a flowchart of a method for displaying a chat session provided by an embodiment of the present application;
[0042] Figure 3 This is a display diagram of a chat session interface provided by an embodiment of the present application;
[0043] Figure 4 2 is a schematic diagram showing a display of a session page of a sixth chat session provided by an embodiment of the present application;
[0044] Figure 5 This is a schematic diagram of another chat session interface provided by an embodiment of the present application;
[0045] Figure 6 This is a schematic diagram of another chat session interface provided by an embodiment of the present application;
[0046] Figure 7 This is a display diagram of another chat session interface provided by an embodiment of the present application;
[0047] Figure 8 2 is a schematic diagram showing a display of a session page of a third chat session provided in an embodiment of the present application;
[0048] Figure 9 is a schematic diagram of a conversation page of a third chat conversation provided in an embodiment of the present application;
[0049] Figure 10 This is an architectural diagram of a method for displaying a chat session provided in an embodiment of the present application;
[0050] Figure 11 This is a flowchart of a process in which a server adds a browsing record to a browsing record table of a target object, provided by an embodiment of the present application;
[0051] Figure 12 This is a flowchart of a process for obtaining browsing history of a target object provided by an embodiment of the present application;
[0052] Figure 13 This is a flow chart of an embodiment of the present application providing a method for displaying session information of a chat session of a target chat session type browsed during a target time period;
[0053] Figure 14 This is a structural diagram of a chat session display device provided in an embodiment of the present application;
[0054] Figure 15 This is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application;
[0055] Figure 16 This is a structural diagram of a server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0056] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.
[0057] It should be noted that the terms "first," "second," and the like in this application are used to distinguish similar objects and are not necessarily used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
[0058] With the continuous development of computer technology, instant messaging clients have emerged. People use instant messaging clients to chat and interact. However, the number of chat sessions generated by users every day is relatively large. Users often browse the content of a first chat session and then switch to the session page of a second chat session to view the content of the second chat session. When the user wants to process the first chat session, it is necessary to traverse all chat sessions to find the first chat session. This takes a long time to find the chat session and reduces the search efficiency of the chat session, which in turn leads to a poor chat experience for the user. In this regard, an embodiment of the present application provides a method for displaying chat sessions.
[0059] Figure 1 This is a schematic diagram of an implementation environment of a chat session display method provided by an embodiment of the present application, such as Figure 1 As shown, the implementation environment includes: a terminal device 101 and a server 102. Among them, an instant messaging client is installed and running in the terminal device 101. The chat session display method provided in the embodiment of the present application can be executed by the terminal device 101 or by the terminal device 101 and the server 102. This embodiment of the present application is not limited to this.
[0060] Server 102 provides backend services for the instant messaging client installed on terminal device 101. In one possible implementation, server 102 performs primary computing tasks, while terminal device 101 performs secondary computing tasks. Alternatively, server 102 performs secondary computing tasks, while terminal device 101 performs primary computing tasks. Alternatively, terminal device 101 and server 102 utilize a distributed computing architecture for collaborative computing.
[0061] Optionally, the terminal device 101 may be any electronic device that can interact with a user through one or more methods such as a keyboard, a touchpad, a remote control, voice interaction, or a handwriting device. For example, the terminal device 101 may be a smartphone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, a PC (Personal Computer), a mobile phone, a PDA (Personal Digital Assistant), a wearable device, a PPC (Pocket PC), a smart car computer, a smart TV, etc.
[0062] Terminal device 101 may generally refer to one of multiple terminal devices. This embodiment uses terminal device 101 as an example. Those skilled in the art will appreciate that the number of terminal devices 101 may be greater or lesser. For example, there may be only one terminal device 101, or there may be dozens, hundreds, or even more terminal devices 101. This embodiment of the application does not limit the number or type of terminal devices 101.
[0063] The server 102 is a single server, or a server cluster consisting of multiple servers, or any one of a cloud computing platform and a virtualization center, which is not limited in the embodiments of the present application. The server 102 is directly or indirectly connected to the terminal device 101 via a wired or wireless communication method. The server 102 has a data receiving function, a data processing function, and a data sending function. Of course, the server 102 may also have other functions, which are not limited in the embodiments of the present application.
[0064] In an exemplary embodiment of the present application, a target object 103 is logged into an instant messaging client installed and running on a terminal device 101. Terminal device 101 displays a chat session interface 104 of the instant messaging client based on the chat session display method provided in an embodiment of the present application, displaying session information of at least one first chat session corresponding to the target object in chat session interface 104. Exemplarily, upon receiving an opening operation from the instant messaging client, terminal device 101 displays the chat session interface. When a chat session browsing history viewing function is triggered, terminal device 101 interacts with server 102 to obtain session information of second chat sessions that the target object has browsed within at least one first chat session. Furthermore, based on the browsing information of each second chat session, terminal device 101 determines the display position of each second chat session within the chat session interface. Furthermore, based on the display position of each second chat session within the chat session interface, terminal device 101 displays the session information of each second chat session within the chat session interface. This allows the target object to quickly search for previously browsed chat sessions within the chat session interface.
[0065] When a trigger operation for the session information of the third chat session in the second chat session is received, the terminal device 101 displays the session page 106 of the third chat session so that the target object can view the session content of the third chat session.
[0066] When the target user is viewing the content of the third chat session and receives the content of the fourth chat session, and receives a viewing operation for the content of the fourth chat session, the terminal device 101 displays the session page 107 of the fourth chat session, allowing the target user to view the content of the fourth chat session. The session page of the fourth chat session includes a return control 108. When the return control is triggered, the terminal device 101 displays the session page 106 of the third chat session. This allows users to quickly return to the last viewed chat session.
[0067] Those skilled in the art should understand that the above-mentioned terminal device 101 and server 102 are merely examples, and other existing or future terminal devices or servers, if applicable to the present application, should also be included in the scope of protection of the present application and are incorporated herein by reference.
[0068] The embodiment of the present application provides a method for displaying a chat session, which can be applied to the above Figure 1 The implementation environment shown is Figure 2 The flowchart of a method for displaying a chat session provided by the embodiment of the present application is shown as an example. The method can be performed by Figure 1 The terminal device 101 in the embodiment is executed. Figure 2As shown, the method includes the following contents.
[0069] In step 201, a chat session interface is displayed, wherein session information of at least one first chat session is displayed in the chat session interface.
[0070] In an exemplary embodiment of the present application, an instant messaging client is installed and running in the terminal device. The instant messaging client is a client that uses instant messaging technology to realize online chatting and communication, and a target object is logged in to the instant messaging client. The embodiment of the present application does not limit the type of instant messaging client installed and running in the terminal device. Optionally, the instant messaging client installed and running in the terminal device can be a client that needs to be downloaded and installed independently, or it can refer to an embedded program that relies on a host program to run. The embedded program includes but is not limited to applets. Based on the fact that the instant messaging client is an embedded program, the embedded program is an application program developed based on a programming language and relies on a host program to run. The embedded program does not need to be downloaded and installed, but only needs to be dynamically loaded in the host program to run. The user can find the embedded program they need by searching, scanning, etc., click to run and use it, and it will not occupy the memory of the terminal device after closing it after use, which is very convenient.
[0071] In one possible implementation, the display interface of the terminal device displays relevant information about an instant messaging client. The relevant information about the instant messaging client can be the name of the instant messaging client, the icon of the instant messaging client, or the name and icon of the instant messaging client. This embodiment of the present application does not limit this. When the target object wants to open the instant messaging client, the target object selects the relevant information about the instant messaging client, the terminal device receives the selection operation for the instant messaging client, and the terminal device displays a chat session interface. The chat session interface displays session information of at least one first chat session. The first chat session displayed in the chat session interface includes all chat sessions of the target object. Due to the small size of the display screen of the terminal device, the amount of session information of the first chat session displayed on the display screen of the terminal device is limited. Therefore, the session information of the first chat session displayed on the display screen of the terminal device can be updated by sliding the display screen of the terminal device. In this way, the target object can view the session information of all first chat sessions of the target object.
[0072] The target object may select the relevant information of the instant messaging client by clicking on the relevant information of the instant messaging client, or by double-clicking on the relevant information of the instant messaging client. The target object may also select the relevant information of the instant messaging client by other means, which is not limited in the embodiments of the present application. The target object is both the user of the terminal device and the object logged in to the instant messaging client.
[0073] In one possible implementation, a chat session interface includes a first functional area and a second functional area. The first functional area is used to display session information of at least one first chat session, and the second functional area is used to display chat session browsing history. When the second functional area is selected, a function for viewing chat session browsing history is triggered. When the chat session interface displays session information of at least one first chat session, the first functional area appears selected.
[0074] Optionally, the display position of the session information of any first chat session in the chat session interface is determined based on the time corresponding to the last session content of any chat session. The time corresponding to the last session content is determined based on the recipient of the last session content. If the recipient of the last session content is a target recipient, the time corresponding to the last session content is the time when the last session content was sent; if the recipient of the last session content is a non-target recipient, the time corresponding to the last session content is the time when the last session content was received.
[0075] The process of determining, based on the time corresponding to the last conversation content of each first chat session, a display position of session information of each first chat session in the chat session interface includes: determining a first time difference between a current time and a time corresponding to the last conversation content of each first chat session; sorting the first time differences according to a target order to obtain a first time difference sequence; and using the position of the first time difference between the current time and the time corresponding to the last conversation content of any first chat session in the first time difference sequence as the display position of the session information of any first chat session in the chat session interface.
[0076] Optionally, the target order can be from small to large or from large to small, and this embodiment of the application is not limited to this. Since when displaying the session information of a chat session, the closer the time corresponding to the last session content of the chat session is to the current time, the closer the display position of the chat session session information is, the embodiment of the application uses the target order from small to large as an example for explanation.
[0077] For example, the target object has five first chat sessions. The first time difference between the current time and the time corresponding to the last conversation content of the first first chat session is 2 minutes; the first time difference between the current time and the time corresponding to the last conversation content of the second first chat session is 30 seconds; the first time difference between the current time and the time corresponding to the last conversation content of the third first chat session is 50 seconds; the first time difference between the current time and the time corresponding to the last conversation content of the fourth first chat session is 1 minute; and the first time difference between the current time and the time corresponding to the last conversation content of the fifth first chat session is 3 minutes. The first time differences are sorted in ascending order, resulting in a first time difference sequence of 30 seconds, 50 seconds, 1 minute, 2 minutes, and 3 minutes. Therefore, the session information of the first first chat session is displayed in the fourth position on the chat session interface, the session information of the second first chat session is displayed in the first position on the chat session interface, the session information of the third first chat session is displayed in the second position on the chat session interface, the session information of the fourth first chat session is displayed in the third position on the chat session interface, and the session information of the fifth first chat session is displayed in the fifth position on the chat session interface.
[0078] In one possible implementation, the session information of the first chat session includes at least one of an icon for the first chat session, the name of the first chat session, or the last conversation content of the first chat session. If the chat session type of the first chat session is a group chat session and the recipient of the last conversation content of the first chat session is a non-target recipient, the session information of the first chat session may also include recipient information (e.g., recipient name) of the last conversation content of the first chat session. The chat session interface may also display the time corresponding to the last conversation content of each first chat session.
[0079] like Figure 3 This is a display diagram of a chat session interface provided by an embodiment of the present application. Figure 3In the chat session interface shown, the first function area (all) is selected, and session information for four first chat sessions is displayed. The display positions of the session information for these four first chat sessions in the chat session interface are determined based on the time corresponding to the last session content of each first chat session. Specifically, the time difference between the current time and the time corresponding to the last session content of the first first chat session is less than the time difference between the current time and the time corresponding to the last session content of the second first chat session, the time difference between the current time and the time corresponding to the last session content of the second first chat session is less than the time difference between the current time and the time corresponding to the last session content of the third first chat session, and the time difference between the current time and the time corresponding to the last session content of the third first chat session is less than the time difference between the current time and the time corresponding to the last session content of the fourth first chat session. Figure 3 The icon of the first chat session displayed in the interface is 301, the name of the first chat session is "Group Chat 1", the last conversation content of the first chat session is "Everyone, please take a look as soon as possible", and the time corresponding to the last conversation content of the first chat session is "just now". Since the chat session type of the first chat session is a group chat session and the recipient of the last conversation content of the first chat session is a non-target object, the chat session interface also displays the object name "Brother Jian" to which the last conversation content of the first chat session was sent. Figure 3 The session information of other first chat sessions shown is shown in Figure 3 As shown, no further description is given here.
[0080] In a possible implementation, after the chat session interface is displayed, the target object can view the session page of any first chat session. In response to a trigger operation for the session information of the sixth chat session, the session page of the sixth chat session is displayed. The sixth chat session is any chat session in the first chat session. The session page of the sixth chat session displays the session content of the sixth chat session. Figure 4 : is a display diagram of a sixth chat session page provided by an embodiment of the present application. Figure 4 The target object in (1) selects the conversation information of group chat 3 (the sixth chat conversation), and then displays Figure 4 The conversation page of group chat 3 (sixth chat conversation) shown in (2) in FIG.
[0081] When the target object browses the sixth chat session, browsing information may also be sent to the server. Optionally, in response to a triggering operation on the session information of the sixth chat session, browsing information may also be sent to the server. The browsing information includes the target object's object identifier, the session identifier of the sixth chat session, and the browsing time of the sixth chat session. The sixth chat session is any chat session in the first chat session. The browsing information is used by the server to generate a browsing record based on the session identifier and the browsing time of the sixth chat session, and add the browsing record to the browsing record table corresponding to the target object's object identifier. The browsing time of the sixth chat session is the triggering time of the session information of the sixth chat session, that is, the time when the target object browsed the session content of the sixth chat session.
[0082] After receiving the browsing information, the server parses the browsing information to obtain the object identifier of the target object, the session identifier of the sixth chat session, and the browsing time of the sixth chat session. A data sequence number allocator assigns a data sequence number to the browsing information. The data sequence number allocator ensures that the data sequence numbers assigned to a single object identifier are monotonically increasing. Each data update requires the data sequence number to be incremented for subsequent data retrieval based on the data sequence number. A determination is made as to whether a browsing record corresponding to the target object's object identifier exists for a chat session as the sixth chat session. If a browsing record corresponding to the target object's object identifier exists for a chat session as the sixth chat session, the browsing time and data sequence number of the browsing record corresponding to the target object's object identifier are updated. Optionally, the browsing time of the browsing record corresponding to the target object's object identifier for a chat session as the sixth chat session is updated to the browsing time of the sixth chat session included in the browsing information. The data sequence number of the browsing record corresponding to the target object's object identifier for a chat session as the sixth chat session is updated to the data sequence number of the browsing information.
[0083] If there is no browsing record in which the chat session is the sixth chat session in the browsing record table corresponding to the object identifier of the target object, a browsing record is generated based on the session identifier of the sixth chat session and the browsing time of the sixth chat session, and the browsing record and the data serial number of the browsing information are added to the browsing record table corresponding to the object identifier of the target object.
[0084] Optionally, the session type of the sixth chat session can be determined based on the session identifier of the sixth chat session; a browsing record can be generated based on the session identifier of the sixth chat session, the session type of the sixth chat session, and the browsing time of the sixth chat session; and the browsing record and the data sequence number of the browsing information can be added to the browsing record table corresponding to the object identifier of the target object. The browsing record table corresponding to the object identifier of the target object stores multiple browsing records of the target object and the data sequence number of each browsing record. A browsing record includes the session identifier of the browsed chat session, the session type of the browsed chat session, and the browsing time of the browsed chat session.
[0085] Optionally, the data sequence number of the browsing information is the sum of the maximum data sequence number stored in the browsing record table of the target object and 1. For example, if the maximum data sequence number stored in the browsing record table of the target object is 10, the data sequence number of the browsing information is 11.
[0086] Table 1 below is an exemplary table of a browsing record table corresponding to an object identifier of a target object provided in an embodiment of the present application.
[0087] Table 1
[0088]
[0089]
[0090] As shown in Table 1 above, the first browsing record in the browsing record table corresponding to the target object's object identifier has a data sequence number of 01, a session identifier of chat session 1, a session type of group chat session, and a browsing time of 11:36:20 on March 19, 2024. Other browsing records in the browsing record table corresponding to the target object's object identifier are shown in Table 1 above and are not detailed here.
[0091] The server includes a browsing record management module. After receiving the browsing information, the server sends the browsing information to the browsing record management module, which then adds the browsing record corresponding to the browsing information to the browsing record table corresponding to the object identifier of the target object.
[0092] Optionally, a search box may also be displayed in the chat session interface, such as Figure 3302 is a search box used for searching. In response to a triggering operation on the search box, key information is obtained; content matching the key information is determined; and a search page is displayed, showing the content matching the key information. The content matching the key information can be session information of a chat session whose session information includes the key information, or can be session information of a chat session whose session content includes the key information. In response to a triggering operation on the search box, the process of obtaining key information includes: obtaining content entered in the search box in response to the triggering operation on the search box; using the content entered in the search box as key information; or using content matching the content entered in the search box as key information.
[0093] In step 202, when the viewing function of the chat session browsing history is triggered, session information of at least one second chat session is displayed in the chat session interface. Any second chat session is a chat session that has been browsed in the first chat session, and the display position of the session information of any second chat session in the chat session interface is determined according to the browsing information of any second chat session.
[0094] In a possible implementation, a second functional area (browsing record control) is displayed in the chat session interface, such as Figure 3 303 is the second functional area, which is used to display chat session browsing history. When the second functional area is selected, the chat session browsing history viewing function is triggered. In response to a triggering operation on the second functional area, the chat session browsing history viewing function is triggered. The triggering operation on the second functional area can be a single click operation on the second functional area, a double click operation on the second functional area, or other methods can be used to trigger the second functional area, which is not limited in this embodiment of the present application.
[0095] The process of displaying the session information of at least one second chat session in the chat session interface includes: displaying a chat session browsing record, where the chat session browsing record includes the session information of the at least one second chat session.
[0096] Optionally, when a function of viewing a chat session browsing record is triggered, a process of displaying session information of at least one second chat session in the chat session interface includes: when the function of viewing a chat session browsing record is triggered, obtaining multiple browsing records, any browsing record including session information of a browsed second chat session and a browsing time of the second chat session; determining a display position of the session information of the second chat session corresponding to each browsing record in the chat session interface according to the browsing time of the second chat session corresponding to each browsing record; and displaying the session information of the second chat session corresponding to each browsing record in the chat session interface according to the display position of the session information of the second chat session corresponding to each browsing record in the chat session interface.
[0097] The process of obtaining multiple browsing records includes: generating an acquisition request, which carries the object identifier of the target object; sending the acquisition request to the server; and receiving multiple browsing records of the target object returned by the server based on the acquisition request.
[0098] Optionally, after receiving the acquisition request, the server parses the acquisition request to obtain the object identifier of the target object; the server stores a correspondence between the object identifier of each object and the browsing record table of each object. The server determines the browsing record table of the target object based on the object identifier of the target object; if the number of browsing records stored in the browsing record table of the target object is not greater than the target number, the server sends all browsing records stored in the browsing record table of the target object to the terminal device. If the number of browsing records stored in the browsing record table of the target object is greater than the target number, the server determines a target number of browsing records in the browsing record table of the target object and sends the target number of browsing records to the terminal device, so that the terminal device receives multiple browsing records of the target object. The target number is set based on experience or adjusted according to the implementation environment, and is not limited in this embodiment of the present application. For example, the target number is 2000. The target number is limited because when the server transmits a large amount of data to the terminal device, it will affect the efficiency of data transmission. In order to improve the efficiency of data transmission, the amount of data transmitted at one time is set.
[0099] Optionally, the process of the server determining the target number of browsing records in the target object's browsing history table includes: the server using the first target number of browsing records with the largest corresponding data sequence numbers in the target object's browsing history table as the target number of browsing records. Since the data sequence numbers corresponding to the browsing records can reflect the browsing time of the chat sessions corresponding to the browsing records, the target object generally searches for the most recently browsed chat sessions. Therefore, prioritizing the display of the target object's most recently browsed chat sessions can expedite the target object's search for chat sessions.
[0100] In one possible implementation, based on the number of browsing records stored in the browsing record table of the target object being greater than the target number, after sending the target number of browsing records to the terminal device, the sending operation is repeated until all browsing records in the browsing record table of the target object are sent to the terminal device.
[0101] After a terminal device receives multiple browsing records sent by a server, the process of determining the display position of the session information of the second chat session corresponding to each browsing record in the chat session interface based on the browsing information of the second chat session corresponding to each browsing record includes: the browsing information of the chat session includes the browsing time of the chat session, determining the second time difference between the browsing time of the second chat session corresponding to each browsing record and the current time; sorting each second time difference according to a target order to obtain a second time difference sequence; and using the position of the second time difference between the browsing time of any second chat session and the current time in the second time difference sequence as the display position of the session information of any second chat session in the chat session interface. Optionally, the target order can be from small to large or from large to small. Since when displaying the session information of browsed chat sessions, the chat session with a browsing time closer to the current time is displayed at a higher position, the embodiment of the present application uses the target order of small to large as an example for explanation.
[0102] Exemplarily, 5 browsing records are obtained, among which the second time difference between the browsing time of the second chat session corresponding to the first browsing record and the current time is 2 minutes; the second time difference between the browsing time of the second chat session corresponding to the second browsing record and the current time is 30 seconds; the second time difference between the browsing time of the second chat session corresponding to the third browsing record and the current time is 50 seconds; the second time difference between the browsing time of the second chat session corresponding to the fourth browsing record and the current time is 1 minute; and the second time difference between the browsing time of the second chat session corresponding to the fifth browsing record and the current time is 3 minutes. The second time difference values are sorted in ascending order, and the resulting second time difference sequence is 30 seconds, 50 seconds, 1 minute, 2 minutes, and 3 minutes. Therefore, it can be obtained that the session information of the second chat session corresponding to the first browsing record is displayed in the fourth position in the chat session interface, the session information of the second chat session corresponding to the second browsing record is displayed in the first position in the chat session interface, the session information of the second chat session corresponding to the third browsing record is displayed in the second position in the chat session interface, the session information of the second chat session corresponding to the fourth browsing record is displayed in the third position in the chat session interface, and the session information of the second chat session corresponding to the fifth browsing record is displayed in the fifth position in the chat session interface.
[0103] After determining the display position of the session information of the second chat session corresponding to each browsing record in the chat session interface, the session information of the second chat session corresponding to each browsing record is displayed in the chat session interface according to the display position of the session information of the second chat session corresponding to each browsing record in the chat session interface. Optionally, the session information of the second chat session includes at least one of an icon of the second chat session, the name of the second chat session, or the last session content of the second chat session. If the session type of the second chat session is a group chat session and the recipient of the last session content of the second chat session is a non-target recipient, the session information of the second chat session may also include the name of the recipient to whom the last session content of the second chat session was sent. The chat session interface may also display the browsing time of each second chat session.
[0104] like Figure 5 This is a schematic diagram showing another chat session interface provided by an embodiment of the present application. Figure 5 The chat session interface shown displays the session information of 4 second chat sessions that the target object has browsed. Among them, the time difference between the browsing time of the first second chat session and the current time is smaller than the time difference between the browsing time of the second second chat session and the current time; the time difference between the browsing time of the second second chat session and the current time is smaller than the time difference between the browsing time of the third second chat session and the current time; the time difference between the browsing time of the third second chat session and the current time is smaller than the time difference between the browsing time of the fourth second chat session and the current time. The icon of the first second chat session is 501, the name of the first second chat session is "Single Chat 1", and the last session content of the first second chat session is "Thank you for your hard work". For session information of other second chat sessions, see Figure 5 As shown, no further details will be given here.
[0105] Optionally, the terminal device may store a portion of the browsing history of the target object, and the browsing history stored in the terminal device also corresponds to a data sequence number. The data sequence number of the browsing history stored in the terminal device is the same as the data sequence number of the same browsing history stored in the server. The acquisition request generated by the terminal device also includes the maximum data sequence number among the data sequence numbers of the browsing history stored in the terminal device. After receiving the acquisition request, the server determines, based on the maximum data sequence number, in the browsing history table of the target object the browsing history whose corresponding data sequence number is greater than the maximum data sequence number, determines a target number of browsing records among the browsing records whose corresponding data sequence number is greater than the maximum data sequence number, and sends the target number of browsing records to the terminal device. After receiving the target number of browsing records, the terminal device determines the display position of the session information of the second chat session corresponding to the browsing records stored in the terminal device and the target number of browsing records based on the browsing time of the second chat session corresponding to each of the browsing records stored in the terminal device and the target number of browsing records. Furthermore, the session information of the second chat session corresponding to each of the browsing records stored in the terminal device and the target number of browsing records is displayed on the chat session interface according to the display position of the session information of the second chat session corresponding to each of the browsing records stored in the terminal device and the target number of browsing records. This process is similar to the process of displaying the session information of the second chat session on the chat session interface when no browsing records are stored on the terminal device.
[0106] In one embodiment of the present application, in response to a trigger operation on the second functional area, the second functional area is displayed as a selected state. The second functional area being in the selected state may be displayed in gray, which is not limited in this embodiment of the present application.
[0107] In another embodiment of the present application, the chat session interface further displays a chat session type control and a browsing time control, such as Figure 5 502 is a chat session type control, and 503 is a browsing time control. After displaying the session information of at least one second chat session on the chat session interface, the target chat session type is determined based on the chat session type control; the target time period is determined based on the browsing time control; based on the target chat session type and the target time period, a fifth chat session is determined within the second chat session, with the chat session type of the fifth chat session being the target chat session type and the browsing time of the fifth chat session falling within the target time period; the display position of the session information of each fifth chat session on the chat session interface is determined based on the browsing time of each fifth chat session; and the session information of each fifth chat session is displayed on the chat session interface according to the display position of the session information of each fifth chat session on the chat session interface.
[0108] The process of determining the target chat session type based on the chat session type control includes: displaying multiple candidate chat session types in response to a trigger operation on the chat session type control; and, in response to a trigger operation on any candidate chat session type, selecting the triggered candidate chat session type as the target chat session type. Optionally, the candidate chat session types include at least one of a single chat session, a group chat session, an application session, or all sessions.
[0109] The process of determining a target time period based on the browsing time control includes: displaying multiple browsing time options in response to a trigger operation on the browsing time control; and determining a target time period based on the duration corresponding to any browsing time option in response to a trigger operation on any browsing time option. The browsing time options include at least one of the following: the last 1 minute, the last 5 minutes, the last 10 minutes, the last 20 minutes, and the last 30 minutes. The process of determining a target time period based on the duration corresponding to any browsing time option includes: determining a start time of the target time period based on the duration corresponding to any browsing time option and the current time, and setting the time period from the start time of the target time period to the current time as the target time period.
[0110] Optionally, the target object may further customize a target time period, and the embodiment of the present application does not limit the determination of the target time period.
[0111] In one possible implementation, based on the target chat session type and the target time period, determining the fifth chat session from the second chat session includes: using a second chat session of the second chat session whose chat session type is the target chat session type as a reference chat session; and using a reference chat session of the reference chat session whose browsing time falls within the target time period as the fifth chat session. Alternatively, using the second chat session of the second chat session whose browsing time falls within the target time period as a candidate chat session; and using a candidate chat session of the candidate chat session whose chat session type is the target chat session type as the reference chat session.
[0112] For example, the target chat session type is a group chat session, and the target time period is from 3:00 PM on March 19, 2024, to 3:10 PM on March 19, 2024. There are five second chat sessions: the first second chat session is a group chat session, and the browsing time is 3:02 PM on March 19, 2024; the second second chat session is a single chat session, and the browsing time is 3:05 PM on March 19, 2024; the third second chat session is a group chat session, and the browsing time is 3:07 PM on March 19, 2024; the fourth second chat session is a group chat session, and the browsing time is 3:08 PM on March 19, 2024; and the fifth second chat session is a single chat session, and the browsing time is 3:09 PM on March 19, 2024. The first, third, and fourth second chat sessions are referred to as the fifth chat session.
[0113] The process of determining the display position of the session information of each fifth chat session in the chat session interface based on the browsing time of each fifth chat session is similar to the process of determining the display position of the session information of each second chat session in the chat session interface based on the browsing time of each second chat session. For details, see the process of determining the display position of the session information of the second chat session in the chat session interface above, and this embodiment of the present application will not be repeated here.
[0114] like Figure 6 This is a schematic diagram showing another chat session interface provided by an embodiment of the present application. Figure 6 The chat session type of the fifth chat session displayed in the chat session interface is a group chat session, and the time difference between the browsing time and the current time is within 5 minutes.
[0115] In one possible implementation, when a viewing function of a chat session browsing history is triggered, after displaying session information of at least one second chat session in the chat session interface, in response to a triggering operation on session information of a third chat session, a session page of the third chat session is displayed, wherein the session page of the third chat session displays session content of the third chat session, and the third chat session is a chat session within the second chat session; when the session page of the third chat session is closed, the session information of the third chat session is displayed at the top of the chat session interface.
[0116] The triggering operation for the session information of the third chat session can be a click operation on the session information of the third chat session, or can be triggered by other methods, which are not limited in this embodiment of the present application. Optionally, the third chat session is a chat session that is not the first in the second chat session.
[0117] A close control is displayed on the session page of the third chat session, and the close control is used to close the session page of the third chat session. In response to a triggering operation on the close control on the session page of the third chat session, the session page of the third chat session is closed.
[0118] like Figure 7 This is a display diagram of another chat session interface provided in an embodiment of the present application. Figure 7 The conversation information of group chat 3 in (1) which is not the first one is triggered and displayed. Figure 7 The conversation page of group chat 3 shown in (2) in FIG. 1 shows a close control 701; in response to the trigger operation for the close control 701, the Figure 7 (3) in the figure, where the session information of group chat 3 is displayed at the top of the chat session interface.
[0119] In one possible implementation, after displaying the session page of the third chat session, upon receiving the session content of a fourth chat session and receiving a view operation for the session content of the fourth chat session, the session page of the fourth chat session is displayed, and the session content of the fourth chat session is displayed on the session page of the fourth chat session. The fourth chat session is different from the third chat session.
[0120] The conversation page of the fourth chat session displays a return control for returning to the conversation page of the third chat session. After the conversation page of the fourth chat session is displayed, the conversation page of the third chat session is displayed in response to a triggering operation on the return control. The conversation page of the third chat session displayed after the return control is triggered includes, but is not limited to, displaying target content. The target content includes, but is not limited to, the following two situations.
[0121] In case 1, the target content is the conversation content that has been displayed on the conversation page of the third chat conversation before the conversation page of the fourth chat conversation is displayed.
[0122] The conversation content displayed on the conversation page of the third chat session before the conversation page of the fourth chat session is the conversation content that the target object browsed when browsing the conversation page of the third chat session last time. Figure 8 middle, Figure 8 After the return control in (3) is triggered, return to Figure 8The conversation page of the third chat session in (1) is returned to. After returning to the conversation page of the third chat session, since the conversation content displayed on the conversation page of the third chat session is the conversation content that the target object browsed when browsing the conversation page of the third chat session last time, the target object does not need to trigger an operation such as sliding down to view the conversation content of the third chat session that has been viewed. Instead, the target object only needs to trigger an operation such as sliding up to view the conversation content that has not been viewed in the last browsing. This saves the target object time in viewing the conversation content of the third chat session and improves the viewing efficiency of the conversation content.
[0123] In the second scenario, the target content includes reference content. The reference content is content that the target user did not view when they last browsed the chat page of the third chat session. This allows the target user to directly view the previously unviewed content on the chat page after returning to the chat page of the third chat session. This saves the target user time and improves content viewing efficiency.
[0124] In one possible implementation, in response to a triggering operation on a return control, the chat session browsing history is displayed, and the session information of the fourth chat session and the session information of the third chat session are displayed adjacent to each other in the chat session browsing history. For example, the session information of the fourth chat session is displayed at the top of the chat session browsing history, and the session information of the third chat session is displayed below the session information of the fourth chat session.
[0125] Optionally, the return control displays at least one of a prompt and session information of the third chat session, wherein the prompt indicates that the return control is used to return to the session page of the third chat session. In this manner, the user can quickly return to the session page of the previous chat session, making the display of the session page of the previous chat session more convenient and flexible.
[0126] When the session content of the fourth chat session is received and a viewing operation for the session content of the fourth chat session is received, the process of displaying the session page of the fourth chat session includes: when the session content of the fourth chat session is received, superimposing and displaying a new message control on the session page of the third chat session, the new message control being used to indicate that new session content has been received; in response to a trigger operation on the new message control, receiving a viewing operation for the session content of the fourth chat session, and displaying the session page of the fourth chat session.
[0127] like Figure 8 This is a schematic diagram of the display of the session page of the third chat session provided in an embodiment of the present application. Figure 8 (1) is the conversation page of the third chat session. When the conversation content of the fourth chat session (group chat 1) is received, it is displayed Figure 8 (2) in Figure 8 In (2), a new message control 801 is superimposed on the conversation page of the third chat conversation, and in response to the triggering operation for the new message control 801, the new message control 801 is displayed. Figure 8 (3) in Figure 8 (3) in the figure is the conversation page of the fourth chat session (group chat 1). Figure 8 In (3), a return control 802 is displayed; in response to a trigger operation for the return control 802, the display Figure 8 (1) in the figure is the conversation page showing the third chat conversation.
[0128] Optionally, the new message control displays the session name of the fourth chat session, the object name of the recipient to whom the received session content of the fourth chat session is sent, and the received session content of the fourth chat session. Figure 8 The new message control shown in 801 in FIG. 1 displays the session name of the fourth chat session "Group Chat 1", the object name of the sender of the received session content of the fourth chat session is "Power", and the received session content of the fourth chat session is "XXXXXXX". The new message control also displays a close control, which is used to cancel the display of the new message control, such as Figure 8 A close control 803 is displayed in the new message control 801.
[0129] Figure 8 The return control displayed in (3) in FIG. 1 displays a prompt message "Return to the previous chat session" and the session name of the third chat session "Group Chat 3". The return control also displays a close control, and the close control displayed in the return control is used to cancel the display of the return control, such as Figure 8 804 in the figure is a close control displayed in the return control.
[0130] In one possible implementation, in response to a trigger operation on session information of a third chat session, after displaying the session page of the third chat session, candidate reply contents are determined based on the session content of the third chat session; the candidate reply contents are displayed on the session page of the third chat session; and in response to a trigger operation on target reply contents in the candidate reply contents, the target reply contents are replied to.
[0131] Optionally, the process of determining candidate reply content based on the conversation content of the third chat session includes: if the last conversation content of the third chat session is sent to a non-target object and the reply function of the last conversation content of the third chat session is triggered, determining candidate reply content based on the last conversation content of the third chat session. The process of replying to the target recovery content in response to a triggering operation on target reply content in the candidate reply content includes: in response to the triggering operation on the target reply content in the candidate reply content, sending the target reply content to a terminal device corresponding to a reference object, where the reference object is an object included in the third chat session other than the target object.
[0132] The third chat session page displays a reply box, such as Figure 8 805 is a reply box, which responds to the trigger operation on the reply box and triggers the reply function of the last conversation content of the third chat session. The embodiment of the present application does not limit the process of determining candidate reply content based on the last conversation content of the third chat session. Optionally, the process of determining candidate reply content based on the last conversation content of the third chat session includes: determining a first feature vector for characterizing the last conversation content of the third chat session; determining a second feature vector for characterizing each candidate content; determining the matching degree between each candidate content and the last conversation content of the third chat session based on each second feature vector and the first feature vector; and using the candidate content whose matching degree with the last conversation content of the third chat session meets the matching requirements as the candidate reply content.
[0133] The matching degree meeting the matching requirement means that the matching degree is greater than a matching threshold, which is set based on experience or adjusted according to the implementation environment, and is not limited in the present embodiment.
[0134] The process of determining the first feature vector for characterizing the last conversation content of the third chat session and the process of determining the second feature vector for characterizing each candidate content are similar. The embodiment of the present application only takes the process of determining the first feature vector for characterizing the last conversation content of the third chat session as an example for explanation. Optionally, the process of determining the first feature vector for characterizing the last conversation content of the third chat session includes: inputting the last conversation content of the third chat session into a feature vector determination model, and using the content output by the feature vector determination model as the first feature vector. Among them, the feature vector determination model is any model that can determine the feature vector, and the embodiment of the present application does not limit this. Exemplarily, the feature vector determination model is a long short-term memory network model (Long Short-Term Memory, LSTM).
[0135] The process of determining the degree of match between each candidate content and the last conversation content of the third chat session based on each second eigenvector and the first eigenvector includes: for any candidate content, taking the dot product between the second eigenvector and the first eigenvector corresponding to any candidate content as the degree of match between any candidate content and the last conversation content of the third chat session.
[0136] After the candidate reply content is determined, the candidate reply content is displayed on the conversation page of the third chat session. The target object can select the content to reply from the candidate reply content. Compared with the method where the target object enters the reply content, this can reduce the time required for the target object to reply, improve the target object's reply efficiency, and thus improve the target object's chat experience.
[0137] In response to a triggering operation on a target reply content among the candidate reply contents, the target reply content is sent to the terminal device corresponding to the reference object, and the target reply content can also be displayed on the conversation page of the third chat session. In this way, the target object can know what the content of his reply is.
[0138] like Figure 9 Schematic diagram of a chat session page of a third chat session provided by an embodiment of the present application. Figure 9 In (1), if the target object selects the reply box, the terminal device determines the candidate reply content and displays Figure 9 (2) in the third chat session, that is, displaying candidate reply contents 901, 902, and 903 in the session page of the third chat session; when the target object selects the candidate reply content 903, the target reply content is sent to the terminal device corresponding to the reference object, and the target reply content is displayed. Figure 9 (3) in the example, means that the target reply content is displayed in the conversation page of the third chat conversation.
[0139] In one possible implementation, after displaying the target reply content on the conversation page of the third chat session, candidate emoticon packages matching the target reply content may be determined; the candidate emoticon packages may be displayed on the conversation page of the third chat session; and in response to a triggering operation for a target emoticon package in the candidate emoticon packages, the target emoticon package may be sent to a terminal device corresponding to the reference party, and the target emoticon package may be displayed on the conversation page of the third chat session. By sending the target emoticon package to the terminal device corresponding to the reference party, the communication between the target party and the reference party becomes more interesting, enhancing the fun of the interaction.
[0140] Among them, a plurality of optional emoticon packages are stored in the terminal device, each optional emoticon package corresponds to a name, and the name of each optional emoticon package is used to indicate the meaning of the optional emoticon package. The process of determining the candidate emoticon package that matches the target reply content includes: determining a third eigenvector for characterizing the target reply content; determining a fourth eigenvector for characterizing each optional emoticon package based on the name of each optional emoticon package; determining the degree of match between each optional emoticon package and the target reply content based on each fourth eigenvector and the third eigenvector, and taking the optional emoticon package whose degree of match meets the matching threshold as a candidate emoticon package. Among them, the process of determining the third eigenvector of the target reply content and determining the fourth eigenvector of each optional emoticon package is similar to the above-mentioned process of determining the first eigenvector for characterizing the last conversation content of the third chat session, and will not be repeated here. The process of determining the degree of match between each optional emoticon package and the target reply content based on the third eigenvector and each fourth eigenvector is similar to the above-mentioned process of determining the degree of match between each candidate content and the last conversation content of the third chat session based on each second eigenvector and the first eigenvector, and will not be repeated here in the embodiment of the present application. As Figure 9 In (3), candidate expression packages 904, 905, 906 and 907 are displayed. In response to the trigger operation of the target object on the candidate expression package 904, the display Figure 9 The conversation page of the third chat conversation shown in (4) in FIG. 1 displays candidate emoticon package 908 .
[0141] The above method provides a chat session browsing history search function. When the chat session browsing history search function is triggered, the session information of at least one second chat session that has been browsed is displayed in the chat session interface. In this way, the previously browsed chat session can be searched in the chat session interface, which shortens the time required to search for the chat session, greatly improves the chat session search efficiency, enhances the chat experience, and also improves the efficiency of information management, making information management more orderly.
[0142] Figure 10 This is an architectural diagram of a method for displaying a chat session provided by an embodiment of the present application. Figure 10 As shown, the architecture includes an instant messaging client and a server, and the server includes a browsing record management module and a message notification module.
[0143] Among them, the browsing record management module is used to store and manage browsing records;
[0144] Message notification module, used to push notifications to instant messaging clients.
[0145] The process includes:
[0146] 1. A user browses the content of a chat session on an instant messaging client, and the instant messaging client uploads the browsed chat session information to the browsing record management module;
[0147] 2. The browsing record management module updates the data into the database;
[0148] 3. The browsing record management module sends a notification to the instant messaging client through the message notification module, informing the instant messaging client that the browsing record list has been updated;
[0149] 4. The instant messaging client receives the notification and calls the browsing record management module to incrementally pull browsing records from the browsing record table and update the browsing records stored locally in the instant messaging client.
[0150] Figure 11 This is a flow chart of a process in which a server adds a browsing record to a browsing record table of a target object provided by an embodiment of the present application. This process is implemented through interaction between the terminal device 101 and the server 102, such as Figure 11 As shown, the method includes the following steps.
[0151] Step 1101: In response to a triggering operation on session information of a sixth chat session, browsing information is sent to a server.
[0152] In a possible implementation, in response to the triggering operation on the session information of the sixth chat session, the process of sending the browsing information to the server has been described in the above step 201 and will not be repeated here.
[0153] Step 1102: Parse the browsing information to obtain the object identifier of the target object, the session identifier of the sixth chat session, and the browsing time of the sixth chat session.
[0154] In a possible implementation, the process of parsing the browsing information has been described in the above step 201 and will not be repeated here.
[0155] Step 1103: Determine the data sequence number corresponding to the browsing information.
[0156] In a possible implementation, the process of determining the data serial number corresponding to the browsing information has been described in the above step 201 and will not be repeated here.
[0157] Step 1104: Determine whether there is a browsing record in which the chat session is the sixth chat session in the browsing record table corresponding to the object identifier of the target object.
[0158] In a possible implementation, the process of determining whether there is a browsing record with the chat session being the sixth chat session in the browsing record table corresponding to the object identifier of the target object has been described in step 201 above and will not be repeated here.
[0159] Step 1105: Based on the existence of a browsing record of the sixth chat session in the browsing record table corresponding to the object identifier of the target object, update the browsing time and data sequence number of the browsing record of the sixth chat session stored in the browsing record table corresponding to the object identifier of the target object.
[0160] In a possible implementation, the process of updating the browsing time and data sequence number of the browsing record of the sixth chat session stored in the browsing record table corresponding to the object identifier of the target object has been described in the above step 201 and will not be repeated here.
[0161] Step 1106: Based on the fact that there is no browsing record of the sixth chat session in the browsing record table corresponding to the object identifier of the target object, a browsing record is generated according to the session identifier of the sixth chat session and the browsing time of the sixth chat session.
[0162] In a possible implementation, the process of generating a browsing record according to the session identifier of the sixth chat session and the browsing time of the sixth chat session has been described in the above step 201 and will not be repeated here.
[0163] Step 1107: Add the data serial number of the browsing record and the browsing information to the browsing record table corresponding to the object identifier of the target object.
[0164] In a possible implementation, the process of adding the browsing record and the data serial number of the browsing information to the browsing record table corresponding to the object identifier of the target object has been described in the above step 201 and will not be repeated here.
[0165] Figure 12 This is a flowchart of a process for obtaining browsing history of a target object provided by an embodiment of the present application. The process is implemented through interaction between the terminal device 101 and the server 102. Figure 12 As shown, the method includes the following steps.
[0166] Step 1201: When the function of viewing the chat session browsing record is triggered, the terminal device generates an acquisition request according to the object identifier of the target object.
[0167] In a possible implementation, the process of generating the acquisition request according to the object identifier of the target object has been described in the above step 202 and will not be repeated here.
[0168] Step 1202: The terminal device sends a request to the server.
[0169] In a possible implementation, the process of sending the acquisition request to the server has been described in the above step 202 and will not be repeated here.
[0170] Step 1203: The server parses the acquisition request to obtain the object identifier of the target object.
[0171] In a possible implementation, the process in which the server parses the acquisition request and obtains the object identifier of the target object has been described in the above step 202 and will not be repeated here.
[0172] Step 1204: The server determines the target number of browsing records in the browsing record table corresponding to the object identifier of the target object according to the object identifier of the target object.
[0173] In a possible implementation, the process of determining the target number of browsing records in the browsing record table corresponding to the object identifier of the target object according to the object identifier of the target object has been described in the above step 202 and will not be repeated here.
[0174] Step 1205: The server sends a target number of browsing records to the terminal device.
[0175] In a possible implementation, the process of sending the target number of browsing records to the terminal device has been described in the above step 202 and will not be repeated here.
[0176] Figure 13 This is a flow chart of a method of displaying the session information of a chat session of a target chat session type browsed in a target time period provided by an embodiment of the present application. The process is executed by the terminal device 101, such as Figure 13 As shown, the method includes the following steps.
[0177] Step 1301: Determine the target chat session type and target time period.
[0178] In a possible implementation, the process of determining the target chat session type and the target time period has been described in step 202 above and will not be repeated here.
[0179] Step 1302: Determine a fifth chat session in the second chat sessions that the target object has browsed.
[0180] The chat session type of the fifth chat session is the target chat session type, and the browsing time of the fifth chat session is within the target time period.
[0181] In a possible implementation, the process of determining the fifth chat session in the second chat session that the target object has browsed has been described in the above step 202 and will not be repeated here.
[0182] Step 1303: Display the session information of the fifth chat session.
[0183] In a possible implementation, the process of displaying the session information of the fifth chat session has been described in the above step 202 and will not be repeated here.
[0184] Figure 14 FIG. 1 is a schematic diagram of a display device for a chat session provided by an embodiment of the present application. Figure 14 As shown, the device includes:
[0185] A display module 1401 is configured to display a chat session interface, wherein the chat session interface displays session information of at least one first chat session;
[0186] The display module 1401 is further configured to display session information of at least one second chat session in the chat session interface when a function for viewing the chat session browsing history is triggered. Any second chat session is a chat session that has been browsed in the first chat session, and a display position of the session information of any second chat session in the chat session interface is determined based on the browsing information of any second chat session.
[0187] In one possible implementation, the chat session interface includes a first functional area and a second functional area, the first functional area being used to display session information of at least one first chat session, and the second functional area being used to display a chat session browsing history, and when the second functional area is selected, a function for viewing the chat session browsing history is triggered;
[0188] The display module 1401 is configured to display a chat session browsing record, where the chat session browsing record includes session information of at least one second chat session.
[0189] In one possible implementation, the display module 1401 is further configured to display a session page of the third chat session in response to a triggering operation on the session information of the third chat session, where the session page of the third chat session displays the session content of the third chat session, and the third chat session is a chat session within the second chat session; when the session page of the third chat session is closed, the session information of the third chat session is displayed at the top of the chat session interface.
[0190] In one possible implementation, the display module 1401 is further configured to display a session page of the fourth chat session upon receiving the session content of the fourth chat session and receiving a viewing operation for the session content of the fourth chat session, wherein the session page of the fourth chat session displays the session content of the fourth chat session, and the fourth chat session is different from the third chat session.
[0191] In a possible implementation, a return control is displayed on the session page of the fourth chat session, and the return control is used to return to the session page of the third chat session;
[0192] The display module 1401 is further configured to display a session page of the third chat session in response to a trigger operation on the return control.
[0193] In a possible implementation, at least one of prompt information and session information of the third chat session is displayed in the return control, and the prompt information is used to prompt the return control to return to the session page of the third chat session.
[0194] In a possible implementation, the apparatus further includes:
[0195] A determination module 1402 is configured to determine candidate reply content based on the conversation content of the third chat conversation;
[0196] The display module 1401 is further configured to display candidate reply content on the conversation page of the third chat conversation;
[0197] The reply module 1403 is configured to reply with the target reply content in response to a triggering operation on the target reply content in the candidate reply content.
[0198] In a possible implementation, the apparatus further includes:
[0199] an acquisition module, configured to acquire, when a function of viewing a chat session browsing record is triggered, a plurality of browsing records, wherein any browsing record includes session information of a browsed second chat session and a browsing time of the second chat session;
[0200] Determining module 1402, for determining a display position of session information of the second chat session corresponding to each browsing record in the chat session interface according to the browsing time of the second chat session corresponding to each browsing record;
[0201] The display module 1401 is further configured to display the session information of the second chat session corresponding to each browsing record in the chat session interface according to the display position of the session information of the second chat session corresponding to each browsing record in the chat session interface.
[0202] In a possible implementation, the acquisition module is configured to generate an acquisition request carrying an object identifier of a target object; send the acquisition request to a server; and receive multiple browsing records of the target object returned by the server based on the acquisition request.
[0203] In a possible implementation, the chat session interface further displays a chat session type control and a browsing time control;
[0204] The device also includes:
[0205] Determination module 1402, for determining the target chat session type according to the chat session type control; determining the target time period according to the browsing time control;
[0206] The determining module 1402 is further configured to determine, in the second chat session, based on the target chat session type and the target time period, a fifth chat session, wherein the chat session type of the fifth chat session is the target chat session type and the browsing time of the fifth chat session is within the target time period; and determine, based on the browsing time of each fifth chat session, a display position of session information of each fifth chat session in the chat session interface;
[0207] The display module 1401 is further configured to display the session information of each fifth chat session in the chat session interface according to the display position of the session information of each fifth chat session in the chat session interface.
[0208] In a possible implementation, the apparatus further includes:
[0209] A sending module is used to send browsing information to a server in response to a trigger operation on session information of a sixth chat session, where the browsing information includes an object identifier of a target object, a session identifier of a sixth chat session, and a browsing time of the sixth chat session. The sixth chat session is any chat session in the first chat session. The browsing information is used by the server to generate a browsing record based on the session identifier of the sixth chat session and the browsing time of the sixth chat session, and to add the browsing record to a browsing record table corresponding to the object identifier of the target object.
[0210] The above-mentioned device provides a chat session browsing history search function. When the chat session browsing history search function is triggered, the session information of at least one second chat session that has been browsed is displayed in the chat session interface. In this way, the previously browsed chat session can be searched in the chat session interface, which shortens the time required to search for the chat session, greatly improves the chat session search efficiency, enhances the chat experience, and also improves the efficiency of information management, making information management more orderly.
[0211] It should be understood that the above-mentioned device is merely an example of the division of the above-mentioned functional modules when implementing its functions. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiments are based on the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0212] Figure 15 The following is a block diagram of a terminal device 1500 provided in accordance with an exemplary embodiment of the present application. The terminal device 1500 may be any electronic device capable of human-computer interaction with a user through one or more methods, such as a keyboard, touchpad, remote control, voice interaction, or handwriting device. Examples include a PC (Personal Computer), mobile phone, smartphone, PDA (Personal Digital Assistant), wearable device, Pocket PC (PPC), tablet computer, smart car computer, smart TV, smart speaker, smart watch, and the like.
[0213] Typically, the terminal device 1500 includes a processor 1501 and a memory 1502 .
[0214] The processor 1501 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1501 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), or PLA (Programmable Logic Array). The processor 1501 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1501 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1501 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0215] Memory 1502 may include one or more computer-readable storage media, which may be non-transitory. Memory 1502 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in memory 1502 is used to store at least one instruction, which is executed by processor 1501 to implement the chat session display method provided in the method embodiment of the present application.
[0216] In some embodiments, terminal device 1500 may optionally include a peripheral device interface 1503 and at least one peripheral device. The processor 1501, memory 1502, and peripheral device interface 1503 may be connected via a bus or signal lines. Each peripheral device may be connected to peripheral device interface 1503 via a bus, signal lines, or circuit boards. Specifically, the peripheral device may include at least one of a radio frequency circuit 1504, a display screen 1505, a camera assembly 1506, an audio circuit 1507, and a power supply 1509.
[0217] The peripheral device interface 1503 can be used to connect at least one I / O (Input / Output)-related peripheral device to the processor 1501 and the memory 1502. In some embodiments, the processor 1501, the memory 1502, and the peripheral device interface 1503 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1501, the memory 1502, and the peripheral device interface 1503 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
[0218] RF circuit 1504 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. RF circuit 1504 communicates with communication networks and other communication devices via electromagnetic signals. RF circuit 1504 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. RF circuit 1504 may optionally include an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. RF circuit 1504 may communicate with other terminal devices via at least one wireless communication protocol. Such wireless communication protocols include, but are not limited to, the World Wide Web, metropolitan area networks, intranets, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and / or WiFi (Wireless Fidelity) networks. In some embodiments, RF circuit 1504 may also include circuitry related to Near Field Communication (NFC), although this application does not limit this.
[0219] The display screen 1505 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1505 is a touch screen display, the display screen 1505 also has the ability to collect touch signals on the surface or above the surface of the display screen 1505. The touch signal can be input as a control signal to the processor 1501 for processing. In this case, the display screen 1505 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, there can be one display screen 1505, which is set on the front panel of the terminal device 1500; in other embodiments, there can be at least two display screens 1505, which are respectively set on different surfaces of the terminal device 1500 or in a folding design; in other embodiments, the display screen 1505 can be a flexible display screen, which is set on the curved surface or folding surface of the terminal device 1500. In fact, the display screen 1505 can also be set as a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 1505 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0220] The camera assembly 1506 is used to capture images or videos. Optionally, the camera assembly 1506 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal device 1500, and the rear camera is arranged on the back of the terminal device 1500. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1506 may also include a flash. The flash can be a single-color temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0221] The audio circuit 1507 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals that are input into the processor 1501 for processing, or input into the RF circuit 1504 to achieve voice communication. For the purpose of stereo sound collection or noise reduction, there may be multiple microphones, each located in different parts of the terminal device 1500. The microphone may also be an array microphone or an omnidirectional collection microphone. The speaker is used to convert electrical signals from the processor 1501 or the RF circuit 1504 into sound waves. The speaker may be a traditional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert electrical signals into sound waves audible to humans, but also convert electrical signals into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 1507 may also include a headphone jack.
[0222] Power supply 1509 is used to power the various components in terminal device 1500. Power supply 1509 can be AC power, DC power, a disposable battery, or a rechargeable battery. When power supply 1509 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery that is charged via a wired line, while a wireless rechargeable battery is a battery that is charged via a wireless coil. The rechargeable battery can also be used to support fast charging technology.
[0223] In some embodiments, the terminal device 1500 further includes one or more sensors 1510 , including but not limited to: an acceleration sensor 1511 , a gyroscope sensor 1512 , a pressure sensor 1513 , an optical sensor 1515 , and a proximity sensor 1516 .
[0224] The accelerometer 1511 can detect the magnitude of acceleration along the three coordinate axes of the coordinate system established by the terminal device 1500. For example, the accelerometer 1511 can be used to detect the components of gravity acceleration along the three coordinate axes. The processor 1501 can control the display screen 1505 to display the user interface in a landscape or portrait view based on the gravity acceleration signal collected by the accelerometer 1511. The accelerometer 1511 can also be used to collect game or user motion data.
[0225] The gyroscope sensor 1512 can detect the body orientation and rotation angle of the terminal device 1500. The gyroscope sensor 1512 can work with the acceleration sensor 1511 to collect the user's 3D movements of the terminal device 1500. Based on the data collected by the gyroscope sensor 1512, the processor 1501 can implement the following functions: motion sensing (such as changing the UI based on the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0226] The pressure sensor 1513 can be set on the side frame of the terminal device 1500 and / or the lower layer of the display screen 1505. When the pressure sensor 1513 is set on the side frame of the terminal device 1500, it can detect the user's grip signal of the terminal device 1500, and the processor 1501 performs left and right hand recognition or shortcut operations based on the grip signal collected by the pressure sensor 1513. When the pressure sensor 1513 is set on the lower layer of the display screen 1505, the processor 1501 controls the operable controls on the UI interface based on the user's pressure operation on the display screen 1505. The operable controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0227] Optical sensor 1515 is used to detect ambient light intensity. In one embodiment, processor 1501 can control the display brightness of display screen 1505 based on the ambient light intensity detected by optical sensor 1515. Specifically, when the ambient light intensity is high, the display brightness of display screen 1505 is increased; when the ambient light intensity is low, the display brightness of display screen 1505 is decreased. In another embodiment, processor 1501 can also dynamically adjust the shooting parameters of camera assembly 1506 based on the ambient light intensity detected by optical sensor 1515.
[0228] Proximity sensor 1516, also known as a distance sensor, is typically located on the front panel of terminal device 1500. Proximity sensor 1516 is used to detect the distance between the user and the front of terminal device 1500. In one embodiment, when proximity sensor 1516 detects that the distance between the user and the front of terminal device 1500 is gradually decreasing, processor 1501 controls display screen 1505 to switch from the screen-on state to the screen-off state. When proximity sensor 1516 detects that the distance between the user and the front of terminal device 1500 is gradually increasing, processor 1501 controls display screen 1505 to switch from the screen-off state to the screen-on state.
[0229] Those skilled in the art will understand that Figure 15 The structure shown in the figure does not constitute a limitation on the terminal device 1500, and the terminal device 1500 may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.
[0230] Figure 16 This is a schematic diagram of the structure of a server provided in an embodiment of the present application. The server 1600 may vary significantly due to different configurations or performance, and may include one or more processors (Central Processing Units, CPUs) 1601 and one or more memories 1602. The one or more memories 1602 store at least one program code, which is loaded and executed by the one or more processors 1601 to implement the chat session display methods provided in the above-mentioned various method embodiments. Of course, the server 1600 may also have components such as a wired or wireless network interface, a keyboard, and input / output interfaces for input and output. The server 1600 may also include other components for implementing device functions, which will not be detailed here.
[0231] In an exemplary embodiment, a computer-readable storage medium is further provided, in which at least one program code is stored. The at least one program code is loaded and executed by a processor to enable a computer to implement any of the above-mentioned chat session display methods.
[0232] Optionally, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, or the like.
[0233] In an exemplary embodiment, a computer program or a computer program product is further provided. The computer program or the computer program product stores at least one computer instruction, which is loaded and executed by a processor to enable a computer to implement any of the above-mentioned chat session display methods.
[0234] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, storage, display, etc.), and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the chat session interface and session information involved in this application are all obtained with full authorization.
[0235] It should be understood that the term "plurality" used herein refers to two or more. "And / or" describes a relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can mean: A exists alone, A and B exist simultaneously, or B exists alone. The character " / " generally indicates an "or" relationship between the associated objects.
[0236] The serial numbers of the above embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0237] The above description is merely an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A method for displaying a chat session, characterized in that: The method comprises: displaying a chat session interface, wherein the chat session interface displays session information of at least one first chat session; When a function for viewing a chat session browsing history is triggered, session information of at least one second chat session is displayed in the chat session interface. Any second chat session is a chat session that has been browsed in the first chat session. A display position of the session information of any second chat session in the chat session interface is determined based on the browsing information of the any second chat session.
2. The method according to claim 1, characterized in that The chat session interface includes a first functional area and a second functional area, wherein the first functional area is used to display session information of the at least one first chat session, and the second functional area is used to display a chat session browsing history, and when the second functional area is selected, a function of viewing the chat session browsing history is triggered; The displaying of session information of at least one second chat session in the chat session interface includes: The chat session browsing record is displayed, where the chat session browsing record includes session information of the at least one second chat session.
3. The method according to claim 1, characterized in that In the case where the viewing function of the chat session browsing record is triggered, after displaying the session information of at least one second chat session in the chat session interface, the method further includes: In response to a triggering operation on session information of a third chat session, displaying a session page of the third chat session, wherein the session page of the third chat session displays session content of the third chat session, the third chat session being a chat session within the second chat session; When the session page of the third chat session is closed, the session information of the third chat session is displayed at the top of the chat session interface.
4. The method according to claim 3, characterized in that After displaying the session page of the third chat session in response to the triggering operation on the session information of the third chat session, the method further includes: When the conversation content of the fourth chat session is received and a viewing operation for the conversation content of the fourth chat session is received, a conversation page of the fourth chat session is displayed, wherein the conversation content of the fourth chat session is displayed on the conversation page of the fourth chat session, and the fourth chat session is different from the third chat session.
5. The method according to claim 4, characterized in that A return control is displayed in the session page of the fourth chat session, and the return control is used to return to the session page of the third chat session; After displaying the session page of the fourth chat session, the method further includes: In response to a triggering operation on the return control, a session page of the third chat session is displayed.
6. The method according to claim 5, characterized in that The return control displays at least one of prompt information and session information of the third chat session, and the prompt information is used to prompt the return control to return to the session page of the third chat session.
7. The method according to claim 3, characterized in that After displaying the session page of the third chat session in response to the triggering operation on the session information of the third chat session, the method further includes: Determining candidate reply content based on the conversation content of the third chat conversation; Displaying the candidate reply content in a session page of the third chat session; In response to a triggering operation on a target reply content among the candidate reply contents, replying to the target reply content.
8. The method according to any one of claims 1 to 7, characterized in that: The method of displaying the session information of at least one second chat session in the chat session interface when the viewing function of the chat session browsing record is triggered includes: When a function of viewing a chat session browsing record is triggered, obtaining a plurality of browsing records, wherein any browsing record includes session information of a browsed second chat session and a browsing time of the second chat session; determining, based on the browsing time of the second chat session corresponding to each browsing record, a display position of the session information of the second chat session corresponding to each browsing record in the chat session interface; The session information of the second chat session corresponding to each browsing record is displayed in the chat session interface according to the display position of the session information of the second chat session corresponding to each browsing record in the chat session interface.
9. The method according to claim 8, characterized in that The obtaining of multiple browsing records includes: Generate an acquisition request, wherein the acquisition request carries an object identifier of a target object; Sending the acquisition request to the server; Receive multiple browsing records of the target object returned by the server based on the acquisition request.
10. The method according to any one of claims 1 to 7, characterized in that: The chat session interface also displays a chat session type control and a browsing time control; the method further includes: Determining a target chat session type according to the chat session type control; Determining a target time period according to the browsing time control; In the case where the viewing function of the chat session browsing record is triggered, after displaying the session information of at least one second chat session in the chat session interface, the method further includes: determining a fifth chat session in the second chat session according to the target chat session type and the target time period, wherein the chat session type of the fifth chat session is the target chat session type, and the browsing time of the fifth chat session is within the target time period; determining, based on the browsing time of each fifth chat session, a display position of the session information of each fifth chat session in the chat session interface; The session information of each of the fifth chat sessions is displayed in the chat session interface according to the display position of the session information of each of the fifth chat sessions in the chat session interface.
11. The method according to any one of claims 1 to 7, characterized in that: After displaying the chat session interface, the method further includes: In response to a triggering operation on session information of a sixth chat session, browsing information is sent to a server, the browsing information including an object identifier of a target object, a session identifier of the sixth chat session, and a browsing time of the sixth chat session, where the sixth chat session is any chat session in the first chat session. The browsing information is used by the server to generate a browsing record based on the session identifier of the sixth chat session and the browsing time of the sixth chat session, and to add the browsing record to a browsing record table corresponding to the object identifier of the target object.
12. A display device for a chat session, characterized in that: The device comprises: A display module, configured to display a chat session interface, wherein the chat session interface displays session information of at least one first chat session; The display module is further configured to display session information of at least one second chat session in the chat session interface when a function of viewing the chat session browsing history is triggered, wherein any second chat session is a chat session that has been browsed in the first chat session, and a display position of the session information of any second chat session in the chat session interface is determined based on the browsing information of the any second chat session.
13. A computer device, characterized in that: The computer device includes a processor and a memory, wherein the memory stores at least one program code, and the at least one program code is loaded and executed by the processor, so that the computer device implements the chat session display method according to any one of claims 1 to 11.
14. A computer-readable storage medium, characterized in that The computer-readable storage medium stores at least one program code, and the at least one program code is loaded and executed by a processor to enable a computer to implement the chat session display method according to any one of claims 1 to 11.
15. A computer program product, characterized in that The computer program product stores at least one computer instruction, which is loaded and executed by a processor to enable a computer to implement the chat session display method according to any one of claims 1 to 11.