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

The message display method enhances user interaction and resource utilization by replacing consecutive duplicate messages with a target session message, addressing inefficiencies in existing social client display methods.

JP2025146988APending Publication Date: 2025-10-03TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
JP2025127645
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2020-05-14
Filing Date
2025-07-30
Publication Date
2025-10-03

AI Technical Summary

Technical Problem

Existing social client message display modes lead to inefficient utilization of graphics processing resources and reduced human-machine interactions, resulting in decreased user dependency on the social client.

Method used

A message display method that replaces multiple consecutive duplicate session messages with a target session message, which includes a reference session message and a folding prompt, thereby reducing the spam effect and enhancing user interaction.

Benefits of technology

Improves the utilization of graphics processing resources and increases user dependency on the social client by enriching message display modes and providing a better interactive communication atmosphere.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2025146988000001_ABST
    Figure 2025146988000001_ABST
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 based on and claims priority from a Chinese patent application bearing application number 202010410263.5 and filed on May 14, 2020, the entire contents of which are incorporated herein by reference.

[0002] The present application relates to the Internet technical field, the computer technical field, 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 increasingly being used by users. A so-called social client is software (application, APP) that exchanges information between users via a network. A 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 related technology, after a social client obtains a message set of a target session, it usually displays each message in the message set directly and sequentially on the session interface of the target session, with a single message display mode, which reduces the utilization of graphics 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 the 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 of a target session and obtaining a message set of the target session; if the message set has multiple consecutive overlapping session messages, obtaining a target session message based on the multiple overlapping session messages; replacing the consecutively overlapping 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 includes 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 consecutively 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 according 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. [Effects of the Invention]

[0010] In an embodiment of the present application, when a target session message set contains multiple consecutive duplicate session messages, 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 duplicate 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 messages, the social client can use the target session message to replace the multiple consecutive duplicate session messages on the session interface, thereby effectively reducing the uninteresting spam effect caused by the direct display of multiple session messages, enriching the message display modes of the social client, improving the utilization rate of the terminal's graphics processing resources and the number of human-machine interactions, and further effectively improving users' dependency on the social client. [Brief explanation of the drawings]

[0011] [Figure 1] 1 is a system architecture diagram of a communication session system according to an embodiment of the present application. [Figure 2] 1 is a flowchart of a message display method according to an embodiment of the present application; [Figure 3A] FIG. 1 is a schematic diagram of a fold message according to an embodiment of the present application; [Figure 3B] FIG. 10 is another schematic diagram of a fold message according to an embodiment of the present application; [Figure 3C] FIG. 10 is another schematic diagram of a fold message according to an embodiment of the present application; [Figure 3D] FIG. 10 is another schematic diagram of a fold message according to an embodiment of the present application; [Figure 3E] FIG. 10 is another schematic diagram of a fold message according to an embodiment of the present application; [Figure 3F] FIG. 1 is a schematic diagram of a folding identifier according to an embodiment of the present application. [Figure 4A] FIG. 10 is a schematic diagram illustrating a target session message including a fold message and a reference session message according to an embodiment of the present application. [Figure 4B] FIG. 10 is another representation schematic diagram in which a target session message includes a fold message and a reference session message, according to an embodiment of the present application. [Figure 4C] FIG. 10 is a schematic diagram of displaying a new first session message according to an embodiment of the present application; [Figure 4D] FIG. 10 is another schematic diagram of displaying a new first session message according to an embodiment of the present application; [Figure 4E] FIG. 10 is another schematic diagram of displaying a new first session message according to an embodiment of the present application; [Figure 4F] FIG. 10 is another schematic diagram of displaying a new first session message according to an embodiment of the present application; [Figure 4G] FIG. 10 is a schematic diagram of a display of a new second session message according to an embodiment of the present application; [Figure 4H] FIG. 10 is a schematic diagram of displaying redundant user identifiers according to an embodiment of the present application. [Figure 4I] FIG. 10 is a schematic diagram of displaying redundant session messages according to an embodiment of the present application; [Figure 4J] FIG. 10 is another schematic diagram of displaying redundant session messages according to an embodiment of the present application; [Figure 4K] FIG. 10 is another schematic diagram of displaying redundant session messages according to an embodiment of the present application; [Figure 4L] FIG. 10 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. 10 is a schematic diagram of outputting message options according to an embodiment of the present application; [Figure 5B] FIG. 10 is another schematic diagram of outputting message options according to an embodiment of the present application; [Figure 5C] FIG. 10 is a schematic diagram of outputting a fold message according to an embodiment of the present application; [Figure 5D] FIG. 10 is another schematic diagram of outputting a fold message according to an embodiment of the present application; [Figure 5E] FIG. 1 is a schematic diagram of displaying a collapsed session message according to an embodiment of the present application; [Figure 5F] FIG. 10 is another schematic diagram of displaying a collapsed session message according to an embodiment of the present application; [Figure 5G] FIG. 10 is a schematic diagram of outputting a folding message action options window according to an embodiment of the present application; [Figure 6] 1 is a flowchart of a message display method according to an embodiment of the present application; [Figure 7A] FIG. 1 is a schematic diagram of a default image template according to an embodiment of the present application; [Figure 7B] FIG. 1 is a schematic diagram of generating a message display template according to an embodiment of the present application. [Figure 7C] FIG. 10 is another schematic diagram of generating a message display template according to an embodiment of the present application. [Figure 7D] FIG. 10 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. 10 is a schematic diagram illustrating a target session message including a picture message and a second folding prompt according to an embodiment of the present application. [Figure 7F] 10 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] 10 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. 1 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. 10 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. 10 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. 10 is a schematic diagram of outputting a message share button according to an embodiment of the present application. [Figure 7L] FIG. 1 is a schematic diagram of switching from a session interface to a share interface according to an embodiment of the present application. [Figure 8A] 1 is a structural schematic diagram of a social client according to an embodiment of the present application; [Figure 8B] 1 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] 1 is a structural schematic diagram of a message display device according to an embodiment of the present application; [Figure 10] 1 is a structural schematic diagram of a terminal according to an embodiment of the present application; DETAILED DESCRIPTION OF THE INVENTION

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

[0013] In an embodiment of the present application, a message display scheme and a corresponding communication session system are provided, which enrich the message display modes of the social client, improve the utilization of the terminal's graphics processing resources, increase the number of human-machine interactions, and increase user dependency on the social client. As shown in FIG. 1 , the communication session system of an embodiment of the present application may include at least two social clients 11 and a server 12. The social client 11 is software that facilitates information exchange between users over a network. The social client 11 may include at least one of instant communication clients such as WeChat, Enterprise WeChat, and Tencent QQ, and information exchange clients such as microblogs and blogs. 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 and video over a network. The social client 11 may run on any terminal, including, but not limited to, mobile devices such as smartphones, laptops, and tablet computers, or terminal devices such as desktop computers. The server 12 refers to a device that can create a communication session between at least two social clients 11 and provide 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 locating the server 12, the server may be located as a single independent service device, or may be located as a cluster device consisting of multiple service devices, and the embodiment of the present application is not limited thereto.

[0014] In implementation, the message display scheme according to the embodiment of the present application is executed by any one of the social clients 11 in the communication session system, or by a terminal device running on any one of the social clients 11. For ease of explanation, the embodiment of the present application will be described taking the example of one of the social clients 11 performing the message display scheme. In practical application, the message display scheme is applied to a session scene with a large number of consecutive overlapping messages, such as a session scene in which each user in the target session repeatedly sends "I understand" by replying to an advertisement message, a session scene in which each user in the target session repeatedly sends "Happy Birthday" to wish another user a happy birthday, or a session scene in which each user in the target session repeatedly sends a popular message (e.g., "Hamburgers are worth having") to promote a 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 the various messages of the target session in the session interface, making it easier for the user to view them. When consecutive duplicate session messages occur in the target session and the number of consecutive duplicate session messages is greater than a preset number, the social client 11 can retrieve the target session message based on the consecutive duplicate 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 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 indicate the number of excess session messages, and the folding message is used to indicate the number of 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 the message content of the plurality of session messages. In another embodiment, the target session message may include key content extracted from the message content of the plurality of session messages and a numeric identifier generated based on the number of the plurality of session messages. The target session message is then displayed in the session interface to replace consecutive duplicated 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 consecutively duplicated session messages, thereby reducing the unpleasant spam effect caused by consecutively displaying multiple duplicated session messages, thereby providing users with a good interactive communication atmosphere, reducing the phenomenon of users forgetting important session messages, and effectively improving users' dependence on the social client 11.

[0016] In accordance with the above description of the message display scheme, an embodiment of the present application provides a message display method. The message display method may be executed by any social client in the above-described communication session system, by a terminal executing the social client, or by a terminal and a server working together. For ease of explanation, the embodiment of the present application takes as an example that the message display method is executed by a terminal 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 the session interface of the target session.

[0018] Here, a social client is set in the terminal, and the social client may be an instant communication client for messaging, a media information client for browsing, listening to, or distributing media information, or the like.

[0019] In an 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 is 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 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. A session message refers to a message sent by each user in the target session via 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. A 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 a guest user refers to a user other than the master user in the target session, i.e., a non-logged-in user. Correspondingly, a non-session message refers to a message other than a session message in the message set, and may include, but is not limited to, an announcement notification message, a system prompt message, etc. A announcement notification message refers to a message issued in the target session by a user in the target session using an announcement function provided by a social client, such as a group announcement message. A system prompt message refers to a message pushed by the server when it detects that information about 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, the server pushes prompt information about the new user joining the target session. 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 decreases, the server pushes prompt information about user A logging out of the target session. For example, when the session name (e.g., group name) of the target session is changed, the server pushes prompt information about the session name being changed.

[0022] In actual 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 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 the message set contains multiple consecutive duplicate session messages. If the message set contains multiple consecutive duplicate session messages, step S203 can be performed. If the message set does not contain multiple consecutive duplicate session messages, each message in the message set is displayed sequentially in the session interface. In this case, the social client receives the messages pushed by the server to update the message set, and continues to detect whether the updated message set contains multiple consecutive duplicate messages in real time. If multiple consecutive duplicate session messages are detected, step S203 is performed.

[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 traversals to detect whether there are multiple consecutive duplicate session messages in the message set. In actual implementation, each message in the message set other than the first message 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, the duplicate count of the target session is incremented by 1, and the duplicate count is updated. The duplicate count here is used to determine the number of consecutive duplicate 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, the duplicate count is updated to an invalid value (e.g., 0). When all messages in the message set have been traversed, the terminal terminates the traversal and increments the updated duplicate count by 1 to obtain the number of consecutive duplicate session messages in the message set. If the number of consecutive duplicate session messages is equal to or greater than a predetermined number, it can be determined that there are multiple consecutive duplicate session messages in the message set. If the number of consecutively overlapping session messages is less than a predetermined number, it can be determined that there are no consecutively overlapping session messages in the message set. The predetermined number can be set according to experience or service needs, and can be set to 5, for example. Note that the previous message referred to in this embodiment refers to a message whose reordering position in the message set is located before the reordering position of the currently traversed message and is adjacent to the reordering position of the currently traversed message.

[0025] For example, let's say the preset number is 5, and the message set includes the messages "Got it," "Got it," "XX user has joined the target session," "Got it," "Got it," "Got it," in sequence. When the second message is traversed, 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), so the duplicate count can be incremented by 1 and the duplicate count can be updated from 1 to 0. When the third message is traversed, the third message is a system prompt message, and the duplicate count can be updated from 1 to 0. When the fourth message is traversed, 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), so the duplicate count can be updated to 0. When the fifth message is traversed, 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), so the duplicate count can be incremented by 1 and the duplicate count can 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, the updated duplicate count can be determined to be 2. Next, 1 is added to the updated duplicate count (2), and the number of consecutive duplicate session messages in the message set can be determined to be 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 duplicate 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, the terminal may first filter session messages from the message set and calculate the number of consecutive duplicate session messages among the filtered session messages. For example, the terminal may sequentially traverse each of the filtered session messages except for the first session message. If the message content of the currently traversed session message is the same as the message content of the previous session message, the terminal may add 1 to the duplicate count to update the duplicate count. If the message content of the currently traversed session message is not the same as the message content of the previous session message, the terminal may update the duplicate count to an invalid value (e.g., the value 0). When all filtered session messages have been traversed, the terminal may terminate the traversal, add 1 to the updated duplicate count, and calculate the number of consecutive duplicate session messages among the filtered session messages. If the calculated number is equal to or greater than a predetermined number, the terminal may determine that there are multiple consecutive duplicate session messages in the message set. If the calculated number is less than a predetermined 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 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 among the selected session messages.

[0028] As an example, let us continue with the preset number as 5, and assume that the message set includes the messages "Got it," "Got it," "XX user has joined the target session," "Got it," "Got it," "Got it," and "Got it," in that order. First, the five session messages "Got it," "Got it," "Got it," "Got it," "Got it," and "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, the second session message among the five session messages is first traversed. 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 incremented 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. 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 incremented 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 because 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 is continued to be incremented 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 the updated duplicate count can be found to be 4. Next, 1 is added to the updated duplicate count, and through calculation, it can be found that the number of consecutive duplicate session messages among the five selected session messages is 3. Because 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 a message set contains multiple consecutive overlapping session messages, the terminal performs traversal detection only on the session messages in the message set, thereby performing count separation on the non-session messages in the message set. This avoids the need to count again due to the influence of the non-session messages clearing the overlap count. The terminal can continuously count consecutive overlapping session messages, thereby improving the accuracy of the detection result. Note that in the above examples of detecting whether a message set contains multiple consecutive overlapping session messages, the message content is described as including only text. However, in actual applications, the message content is not limited to text and may include at least one of text, symbols, emoticons, etc. If the message content contains at least two of the following contents, text, symbols, and emoticons, all of the contents contained in the message content are recognized. That is, in this embodiment of the present application, text (e.g., Chinese text), symbols (e.g., spaces), and emoticons contained in the message content can all be recognized. If one content does not match, the message content can be considered to be inconsistent. 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 order of execution 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 includes multiple consecutively overlapping session messages, the message contents of the multiple consecutively overlapping session messages are all identical. Therefore, in order to reduce the unpleasant spam effect caused by displaying the multiple consecutively overlapping session messages as they are on 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 consecutively overlapping session messages can be folded and displayed.

[0032] In actual implementation, the step of obtaining a target session message based on the plurality of 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 predetermined number of session messages may be randomly selected as the reference session message from the plurality of session messages. That is, in this embodiment, the reference session message is one or a predetermined number of session messages randomly selected from the plurality of session messages. In another embodiment, each session message in the message set has a message reception time. The social client typically displays the session messages in order of earliest message reception time. Therefore, to avoid disrupting the display order of the session messages in the session interface, the social client may further select the session message with the earliest message reception time from the plurality of 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 plurality of session messages. In another embodiment, a predetermined number of session messages may be selected as the reference session message from the plurality of session messages in order of earliest message reception time. That is, in this embodiment, the reference session message includes a predetermined number of session messages selected from the plurality of session messages in order of earliest reception time. For ease of explanation, the following description will be given using an example in which the reference session message includes a predetermined number of session messages selected from the plurality of session messages in order of earliest reception time.

[0035] In some embodiments, if there is a session message sent by a master user among 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 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, making it easier for the master user to 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 the remaining session messages other than the reference session message among the plurality of 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, an embodiment of step s12 is as follows. First, prompt content is generated 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 consecutively sent the message content, 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 "I understand," the prompt content may be "8 friends have consecutively replied 'I understand'," or "The following eight messages have consecutively replied 'I understand'," etc. If the message content contains a large amount of content (e.g., text, symbols, emoticons, etc.), the social client may generate prompt content based only on the number of excess 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 a user has consecutively sent a message identical to the reference session message in a number of consecutive messages, or may be used to prompt that a consecutive number of excess messages are identical to the reference session message. Alternatively, the social client may generate prompt content based on the number of excess session messages other than the reference session message among the multiple session messages, the message content of part of the excess session messages, and a content ellipsis when performing step s12. The content ellipsis is used to prompt that the message content of the excess session message is incompletely displayed. For example, the number of excess session messages may be set to 8, and the message content of the excess session message may be 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 "Eight friends replied with the above message in succession," or "The following eight 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 surplus 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 the target session), etc. The user identification image may be a user avatar of the message sending user. Then, the social client can generate a folded message based on the obtained user identifier and the prompt content. The method can include at least the following embodiments.

[0039] In one embodiment, a folding message may be directly generated based on the acquired user identifier and prompt content. In practical implementation, when the prompt content 31 indicates 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 in FIG. 3A. When the prompt content 31 indicates that a surplus number of consecutive users have sent message content and the user identifier 32 includes a user identification image, the schematic diagram of the generated folding message 33 may refer to the second or third diagram in FIG. 3A. In the embodiment of the present application, the three diagrams in FIG. 3A are used as an example to illustrate, but are not limited to, the display form of the folding message 33. Optionally, for the folding message shown in the second or third diagram in 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 in 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 multiple session messages to generate a new session message and sends this new session message to the target session.

[0040] In another embodiment, when the number of acquired user identifiers is greater than a threshold number, the folding message may occupy a large display area in the session interface. To avoid this, the embodiment of the present application may selectively use some user identifiers and prompt content to generate the folding message, thereby reducing the display area of ​​the folding message. In actual implementation, one or more user identifiers are first selected from the acquired user identifiers as the user identifiers to be displayed. Then, the folding message is generated based on the user identifiers to be displayed, the prompt content, and an identifier ellipsis. The identifier ellipsis is used to prompt that the acquired user identifiers are not fully displayed, and the identifier ellipsis is used to trigger the display of the remaining acquired user identifiers that have not been displayed. The display format of the identifier ellipsis can be configured according to service needs. For example, the identifier ellipsis 35 may be represented in the folding message by "..." or "V". Therefore, the second diagram in FIG. 3C may be referred to for a schematic diagram of the folding message.

[0041] In another embodiment, considering that the master user may need to view the remaining session messages, in the embodiment of the present application, when a content collapse message is generated based on the acquired user identifiers and prompts, a message link for triggering the display of the remaining messages is inserted into the collapse message, and the master user can then easily view the remaining session messages through the message link. In actual implementation, the collapse message may be generated using the acquired user identifiers, prompt content, and message link 36. Therefore, a schematic diagram of the collapse message can be seen in the left diagram of FIG. 3D. If the number of acquired user identifiers is greater than the number threshold, first, one or more user identifiers are selected from the acquired user identifiers as user identifiers to be displayed, and then, a collapse message is generated based on the user identifiers to be displayed, prompt content, identifier ellipsis, and message link 36. The prompt content here may include the remaining number of remaining session messages, partial message content and content ellipsis of the remaining session messages, or the remaining number and the complete message content. For example, if 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 as collapsed. In this case, as shown in FIG. 3E, the user identifiers included in the collapsed messages may be the same consecutively.

[0043] If the first fold prompt includes a fold identifier, an embodiment of step s12 may include: The method may include determining the number of redundant session messages other than the reference session message among the plurality of session messages, and then generating a folding identifier based on the number of redundant 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 redundant number. Furthermore, 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 redundant number and a preset image.

[0044] In 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 embodiments of the present application are not sequential, and the message set is updated in real time. When detecting that there are multiple consecutive overlapping session messages in the message set, the time when the target session message is obtained based on the multiple consecutive overlapping session messages may be before or after displaying the session interface of the target session. In one application scenario, if 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 is in the session interface after displaying the session interface. In another application scenario, if 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 sequentially 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, i.e., 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. Here, the first folding prompt 42 includes any of the folding messages shown in FIGS. 3A to 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, a 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. Furthermore, if the social client detects multiple consecutive overlapping session messages using this processing logic, it can create a new first folding prompt and update the interface of the existing message (i.e., the displayed message) and the new first folding prompt in the session interface.

[0048] In another embodiment, after obtaining the target session message in step S203, the social client can continue to sequentially display each message in the message set in the session interface. 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 reopened session interface. Continuing, for example, if the first folding prompt 42 includes the folding message shown in the left diagram of FIG. 3D, a 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. If a new first session message is detected, the social client detects whether the first session message overlaps with multiple session messages consecutively. If there is overlap, the social client adds the first session message to the multiple session messages and uses the first session message as is to update the first folding prompt in the target session message. In actual implementation, if the first folding prompt includes a folding identifier, the social client directly adds 1 to the value of the folding identifier to update the folding identifier. If the first folding prompt includes a folding message, the social client adds 1 to the excess number included in the folding message and adds the user identifier of the message-sending user of the first session message to the folding message. In some embodiments, to create a user experience that allows the master user to consistently maintain session messages repeatedly sent by the master user, if there are overlaps consecutively, the social client may further detect whether the message-sending user of the new session message is a master user or a guest user. If the user is the master user, the social client displays the first session message 43 as is in the session interface, as shown in FIG. 4C. In this case, after receiving the first session message, if the social client receives a second session message sent by a guest user, the message content of which is identical to the message content of the multiple session messages, the social client can add the second session message to the multiple session messages because the second session message, the first session message, and the multiple session messages overlap consecutively, and update the first folding prompt using the second session message. If the social client is a guest user, the first folding prompt can be updated using the first session message. For example, if the first folding prompt includes a folding message, see FIG. 4D for a schematic diagram of updating the folding message using the first session message.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 Figure 4E or 4F, if there is no consecutive overlap, the social client can directly display the first session message in the session interface, regardless of whether the message sending user of the first session message is a master user or a guest user. Also, as shown in Figure 4G, if there is no consecutive overlap, after receiving the first session message, if 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 therefore the social client can directly display the second session message 44 in the session interface. In this case, after redetecting the multiple session messages that consecutively overlap with the second session message, the social client obtains a new target session message based on the redetected multiple session messages and replaces the redetected multiple session messages with the new target session message and displays it in the session interface.

[0051] Furthermore, if the first folding prompt includes a folding message, as can be seen from the relevant description of step s12 above and the folding message shown in FIGS. 3A to 3E, the folding message may include functional components such as an identifier ellipsis for triggering the display of remaining user identifiers among the acquired user identifiers and a message link for triggering the display of the remaining message. After displaying the folding message among the target session messages, the master user may perform a trigger operation on the identifier ellipsis of the folding message to trigger the social client to display remaining user identifiers among the acquired user identifiers in the session interface. Correspondingly, when the social client detects that the identifier ellipsis has been triggered, it may display the remaining 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 remaining user identifiers may be seen in FIG. 4H.

[0052] Similarly, the master user may further trigger the social client to display the remaining session messages by performing a trigger action on a message link in the collapsed message (e.g., clicking or pressing the message link). In one implementation, when a message link in the collapsed message is triggered, the social client may display the remaining session messages and the corresponding user identifiers of the message sending users in the session interface. In actual implementation, the embodiment of the present application describes, as an example, that the reference session message includes a predetermined number of session messages selected from multiple session messages in order of earliest reception time. Therefore, the message reception time of the reference session message is necessarily earlier than the message reception time of the remaining session messages. Directly expanding and displaying the remaining session messages does not affect the display order of the reference session messages. Therefore, as shown in FIG. 4I, the social client may display the remaining session messages and the corresponding user identifiers of the message sending users in the session interface in order of earliest message reception time. In some embodiments, when a message link in the collapsed 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 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 order of earliest message reception time.

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

[0054] In an embodiment of the present application, a session interface for a target session is displayed. When the message set for the target session contains multiple consecutive overlapping session messages, the session interface can use a reference session message and a first folding prompt to replace and display the multiple consecutive overlapping session messages. 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. Displaying the reference session message ensures complete display of the message content. Furthermore, the first folding prompt is obtained by performing a folding process on the remaining session messages other than the reference session message among the multiple session messages. Therefore, using the first folding prompt to replace and display the remaining session messages can effectively reduce the spam effect caused by the display of multiple session messages. As can be seen from the above, displaying the reference session message and the first folding prompt can enrich the message display modes of the social client, improve the utilization of the terminal's graphics processing resources and the number of human-machine interactions, and further effectively increase user dependency on the social client.

[0055] Note that the embodiment of the application shown in FIG. 2 above mainly illustrates that the social client automatically collapses and displays some consecutively overlapping session messages. However, in actual applications, the social client may also support the user manually collapsing one or more session messages displayed in the session interface of the target session, making it easier for the user to manage and search the messages later. In one application scenario, when there are consecutively overlapping session messages in the message set of the target session, and the social client automatically collapses and displays the excess session messages other than the reference session message among the multiple session messages in steps S203 and S204, the session messages displayed in the session interface may include session messages other than the excess session messages in the message set. In another application scenario, when there are 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 when there are no consecutively overlapping session messages in the message set, the session messages displayed in the session interface may include each session message in the message set. For ease of explanation, hereinafter, an example will be given in which the session messages displayed in the session interface may include each session message in the message set.

[0056] In an actual implementation, when the master user intends to manually collapse a session message displayed in the session interface, the master user may input a selection trigger event for the session message displayed in the session interface into the social client. Correspondingly, when the social client detects a selection trigger event for the session message displayed in the session interface, the social client may output message options for each displayed session message to the session interface, where the message options are used to select the displayed session message. In one embodiment, the selection trigger event may include an event detecting that the session interface is pressed. In this embodiment, a schematic diagram of outputting message options 51 may be seen in 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 triggered by the selection trigger button 52. In this embodiment, a schematic diagram of outputting message options 51 may be seen in FIG. 5B .

[0057] The master user can select a message option for each session message according to his or her actual needs. Correspondingly, the social client can select the displayed session message corresponding to the selected message option in the session interface as the collapsed session message according to the selection operation on the message option in the session interface. When the master user selects a message option, he or she clicks or presses the selection end button 53 in the session interface to input a selection end event to the client. The selection end event here refers to 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 collapsed message based on the session message to be collapsed and display the collapsed message in the session interface to replace the collapsed session message. In actual implementation, the embodiment of creating a new collapsed message based on the collapsed 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 create a collapsed message 54 based on the system message name and the user identifier of the message sending user of the collapsed 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 for creating a new collapsed message based on a collapsed session message upon detecting a selection end event may be as follows: Upon detecting a selection end event, a message naming window 55 may be 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 collapsed session message in the name setting area 56 in the message naming window 55. In response, the social client may retrieve the customized message name set for the collapsed session message in the message naming window 55. Upon detecting a confirmation action for the customized message name, a collapsed message 54 may be generated based on the customized message name and the user identifier of the message sending user of the collapsed session message. The confirmation action for the customized message name may include a click or press on the name confirmation button 57 in the message naming window 55. In this case, a schematic diagram of outputting the collapsed message 54 may be seen in FIG. 5D .

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

[0060] In another embodiment, the social client may further provide functions such as copy, forward, reply, and favorite for the collapsed message. As shown in FIG. 5G, when the master user attempts to perform an action such as copy, forward, reply, or favorite on the collapsed message, the master user may perform a trigger action on the collapsed message. Correspondingly, when the collapsed message is triggered, the social client may output an action option window 59 for the collapsed message. The action option window 59 includes at least one action option from 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 in response to a selection action detected in the action option window, and then performs a corresponding action on the collapsed message in response to the selected action option. For example, if 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 collapsed session message to the target user. For example, if the selected action option is a favorite option, the corresponding action to be performed is an action of adding the collapsed session message to favorites. For example, if the selected action option is a copy option, the corresponding action is to copy the collapsed session message. It should be understood that in actual application, the social client can also provide functions such as copy, forward, reply, and favorite for the first collapse prompt obtained by automatic collapse. The implementation form thereof is similar to the implementation form of the collapsed message, and is omitted here.It should be understood that the above-mentioned manual folding function can be similarly applied when the target session message includes an image message or important content extracted from the message content of the plurality of session messages and a number identifier generated based on the number of the plurality of session messages. By providing the manual folding function, the message display mode of the social client can be enriched, thereby increasing the user's dependency on the social client.

[0061] The message display method shown in FIG. 2 can be applied to any type of session message. The message type here can include a first type or a second type. The message content of a session message corresponding to the first type does not include keywords, while the message content of a session message corresponding to the second type does include keywords. In practical applications, keywords can be set according to service needs. For example, in the present embodiment, multiple types of keywords, such as celebration keywords and company promotion keywords, can be set. The celebration keywords refer to keywords representing celebrations and can include, but are not limited to, keywords related to holiday celebrations and birthday celebrations. The company promotion keywords refer to keywords for promoting the target company and can include, but are not limited to, the company name, product attributes (e.g., product name, product category) of products sold by the target company, and so on. For example, if the product sold by the target company is a hamburger, the company keyword can be the name of a hamburger. To improve the operational capabilities and user dependency of the social client, the present embodiment 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 display multiple consecutively overlapping session messages, enriching the display format of the session messages. The image message is a message generated based on multiple session messages and images matching the message content of the multiple session messages. In practical application, the social client can apply the message display method shown in FIG. 6 to session messages of any message type. For example, the social client may detect multiple consecutively overlapping session messages and then detect the message types of the multiple session messages. In practical implementation, the social client may detect whether the multiple session messages contain a keyword. If not, it determines that the message type of the multiple session messages is a first type.If so, it is determined that the message types of the multiple session messages are of the second type. Then, in some embodiments, different message display modes are selected for different message types. If the message type of the multiple consecutively 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 the multiple session messages. If the message type of the multiple consecutively overlapping session messages is the second type, a display mode in which a new image message is displayed can be selected to display the multiple session messages, i.e., the message display method shown in FIG. 6 can be selected to display 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 communication session system described above, or may be executed by a terminal executing the social client. For ease of explanation, in the embodiments of the present application, the message display method is executed by a social client, 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 the session interface of the target session and obtains the 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 predetermined number, it is determined that there are multiple consecutive overlapping session messages in the message set. In this case, steps S605 to S606 can be continued. In the embodiment of the present application, steps S602 to 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 step S202 above 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 actual 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, if the message type of the multiple session messages is the first type, that is, if 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 Figure 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 may be a rooftop image representing the roof of a building, the image in the middle region of the default image template may be a floor image representing a floor of a building, and the image in the bottom region of the default image template may be a base image representing the base of a building.

[0069] In some embodiments, if the message type of the multiple session messages is a second type, that is, the message content of the multiple session messages 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, if the message type of the multiple session messages is a second type, that is, the message content of the multiple session messages 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 content of multiple messages, images to fill each region of the system template are obtained. Next, the obtained images are filled into each region of the system template to obtain a message display template. For example, if the message content of multiple session messages is "Happy Birthday, Kiyo-chan!" and the keyword in the message content is "Happy Birthday," 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 sequentially filled into the top region, middle region, and bottom region to obtain a message display template. For example, if the message content of multiple session messages is "Hamburgers are worth having!", the keyword of the message content may be "hamburger." The images corresponding to each region acquired based on the keyword "hamburger" may be images representing the components of the hamburger, such as a first bun image representing the top of the hamburger, a background image representing the middle of the hamburger, and a second bun image representing the bottom of the hamburger. Next, as shown in FIG. 7C , the first bun image, background image, and second bun image may be sequentially filled into the top, middle, and bottom regions to acquire a message display template. As can be seen from the above, in an embodiment of the present application, the pattern of the message display template can be configured based on the message content of multiple session messages, allowing the message display template to dynamically adapt to various operational scenarios. For example, in a birthday celebration operational scenario, the pattern of the message display template may be visually represented as cake layers. In a target company promotion operational scenario, the pattern of the message display template may indicate correlation information for the target company.In addition, in the embodiment of the present application, by filling each area in the system template with an image and generating a message display template, the versatility of the system template can be effectively improved.

[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 implementations, the social client may fill the middle area of ​​the message display template with multiple session messages and obtain an image message as follows:

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

[0076] In some implementations, 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 there are a large number of consecutive overlapping session messages, some of the session messages may be selected and added to the image message, and the non-selected session messages may be collapsed to reduce the display area of ​​the image message. In actual implementation, the social client first selects a predetermined number of session messages from the multiple session messages in order of earliest message reception time, then fills the intermediate area of ​​the message display template with the selected session messages, and obtains the image message. In this implementation, the target session message may include only the image message. In this implementation, the social client may further perform a collapse process on the non-selected session messages from the multiple session messages, obtain a second collapse prompt, and add the second collapse prompt to the target session message. That is, the target session message in this implementation may include both the image message and the second collapse prompt. Continuing with the message display template shown in FIG. 7C as an example, assume that the preset number is 5. If the number of the multiple session messages is 13, the second diagram in FIG. 7E may be referred to for a schematic diagram of the target session message in this implementation. The method for obtaining the second folding prompt is the same as the method for obtaining the first folding prompt. Therefore, for an embodiment of how to perform folding processing on an unselected session message among multiple session messages and obtain the second folding prompt, reference may be made to the relevant description of step s12 in the above method example, and the description will be omitted here. It should be understood that FIG. 7E merely illustrates an exemplary 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 FIGS. 3A to 3F.

[0078] In practical applications, the social client may select one of the two implementations according to the message types of the session messages to fill the session messages. If the message type of the session messages is the first type, any of the two implementations may be arbitrarily selected to fill the session messages. If the message type of the session messages is the second type, as can be seen from the above, the embodiment of the present application supports the setting of multiple types of keywords, such as congratulatory keywords and corporate promotion keywords. The second type can be subdivided into congratulatory message types, promotion message types, etc. according to different types of keywords. The message content of the session message corresponding to the congratulatory message type includes congratulatory keywords, and the message content of the session message corresponding to the promotion message type includes corporate promotion keywords. Based on this, if the message type of the session messages is the second type, the social client may select different implementations according to different second types to fill the session messages. In practical implementation, the second type is recognized and acquired according to the type of keywords included in the message content of the session messages. If the second type is a congratulatory message type, since the congratulations can bring joy to the user, implementation form 1 can be selected to fill multiple session messages, that is, 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.If the second type is a popular message type, the popular effect can generally be achieved after a predetermined number of session messages are consecutively and overlappingly displayed on the session interface, so that the implementation mode 2 can be selected to fill multiple session messages, that is, a predetermined number of session messages can be selected from the multiple session messages and filled into the middle area of ​​the message display template to obtain an image message, thereby achieving the popular effect and avoiding the spam effect caused by consecutively displaying multiple overlapping messages.

[0079] In S606, 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.

[0080] After acquiring the target session message, the target session message can be displayed in 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 collapsible prompt. Because the message set of the target session is acquired in real time, the session messages included in the message set may be updated in real time. Therefore, in one application scenario, while sequentially displaying each message in the message set in the session interface, the social client detects that there are multiple consecutive duplicate session messages in the message set. If the target session message is acquired based on the multiple session messages, the social client can directly perform step S606 and directly use the target session message to replace the multiple consecutive duplicate 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," refer to FIG. 7F for a schematic diagram of the display of the corresponding target session message. In another application scenario, the social client detects that there are multiple consecutive duplicate session messages in the message set before displaying the session interface. If the target session message is acquired based on the multiple session messages, the social client can directly display the target session message after displaying the session interface. Continuing with the example where 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 seen in Figure 7G. As can be seen from the above, in the implementation of the present application, when there are multiple consecutive overlapping session messages in a message set, the message content 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 overlapping session messages, thereby improving the activity of the target session.

[0081] In one embodiment, the purpose is to better encourage 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 this embodiment, if the number of consecutive overlapping session messages is greater than a threshold number, a message surprise bonus may be set so that all message sending users corresponding to each of the multiple session messages can obtain a corresponding resource bonus. Based on this, for a master user, if the multiple session messages include a session message sent by the master user, and the number of the multiple session messages is greater than a threshold number, the social client can obtain an amount of electronic resources received corresponding to the master user. The amount of electronic resources received 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. For example, if 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. For example, if the message type of the multiple session messages is a dissemination message type, the resource issuing user may be a target company. When the social client obtains the amount of electronic resources received, it 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 on the resource receiving interface. For example, if the message types of the consecutively overlapping multiple session messages are popular message types and the resource issuing user is the target company, a schematic diagram of switching from the session interface to the display resource receiving interface can be seen in Figure 7H.

[0082] In one embodiment, to allow 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 action on the message send button 71 by the master user, it can copy the multiple session messages, obtain a new session message, and directly display the new session message in the image message. Alternatively, when the image message contains a predetermined number of session messages, it can update the second collapsible prompt with the new session message, thereby realizing the collapsible display of the new session message. The update method can refer to the update method for the first collapsible prompt described above, and therefore will not be described here. As shown in FIG. 7I, for example, when a new session message is directly displayed in the image message, if the multiple session message is "Hamburgers are worth having!", the master user can click the message send button 71 to trigger the social client to send a new session message with the message content "Hamburgers are worth having!", and then display the new session message in the image message. 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 send button 71 to trigger the social client to send a new session message with the message content "Happy Birthday [cake] [cake] [cake]," and 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 into the message input area 72 in the session interface. In this case, the social client can obtain the message content entered 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, if the target session message includes an image message or an image message and a second folding prompt, the social client can also support sharing the target session message with other users as a picture. In practical application, if a master user wants to share the target session message with other users as 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's voice action to indicate sharing of the target session message, 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 output by the social client on the session interface when the social client detects that the target session message has been triggered. In one embodiment, the social client may directly use the target session message to generate a share picture. In another embodiment, if the message type of the multiple session messages is a second type and the second type is a congratulatory message type, when generating 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 the 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 a 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 shared picture from the user selection area 74, and then trigger the social client to send the shared 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 shared picture using the picture edit button 76, and send the edited shared picture to other users.

[0084] In an embodiment of the present application, when the message set of the target session contains multiple consecutive overlapping session messages, an image message is generated based on the multiple session messages and images matching the multiple session messages, and the image message is used to replace and display the multiple consecutive overlapping session messages in the message set in the session interface, thereby enriching the display format of the multiple consecutive overlapping session messages, 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 user dependency on the social client.

[0085] Based on the description of the above method embodiment, to enable the social client to better perform the message display method shown in FIGS. 2 and 6 , the embodiment of the present application further provides a social client as 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 the 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 among different sessions. The social client 81 can match user inputs, clicks, and other behavioral habits detected by the AIO in different sessions, providing the user with a unified interaction experience. The message cache component 112 is a component that reads each message of a target session from the chat window component and caches the read messages. 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, performs internal calculations, and then partially folds or merges multiple consecutively duplicated session messages, and replaces the original multiple consecutively duplicated 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 on the session interface.

[0086] Compared with a typical 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. This allows the social client to detect multiple consecutive duplicate session messages and to collapse or integrate the consecutive duplicate session messages by extending the code logic for displaying the target session message in the user interface (UI) layer without changing the code logic of the message cache component 82 in the server and the social client. As can be seen from the above, the embodiment of the present application adds a message processing component 83 to the social client to realize the functions of collapsing or integrating the display of session messages, thereby reducing the need for code logic changes to a certain extent and effectively saving 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 session messages of a target session, the user can open the session interface of the target session to enter the chat window. In response, when the social client detects the user's opening of 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. Next, the social client can transmit the message set as input to the message processing component 83 in step s81. Upon receiving the message set, the message processing component 83 can traverse the message set and detect whether there are multiple consecutive duplicate session messages in the message set in step s82. In actual implementation, it can detect whether there are N or more consecutive duplicate session messages in the message set, where the value of N can be set according to experience or service needs, for example, N can be set to 5. If there are multiple consecutive duplicate session messages in the message set, it can be determined that there are multiple consecutive duplicate session messages in the message set. At this time, in step s83, a folding process is performed on some of the session messages among the plurality of session messages, and a first folding prompt can be obtained. Next, in step s84, the first folding prompt is used to replace some of the folded 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 folding prompt in the message list to be displayed, it displays the message in the pattern of the folding prompt.

[0089] When the target session receives a new session message, the social client first caches the new session message in a message set using the message cache component 82 in step s87 and updates the message set, thereby ensuring that the message set cached in the message cache component 82 completely includes all messages of the target session. Next, in step s88, the message cache component 82 transmits the new session message to the message processing component 83. Correspondingly, upon receiving the new session message, the message processing component 83 updates the message list to be displayed using the new session message in step s89 and sends the updated message list to the chat window component 81, and the chat window component 81 performs UI updates on the session interface based on the updated message list to be displayed. An embodiment of updating the message list to be displayed using the new session message may be as follows: If the last message other than the system prompt message in the message list to be displayed is the first collapse prompt, it is detected whether the new session message overlaps with the collapsed session message. If there is an overlap, the first collapse prompt is updated using the new session message, and the message list to be displayed is updated. 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 list of messages to be displayed, and update the list of messages to be displayed; otherwise, add the new session message to the end of the list of messages to be displayed, and update the list of messages to be displayed.

[0090] In another embodiment, as can be seen from the message display method illustrated in FIG. 6 , the social client may further detect the message types of the multiple session messages. Based on this, an 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 in step s83 that the message set contains multiple consecutive overlapping session messages, it can send the multiple session messages to the type determination component 84. Correspondingly, upon receiving the multiple session messages, the type determination component 84 determines the message types of the multiple session messages, which may include a first type or a second type, by matching keywords, 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, steps s83 to s85 can be performed. If the message type is the second type, an image message can be generated based on the multiple session messages. Here, an example is described in which the image message includes all 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 in step s86, the message list to be displayed is sent to the chat window component 81. 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 the image message pattern.

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

[0097] Step 807: Display the message in a folding 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 duplicate session messages in the target session and the number of consecutive duplicate session messages reaches a preset number (N), display some of the consecutive duplicate session messages to ensure complete display of the message content of the session messages, or may automatically fold the remaining consecutive duplicate session messages and insert a first fold prompt into the session interface to display them, thereby effectively reducing the unpleasant spam effect in the session interface, thereby reducing the phenomenon of users forgetting important session messages, and effectively improving users' reliance 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 Figure 2 or Figure 6. Referring to Figure 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 overlapping 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 method is configured to select a predetermined number of session messages as reference session messages from the plurality of session messages in descending order of 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 a user corresponding to a 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 folding processing on the remaining session messages other than the reference session message among the plurality of session messages, and when obtaining the first folding prompt, determines the remaining number of the remaining 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 the excess number of the excess session messages.

[0104] In another embodiment, the first folding prompt includes a folding message. Correspondingly, the display unit 901 performs folding processing on excess session messages other than the reference session message among the plurality of session messages, and when obtaining a first folding prompt, generates prompt content according to the 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 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 remaining session message and the 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 remaining 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 based on the plurality of session messages and an image matching the message content of the plurality of session messages. Correspondingly, when the display unit 901 acquires the target session message based on the plurality of session messages, it acquires a message display template matching the 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, 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 an image message, and add the image message to the target session message.

[0107] In another embodiment, each session message in the message set has a message reception 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 from the plurality of session messages in order of earliest message reception time, 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 session interface is switched to a share interface, and the share picture is displayed on 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, where the electronic resource receiving amount is 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 on 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 operation on the message option in the session interface as a collapsed session message; When a selection end event is detected, a new folded message is created based on the folded session message, and the folded 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, the display unit 901 outputs a message naming window when detecting a selection end event; Retrieving a customized message name set for the collapsed session message from the message naming window; When a confirmation action for the customized message name is detected, a folded message is generated based on the customized message name and a user identifier of the message sending user of the folded session message.

[0113] In another embodiment, the display unit 901 is further configured to output 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.

[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 overlapping 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 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, and step S202 may be executed by the acquiring unit 902 shown in Fig. 9. Also, 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 acquiring 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 multiple functionally smaller units. Similar operations can be achieved without affecting the technical effect of the embodiments 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 embodiments 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 or multiple units in cooperation.

[0118] The embodiments of the present application are executed on a general-purpose computing device such as a computer, which includes processing elements and memory elements such as a central processing unit (CPU), random access memory (RAM), and read-only memory (ROM), and is capable of executing a computer program (including program code) for each step of the corresponding method shown in Figure 2 or Figure 6, thereby configuring a message display device shown in Figure 9 and realizing the message display method of the embodiments of the present application. The computer program can be recorded on a computer-readable recording medium, for example, and can be loaded into and executed by the computing device 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 based on the multiple session messages, and 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 in 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 the multiple consecutive overlapping session messages in the session interface for display, thereby 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 user dependency on the social client.

[0120] Based on the above description of the method embodiment and the device embodiment, an 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 via a bus or other form. In an 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, and 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 referred to as a Central Processing Unit (CPU)) is a computing core and control core of the terminal, and implements one or more instructions, for example, loads and executes one or more instructions, thereby implementing a corresponding method process or corresponding function. In one embodiment, the processor 1001 described in the embodiment of the present application is configured to display a session interface of a target session, and perform a series of message display processes, including: displaying a session interface of the target session; acquiring a message set of the target session; if the message set contains multiple consecutive overlapping session messages, acquiring a target session message based on the multiple session messages; 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] An 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 of course, may also include an expansion storage medium supported by the terminal. The computer storage medium provides a memory space in which an operating system of the terminal is stored. The memory space also stores one or more instructions to be loaded and executed by the processor 1001, and these instructions may be one or more computer programs (including program code). Note 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 implement 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 of a target session and obtaining a message set of the target session; if the message set has multiple consecutive overlapping session messages, obtaining a target session message based on the multiple overlapping session messages; replacing the consecutively overlapping 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 a message set of a target session has multiple consecutive overlapping session messages, 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 in 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 the multiple consecutive overlapping session messages in the session interface for display, thereby 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 users' 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 variations 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 Servers 31 Prompt Content 32 User Identifier 33 Messages 34 Message sending button 35 Identifier abbreviations 36 Message Links 37 Content ellipsis 38 Identifiers 41 Reference Session Messages 42 prompts 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 sending 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 Devices 1003 Output Devices 1004 Computer storage media

Claims

[Claim 1] A message display method executed by a terminal, comprising: displaying a session interface of a target session and obtaining a message set of the target session; if the message set includes multiple consecutive overlapping session messages, obtaining a target session message based on the multiple overlapping session messages; replacing the consecutively overlapping 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.

Citation Information

Patent Citations

  • Message display method and apparatus and terminal device

    CN105530372A

  • Instant messaging message processing method and device, readable medium and electronic equipment

    CN110505141A

  • Method and apparatus for managing message in electronic device and message transmission method and apparatus

    JP2014096798A

  • Method, apparatus, system, and computer program for providing official account rich menu in instant messaging service

    JP2018506793A

  • Method and device for controlling the timing of allocation of network objects in a communication network - Patents.com

    JP2020501234A