Message display method, device, terminal, and computer-readable storage medium

JP2024086854A5Active Publication Date: 2024-09-19TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2024063447
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2020-05-14
Filing Date
2024-04-10
Publication Date
2024-09-19
Estimated Expiration
2041-04-19

AI Technical Summary

Technical Problem

Existing social clients display messages in a single, unengaging manner, leading to low utilization of graphics processing resources and reduced human-machine interactions, thereby decreasing user dependence on the social client.

Method used

A method and device that replace multiple consecutive overlapping messages with a target session message, incorporating a reference session message and a folding prompt to enrich display modes, improve resource utilization, and enhance user interaction.

Benefits of technology

This approach effectively reduces the spam effect of repetitive messages, enhances graphics processing resource utilization, and increases user engagement and dependence on social clients by providing richer interaction experiences.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

To provide a message display method, a device, a terminal, and a computer-readable storage medium.SOLUTION: A method includes the steps of: displaying a session interface of a target session and acquiring a message set of the target session; acquiring a target session message on the basis of a plurality of session messages when the message set contains the plurality of consecutive overlapping session messages; replacing the plurality of consecutive overlapping session messages in the message set with the target session message; and displaying the replaced message set on the session interface of the target session.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS This application is filed based on a Chinese patent application having application number 202010410263.5 and filing date on May 14, 2020, and claims priority to the Chinese patent application, the entire contents of which are incorporated by reference into this application.

[0002] The present application relates to the field of Internet technology and the field of computers, and in particular to a message display method, a message display device, a terminal, and a computer-readable storage medium. [Background technology]

[0003] With the development of Internet technology, social clients are gradually and widely used by users. The so-called social client is software (Application, APP) that exchanges information between users through a network. The social client can create a target session between users, and each user in the target session can exchange information through the session interface of the target session.

[0004] In the related technology, after a social client obtains a message set of a target session, the social client usually displays each message in the message set directly in sequence on the session interface of the target session, and the message display mode is single, which reduces the utilization of graphic processing resources of the terminal where the social client is located. In addition, the single message display mode reduces the number of human-machine interactions, and reduces the user's dependency on the social client. Summary of the Invention [Problem to be solved by the invention]

[0005] In embodiments of the present application, a message display method, device, terminal, and computer-readable storage medium are provided that can improve the utilization of the terminal's graphics processing resources and the number of human-machine interactions, thereby increasing the user's dependency on a social client running on the terminal. [Means for solving the problem]

[0006] In an embodiment of the present application, a message display method is provided, the method comprising: displaying a session interface for a target session and obtaining a message set for the target session; if the message set has multiple consecutive overlapping session messages, obtaining a target session message based on the multiple session messages; replacing the consecutive duplicate session messages in the message set with the target session message and displaying the replaced message set in a session interface of the target session.

[0007] In an embodiment of the present application, a message display device is provided, the device comprising: a display unit configured to display a session interface of the target session; an acquiring unit configured to acquire a message set of the target session, The display unit is further configured to, when the message set has a plurality of consecutive overlapping session messages, obtain a target session message based on the plurality of session messages; The display unit is further configured to replace the consecutive overlapping session messages in the message set with the target session message and display the replaced message set in a session interface of the target session.

[0008] In an embodiment of the present application, a terminal is provided, the terminal comprising: The device includes a processor and a memory, and at least one program code is stored in the memory, and the at least one program code is loaded and executed by the processor to realize a message display method relating to an embodiment of the present application.

[0009] In an embodiment of the present application, a computer-readable storage medium having at least one program code stored thereon is provided, and the at least one program code is loaded and executed by a processor to realize a message display method according to an embodiment of the present application. Effect of the Invention

[0010] In the embodiment of the present application, when there are multiple consecutive overlapping session messages in the message set of the target session, the target session message can be obtained based on the multiple session messages, the target session message can be used to replace the multiple consecutive overlapping session messages in the message set, and the replaced message set can be displayed on the session interface of the target session. As can be seen from the above, during the display of the above messages, the social client can use the target session message to replace and display the multiple consecutive overlapping session messages in the session interface, thus effectively reducing the uninteresting spam effect caused by the direct display of multiple session messages, enriching the message display mode of the social client, improving the utilization rate of the graphics processing resources of the terminal and the number of human-machine interactions, and further effectively improving the user's dependency on the social client. [Brief description of the drawings]

[0011] [Figure 1] FIG. 1 is a system architecture diagram of a communication session system according to an embodiment of the present application. [Diagram 2] 2 is a flowchart of a message display method according to an embodiment of the present application; [Figure 3A] FIG. 2 is a schematic diagram of a fold message according to an embodiment of the present application; [Figure 3B] FIG. 13 is another schematic diagram of a fold message according to an embodiment of the present application; [Figure 3C] FIG. 13 is another schematic diagram of a fold message according to an embodiment of the present application; [Figure 3D] FIG. 13 is another schematic diagram of a fold message according to an embodiment of the present application; [Figure 3E] FIG. 13 is another schematic diagram of a fold message according to an embodiment of the present application; [Figure 3F] FIG. 2 is a schematic diagram of a folded identifier according to an embodiment of the present application; [Figure 4A] FIG. 2 is a schematic diagram showing a target session message including a fold message and a reference session message according to an embodiment of the present application; [Figure 4B] FIG. 13 is another schematic representation of a target session message including a fold message and a reference session message according to an embodiment of the present application; [Figure 4C] FIG. 13 is a schematic diagram of a display of a new first session message according to an embodiment of the present application; [Figure 4D] FIG. 13 is another schematic diagram of displaying a new first session message according to an embodiment of the present application; [Figure 4E] FIG. 13 is another schematic diagram of displaying a new first session message according to an embodiment of the present application; [Figure 4F] FIG. 13 is another schematic diagram of displaying a new first session message according to an embodiment of the present application; [Figure 4G] FIG. 13 is a schematic diagram of a display of a new second session message according to an embodiment of the present application; [Figure 4H] FIG. 1 is a schematic diagram of displaying redundant user identifiers according to an embodiment of the present application; [Figure 4I] FIG. 2 is a schematic diagram of displaying redundant session messages according to an embodiment of the present application; [Figure 4J] FIG. 13 is another schematic diagram of displaying redundant session messages according to an embodiment of the present application; [Figure 4K] FIG. 13 is another schematic diagram of displaying redundant session messages according to an embodiment of the present application; [Figure 4L] FIG. 2 is a schematic diagram of displaying an excess session message and then performing a collapsed display on the excess session message according to an embodiment of the present application; [Figure 5A] FIG. 13 is a schematic diagram of outputting message options according to an embodiment of the present application; [Figure 5B] FIG. 11 is another schematic diagram of outputting message options according to an embodiment of the present application; [Figure 5C] FIG. 13 is a schematic diagram of outputting a fold message according to an embodiment of the present application; [Figure 5D] FIG. 13 is another schematic diagram of outputting a fold message according to an embodiment of the present application; [Figure 5E] FIG. 2 is a schematic diagram of a display of a folded session message according to an embodiment of the present application; [Figure 5F] FIG. 13 is another schematic diagram of displaying a folded session message according to an embodiment of the present application; [Figure 5G] FIG. 13 is a schematic diagram of outputting a folding message action options window according to an embodiment of the present application; [Figure 6] 2 is a flowchart of a message display method according to an embodiment of the present application; [Figure 7A] FIG. 2 is a schematic diagram of a default image template according to an embodiment of the present application; [Figure 7B] FIG. 2 is a schematic diagram of generating a message display template according to an embodiment of the present application. [Figure 7C] FIG. 11 is another schematic diagram of generating a message display template according to an embodiment of the present application. [Figure 7D] FIG. 13 is a schematic diagram of filling a message display template with a session message according to an embodiment of the present application; [Figure 7E] FIG. 13 is a schematic diagram of a target session message including a picture message and a second folding prompt according to an embodiment of the present application; [Figure 7F] 1 is a schematic diagram of a display in which a target session message includes a picture message according to an embodiment of the present application; [Figure 7G] 1 is a schematic diagram of a display in which a target session message includes a picture message according to an embodiment of the present application; [Figure 7H] FIG. 2 is a schematic diagram of switching from a session interface to a resource receiving interface according to an embodiment of the present application; [Figure 7I] FIG. 13 is a schematic diagram of displaying a new session message in a picture message included in a target session message according to an embodiment of the present application; [Figure 7J]FIG. 13 is a schematic diagram of displaying a new session message in a picture message included in a target session message according to an embodiment of the present application; [Figure 7K] FIG. 13 is a schematic diagram of outputting a message share button according to an embodiment of the present application; [Figure 7L] FIG. 2 is a schematic diagram of switching from a session interface to a share interface according to an embodiment of the present application. [Figure 8A] FIG. 2 is a structural schematic diagram of a social client according to an embodiment of the present application; [Figure 8B] 2 is a flowchart of a message display method according to an embodiment of the present application; [Figure 8C] FIG. 2 is a schematic diagram of message display logic according to an embodiment of the present application. [Figure 9] FIG. 2 is a structural schematic diagram of a message display device according to an embodiment of the present application; [Figure 10] FIG. 2 is a structural schematic diagram of a terminal according to an embodiment of the present application; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0012] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, technical aspects of the embodiments of the present invention will be described clearly and completely in conjunction with the drawings of the embodiments of the present invention.

[0013] In the embodiment of the present application, a message display scheme and a corresponding communication session system are provided, which enriches the message display mode of the social client, improves the utilization rate of the graphic processing resources of the terminal and the number of human-machine interactions, and enhances the user's dependency on the social client. As shown in FIG. 1, the communication session system according to the embodiment of the present application can include at least two social clients 11 and a server 12. The social client 11 is software for exchanging information between users via a network, and the social client 11 includes at least one of instant communication clients such as WeChat, enterprise WeChat, Tencent QQ, and information exchange clients such as microblogs and blogs. The so-called instant communication is a terminal service that allows two or more people to transfer information such as text, files, and voice in real time or exchange audio-video using a network. The social client 11 can be run on any terminal, and the terminal here includes, but is not limited to, a mobile device such as a smartphone, a laptop computer, a tablet computer, or a terminal device such as a desktop computer. The server 12 refers to a device capable of creating a communication session between at least two social clients 11 and providing multiple services such as data storage and message push to each social client 11, and includes, but is not limited to, a data server, a web server, an application server, a cloud server, etc. When physically arranging the server 12, the server may be arranged as one independent service device, or the server 12 may be arranged as a cluster device consisting of multiple service devices, and therefore, the embodiment of the present application is not limited thereto.

[0014] In realization, the message display scheme according to the embodiment of the present application is executed by any of the social clients 11 of the above communication session system, or executed by a terminal device executed in any of the social clients 11. For ease of explanation, the embodiment of the present application takes as an example that any of the social clients 11 executes the message display scheme. In practical application, the message display scheme is applied to a session scene of a large number of consecutive overlapping messages, such as a session scene in which each user in a target session continuously sends "I got it" by replying to a certain advertisement message, or a session scene in which each user in a target session continuously sends "Happy Birthday" to send birthday greetings to a certain user, or a session scene in which each user in a target session continuously sends a popular message (such as "Hamburger is worth having") to promote a certain company. The general principle of the message display scheme is as follows.

[0015] The server 12 can push various messages related to the target session to the social client 11, and the social client 11 can display various messages of the target session on the session interface, making it easier for the user to view them. When consecutive overlapping session messages occur in the target session and the number of consecutive overlapping session messages is greater than a preset number, the social client 11 can obtain the target session message based on the consecutive overlapping session messages. In one embodiment, the target session message can include a reference session message and a first folding prompt. The reference session message is selected from the multiple session messages. The first folding prompt is obtained by performing a folding process on the excess session messages other than the reference session message among the multiple session messages, and the first folding prompt can include a folding identifier or a folding message. The folding identifier here is used to represent the excess number of the excess session messages, and the folding message is used to represent the excess number of the excess session messages, the message content, and the message sending user of the excess session messages. In another embodiment, the target session message can include an image message. The image message is a message generated based on the plurality of session messages and an image matching message content of the plurality of session messages. In another embodiment, the target session message may include significant content extracted from the message content of the plurality of session messages and a number identifier generated based on a number of the plurality of session messages. The target session message is then used to display in a session interface to replace consecutive duplicates of the plurality of session messages.As can be seen from the above, the message display scheme of the embodiment of the present application uses a target session message to replace and display multiple consecutive duplicated session messages, thereby reducing the unpleasant spam effect caused by consecutively displaying multiple duplicated session messages, thereby providing the user with a good interactive communication atmosphere, reducing the phenomenon of users forgetting important session messages, and effectively improving the user's dependency on the social client 11.

[0016] In the embodiment of the present application, a message display method is provided based on the above description of the message display scheme. The message display method may be executed by any social client in the above-mentioned communication session system, or may be executed by a terminal executing the social client, or may be executed by a terminal and a server in cooperation with each other. For ease of explanation, the embodiment of the present application takes as an example that the terminal implements the message display method, and the target session message includes a reference session message and a first folding prompt. Referring to FIG. 2, the message display method may include the following steps S201 to S204.

[0017] In S201, the terminal displays a session interface of the target session.

[0018] Here, the terminal is configured with a social client, which may be an instant communication client for messaging, a media information client for browsing, viewing, or distributing media information, and so on.

[0019] In the embodiment of the present application, the target session may be created by a social client, for example, any private session created by a social client, or any group session created by a social client, but not limited thereto. A so-called private session refers to a session consisting of two users, and a group session refers to a session consisting of three or more users. In the implementation, the social client can detect whether there is a display trigger action for the session interface of the target session, and if there is, display the session interface of the target session.

[0020] In S202, a message set of the target session is obtained.

[0021] In some embodiments, the message set of the target session may include at least one of a session message and a non-session message. The session message refers to a message sent by each user in the target session through a session interface, and may include, for example, at least one of a message sent by a master user in the target session and a message sent by a guest user. The so-called master user refers to a user corresponding to a social account logged in to a social client, i.e., a logged-in user, while the guest user refers to a user other than the master user in the target session, i.e., a non-logged-in user. Correspondingly, the non-session message refers to a message other than the session message in the message set, and may include, but is not limited to, an advertisement notification message, a system prompt message, etc. The advertisement notification message refers to a message issued in the target session by a user in the target session through an advertisement function provided by a social client, such as a group advertisement message. A system prompt message refers to a message pushed when the server detects that information of a target session has changed. For example, when a new user joins the target session and the user information of the new user is added to the target session, prompt information about a new user joining the target session is pushed by the server; for example, when a user (e.g., user A) logs out of the target session and the user information of user A in the target session is decreased, prompt information about user A logging out of the target session is pushed by the server; and for example, when the session name (e.g., group name) of the target session is changed, prompt information about a session name being changed is pushed by the server.

[0022] In practical implementation, each message in the message set can be pushed to the social client by the server in real time. That is, the messages in the message set can be updated in real time. Each message in the message set also has a message reception time, which is the system time when the social client receives the message pushed by the server. The messages in the message set can be sorted in ascending order of message reception time. After obtaining the message set of the target session, it can detect whether there are multiple consecutive overlapping session messages in the message set. If there are multiple consecutive overlapping session messages in the message set, step S203 can be performed. If there are no multiple consecutive overlapping session messages in the message set, each message in the message set is displayed in sequence in the session interface. In this case, the social client receives the message pushed by the server to update the message set, and continues to detect whether there are multiple consecutive overlapping messages in the updated message set in real time, and performs step S203 when multiple consecutive overlapping session messages are detected.

[0023] In some embodiments, the terminal may detect whether there are multiple consecutive overlapping session messages in the message set as follows.

[0024] The terminal directly traversal detects whether there are multiple consecutive overlapping session messages in the message set. In actual implementation, each message other than the first message in the message set is traversed in sequence. If the currently traversed message is a session message and the message content of the currently traversed message is the same as the message content of the previous message, add 1 to the overlap count of the target session, and update the overlap count. The overlap count here is used to determine the number of consecutive overlapping session messages. If the currently traversed message is a session message and the message content of the currently traversed message is not the same as the message content of the previous message, or if the currently traversed message is a non-session message, update the overlap count to an invalid number (e.g., the number 0). When all the messages in the message set have been traversed, the traversal is terminated, and the updated overlap count is added by 1 to obtain the number of consecutive overlapping session messages in the message set. If the number of consecutive overlapping session messages is equal to or greater than a preset number, it can be determined that there are multiple consecutive overlapping session messages in the message set. If the number of consecutively overlapping session messages is less than a preset number, it can be determined that there are no consecutively overlapping session messages in the message set. The preset number can be set according to experience or service needs, for example, the preset number can be set to 5. Note that, the previous message referred to in this embodiment refers to a message whose reordering position is located before the reordering position of the currently traversed message in the message set and is adjacent to the reordering position of the currently traversed message.

[0025] As an example, the preset number may be 5, and the message set may sequentially include the messages "Got it", "Got it", "XX user has joined the target session", "Got it", "Got it", "Got it". A second message may be traversed, and since the second message is a session message and the message content of the second message is the same as the message content of the previous message (i.e., the first message), the duplicate count may be increased by 1 and the duplicate count may be updated from 1 to 0. A third message may then be traversed, and since the third message is a system prompt message, the duplicate count may be updated from 1 to 0. A fourth message may then be traversed, and since the fourth message is a session message and the message content of the fourth message is not the same as the message content of the previous message (i.e., the third message), the duplicate count may be updated to 0. A fifth message may then be traversed, and since the fifth message is a session message and the message content of the fifth message is the same as the message content of the previous message (i.e., the fourth message), the duplicate count may be increased by 1 and the duplicate count may be updated from 1 to 0, and so on. When all six messages in the message set have been traversed, the traversal can be terminated, and at this time, it can be obtained that the updated duplicate count is 2. Next, 1 is added to the updated duplicate count (2), and it can be obtained that the number of consecutive duplicate session messages in the message set is 3. Because the number of consecutive duplicate session messages (3) is less than the preset number (5), it can be determined that there are no consecutive duplicate session messages in the message set.

[0026] In some embodiments, the terminal may detect whether there are multiple consecutive overlapping session messages in the message set as follows.

[0027] The terminal employs count separation to detect whether there are multiple consecutive overlapping session messages in the message set. The so-called count separation refers to separating non-session messages in the message set and traversing and detecting only session messages in the message set. For example, session messages may be first sorted out from the message set, and the number of consecutive overlapping session messages among the sorted out session messages may be calculated. For example, each session message other than the first session message among the sorted out session messages may be sequentially traversed. If the message content of the currently traversed session message is the same as the message content of the previous session message, the overlap count may be added by 1, and the overlap count may be updated. If the message content of the currently traversed session message is not the same as the message content of the previous session message, the overlap count may be updated to an invalid number (e.g., the number 0). When all the sorted out session messages have been traversed, the traversal may be terminated, and the updated overlap count may be added by 1, and the number of consecutive overlapping session messages among the sorted out session messages may be calculated. If the calculated number is equal to or greater than a preset number, it may be determined that there are multiple consecutive overlapping session messages in the message set. If the calculated number is less than a preset number, it can be determined that there are no consecutive overlapping session messages in the message set. The previous session message referred to in this embodiment refers to a session message in the selected session message whose reordering position is before the reordering position of the currently traversed session message and is adjacent to the reordering position of the currently traversed session message.

[0028] As an example, the preset number is still set to 5, and the message set includes the messages "Got it", "Got it", "XX user joined the target session", "Got it", "Got it", "Got it", in sequence. First, five session messages "Got it", "Got it", "Got it", "Got it", "Got it" are selected and obtained from the message set. Next, the number of consecutive duplicate session messages among the selected five session messages is calculated. In actual implementation, first, the second session message among the five session messages is traversed, and since the message content of the second session message is the same as the message content of the previous session message (i.e., the first session message), the duplicate count can be added by 1, and the duplicate count can be updated from 1 to 0. Then, the third session message among the five session messages is traversed, and since the message content of the third session message is the same as the message content of the previous session message (i.e., the second session message), the duplicate count can be continued to be added by 1, and the duplicate count can be updated from 1 to 2. Then, the fourth session message of the five session messages is traversed, and since the message content of the fourth session message is the same as the message content of the previous session message (i.e., the third session message), the duplicate count can be continued to be added by 1, and the duplicate count can be updated from 2 to 3, and so on. When all five session messages have been traversed, the traversal is terminated, and at this time, it is possible to obtain that the updated duplicate count is 4. Next, the updated duplicate count is added by 1, and it is possible to obtain by calculation that the number of consecutive duplicate session messages of the selected five session messages is 3. Since the calculated number (5) is equal to the number threshold (5), it can be determined that there are multiple consecutive duplicate session messages in the message set.

[0029] According to the above embodiment of the present application, when detecting whether there are multiple consecutive overlapping session messages in a message set, the terminal can perform count separation on non-session messages in the message set by performing traversal detection only on session messages in the message set, avoiding the problem of needing to count again due to the effect of non-session messages clearing the overlap count, and can continuously count the consecutive overlapping session messages, thereby improving the accuracy of the detection result. Note that, in the above example of detecting whether there are multiple consecutive overlapping session messages in a message set, all of the examples are described in which the message content only includes text, but in actual applications, the message content is not limited to text and can include at least one content such as text, symbols, and emoticons. If the message content includes at least two contents of text, symbols, and emoticons, each content included in the message content is recognized. That is, in the embodiment of the present application, the text (e.g., Chinese text), symbols (e.g., spaces), and emoticons included in the message content can all be recognized. If one content does not match, it can be considered that the message content is not the same. It can be seen that in the embodiment of the present application, the recognition granularity of consecutively overlapping session messages is small, which can effectively improve the accuracy of the detection result. Note that, in the embodiment of the present application, the execution order of step S201 and step S202 is not limited.

[0030] In S203, if there are multiple consecutive overlapping session messages in the message set, a target session message is obtained based on the multiple session messages.

[0031] When a message set has multiple consecutive overlapping session messages, the message contents of the multiple consecutive overlapping session messages are all identical. Therefore, in order to reduce the unpleasant spam effect caused by displaying multiple consecutive overlapping session messages as they are in the session interface, in the embodiment of the present application, a reference session message and a first folding prompt can be obtained as a target session message based on the multiple session messages, and some consecutive overlapping session messages can be folded and displayed.

[0032] In practical implementation, obtaining a target session message based on the multiple session messages may include the following steps s11 to s13.

[0033] In s11, a reference session message is selected from the plurality of session messages.

[0034] In one embodiment, one session message or a preset number of session messages may be randomly selected as the reference session message from the multiple session messages. That is, in this embodiment, the reference session message is one or a preset number of session messages randomly selected from the multiple session messages. In another embodiment, each session message in the message set has a message reception time, and the social client usually displays each session message in order of the earliest message reception time, so that the display order of each session message in the session interface is not disturbed, the social client may further select the session message with the earliest message reception time from the multiple session messages as the reference session message. That is, in this embodiment, the reference session message is the session message with the earliest message reception time from the multiple session messages. In another embodiment, a preset number of session messages may be selected as the reference session message from the multiple session messages in order of the earliest message reception time. That is, in this embodiment, the reference session message includes a preset number of session messages selected from the multiple session messages in order of the earliest reception time. For ease of explanation, hereinafter, an example will be described in which the reference session message includes a preset number of session messages selected from the multiple session messages in order of the earliest reception time.

[0035] In some embodiments, when there is a session message sent by a master user among the multiple session messages, the session message sent by the master user is set as the reference session message. After this, the social client can avoid collapsing the session message sent by the master user and display the session message sent by the master user as it is in the session interface. This creates a user experience in which the session message sent by the master user remains stable when the master user repeatedly sends the same message, and the master user can easily view the session message sent by the master user, thereby improving the number of human-machine interactions and the user's dependency on the social client.

[0036] In s12, folding processing is performed on surplus session messages other than the reference session message among the multiple session messages, and a first folding prompt is obtained.

[0037] As can be seen from the above, the first folding prompt can include a folding message and a folding identifier. Correspondingly, when the first folding prompt includes a folding message, the embodiment of step s12 is as follows. First, generate prompt content based on the surplus number of surplus session messages other than the reference session message among the multiple session messages and the message content of the surplus session messages. The prompt content is used to prompt that a surplus number of users have sent the message content in succession, or to prompt that a surplus number of consecutive messages contain the message content. For example, if the surplus number of surplus session messages is 8 and the message content of the surplus session message is "Got it", the prompt content may be "8 friends have replied "Got it" in succession", or may be "The following 8 messages have replied "Got it" in succession", etc. When the message content contains a large amount of content (e.g., text, symbols, emoticons, etc.), the social client may generate the prompt content based only on the number of surplus session messages other than the reference session message among the multiple session messages when performing step s12. In this case, the prompt content may be used to prompt that the surplus number of users have continuously sent the same message as the reference session message, or may be used to prompt that the consecutive surplus number of messages is the same as the reference session message. Alternatively, the social client may generate the prompt content based on the number of surplus session messages other than the reference session message among the multiple session messages when performing step s12, the message content of a part of the surplus session message, and a content ellipsis. The content ellipsis is used to prompt that the message content of the surplus session message is incompletely displayed. For example, the number of surplus session messages is set to 8, and the message content of the surplus session message is set to "Okay, let's join on time tomorrow.There will be penalties if you are late! Hahahaha, I agree!', then the prompt content could be '8 friends replied with the above message in succession' or 'The following 8 messages replied with 'Okay, let's join on time tomorrow...'', where '...' is a content ellipsis.

[0038] In addition to generating the prompt content, the social client can obtain a user identifier of the message sending user corresponding to the excess session message. The user identifier includes at least one of a user name and a user identification image. The user name here can include, but is not limited to, a network handle name (a name used by the user in a social network, for example, a user name in an instant communication client), a session name (annotation name used by the user in a target session), etc. The user identification image can be a user avatar of the message sending user. Then, the social client can generate a fold-up message based on the obtained user identifier and the prompt content. The present invention can include at least the following embodiments.

[0039] In one embodiment, the folding message may be directly generated based on the acquired user identifier and prompt content. In practical implementation, when the prompt content 31 prompts that a surplus number of consecutive messages contain message content and the user identifier 32 includes a user name, the schematic diagram of the generated folding message 33 may refer to the first diagram of FIG. 3A. When the prompt content 31 prompts that a surplus number of users have sent message content in succession and the user identifier 32 includes a user identification image, the schematic diagram of the generated folding message 33 may refer to the second diagram or the third diagram of FIG. 3A. In the embodiment of the present application, the three diagrams of FIG. 3A are used as an example to show the display form of the folding message 33, but are not limited thereto. Optionally, in the case of the folding message shown in the second diagram or the third diagram of FIG. 3A, the social client may display one or more message sending buttons 34 in the display area of ​​the folding message, as shown in the second diagram of FIG. 3B. When the social client detects a trigger action (e.g., a click action, a press action, etc.) on any of the message send buttons 34 by the master user, it copies the message content of the multiple session messages to generate a new session message and sends the new session message to the target session.

[0040] In another embodiment, when the number of acquired user identifiers is greater than the number threshold, in order to avoid the folding message occupying a large display area in the session interface, the embodiment of the present application can selectively use some user identifiers and prompt content to generate the folding message, thereby reducing the display area of ​​the folding message. In practical implementation, firstly, one or more user identifiers are selected from the acquired user identifiers as the user identifiers to be displayed, and then a folding message is generated according to the user identifiers to be displayed, the prompt content and the identifier omission symbol. The identifier omission symbol is used to prompt that the acquired user identifiers are incompletely displayed, and the identifier omission symbol is used to trigger the display of the remaining user identifiers that are not displayed among the acquired user identifiers. The display form of the identifier omission symbol can be set according to service needs, for example, the identifier omission symbol 35 may be represented by "..." or "V" in the folding message. Therefore, the schematic diagram of the folding message can be referred to the second diagram of FIG. 3C.

[0041] In another embodiment, considering that the master user may have a need to view the excess session messages, in the embodiment of the present application, when generating a content folding message based on the acquired user identifier and the prompt, a message link for triggering the display of the excess message is inserted into the folding message, and the master user can then easily view the excess session messages through the message link. In practical implementation, the folding message may be generated using the acquired user identifier, the prompt content, and the message link 36. Therefore, the schematic diagram of the folding message can be referred to the left diagram of FIG. 3D. When the number of acquired user identifiers is greater than the number threshold, first, select one or more user identifiers from the acquired user identifiers as the user identifiers to be displayed, and then generate a folding message based on the user identifiers to be displayed, the prompt content, the identifier ellipsis, and the message link 36. The prompt content here may include the excess number of the excess session messages, the message content of part of the excess session messages, and the content ellipsis, or may include the excess number and the complete message content. Take for example the prompt content includes a content ellipsis 37, the schematic diagram of the corresponding folding message can be seen in the right diagram of FIG. 3D.

[0042] As can be seen from the above, in the embodiment of the present application, when detecting whether there are multiple consecutive overlapping session messages in a message set, the detection is performed on a session message basis. If there are multiple overlapping session messages consecutively sent by the same user in the target session, the multiple session messages sent by the user may be displayed in a folded state. In this case, as shown in FIG. 3E, the user identifiers included in the folded messages may be consecutive and the same.

[0043] If the first fold prompt includes a fold identifier, an embodiment of step s12 may include: The method may include determining an excess number of excess session messages other than the reference session message among the multiple session messages, and then generating a folding identifier based on the excess number of the excess session messages. It should be understood that the embodiment of the present application does not limit the display form of the folding identifier. For example, as shown in the left diagram of FIG. 3F, the folding identifier 38 may be a numerical value corresponding to the excess number. Also, for example, as shown in the right diagram of FIG. 3F, the folding identifier 38 may be an identifier image consisting of a numerical value corresponding to the excess number and a preset image.

[0044] At s13, a target session message is constructed using the reference session message and the first folding prompt.

[0045] In S204, the target session message is used to replace consecutively overlapping session messages in the message set, and the replaced message set is displayed in the session interface of the target session message.

[0046] As can be seen from the above, steps S201 and S202 mentioned in the embodiment of the present application are not sequential, and the message set is updated in real time. The time when detecting that there are multiple consecutive overlapping session messages in the message set and obtaining the target session message based on the multiple session messages may be before displaying the session interface of the target session, or after displaying the session interface of the target session. In one application scenario, when the time when the target session message is obtained is before displaying the session interface of the target session, the social client replaces the multiple consecutive overlapping session messages in the message set with the target session message before displaying the session interface. In this application scenario, the social client may display the target session message as it is in the session interface after displaying the session interface. In another application scenario, when the time when the target session message is obtained is after displaying the session interface of the target session, the social client may display each message in the message set of the target session in real time in the session interface after displaying the session interface of the target session.

[0047] In some embodiments, after obtaining the target session message in step S203, the social client directly performs step S204, that is, updates the multiple session messages in the message set using the target session message (i.e., the reference session message 41 and the first folding prompt 42) as is, and displays each message in the updated message set in the session interface. The first folding prompt 42 here includes any of the folding messages shown in FIG. 3A to FIG. 3E, or the folding identifier shown in FIG. 3F. For example, if the first folding prompt 42 includes the folding message shown in the left diagram of FIG. 3D, the schematic diagram of the displayed target session message can be seen in FIG. 4A. As can be seen from the above, the social client displays each message in the message set in the session interface, and by using this processing logic, if multiple consecutive overlapping session messages can be detected, a first folding prompt can be newly created, and an interface update of the existing message (i.e., the displayed message) and the new first folding prompt can be performed in the session interface.

[0048] In another embodiment, the social client can continue to sequentially display each message in the message set in the session interface after obtaining the target session message through step S203. When detecting that the master user logs out and reopens the session interface of the target session, the social client performs step S204 to directly display the target session message (i.e., the reference session message 41 and the first folding prompt 42) in the session interface to be redisplayed. As an example, the first folding prompt 42 includes the folding message shown in the left diagram of FIG. 3D. The schematic diagram of the displayed target session message can be seen in FIG. 4B.

[0049] After displaying the target session message in the session interface, the social client can detect in real time whether there is a new first session message in the target session. When detecting the new first session message, detect whether the first session message overlaps with multiple session messages consecutively, and if so, add the first session message to the multiple session messages, and use the first session message as is to update the first fold prompt in the target session message. In actual implementation, if the first fold prompt includes a fold identifier, directly add 1 to the value of the fold identifier to update the fold identifier. If the first fold prompt includes a fold message, add 1 to the excess number included in the fold message, and add the user identifier of the message sending user of the first session message to the fold message. In some embodiments, in order to create a user experience that stably leaves the session message repeatedly sent by the master user, if there is consecutive overlap, it may further detect whether the message sending user of the new session message is a master user or a guest user. If it is a master user, as shown in FIG. 4C, the first session message 43 is displayed as is in the session interface. In this case, after receiving the first session message, when the social client again receives a second session message sent by a guest user, the message content of which is the same as the message content of the multiple session messages, the second session message, the first session message, and the multiple session messages are consecutively overlapped, so the social client can add the second session message to the multiple session messages and update the first fold prompt using the second session message. If it is a guest user, the first session message can be used to update the first fold prompt. For example, if the first fold prompt includes a fold message, a schematic diagram of updating the fold message using the first session message can be seen in FIG. 4D.As shown in FIG. 4D, the updated folding message includes the user identifier of the message sending user of the first session message, and the surplus number included in the prompt content in the updated folding message also changes.

[0050] As shown in FIG. 4E or FIG. 4F, in the case of no consecutive overlap, regardless of whether the message sending user of the first session message is a master user or a guest user, the social client can directly display the first session message in the session interface. Also, as shown in FIG. 4G, in the case of no consecutive overlap, after receiving the first session message, when the social client re-receives a second session message whose message content is identical to the message content of the multiple session messages, the first session message breaks the continuity between the second session message and the multiple session messages, and thus the social client can directly display the second session message 44 in the session interface. In this case, after the social client re-detects the multiple session messages that are consecutively overlapping with the second session message, the social client obtains a new target session message based on the re-detected multiple session messages, and uses the new target session message to replace the re-detected multiple session messages and display them in the session interface.

[0051] Also, when the first folding prompt includes a folding message, as can be seen from the above-mentioned related description of step s12 and the folding message shown in FIG. 3A to FIG. 3E, the folding message can include functional components such as an identifier ellipsis for triggering the display of the surplus user identifiers not displayed among the acquired user identifiers, and a message link for triggering the display of the surplus message. After displaying the folding message among the target session messages, the master user may perform a triggering operation on the identifier ellipsis of the folding message to trigger the social client to display the surplus user identifiers not displayed among the acquired user identifiers in the session interface. Correspondingly, when the social client detects that the identifier ellipsis is triggered, it can display the surplus user identifiers in the session interface. Taking the folding message shown in the right diagram of FIG. 3C as an example, a schematic diagram of triggering the display of the surplus user identifiers can be referred to FIG. 4H.

[0052] Similarly, the master user may further trigger the social client to display the extra session messages by performing a triggering action (e.g., clicking or pressing the message link) on the message link in the folded message. In one implementation, when the message link in the folded message is triggered, the social client may display the extra session messages and the user identifiers of the corresponding message sending users in the session interface. In actual implementation, the embodiment of the present application illustrates that the reference session message includes a preset number of session messages selected from multiple session messages in order of earliest reception time, and therefore, the message reception time of the reference session message is necessarily earlier than the message reception time of the extra session message. Directly expanding and displaying the extra session messages does not affect the display order of the reference session messages, and therefore, as shown in FIG. 4I, the social client may display the extra session messages and the user identifiers of the corresponding message sending users in the session interface in order of earliest message reception time. In some embodiments, when a message link in the folded message is triggered, the social client may output a message display window 45 in the session interface and display the remaining session messages and the user identifiers of the corresponding message sending users in the message display window 45. In an actual implementation, as shown in FIG. 4J, the social client may display the remaining session messages and the user identifiers of the corresponding message sending users in the message display window 45 in the order of earliest message receiving time.

[0053] In practical application, when selecting a reference session message, the session message sent by the master user may be the reference session message. In this case, the message receiving time of the session message sent by the master user may be later than the message receiving time of some excess session messages, and if the excess session message is directly expanded and displayed, the message display order may be erroneous. Therefore, in this case, as shown in FIG. 4K, the social client sequentially displays each consecutively overlapping session message and the user identifier of the corresponding message sending user in the session interface in the order of the earliest message receiving time, thereby realizing the display of the excess session message. Note that, after displaying the excess session message, when the social client detects that the master user logs out and reopens the session interface of the target session, it obtains the target session message again based on the multiple session messages, and directly displays the target session message on the session interface, thereby performing a fold display again for the excess session message. For example, when the target session message includes a reference session message and a fold message, the schematic diagram can be referred to FIG. 4L. 4L is merely an exemplary schematic diagram of a master user logging out of a session interface using an interface switching process to switch from a session interface to a main interface, and is not intended to limit the operation of the master user logging out of a session interface. For example, when the master user switches from a session interface to a browser web page interface, it can be considered that the master user logs out of the session interface of the target session.

[0054] In the embodiment of the present application, a session interface of a target session is displayed, and when there are multiple consecutive overlapping session messages in the message set of the target session, the multiple consecutive overlapping session messages can be replaced and displayed on the session interface using a reference session message and a first folding prompt. The reference session message is selected from the multiple session messages, and therefore the message content of the reference session message is the same as the message content of the multiple session messages. By displaying the reference session message, the complete display of the message content can be ensured. In addition, the first folding prompt is obtained by performing a folding process on the excess session messages other than the reference session message among the multiple session messages, and therefore the excess session messages can be replaced and displayed using the first folding prompt, thereby effectively reducing the spam effect caused by the display of the multiple session messages. As can be seen from the above, by displaying the reference session message and the first folding prompt, the message display mode of the social client can be enriched, the utilization rate of the terminal's graphic processing resources and the number of human-machine interactions can be improved, and further the user's dependency on the social client can be effectively improved.

[0055] It should be noted that the embodiment of the application shown in FIG. 2 above mainly shows that the social client automatically folds and displays some of the consecutively overlapping session messages. However, in practical applications, the social client can also support the user to manually fold one or more session messages displayed in the session interface of the target session, so that the user can easily manage and search the messages afterwards. In one application scenario, when there are multiple consecutively overlapping session messages in the message set of the target session, and the social client automatically folds and displays the excess session messages other than the reference session message among the multiple session messages through steps S203 and S204, the session messages displayed in the session interface can include session messages other than the excess session messages in the message set. In another application scenario, when there are multiple consecutively overlapping session messages in the message set of the target session, and the excess session messages among the multiple session messages are triggered to be expanded and displayed, or there are no multiple consecutively overlapping session messages in the message set, the session messages displayed in the session interface can include each session message in the message set. For ease of explanation, hereinafter, it is taken as an example to explain that the session messages displayed in the session interface can include each session message in the message set.

[0056] In practical implementation, when the master user intends to manually collapse a session message displayed on the session interface, the master user may input a selection trigger event for the session message displayed on the session interface into the social client. Correspondingly, when the social client detects a selection trigger event for the session message displayed on the session interface, the social client may output a message option for each displayed session message on the session interface, which is used to select the displayed session message. In one embodiment, the selection trigger event may include an event of detecting that the session interface is pressed. In this embodiment, a schematic diagram of outputting the message option 51 may refer to FIG. 5A. In another embodiment, the social client may provide the master user with a selection trigger button 52. The selection trigger button 52 is triggered and displayed by a trigger action such as clicking or pressing the session interface. Thus, the corresponding selection trigger event may include detecting the action of the selection trigger button 52 being triggered. In this embodiment, a schematic diagram of outputting the message option 51 may refer to FIG. 5B.

[0057] The master user can select a message option for each session message according to his / her actual needs. Correspondingly, the social client can make the displayed session message corresponding to the selected message option the session message to be folded according to the selection operation on the message option in the session interface. When the master user selects the message option, he / she clicks or presses the selection end button 53 in the session interface, and inputs a selection end event to the client. The selection end event here is an event in which the selection end button is clicked or pressed. Correspondingly, when the social client detects the selection end event, it can create a new folded message based on the session message to be folded, and use the folded message to replace the folded session message and display it in the session interface. In actual implementation, the embodiment of creating a new folded message based on the folded session message when the selection end event is detected may be as follows: When the selection end event is detected, the social client can directly and randomly obtain or generate a system message name, and generate a folded message 54 based on the system message name and the user identifier of the message sending user of the folded session message. In this case, taking the system message name "fold message 1" as an example, a schematic diagram of outputting the fold message 54 can be seen in FIG. 5C.

[0058] In some examples, an embodiment of creating a new folded message based on the folded session message when a selection end event is detected may be as follows: When a selection end event is detected, a message naming window 55 is output, which may include a name setting area 56 and a name confirmation button 57. The master user may set a customized message name for the folded session message in the name setting area 56 in the message naming window 55. In response to this, the social client may obtain the customized message name set for the folded session message in the message naming window 55. When a confirmation action on the customized message name is detected, a folded message 54 may be generated based on the customized message name and the user identifier of the message sending user of the folded session message. The confirmation action on the customized message name may include a click or press action on the name confirmation button 57 in the message naming window 55. In this case, a schematic diagram of outputting the folded message 54 may refer to FIG. 5D.

[0059] In one embodiment, as can be seen with reference to the folded message shown in FIG. 5C or FIG. 5D, the folded message may further include a message button 58 for triggering the display of the folded session message. The master user may trigger the message button 58 to display the folded session message in the social client. Correspondingly, as shown in FIG. 5E, the social client may display the folded session message in the session interface when it detects that the message button 58 is triggered. As shown in FIG. 5F, the social client may output a message display window and display the folded session message in the message display window when it detects that the message button 58 is triggered.

[0060] In another embodiment, for the folded message, the social client may further provide functions such as copy, forward, reply, favorite, etc. As shown in FIG. 5G, when the master user is about to perform an action such as copy, forward, reply, favorite, etc. on the folded message, a trigger action may be performed on the folded message. Correspondingly, when the folded message is triggered, the social client may output an action option window 59 for the folded message. The action option window 59 includes at least one action option among a copy option, a forward option, a reply option, a favorite option, and a selection option. Then, the social client determines a selected action option from the action option window according to a selection action detected in the action option window, and then performs a corresponding action on the folded message according to the selected action option. For example, when the selected action option is a forward option, the corresponding action to be performed is an action of outputting a forward interface. The master user may select a target user through the forward interface to trigger the social client to send the folded session message to the target user. Also, for example, when the selected action option is a favorite option, the corresponding action to be performed is an action of adding the folded session message to a favorite. Also, for example, if the selected action option is a copy option, the corresponding action to be performed is to copy the folded session message. It should be understood that in practical application, the social client can also provide functions such as copy, forward, reply, favorite, etc. for the first folding prompt obtained by automatic folding. The implementation form thereof is similar to the implementation form of the folded message, and is omitted here.It should be understood that when the target session message includes an image message, or a key content extracted from the message content of the multiple session messages, and a number identifier generated based on the number of the multiple session messages, the above-mentioned manual folding function can be similarly applied. Providing the manual folding function can enrich the message display mode of the social client, thereby improving the user's dependency on the social client.

[0061] It should be noted that the message display method shown in FIG. 2 can be applied to any message type of session message. The message type here can include a first type or a second type. The message content of the session message corresponding to the first type does not include a keyword, but the message content of the session message corresponding to the second type includes a keyword. In practical applications, the keyword can be set according to service needs, for example, in the embodiment of the present application, multiple types of keywords such as a celebration type keyword and a corporate promotion type keyword may be set. The celebration type keyword refers to a keyword representing a celebration, and can include, but is not limited to, a keyword related to holiday celebration, a keyword related to birthday celebration, etc. The corporate promotion type keyword refers to a keyword for promoting the target company, and can include, but is not limited to, a company name, a product attribute of a product operated by the target company (e.g., product name, product category), etc. For example, if the product operated by the target company is a hamburger, the corporate type keyword can be the name of a certain hamburger. In order to improve the operation capability and user dependency of the social client, the embodiment of the present application provides a message display method shown in FIG. 6. The message display method shown in FIG. 6 mainly uses a new image message display mode to perform display processing on multiple consecutively overlapping session messages, enriching the display form of the session messages. The image message is a message generated based on multiple session messages and images matching the message contents of the multiple session messages. In practical application, the social client can apply the message display method shown in FIG. 6 to a session message of any message type. For example, the social client may detect the message types of the multiple session messages after detecting the multiple consecutively overlapping session messages. In practical implementation, the social client may detect whether the multiple session messages contain a keyword. If not, determine that the message type of the multiple session messages is a first type.If the message type of the multiple session messages includes the first type, it is determined that the message type of the multiple session messages is the second type. Then, in some embodiments, different message display modes are selected for different message types. If the message type of the multiple consecutive overlapping session messages is the first type, a display mode in which some session messages are folded can be selected to display the multiple session messages, i.e., the message display method shown in FIG. 2 can be selected to display and process the multiple session messages. If the message type of the multiple consecutive overlapping session messages is the second type, a display mode of a new image message can be selected to display the multiple session messages, i.e., the message display method shown in FIG. 6 can be selected to display and process the multiple session messages.

[0062] In some embodiments, the message display method shown in FIG. 6 may be executed by any social client of the above-mentioned communication session system, or may be executed by a terminal executing the social client. For ease of explanation, in the embodiments of the present application, a social client executes the message display method, and the target session message includes an image message. Referring to FIG. 6, the message display method includes the following steps S601 to S606.

[0063] In S601, the terminal displays a session interface of the target session and obtains a message set of the target session.

[0064] In S602, session messages are selected from the message set, and the number of consecutive overlapping session messages among the selected session messages is calculated.

[0065] In S603, if the calculated number is less than the preset number, it is determined that there are no consecutive overlapping session messages in the message set.

[0066] In S604, if the calculated number is equal to or greater than the preset number, it is determined that there are multiple consecutive overlapping session messages in the message set. In this case, steps S605-S606 can be continued. In the embodiment of the present application, steps S602-S604 (i.e., counting separation) are used as an example to explain how to detect multiple consecutive overlapping session messages. In practical application, the non-counting separation mentioned in the above step S202 may be used to detect whether there are multiple consecutive overlapping session messages in the message set.

[0067] In S605, if there are multiple consecutive overlapping session messages in the message set, obtain a target session message based on the multiple session messages.

[0068] In practical implementation, the terminal first obtains a message display template that matches the message content of the multiple session messages, and the message display template includes three regions, namely, a top region, a middle region, and a bottom region, and an image that matches the message content is displayed in each region. In one case, when the message type of the multiple session messages is the first type, that is, the message content of the multiple session messages does not contain a keyword, the social client can directly obtain a default image template as the message display template. As shown in FIG. 7A, the default image template includes three regions, such as a top region, a middle region, and a bottom region, and the image in the top region of the default image template can be a rooftop image representing the rooftop of a building, the image in the middle region of the default image template can be a floor image representing the floor of a building, and the image in the bottom region of the default image template can be a base image representing the base of a building.

[0069] In some embodiments, if the message type of the multi-session message is a second type, that is, the message content of the multi-session message includes a keyword, the message display template may be obtained as follows:

[0070] A message display template is preset for each keyword, and the social client obtains a matching message display template based on the keywords contained in the message contents of multiple session messages.

[0071] In some embodiments, when the message type of the multi-session message is a second type, ie, the message content of the multi-session message includes a keyword, the message display template may be obtained as follows:

[0072] First, a system template including three regions, a top region, a middle region, and a bottom region, is obtained. Then, based on keywords in the message contents of a plurality of messages, images to be filled in each region in the system template are obtained. Next, the obtained images are filled in each region of the system template to obtain a message display template. For example, if the message contents of a plurality of session messages are "Happy Birthday, Kiyo-chan!", the keyword of the message contents is "Happy Birthday", and the images corresponding to each region obtained based on the keyword "Happy Birthday" may be images representing components of a cake, such as a candle image representing the top of the cake, a background image representing the middle part of the cake, and a cake image representing the bottom of the cake. Next, as shown in FIG. 7B, a first bread image, a background image, and a second bread image may be filled in the top region, the middle region, and the bottom region in sequence to obtain a message display template. For example, if the message content of the multiple session messages is "Hamburger, worth having!", the keyword of the message content is "hamburger", and the images corresponding to each region acquired based on the keyword "hamburger" may be images representing the components of the hamburger, for example, a first bread image representing the top of the hamburger, a background image representing the middle part of the hamburger, and a second bread image representing the bottom of the hamburger. Next, as shown in FIG. 7C, the first bread image, the background image, and the second bread image may be filled in the top region, the middle region, and the bottom region in order to acquire a message display template. As can be seen from the above, in the embodiment of the present application, the setting for the pattern of the message display template is realized based on the message contents of the multiple session messages, and the message display template can dynamically respond to various operation scenes. For example, in the operation scene of a birthday celebration, the pattern of the message display template can be visually represented as a cake layer, and in the operation scene of the target company spread, the pattern of the message display template can show the correlation information of the target company.In addition, in the embodiment of the present application, each region in the system template is filled with an image to generate a message display template, thereby effectively improving the versatility of the system template.

[0073] After obtaining the message display template, a plurality of session messages are filled into the middle area of ​​the message display template, an image message is obtained, and the image message is added to the target session message.

[0074] In some examples, the social client may fill the middle area of ​​a message display template with multiple session messages and obtain a picture message as follows:

[0075] In the order of message reception time, the multiple session messages are sequentially filled into the middle area of ​​the message display template, and the image message is obtained. Taking the message display template shown in Fig. 7C as an example, the schematic diagram of filling each session message can be referred to Fig. 7D. In this implementation, the target session message may only include the image message.

[0076] In some examples, the social client may further fill the middle area of ​​the message display template with multiple session messages and obtain image messages, as follows:

[0077] When the number of consecutive overlapping multiple session messages is large, some of the multiple session messages may be selected and added to the image message, and the non-selected session messages among the multiple session messages may be folded and displayed to reduce the display area of ​​the image message. In actual implementation, the social client first selects a preset number of session messages from the multiple session messages in order of earliest message reception time, and then fills the selected session messages in the middle area of ​​the message display template to obtain an image message. In this implementation, the target session message may only include the image message. In this implementation, the social client may further perform a folding process on the non-selected session messages among the multiple session messages, obtain a second folding prompt, and add the second folding prompt to the target session message, that is, the target session message in this implementation may include an image message and a second folding prompt. Continuing, the message display template shown in FIG. 7C is taken as an example, and the preset number is 5. If the number of the multiple session messages is 13, the schematic diagram of the target session message in this implementation can be referred to the second diagram in FIG. 7E. The method of acquiring the second folding prompt is the same as the method of acquiring the first folding prompt. Therefore, for an embodiment of how to perform folding processing on an unselected session message among a plurality of session messages and acquire the second folding prompt, the relevant description of step s12 in the above embodiment of the method may be referred to, and will not be described here. It should be understood that FIG. 7E is merely an exemplary illustration of the display form of the second folding prompt, and is not intended to be limiting. The display form of the second folding prompt may refer to the display forms of the folding message or folding identifier shown in FIG. 3A to FIG. 3F.

[0078] In practical application, the social client may select one of the above two implementation forms according to the message type of the plurality of session messages to fill the plurality of session messages. When the message type of the plurality of session messages is a first type, any implementation form can be arbitrarily selected from the above two implementation forms to fill the plurality of session messages. When the message type of the plurality of session messages is a second type, as can be seen from the above, in the embodiment of the present application, multiple types of keywords such as a congratulations type keyword and an enterprise popularization type keyword can be set, and the second type can be subdivided into a congratulations message type, a popularization message type, etc. according to different types of keywords. The message content of the session message corresponding to the congratulations message type includes a congratulations type keyword, and the message content of the session message corresponding to the popularization message type includes an enterprise popularization type keyword. Based on this, when the message type of the plurality of session messages is a second type, the social client can select different implementation forms according to different second types to fill the plurality of session messages. In practical implementation, the type of the second type is recognized and obtained according to the type of the keyword included in the message content of the plurality of session messages. If the second type is a celebration message type, since the celebration can bring joy to the user, implementation form 1 can be selected to fill multiple session messages, i.e., all of the multiple session messages can be filled directly into the middle area of ​​the message display template and an image message can be obtained, so that the master user can view all the consecutive overlapping session messages through the image message.When the second type is a popular message type, the popular effect can be generally realized after a certain number of session messages are continuously and overlappingly displayed on the session interface, so that the implementation mode 2 can be selected to fill multiple session messages, that is, a preset number of session messages can be selected from the multiple session messages to fill the middle area of ​​the message display template, and an image message can be obtained, thereby achieving the popular effect and avoiding the spam effect caused by the continuous and overlapping display of multiple messages.

[0079] In S606, the target session message is used to replace consecutive duplicate session messages in the message set, and the replaced message set is displayed in the session interface of the target session.

[0080] After obtaining the target session message, the target session message can be displayed on the session interface. As can be seen from the above, the target session message here may include an image message, or an image message and a second folding prompt. Since the message set of the target session is obtained in real time, the session message included in the message set may be updated in real time. Thus, in one application scenario, while sequentially displaying each message in the message set on the session interface, if the social client detects that there are multiple consecutive overlapping session messages in the message set, and obtains the target session message based on the multiple session messages, it can directly perform step S606 and directly use the target session message to replace the multiple consecutive overlapping session messages in the session interface. For example, if the target session message only includes an image message and the keyword included in the message content of the multiple session messages is "hamburger", the display schematic diagram of the corresponding target session message can be referred to FIG. 7F. In another application scenario, if the social client detects that there are multiple consecutive overlapping session messages in the message set before displaying the session interface, and obtains the target session message based on the multiple session messages, it can directly display the target session message after displaying the session interface. Continuing with the example, if the target session message only includes an image message and the keyword included in the message content of the multiple session messages is "hamburger", the display schematic diagram of the corresponding target session message can be referred to in Figure 7G. As can be seen from the above, in the implementation of the present application, when there are multiple session messages that are consecutively overlapped in a message set, the message contents of the multiple session messages can be combined and visually re-rendered.By displaying a visually expressive image message on a session interface, the interactive atmosphere of the target session is effectively improved, and a plus-one support is provided for a user in the target session against a plurality of consecutive and overlapping session messages, thereby improving the activity of the target session.

[0081] In one embodiment, the purpose is to better stimulate users in a target session to provide plus-one support for multiple consecutive overlapping session messages, thereby improving the activity of the target session. In the embodiment of the present application, when the number of multiple consecutive overlapping session messages is greater than a number threshold, a message surprise bonus may be set so that all message sending users corresponding to each session message among the multiple session messages can obtain a corresponding resource bonus. Based on this, for a master user, when the multiple session messages include a session message sent by the master user, if the number of the multiple session messages is greater than a number threshold, the social client can obtain an electronic resource receiving amount corresponding to the master user. The electronic resource receiving amount is calculated based on the total amount of electronic resources issued by the resource issuing user for the multiple session messages. The resource issuing user here may be any user, and for example, when the message type of the multiple session messages is a congratulatory message type, the resource issuing user may be a congratulated target user in the target session. Also, for example, when the message type of the multiple session messages is a dissemination message type, the resource issuing user may be a target company. After obtaining the amount of electronic resources received, the social client switches from the session interface to the resource receiving interface, and displays the amount of electronic resources received and the user identifier of the resource issuing user in the resource receiving interface. For example, the message type of the multiple consecutive overlapping session messages is a popular message type, and the resource issuing user is a target enterprise, the schematic diagram of switching from the session interface to the display resource receiving interface can be seen in Figure 7H.

[0082] In one embodiment, in order for the master user to quickly and easily provide plus-one support for multiple consecutive overlapping session messages, the social client may further display a message send button 71 at the display position of the image message. When the social client detects a trigger operation on the message send button 71 by the master user, the social client can copy multiple session messages, obtain a new session message, and directly display the new session message in the image message. Or, when the image message includes a preset number of session messages, the second folding prompt is updated with the new session message to realize the folding display for the new session message. The updating method can refer to the above-mentioned updating method of the first folding prompt, and therefore the description is omitted here. As shown in FIG. 7I, for example, when the new session message is directly displayed in the image message, if the multiple session messages are "Hamburger, worth having!", the master user can trigger the social client to send a new session message with the message content "Hamburger, worth having!" by clicking the message send button 71, and at this time, the new session message can be displayed in the image message. Also, for example, as shown in FIG. 7J, if the multiple session messages are "Happy Birthday [Cake] [Cake] [Cake]", the master user can click the message sending button 71 to trigger the social client to send a new session message with the message content "Happy Birthday [Cake] [Cake] [Cake]", and at this time, the new session message can be displayed in the image message. It can be understood that the master user may manually input the message content in the message input area 72 in the session interface. In this case, the social client can obtain the message content input by the master user from the message input area, and generate a new session message based on the obtained message content.If the acquired message content is the same as the message content of a plurality of session messages, the new session message is displayed in the image message.

[0083] In another embodiment, when the target session message includes a picture message, or a picture message and a second folding prompt, the social client can also support sharing the target session message to other users with a picture. In practical application, when the master user wants to share the target session message to other users with a picture, the master user can perform a share action on the target session message. Correspondingly, when the social client detects a share action on the target session message, the social client can generate a share picture based on the target session message. The share action can include detecting a user voice action to indicate sharing of the target session message, or detecting a long press of a physical button on the terminal, or detecting a click or press action on the message share button 73 of the target session message. As shown in FIG. 7K, the message share button 73 here is outputted on the session interface by the social client when detecting that the target session message is triggered. In one embodiment, the social client may directly use the target session message to generate a share picture. In another embodiment, when the message type of the multiple session messages is a second type and the second type is a congratulatory message type, when the social client generates a share picture based on the target session message, the social client may first obtain a user identifier of the congratulated target user, and then generate a share picture based on the user identifier and the image message of the target user. As shown in FIG. 7L, after generating the share picture, the social client may switch from the session interface to the share interface and display the share picture on the share interface. As shown in FIG. 7L, the share interface may further include a user selection area 74, a picture share button 75, and a picture edit button 76.The master user may select users to receive the share picture from the user selection area 74, and then trigger the social client to send the share picture to the users selected by the master user by clicking the picture share button 75. Alternatively, the master user may perform an editing operation on the share picture via the picture edit button 76, and send the edited share picture to other users.

[0084] In the embodiment of the present application, when the message set of the target session has multiple consecutive overlapping session messages, generate an image message according to the multiple session messages and images matching the multiple session messages, and use the image message to replace and display the multiple consecutive overlapping session messages in the message set in the session interface, thereby enriching the display form of the multiple consecutive overlapping session messages, effectively reducing the unpleasant spam effect caused by the direct display of the multiple session messages, enriching the message display mode of the social client, and effectively improving the user's dependency on the social client.

[0085] Based on the description of the above method embodiment, in order for the social client to better perform the message display method shown in FIG. 2 and FIG. 6, the embodiment of the present application further provides a social client shown in FIG. 8A. As shown in FIG. 8A, the social client in the embodiment of the present application may include at least functional components such as a chat window component 81, a message cache component 82, and a message processing component 83. The chat window component 81 is a component that interacts with a user, records each message in a session, and renders and displays a session interface. In one embodiment, the chat window component 81 may be a common chat window component (All In One, AIO). The so-called AIO is a chat window component shared by different sessions. The social client 81 can consider the behavioral habits of the user, such as inputs, clicks, etc. detected in different sessions by the AIO as a match, and provide the user with a unified interaction experience. The message cache component 112 is a component that can read each message of a target session from the chat window component and cache the read message. The message processing component 83 is a component formed by an abstract model of a duplicate message processor, and mainly takes each message cached in the message cache component 82 as input, and after performing internal calculations, partially folds or merges multiple consecutive duplicate session messages, and replaces the original multiple consecutive duplicate session messages with a target session message generated by folding or merging, so that the chat window component 81 displays the locally generated target session message in the session interface.

[0086] Compared with a general social client, the embodiment of the present application adds an abstract model of a duplicate message processor, and incorporates the abstract model into the social client as a message processing component 83, so that the code logic of the message cache component 82 in the server and the social client is not changed, and the code logic for displaying the target session message in the user interface (UI) layer is extended to realize the function of the social client detecting multiple consecutive duplicate session messages and folding or integrating the multiple consecutive duplicate session messages. As can be seen from the above, the embodiment of the present application realizes folding or integrating the display of session messages by adding a message processing component 83 to the social client, which can reduce the modification of the code logic to a certain extent, and can effectively save labor costs.

[0087] Based on the social client shown in FIG. 8A and the message display method shown in FIG. 2 and FIG. 6, the following will outline the workflow flow of each functional component in the social client in combination with the method schematic diagram shown in FIG. 8B.

[0088] When a user wants to view a session message of a target session, the user can open the session interface of the target session to enter the chat window. Correspondingly, when the social client detects the user's opening action on the session interface of the target session, the social client can call the internal message cache component 82 to read the message set of the target session from the chat window component 81 in step s80. Each message in the message set is pushed to the chat window component 81 by the server. Then, the social client can transmit the message set as an input to the message processing component 83 in step s81. When the message processing component 83 receives the message set, the message processing component 83 can traverse the message set in step s82 to detect whether there are multiple consecutive overlapping session messages in the message set. In practical implementation, it can detect whether there are N or more consecutive overlapping session messages in the message set, and the value of N can be set according to experience value or service needs, for example, N can be set to 5. If there is, it can be determined that there are multiple consecutive overlapping session messages in the message set. At this time, in step s83, a folding process is performed on some of the multiple session messages, and a first folding prompt can be obtained. Next, in step s84, the first folding prompt is used to replace the folded part of the session messages in the message set, and a message list to be displayed is obtained. In step s85, the message list to be displayed is sent to the chat window component 81.In response to this, in step s86, the chat window component 81 sequentially traverses and displays each message in the message list to be displayed on the session interface, and when it traverses the first fold prompt in the message list to be displayed, it displays the message in the pattern of the fold prompt.

[0089] It should be noted that, when the target session receives a new session message, the social client can first cache the new session message in a message set by the message cache component 82 in step s87 and update the message set, thereby ensuring that the message set cached in the message cache component 82 completely includes all messages of the target session. Then, in step s88, the message cache component 82 transmits the new session message to the message processing component 83. Correspondingly, when the message processing component 83 receives the new session message, in step s89, the message processing component 83 uses the new session message to update the message list to be displayed, and sends the updated message list to be displayed to the chat window component 81, and the chat window component 81 performs UI update on the session interface based on the updated message list to be displayed. An embodiment of updating the message list to be displayed by using the new session message may be as follows: When the last message other than the system prompt message in the message list to be displayed is the first folding prompt, detect whether the new session message overlaps with the folded session message. If overlapping, update the first folding prompt with the new session message and update the message list to be displayed. If there is no overlap, add the new session message to the end of the message list to be displayed, and update the message list to be displayed. If the last message other than the system prompt message in the message list to be displayed is a session message, detect from back to front whether there are N-1 consecutive session messages that overlap with the new session message in the message list to be displayed.If so, perform folding processing on some of the session messages among the N-1 session messages and the new session message, obtain a first folding prompt, add the first folding prompt to the message list to be displayed, and update the message list to be displayed; otherwise, add the new session message to the end of the message list to be displayed, and update the message list to be displayed.

[0090] In another embodiment, as can be seen from the message display method shown in FIG. 6, the social client may further detect the message types of the multiple session messages. Based on this, the embodiment of the present application may further include a type determination component 84 built into the social client. In this case, if the message processing component 83 detects that there are multiple consecutive overlapping session messages in the message set in step s83, it can send the multiple session messages to the type determination component 84. Correspondingly, when the type determination component 84 receives the multiple session messages, it determines the message types of the multiple session messages, which may include a first type or a second type, by matching with the keyword, and then returns the message types of the multiple session messages to the message processing component 82. If the message type is the first type, it can perform steps s83 to s85. If the message type is the second type, it can generate an image message based on the multiple session messages. Here, it is described as an example that the image message includes all the consecutive overlapping session messages. Next, the image message is used to replace consecutively overlapping multiple session messages in the message set to obtain a message list to be displayed, and then the message list to be displayed is sent to the chat window component 81 in step s86. In this case, the chat window component 81 uses the display logic shown in Fig. 8C to sequentially traverse and display each message in the message list to be displayed on the session interface. In actual implementation, referring to Fig. 8C, the steps of the chat window component 81 displaying each message in the message list to be displayed may include steps 801 to 807.

[0091] Step 801: The message list to be displayed is obtained.

[0092] Step 802: Traversal of the message list to be displayed.

[0093] Step 803: Determine whether the currently traversed message is a message other than the first fold prompt and image message; if not, perform step 804; if yes, perform step 806.

[0094] Step 804: Determine whether the currently traversed message is the first fold prompt; if not, perform step 805; if yes, perform step 807.

[0095] Step 805: Display the message in a picture message pattern.

[0096] Step 806: The message is displayed directly.

[0097] Step 807: Display the message in a fold prompt pattern.

[0098] As can be seen from the above, the message display logic of the embodiment of the present application may, when there are consecutive overlapping session messages in the target session and the number of consecutive overlapping session messages reaches a preset number (N), display some of the consecutive overlapping session messages to ensure complete display of the message content of the session message, or may automatically fold another part of the consecutive overlapping session messages and insert a first folding prompt into the session interface for display. In this way, the unpleasant spam effect in the session interface can be effectively reduced, thereby reducing the phenomenon that users leak important session messages, and effectively improving users' dependency on the social client.

[0099] Based on the description of the embodiment of the message display method above, the embodiment of the present application further discloses a message display device, which may be a computer program (including program code) executed in a terminal. The message display device can execute the method shown in FIG. 2 or FIG. 6. Referring to FIG. 9, the message display device includes: a display unit 901 configured to display a session interface of the target session; an acquiring unit 902 configured to acquire a message set of the target session, The display unit 901 is further configured to, when the message set has multiple consecutive overlapping session messages, obtain a target session message based on the multiple session messages; The display unit 901 is further configured to replace consecutive overlapping session messages in the message set with the target session message, and display the replaced message set in a session interface of the target session.

[0100] In one embodiment, the display unit 901, when obtaining a target session message based on the plurality of session messages, selects a reference session message from the plurality of session messages; performing a folding process on surplus session messages other than the reference session message among the plurality of session messages, and obtaining a first folding prompt; The target session message is configured to be constructed using the reference session message and the first folding prompt.

[0101] In another embodiment, each session message in the message set has a message reception time. Correspondingly, when selecting a reference session message from the plurality of session messages, the display unit 901 selects a session message with the earliest message reception time from the plurality of session messages as the reference session message; or The session message selection unit is configured to select a preset number of session messages as reference session messages from the plurality of session messages in order of earliest message reception time.

[0102] In another embodiment, the display unit 901 is configured to, when selecting a reference session message from the plurality of session messages, if there is a session message sent by a master user among the plurality of session messages, set the session message sent by the master user as the reference session message; The target session is created by a social client, and the master user is the user corresponding to the social account logged in to the social client.

[0103] In another embodiment, the first folding prompt includes a folding identifier. Correspondingly, the display unit 901 performs a folding process on the excess session messages other than the reference session message among the plurality of session messages, and when obtaining the first folding prompt, determines an excess number of the excess session messages other than the reference session message among the plurality of session messages; The method is configured to generate a folding identifier based on a redundant number of the redundant session messages.

[0104] In another embodiment, the first folding prompt includes a folding message. Correspondingly, the display unit 901 performs a folding process on the excess session messages other than the reference session message among the plurality of session messages, and when obtaining a first folding prompt, generates a prompt content according to the excess number of the excess session messages other than the reference session message among the plurality of session messages and the message content of the excess session message, and the prompt content is used to prompt that the excess number of users have continuously sent the message content, or is used to prompt that the excess number of consecutive messages contain the message content; Obtain a user identifier of a message sending user corresponding to the excess session message, the user identifier including at least one of a user name and a user identification image; The system is configured to generate a folding message based on the obtained user identifier and the prompt content.

[0105] In another embodiment, the folded message includes a message link of the excess message for triggering the display. Correspondingly, the display unit 901 further comprises: When a message link in the folded message is triggered, displaying the excess session message and a user identifier of the corresponding message sending user in the session interface; or When a message link in the folded message is triggered, a message display window is output to the session interface, and the excess session message and the user identifier of the corresponding message sending user are displayed in the message display window.

[0106] In another embodiment, the target session message includes an image message generated according to the plurality of session messages and an image matching the message content of the plurality of session messages. Correspondingly, when the display unit 901 obtains a target session message according to the plurality of session messages, the display unit 901 obtains a message display template matching the message content of the plurality of session messages, the message display template includes three regions, a top region, a middle region and a bottom region, and an image matching the message content is displayed in each region; The method is configured to fill the plurality of session messages into a middle area of ​​the message display template, obtain a picture message, and add the picture message to the target session message.

[0107] In another embodiment, each session message in the message set has a message receiving time. Correspondingly, when filling the plurality of session messages in the middle area of ​​the message display template and acquiring an image message, the display unit 901 is configured to select a predetermined number of session messages in ascending order of message receiving time from the plurality of session messages, fill the selected session messages in the middle area of ​​the message display template, and acquire an image message.

[0108] Correspondingly, the display unit 901 is further configured to perform a folding process on an unselected session message among the plurality of session messages, obtain a second folding prompt, and add the second folding prompt to the target session message.

[0109] In another embodiment, the display unit 901 further comprises: Detecting a share action on the target session message and generating a share picture based on the target session message; The interface is configured to switch from the session interface to a share interface and display the share picture in the share interface.

[0110] In another embodiment, the plurality of session messages includes a session message sent by a master user. Correspondingly, the acquiring unit 902 is further configured to acquire an electronic resource receiving amount corresponding to the master user when the number of the plurality of session messages is greater than a number threshold, the electronic resource receiving amount being calculated based on a total amount of electronic resources issued by a resource issuing user for the plurality of session messages, and the display unit 901 is further configured to switch from the session interface to a resource receiving interface, and display the electronic resource receiving amount and a user identifier of the resource issuing user in the resource receiving interface.

[0111] In another embodiment, the display unit 901 further comprises: upon detecting a selection trigger event for a session message displayed on the session interface, outputting message options for each displayed session message to the session interface, the message options being used to select the displayed session message; a displayed session message corresponding to a selected message option in response to a selection action on the message option in the session interface is treated as a folded session message; When a selection end event is detected, a new fold message is created based on the folded session message, and the fold message is displayed in the session interface in place of the folded session message.

[0112] In another embodiment, when the display unit 901 detects a selection end event, when creating a new folded message based on the folded session message, when the display unit 901 detects a selection end event, it outputs a message naming window; Retrieving a customized message name for the collapsed session message from the message naming window; When a check action for the customized message name is detected, a folded message is generated based on the customized message name and a user identifier of a message sending user of the folded session message.

[0113] In another embodiment, the display unit 901 is further configured to output an action option window for the folded message when the folded message is triggered, the action option window including at least one action option of a copy option, a forward option, a reply option, a favorite option, and a select option.

[0114] The message display device may further include a processing unit 903 configured to determine a selected action option from the action options window in response to a selection action detected in the action options window, and to perform a corresponding action on the folded message in response to the selected action option.

[0115] In another embodiment, the message set includes at least one message of a session message and a non-session message. Correspondingly, the processing unit 903 further comprises: Selecting session messages from the message set, and calculating the number of consecutive duplicate session messages among the selected session messages; If the calculated number is equal to or greater than a predetermined number, determining that there are multiple consecutive overlapping session messages in the message set; If the calculated number is less than the preset number, it is configured to determine that there are no multiple consecutive overlapping session messages in the message set.

[0116] Each step of the method shown in Fig. 2 or Fig. 6 may be executed by each unit in the message display device shown in Fig. 9. Steps S201 and S203 to S204 shown in Fig. 2 may be executed by the display unit 901 shown in Fig. 9, step S202 may be executed by the acquisition unit 902 shown in Fig. 9, and for example, the step of "displaying a session interface of the target session" and steps S605 to S606 related to step S601 shown in Fig. 6 may be executed by the display unit 901 shown in Fig. 9, the step of "acquiring a message set of the target session" related to step S601 may be executed by the acquisition unit 902 shown in Fig. 9, and steps S602 to S604 may be executed by the processing unit 903 shown in Fig. 9.

[0117] Each or all of the units in the message display device shown in FIG. 9 may be configured as one or more separate units, or any (part of) the units may be further divided into a plurality of functionally smaller units. Similar operations can be realized without affecting the realization of the technical effect of the embodiment of the present application. The above units are divided based on logical functions, and in actual applications, the function of one unit may be realized by multiple units, or the functions of multiple units may be realized by one unit. The embodiment of the present application may include other units based on the message display device, and in actual applications, these functions may be realized by other units in cooperation, or by multiple units in cooperation.

[0118] The embodiment of the present application is executed in a general-purpose computing device such as a computer, which includes processing elements and memory elements such as a central processing unit (CPU), a random access memory medium (RAM), a read-only memory medium (ROM), etc., and can execute a computer program (including program code) for each step of the corresponding method shown in Fig. 2 or Fig. 6, thereby configuring a message display device shown in Fig. 9 and realizing the message display method of the embodiment of the present application. The computer program is, for example, written on a computer-readable recording medium, and can be loaded into the computing device and executed via the computer-readable recording medium.

[0119] In the embodiment of the present application, when there are multiple consecutive overlapping session messages in the message set of the target session, the target session message is obtained according to the multiple session messages, the target session message is used to replace the multiple consecutive overlapping session messages in the message set, and the replaced message set is displayed on the session interface of the target session. As can be seen from the above, during the display of the above messages, the social client can use the target session message to replace and display the multiple consecutive overlapping session messages in the session interface, thus effectively reducing the uninteresting spam effect caused by the direct display of multiple session messages, enriching the message display mode of the social client, and effectively improving the user's dependency on the social client.

[0120] Based on the description of the above method embodiment and device embodiment, the embodiment of the present application further provides a terminal. Referring to Fig. 10, the terminal includes at least a processor 1001, an input device 1002, an output device 1003 and a computer storage medium 1004. The processor 1001, the input device 1002, the output device 1003 and the computer storage medium 1004 in the terminal can be connected by a bus or other form. In the embodiment of the present application, the terminal can further execute the social client mentioned in the above embodiment.

[0121] The computer storage medium 1004 may be stored in a memory of a terminal, the computer storage medium 1004 is used to store a computer program including program instructions, and the processor 1001 is configured to execute the program instructions stored in the computer storage medium 1004. The processor 1001 (also called a Central Processing Unit (CPU)) is a computing core and a control core of the terminal, and realizes one or more instructions, for example, loads and executes one or more instructions, thereby realizing a corresponding method process or corresponding function. In one embodiment, the processor 1001 described in the embodiment of the present application is configured to perform a series of message display processes, including displaying a session interface of a target session, acquiring a message set of the target session, acquiring a target session message based on the session messages when there are multiple consecutive overlapping session messages in the message set, replacing the multiple consecutive overlapping session messages in the message set with the target session message, and displaying the replaced message set on the session interface of the target session.

[0122] The embodiment of the present application further provides a computer storage medium (Memory), which is a memory device in a terminal and is used to store programs and data, for example, the computer storage medium is used to store program code instructions of a social client. The computer storage medium here may include a built-in storage medium in the terminal, and may of course include an extended storage medium supported by the terminal. The computer storage medium provides a memory space in which an operating system of the terminal is stored. In addition, the memory space stores one or more instructions that are loaded and executed by the processor 1001, and these instructions may be one or more computer programs (including program codes). It should be noted that the computer storage medium here may be a high-speed RAM memory, a non-volatile memory such as at least one magnetic disk memory, or optionally at least one computer storage medium separate from the processor.

[0123] In one embodiment, the processor 1001 loads and executes one or more instructions related to the social client stored in a computer storage medium to realize the corresponding steps of the method in the embodiment of the message display method. In the implementation, the one or more instructions in the computer storage medium are loaded by the processor 1001, displaying a session interface for a target session and obtaining a message set for the target session; if the message set has multiple consecutive overlapping session messages, obtaining a target session message based on the multiple session messages; replacing the consecutive duplicate session messages in the message set with the target session message and displaying the replaced message set in a session interface of the target session.

[0124] In the embodiment of the present application, when there are multiple consecutive overlapping session messages in the message set of the target session, the target session message can be obtained according to the multiple session messages, the target session message can be used to replace the multiple consecutive overlapping session messages in the message set, and the replaced message set can be displayed on the session interface of the target session. As can be seen from the above, during the display of the above messages, the social client can use the target session message to replace and display the multiple consecutive overlapping session messages in the session interface, thus effectively reducing the uninteresting spam effect caused by the direct display of multiple session messages, enriching the message display mode of the social client, and effectively improving the user's dependency on the social client.

[0125] The above disclosure is merely a preferred embodiment of the present application, but cannot limit the scope of the claims of the present application, and therefore equivalent changes according to the claims of the present application belong to the scope covered by the present application. [Explanation of symbols]

[0126] 11. Social Client 12 Server 31 Prompt Content 32 User Identifier 33 Messages 34 Message Send Button 35 Identifier abbreviations 36 Message Links 37 Content ellipsis 38 Identifiers 41 Reference Session Messages 42 Prompt 43 Message from the First Session 44 Second Session Message 45 Message display window 51 Message Options 52 Selection trigger button 53 Selection end button 54 Messages 55 Window 56 Name setting area 57 Name confirmation button 58 Message button 59 Action Options Window 71 Message Send Button 72 Message input area 73 Message Share Button 74 User Selection Area 75 Picture Share Button 76 Picture Edit Button 81 Chat Window Component 82 Message Cache Component 83 Message Processing Components 84 Type Detection Component 112 Message Cache Component 901 Display unit 902 Acquired Units 903 Processing Unit 1001 Processor 1002 Input device 1003 Output Device 1004 Computer storage media

Claims

1. A message display method executed by a terminal, comprising: displaying a session interface for a target session and obtaining a message set for the target session; if there are multiple consecutive overlapping session messages in the message set, selecting a reference session message from the multiple session messages; A step of performing a folding process on an excess session message other than the reference session message among the plurality of session messages, and obtaining a first folding prompt including a folding message, generating prompt content based on an excess number of excess session messages other than the reference session message among the plurality of session messages and message content of the excess session messages, the prompt content being used to prompt that the excess number of users have consecutively sent the message content, or that the excess number of consecutive messages contain the message content; obtaining a user identifier of a message sending user corresponding to the excess session message, the user identifier including at least one of a user name and a user identification picture; generating a fold message based on the retrieved portion of the user identifier and an identifier ellipsis or the retrieved portion of the prompt content and a content ellipsis; constructing a target session message using the reference session message and the first folding prompt; replacing the consecutive duplicate session messages in the message set with the target session message, and displaying the replaced message set in a session interface of the target session.

2. Each session message in the message set has a message receive time; The step of selecting a reference session message from the plurality of session messages comprises: selecting a session message having an earliest message reception time from the plurality of session messages as a reference session message; or The method according to claim 1 , further comprising the step of selecting, from the plurality of session messages, a preset number of session messages in descending order of message reception time as reference session messages.

3. The step of selecting a reference session message from the plurality of session messages comprises: If the plurality of session messages includes a session message sent by a logged-in user, the session message sent by the logged-in user is set as the reference session message; The method of claim 2 , wherein the target session is created by a social client, and the logged-in user refers to a user corresponding to a social account logged into the social client.

4. The first fold prompt includes a fold identifier; The step of performing a folding process on surplus session messages other than the reference session message among the plurality of session messages and obtaining a first folding prompt includes: determining a surplus number of surplus session messages other than the reference session message among the plurality of session messages; and generating a folding identifier based on a redundant number of the redundant session messages.

5. The folding message includes a message link for triggering display of the excess session messages; The method comprises: displaying the excess session messages and the user identifiers of the corresponding message sending users in the session interface when a message link in the folded message is triggered; or 5. The method of claim 4, further comprising the step of: when a message link in the folded message is triggered, outputting a message display window in the session interface, and displaying the excess session message and a user identifier of the corresponding message sending user in the message display window.

6. The target session message includes a picture message, The image message is generated based on the plurality of session messages and an image matching message content of the plurality of session messages, and the step of acquiring a target session message based on the plurality of session messages includes: obtaining a message display template that matches message content of the plurality of session messages, the message display template including three regions, a top region, a middle region, and a bottom region, within each region, an image that matches the message content is displayed; 2. The method of claim 1, further comprising the steps of: filling the plurality of session messages into a middle area of ​​the message display template; obtaining a picture message; and adding the picture message to the target session message.

7. Each session message in the message set has a message receive time; The step of filling the plurality of session messages into a middle area of ​​the message display template and obtaining a picture message includes: selecting a preset number of session messages from the plurality of session messages in descending order of message reception time; filling a middle area of ​​the message display template with a selected session message and acquiring a picture message; The method comprises: performing a folding process on unselected session messages among the plurality of session messages to obtain a second folding prompt; The method of claim 6 , further comprising the step of: adding the second folding prompt to the target session message. generating a share picture based on the target-session message when detecting a share action on the target-session message; The method of claim 6 , further comprising: switching from the session interface to a share interface and displaying the share picture in the share interface.

9. The plurality of session messages includes a session message sent by a logged-in user, The method comprises: obtaining an amount of electronic resources received corresponding to the logged-in user when the number of the plurality of session messages is greater than a number threshold, the amount of electronic resources received being calculated based on a total amount of electronic resources issued by a resource issuing user for the plurality of session messages; 7. The method of claim 6, further comprising: switching from the session interface to a resource receipt interface and displaying the electronic resource receipt amount and a user identifier of the resource issuing user in the resource receipt interface.

10. The method of claim 1, wherein upon detecting a selection trigger event for a session message displayed on the session interface, outputting message options for each displayed session message to the session interface, the message options being used to select the displayed session message; in response to a selection action on a message option in the session interface, causing the displayed session message corresponding to the selected message option to be a folded session message; 2. The method of claim 1, further comprising: upon detecting a selection end event, creating a new fold message based on the folded session message and displaying the fold message in the session interface to replace the folded session message.

11. When a selection end event is detected, the step of creating a new fold message based on the folded session message comprises: outputting a message naming window when a selection end event is detected; obtaining a customized message name set for the folded session message from the message naming window; 11. The method of claim 10, further comprising: upon detecting a confirmation action on the customized message name, generating a folded message based on the customized message name and a user identifier of a message sending user of the folded session message.

12. A step of outputting an action options window for the folded message when the folded message is triggered, the action options window including at least one action option of a copy option, a forward option, a reply option, a favorite option, and a select option; determining a selected action option from the action options window in response to a selection action detected in the action options window; and performing a corresponding action on the folded message in response to the selected action option.

13. The method of claim 12, wherein the message set includes at least one of a session message and a non-session message, The method comprises: selecting session messages from the message set, and calculating the number of consecutive overlapping session messages among the selected session messages; if the calculated number is greater than or equal to a predetermined number, determining that there are multiple consecutive overlapping session messages in the message set; 2. The method of claim 1, further comprising: if the calculated number is less than the preset number, determining that the message set does not have multiple consecutive overlapping session messages.

14. A message display device, configured to carry out the method of the invention as defined in any one of claims 1 to 13.

15. A terminal including a processor and a memory, A terminal, wherein at least one program code is stored in the memory, and the at least one program code is loaded and executed by the processor to realize a message display method according to any one of claims 1 to 13.

16. A computer program comprising at least one program code, A computer program product, the at least one program code being loaded and executed by a processor to implement the message display method according to any one of claims 1 to 13.