Nothing Special   »   [go: up one dir, main page]

WO2021227779A1 - 消息显示方法、装置、终端及计算机可读存储介质 - Google Patents

消息显示方法、装置、终端及计算机可读存储介质 Download PDF

Info

Publication number
WO2021227779A1
WO2021227779A1 PCT/CN2021/088042 CN2021088042W WO2021227779A1 WO 2021227779 A1 WO2021227779 A1 WO 2021227779A1 CN 2021088042 W CN2021088042 W CN 2021088042W WO 2021227779 A1 WO2021227779 A1 WO 2021227779A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
conversation
messages
session
target
Prior art date
Application number
PCT/CN2021/088042
Other languages
English (en)
French (fr)
Inventor
刘立强
孙雪君
罗轩
Original Assignee
腾讯科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Priority to JP2022546110A priority Critical patent/JP7472296B2/ja
Publication of WO2021227779A1 publication Critical patent/WO2021227779A1/zh
Priority to US17/709,055 priority patent/US20220224663A1/en
Priority to JP2024063447A priority patent/JP2024086854A/ja

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/42Mailbox-related aspects, e.g. synchronisation of mailboxes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/043Real-time or near real-time messaging, e.g. instant messaging [IM] using or handling presence information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/06Message adaptation to terminal or network requirements
    • H04L51/066Format adaptation, e.g. format conversion or compression
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/10Multimedia information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/23Reliability checks, e.g. acknowledgments or fault reporting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/234Monitoring or handling of messages for tracking messages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services

Definitions

  • This application relates to the field of Internet technology, to the field of computer technology, and in particular to a message display method, a message display device, a terminal, and a computer-readable storage medium.
  • social clients have gradually been widely used by users; the so-called social clients refer to software (Application, APP) that realizes information interaction between users and users through the network.
  • the social client can establish a target session between the user and the user, so that each user in the target session can interact with each other through the session interface of the target session.
  • the social client after the social client obtains the message set of the target conversation, it usually displays each message in the message set in sequence directly in the conversation interface of the target conversation.
  • the message display mode is relatively simple, and the graphic of the terminal where the social client is located The utilization rate of processing resources is low.
  • the single message display mode makes the number of human-computer interactions less and the user stickiness of social clients is lower.
  • the embodiments of the present application provide a message display method, device, terminal, and computer-readable storage medium, which can increase the utilization rate of terminal graphics processing resources and the number of human-computer interactions, thereby effectively increasing the user stickiness of the social client running in the terminal .
  • the embodiment of the present application provides a message display method, and the method includes:
  • the target conversation message is used to replace the continuously repeated multiple conversation messages in the message set, and the replaced message set is displayed in the conversation interface of the target conversation.
  • An embodiment of the present application provides a message display device, and the device includes:
  • the display unit is configured to display the conversation interface of the target conversation
  • An obtaining unit configured to obtain a message set of the target conversation
  • the display unit is further configured to obtain a target conversation message according to the multiple conversation messages if there are multiple consecutively repeated conversation messages in the message set;
  • the display unit is further configured to replace the continuously repeated multiple conversation messages in the message set with the target conversation message, and display the replaced message set in the conversation interface of the target conversation.
  • An embodiment of the present application provides a terminal, and the terminal includes:
  • a processor and a memory where at least one piece of program code is stored, and the at least one piece of program code is loaded and executed by the processor to implement the message display method provided by the embodiment of the present application.
  • the embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores at least one piece of program code, and the at least one piece of program code is loaded and executed by a processor to implement the message display method provided by the embodiment of the present application .
  • the embodiment of the application may obtain the target session message according to the multiple session messages when there are multiple consecutively repeated session messages in the message set of the target session; and replace the multiple consecutively repeated session messages in the message set with the target session message, and then The replaced message set is displayed in the conversation interface of the target conversation.
  • the social client can use the target conversation message to replace the display in the conversation interface for multiple consecutive repeated conversation messages; this can effectively reduce the boring brush caused by directly displaying multiple conversation messages.
  • the screen effect enriches the message display methods of the social client, improves the utilization of terminal graphics processing resources and the number of human-computer interactions, and can effectively increase the user stickiness of the social client.
  • FIG. 1 is a system architecture diagram of a communication session system provided by an embodiment of the present application
  • FIG. 2 is a schematic flowchart of a message display method provided by an embodiment of the present application.
  • FIG. 3A is a schematic diagram of a folded message provided by an embodiment of the present application.
  • FIG. 3B is a schematic diagram of another folded message provided by an embodiment of the present application.
  • FIG. 3C is a schematic diagram of another folded message provided by an embodiment of the present application.
  • FIG. 3D is a schematic diagram of another folding message provided by an embodiment of the present application.
  • FIG. 3E is a schematic diagram of another folded message provided by an embodiment of the present application.
  • FIG. 3F is a schematic diagram of a folding mark provided by an embodiment of the present application.
  • 4A is a schematic diagram of displaying a target conversation message including a folded message and a reference conversation message according to an embodiment of the present application
  • 4B is a schematic diagram showing another target conversation message including a folded message and a reference conversation message according to an embodiment of the present application
  • FIG. 4C is a schematic diagram of displaying a new first conversation message according to an embodiment of the present application.
  • FIG. 4D is another schematic diagram of displaying a new first conversation message according to an embodiment of the present application.
  • FIG. 4E is another schematic diagram of displaying a new first conversation message according to an embodiment of the present application.
  • 4F is another schematic diagram of displaying a new first conversation message according to an embodiment of the present application.
  • FIG. 4G is a schematic diagram of displaying a new second conversation message according to an embodiment of the present application.
  • FIG. 4H is a schematic diagram of displaying remaining user identifiers according to an embodiment of the present application.
  • FIG. 4I is a schematic diagram of displaying remaining session messages according to an embodiment of the present application.
  • FIG. 4J is another schematic diagram of displaying remaining session messages provided by an embodiment of the present application.
  • FIG. 4K is another schematic diagram of displaying remaining conversation messages according to an embodiment of the present application.
  • FIG. 4L is a schematic diagram of folding and displaying the remaining conversation messages again after displaying the remaining conversation messages according to an embodiment of the present application
  • FIG. 5A is a schematic diagram of an output message option provided by an embodiment of the present application.
  • FIG. 5B is a schematic diagram of another output message option provided by an embodiment of the present application.
  • FIG. 5C is a schematic diagram of outputting a collapsed message according to an embodiment of the present application.
  • FIG. 5D is a schematic diagram of another output collapse message provided by an embodiment of the present application.
  • FIG. 5E is a schematic diagram showing a collapsed session message according to an embodiment of the present application.
  • FIG. 5F is another schematic diagram showing a collapsed session message provided by an embodiment of the present application.
  • 5G is a schematic diagram of an operation option window for outputting a collapsed message provided by an embodiment of the present application.
  • FIG. 6 is a schematic flowchart of a message display method provided by an embodiment of the present application.
  • FIG. 7A is a schematic diagram of a default image template provided by an embodiment of the present application.
  • FIG. 7B is a schematic diagram of generating a message display template provided by an embodiment of the present application.
  • FIG. 7C is a schematic diagram of another generated message display template provided by an embodiment of the present application.
  • FIG. 7D is a schematic diagram of filling a session message in a message display template provided by an embodiment of the present application.
  • FIG. 7E is a schematic diagram of a target conversation message including an image message and a second folding prompt according to an embodiment of the present application
  • FIG. 7F is a schematic diagram of displaying a target conversation message including an image message according to an embodiment of the present application.
  • FIG. 7G is a schematic diagram of displaying a target conversation message including an image message according to an embodiment of the present application.
  • FIG. 7H is a schematic diagram of switching from a conversation interface to a resource receiving interface provided by an embodiment of the present application.
  • FIG. 7I is a schematic diagram of displaying a new conversation message in an image message included in a target conversation message according to an embodiment of the present application.
  • FIG. 7J is a schematic diagram of displaying a new conversation message in an image message included in a target conversation message according to an embodiment of the present application.
  • FIG. 7K is a schematic diagram of an output message sharing button provided by an embodiment of the present application.
  • FIG. 7L is a schematic diagram of switching from a conversation interface to a sharing interface according to an embodiment of the present application.
  • FIG. 8A is a schematic structural diagram of a social client provided by an embodiment of the present application.
  • FIG. 8B is a schematic flowchart of a message display method provided by an embodiment of the present application.
  • FIG. 8C is a schematic diagram of a message display logic provided by an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a message display device provided by an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of a terminal provided by an embodiment of the present application.
  • the embodiment of the application proposes a message display solution and a corresponding communication conversation system to enrich the message display modes of the social client, increase the utilization rate of terminal graphics processing resources and the number of human-computer interactions, and increase the user stickiness of the social client.
  • the communication session system proposed in the embodiment of the present application may include: at least two social clients 11 and a server 12.
  • the social client 11 refers to software that realizes information interaction between users and users through the network; the social client 11 may include at least one of the following: WeChat, Enterprise WeChat, Tencent QQ and other instant messaging clients, Weibo, Information exchange clients such as blogs, etc.; the so-called instant messaging refers to a terminal service that allows two or more people to use the network to instantly transmit text, files, voice and other information, as well as audio and video communication.
  • the social client 11 may run in any terminal, and the terminal here may include, but is not limited to: portable devices such as smart phones, laptop computers, and tablet computers, or terminal devices such as desktop computers.
  • the server 12 refers to a device that can establish a communication session between at least two social clients 11 and provide various services such as data storage and message push for each social client 11; it can include but is not limited to: data server, web Servers, application servers, cloud servers, etc. It should be understood that when the server 12 is physically deployed, the server can be deployed as an independent service device, or the server 12 can be deployed as a cluster device composed of multiple service devices, which is not limited in the embodiment of the present application.
  • the message display solution proposed in the embodiment of this application can be executed by any social client 11 in the communication session system described above, or by a terminal device running any social client 11; for ease of explanation, this application implements
  • any social client 11 executes the message display solution as an example for description.
  • this message display solution is suitable for a large number of conversation scenarios where messages are repeated continuously; for example, each user in a target conversation continuously sends "received" conversation scenarios because they reply to a certain announcement message; another example is the target conversation scenario.
  • Each user in the conversation continuously sends a "Happy Birthday" conversation scene for expressing birthday wishes to a user; another example is that each user in the target conversation continuously sends promotional messages for promoting a certain company (such as "Hamburger, you deserve it” Etc.) conversational scenes, etc.
  • the general principle of the message display scheme is as follows:
  • the server 12 can push various messages about the target conversation to the social client 11, so that the social client 11 can display various messages of the target conversation on the conversation interface for the user to view.
  • the social client 11 may obtain the target session messages according to the continuously repeated multiple session messages.
  • the target conversation message may include a reference conversation message and a first folding prompt.
  • the reference conversation message is selected from a plurality of conversation messages; the first folding prompt is obtained by folding the remaining conversation messages excluding the reference conversation message among the plurality of conversation messages, and the first folding prompt may include folding Identifies or collapsed messages; the collapsed identifier here is used to reflect the remaining number of remaining session messages, and the collapsed message can be used to reflect the remaining number of remaining session messages, message content, and message sending users of the remaining session messages.
  • the target conversation message may include an image message. The image message is a message generated based on multiple conversation messages and images matching the message content of the multiple conversation messages.
  • the target conversation message may include: key content extracted from the message content of the multiple conversation messages, and a quantity identifier generated according to the quantity of the multiple conversation messages. Then in the conversation interface, the target conversation message is used to replace and display multiple consecutive conversation messages. It can be seen that the message display solution proposed by the embodiment of the present application can replace and display multiple consecutively repeated session messages by using the target session message to reduce the uninteresting scrolling effect caused by continuously displaying multiple repeated session messages; Provide users with a good interactive communication atmosphere; and reduce the phenomenon that users miss important conversational messages, thereby effectively increasing the user stickiness of the social client 11.
  • an embodiment of the present application proposes a message display method; the message display method can be executed by any social client in the communication conversation system mentioned above, or by a social client running the social client Terminal execution can also be implemented collaboratively by the terminal and the server.
  • the embodiment of the present application uses the terminal to implement the message display method, and the target conversation message includes the reference conversation message and the first folding prompt as an example for description; please refer to FIG. 2, the message display method may include the following steps S201- S204:
  • S201 The terminal displays the conversation interface of the target conversation.
  • a social client terminal is provided on the terminal, and the social client terminal may be an instant messaging client used for message communication, a media information client used for reading, viewing, or publishing media information, and the like.
  • the target session may be established by the social client; for example, it may be any single chat session established by the social client, or any group session established by the social client, which is not limited.
  • the so-called single chat session refers to a session formed by two users, and a group session refers to a session formed by three or more users.
  • the social client can detect whether there is a display trigger operation for the conversation interface of the target session; if it exists, it can display the conversation interface of the target conversation.
  • the message set of the target conversation may include at least one type of message: conversational messages and non-conversational messages.
  • the conversation message refers to the message sent by each user in the target conversation through the conversation interface; for example, it may include at least one of the following: a message sent by a host user in the target conversation, and a message sent by a guest user; the so-called so-called The host user refers to the user corresponding to the social account that logs in to the social client, that is, the logged-in user; the guest user refers to the user other than the host user in the target session, that is, the non-login user.
  • non-conversational messages refer to messages other than conversational messages in the message set; they may include, but are not limited to: announcement notification messages, system prompt messages, and so on.
  • announcement notification message refers to the message published in the target session by the user in the target session through the announcement function provided by the social client, such as a group announcement message.
  • the system prompt message refers to the message pushed by the server after detecting the information change of the target session; 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 about the new user joining Prompt information of the target session; for another example, when a user (such as user A) exits the target session so that user A's user information is reduced in the target session, the server pushes the prompt information about user A exiting the target session; and For example, when the session name (such as the group name) of the target session is modified, the server pushes the prompt information about the modification of the session name, and so on.
  • each message in the message set can be pushed by the server to the social client 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 receiving time, which refers to the system time when the social client receives the message pushed by the server; each message in the message set can be in the order of the message receiving time from morning to night Arranged.
  • each message in the message set will be displayed in sequence in the conversation interface; in this case, the social client can also receive the message pushed by the server to update the message set, and continue to real-time It is detected whether there are multiple consecutively repeated messages in the updated message set, and step S203 is executed after multiple consecutively repeated conversation messages are detected.
  • the terminal can detect whether there are multiple consecutively repeated session messages in the message set in the following manner:
  • the terminal directly traverses to detect whether there are multiple consecutively repeated conversation messages in the message set.
  • each message in the message set except the first message can be traversed in sequence; if the current traversed message is a conversation message, and the message content of the current traversed message is the same as the message content of the previous message, the target The repeat count of the session performs an operation of adding one to update the repeat count; the repeat count here is used to determine the number of consecutively repeated session messages. If the currently traversed message is a conversational message and the message content of the current traversed message is different from that of the previous message, or the current traversed message is a non-conversational message, the repetition count is updated to an invalid value (such as a value of 0).
  • the traversal is ended and the updated repetition count is incremented by one to obtain the number of consecutively repeated session messages in the message set. If the number of consecutively repeated session messages is greater than or equal to the preset number, then it can be determined that there are multiple consecutively repeated session messages in the message set; if the number of consecutively repeated session messages is less than the preset number, it can be determined that there is no continuous repeating in the message set Multiple repeated conversation messages.
  • the preset number can be set according to empirical values or business requirements; for example, the preset number can be set to 5. It should be noted that the last message mentioned in this embodiment refers to a message whose central arrangement position is before the arrangement position of the currently traversed message and is adjacent to the arrangement position of the currently traversed message.
  • the message set includes the following messages in sequence: "received”, “received”, “ ⁇ user joins the target session”, “received”, “received”, and “received”.
  • the second message can be traversed first. Since the second message is a conversation message and the message content of the second message is the same as the message content of the previous message (ie, the first message), the repeat count execution can be incremented by one Operate so that the repeat count is updated from 0 to 1. Then the third message can be traversed. Since the third message is a system prompt message, the repeat count can be updated from 1 to 0. Then traverse the fourth message again.
  • the repeat count can be updated to 0. Traverse the fifth message again. Since the fifth message is a conversation message and the message content of the fifth message is the same as the message content of the previous message (ie, the fourth message), the repeat count can be incremented by one, so that The repeat count is updated from 0 to 1, and so on. When all 6 messages in the message set have been traversed, the traversal can be ended, and the updated repeat count is 2 at this time.
  • the updated repetition count (2) can be incremented by one, and the number of continuously repeated session messages in the message set is 3; since the number of continuously repeated session messages (3) is less than the preset number (5), It can be determined that there are no consecutive repeated conversation messages in the message set.
  • the terminal can detect whether there are multiple consecutively repeated session messages in the message set in the following manner:
  • the terminal uses the counting isolation method to detect whether there are multiple consecutively repeated session messages in the message set; the so-called counting isolation method refers to the method of isolating non-session messages in the message set and only traversing and detecting the session messages in the message set.
  • the conversation messages can be screened out from the message set first, and the number of consecutive repeated conversation messages in the screened conversation messages can be calculated. For example, you can sequentially traverse all the conversation messages except the first conversation message among the selected conversation messages; if the message content of the currently traversed conversation message is the same as the message content of the previous conversation message, the repeat count can be added. One operation to update the repeat count.
  • the repetition count can be updated to an invalid value (for example, a value of 0).
  • the traversal can be ended and the updated repetition count can be incremented by one to calculate the number of consecutively repeated conversation messages in the screened conversation messages. If the calculated number is greater than or equal to the preset number, it can be determined that there are multiple consecutively repeated session messages in the message set; if the calculated number is less than the preset number, it can be determined that there are no consecutively repeated multiple session messages in the message set .
  • the last conversation message mentioned in this embodiment means that the arrangement position of the filtered conversation message is before the arrangement position of the currently traversed conversation message, and is adjacent to the arrangement position of the currently traversed conversation message Conversation message.
  • the preset number is still set to 5, and the message set includes the following messages in sequence: “received”, “received”, “ ⁇ user joined the target session”, “received”, “received”, and “received”. Then, you can first filter out 5 conversation messages from the message collection: “received”, “received”, “received”, “received” and “received”. Then, calculate the number of consecutively repeated session messages among the 5 screened out session messages. In actual implementation, you can first traverse the second conversation message among the 5 conversation messages.
  • the repeat count performs an increment operation so that the repeat count is updated from 0 to 1. Then traverse the third conversation message among the 5 conversation messages. Since the message content of the third conversation message is the same as the message content of the previous conversation message (ie, the second conversation message), the repeat count can be increased by one. Operate to update the repeat count from 1 to 2. Then traverse the fourth conversation message among the 5 conversation messages. Since the message content of the fourth conversation message is the same as the message content of the previous conversation message (that is, the third conversation message), the repeat count can continue to be added. One operation causes the repeat count to be updated from 2 to 3, and so on.
  • the traversal ends, and the updated repeat count is 4 at this time. Then, the updated repeat count can be incremented by one, and the number of continuously repeated session messages among the 5 screened session messages is calculated to be 5; since the calculated number (5) is equal to the number threshold (5), It can be determined that there are multiple consecutively repeated conversation messages in the message set.
  • the terminal detects whether there are multiple consecutively repeated session messages in the message set, by traversing and detecting only the session messages in the message set, the non-session messages in the message set can be counted and isolated; repeated counting is avoided It is cleared due to the influence of non-conversational messages, which leads to the problem of recounting again; it can truly enable continuous repetition of conversational messages to be counted continuously, thereby improving the accuracy of the detection result.
  • the above examples of detecting whether there are multiple consecutively repeated conversation messages in the message set are all explained by taking the message content only containing text as an example; however, in practical applications, the message content is not limited to text.
  • each content contained in the message content participates in the recognition; that is, the embodiment of the present application can perform the identification of the text (such as Chinese characters) contained in the message content. To symbols (such as spaces) and expressions are recognized. If there is a content inconsistency, it can be considered that the content of the message is not the same. It can be seen that the embodiment of the present application has a small recognition granularity for continuously repeated conversation messages, which can effectively improve the accuracy of the detection result. It should also be noted that the embodiment of the present application does not limit the execution sequence of step S201 and step S202.
  • S203 If there are multiple consecutively repeated session messages in the message set, acquire the target session message according to the multiple session messages.
  • the embodiment of the present application may obtain the reference conversation message and the first folding prompt according to the multiple conversation messages as the target. Conversation message, to realize the folding display of the continuously repeated part of the conversation message.
  • obtaining the target conversation message according to multiple conversation messages may include the following steps s11-s13:
  • s11 select a reference conversation message from multiple conversation messages.
  • one session message or a preset number of session messages can be randomly selected from multiple session messages as the reference session message; that is, in this embodiment, the reference session message is randomly selected from multiple session messages One or a preset number of conversation messages obtained.
  • the social client since each conversation message in the message set has a message reception time, the social client usually displays the conversation messages in sequence from morning to night according to the message reception time; therefore, in order not to disrupt each conversation The display order of the messages in the conversation interface, the social client can also select the conversation message with the earliest message reception time from the multiple conversation messages as the reference conversation message; that is, in this embodiment, the reference conversation message is among the multiple conversation messages The conversation message with the earliest message reception time.
  • a preset number of session messages may be selected as the reference session messages from multiple session messages in the order of message reception time from morning to night; that is, in this embodiment, the reference session messages include A preset number of conversation messages are sequentially selected from a plurality of conversation messages in the order of receiving time from morning to night.
  • the reference session message including a preset number of session messages sequentially selected from a plurality of session messages in the order of receiving time from morning to night will be given by taking the reference session message including a preset number of session messages sequentially selected from a plurality of session messages in the order of receiving time from morning to night as an example.
  • the conversation message sent by the master user can also be used as a reference conversation message; to avoid subsequent social clients from viewing the master user’s
  • the sent conversation message is folded, so that the conversation message sent by the master user can be directly displayed in the conversation interface. This can create a user experience in which the conversation messages sent by the host users are stably retained when the host users participate in the message refresh, which can facilitate the host users to view the conversation messages they send, and increase the number of human-computer interactions and the user stickiness of the social client.
  • s12 Perform folding processing on the remaining conversation messages except the reference conversation message among the multiple conversation messages to obtain the first folding prompt.
  • the first folding prompt may include a folding message and a folding indicator.
  • the implementation of step s12 may be: first generate according to the remaining number of the remaining conversation messages except for the reference conversation message among the plurality of conversation messages, and the message content of the remaining conversation messages Prompt content.
  • the prompt content can be used to prompt that there is a remaining number of users continuously sending the message content, or to prompt that there is a continuous remaining number of messages that contain the message content.
  • the prompt content can be "8 consecutive friends reply “received””; or, the prompt content can be “the following 8 consecutive messages reply “received”, and so on. It should be understood that when the message content contains a lot of content (such as text, symbols, emoticons, etc.), when the social client performs step s12, it may only be based on the remaining conversations other than the reference conversation message among the multiple conversation messages.
  • the remaining number of messages to generate reminder content can be used to remind that there is a remaining number of users who have continuously sent the same message as the reference session message, or used to remind that there is a continuous remaining number of messages and the reference session message same.
  • the social client may also generate prompt content based on the remaining number of remaining conversation messages other than the reference conversation message among the multiple conversation messages, part of the message content of the remaining conversation messages, and the content ellipsis; this content is omitted
  • the symbol is used to indicate that the message content of the remaining conversation messages is not fully displayed.
  • the prompt content can be "8 consecutive A friend responded to the above message”; or, the prompt content can be “the following 8 messages continuously reply “received, attend on time tomorrow"”; among them, "" is the content ellipsis.
  • the social client can also obtain the user ID of the message sending user corresponding to the remaining conversation messages.
  • the user identification includes at least one of the following: a user name and a user mark image.
  • the user name here may include, but is not limited to: network nickname (a name used by users in social networks, such as the user name in an instant messaging client), session name (a type of user’s Note name), etc.
  • the user mark image may be the user profile picture of the user who sent the message.
  • the social client can generate a folded message according to the obtained user identification and prompt content; it can include at least the following implementation modes:
  • the folded message may be directly generated according to the obtained user identification and prompt content.
  • the prompt content 31 is used to prompt that there is a continuous remaining number of messages that contain the message content, and the user identifier 32 includes the user name
  • the schematic diagram of the generated folded message 33 can be seen in the first diagram in FIG. 3A Shown.
  • the prompt content 31 is used to prompt that there is a remaining number of users who have continuously sent message content, and the user identification 32 includes a user mark image
  • a schematic diagram of the generated folded message 33 can be seen in the second or third diagram in FIG. 3A Shown. It should be understood that the embodiment of the present application only exemplarily uses the three figures in FIG. 3A to represent the display form of the folded message 33, and is not exhaustive.
  • the social client may also display one or more message sending buttons 34 in the display area of the folded message, as shown in FIG. Shown in 2 pictures in 3B. If the social client detects a trigger operation (such as a click operation, a press operation, etc.) on any message sending button 34 by a user in the master mode, the message content of multiple conversation messages can be copied to generate a new conversation message, and this The new conversation message is sent to the target conversation.
  • a trigger operation such as a click operation, a press operation, etc.
  • this embodiment of the present application can also selectively use some user IDs and prompt content Generate folded messages to reduce the display area of folded messages.
  • the symbol is used to prompt that the acquired user identification is not fully displayed, and the identification ellipsis can be used to trigger the display of the remaining user identifications that are not displayed in the acquired user identification.
  • the display form of the logo ellipsis can be set according to business requirements; for example, " -- or " ⁇ " can be used in the folded message to indicate the logo ellipsis 35; correspondingly, the schematic diagram of the folded message can be seen in the 2 in Figure 3C As shown in the figure.
  • the embodiment of the present application may also insert a message for Trigger the message link displaying the remaining messages, so that the master user can view the remaining conversation messages through the message link later.
  • the acquired user identification, prompt content, and message link 36 can be used to generate a folded message; correspondingly, the schematic diagram of the folded message can be seen in the left figure in FIG. 3D.
  • the number of acquired user identities is greater than the number threshold, one or more user identities may also be selected from the acquired user identities as the user identities to be displayed; then, according to the user identities to be displayed , Prompt content, mark ellipsis, and message link 36 to generate a folded message.
  • the prompt content here may include the remaining number of remaining conversation messages, part of the message content of the remaining conversation messages, and the content ellipsis; or include the remaining quantity and complete message content. Taking the prompt content including the content ellipsis 37 as an example, the corresponding schematic diagram of the folded message can be seen in the right figure in FIG. 3D.
  • the embodiment of the present application when detecting whether there are multiple consecutively repeated session messages in the message set, performs the detection in the unit of session messages; if there is the same user in the target session, the same user continuously sends multiple session messages.
  • multiple conversation messages sent by the user can also be folded and displayed; in this case, the user identifiers contained in the folded messages can be continuously the same, as shown in FIG. 3E.
  • step s12 may include:
  • the embodiment of the present application does not limit the display form of the folding mark; for example, the folding mark 38 may be a value corresponding to the remaining quantity, as shown in the left figure in FIG. 3F; for another example, the folding mark 38 It can be a logo image formed by using the value corresponding to the remaining quantity and the preset picture, as shown in the right figure in FIG. 3F, and so on.
  • the target conversation message is used to replace multiple consecutively repeated conversation messages in the message set, and the replaced message set is displayed in the conversation interface of the target conversation message.
  • the steps S201 and S202 mentioned in the embodiment of the present application have no sequence, and the message set is updated in real time. Then it is detected that there are multiple consecutively repeated conversation messages in the message set, and the time when the target conversation message is obtained according to the multiple conversation messages may be before the conversation interface of the target conversation is displayed, or after the conversation interface of the target conversation is displayed .
  • the social client can use the target conversation message to replace multiple consecutively repeated messages in the message set before displaying the conversation interface.
  • Conversation message In this application scenario, after the social client displays the conversation interface, it can directly display the target conversation message in the conversation interface. In another application scenario, if the time point when the target conversation message is obtained is after the conversation interface of the target conversation is displayed, the social client can display the target conversation in the conversation interface in real time after displaying the conversation interface of the target conversation. Each message in the set of messages.
  • the social client after the social client obtains the target conversation message through step S203, it can directly execute step S204; it can directly use the target conversation message (that is, refer to the conversation message 41 and the first folding prompt 42) to update the information in the message set. Conversation messages, and display each message in the updated message set on the conversation interface.
  • the first folding prompt 42 here includes any type of folding message as shown in FIGS. 3A to 3E, or a folding mark as shown in FIG. 3F. Taking the first folding prompt 42 including the folding message as shown in the left figure of FIG. 3D as an example, a schematic diagram of displaying the target conversation message can be referred to as shown in FIG. 4A.
  • the social client uses this processing logic to realize that as long as multiple repeated conversation messages are detected, the first folding prompt can be created and displayed in the conversation interface. Update the interface of the inventory message (that is, the message that has been displayed) and the new first fold prompt.
  • step S204 is executed to directly display the target conversation message in the redisplayed conversation interface (ie, refer to the conversation message 41 and the first folding prompt 42). ). Still taking the first folding prompt 42 containing the folding message as shown in the left figure of FIG. 3D as an example, the schematic diagram of displaying the target conversation message can be seen in FIG. 4B.
  • the social client can also detect in real time whether there is a new first conversation message in the target conversation. If a new first conversation message is detected, it can be detected whether the first conversation message is continuously repeated with multiple conversation messages; if it is repeated continuously, the first conversation message can be added to multiple conversation messages, and the first conversation message can be used directly
  • the message updates the first folding prompt in the target conversation message. In actual implementation, if the first fold prompt contains a fold flag, you can directly add one to the value in the fold flag to update the fold flag; if the first fold prompt contains a fold message, you can add one to the fold message. Perform an operation of adding one to the remaining number of, and add the user ID of the message sending user of the first conversation message to the collapsed message.
  • the conversation messages in which the host user participates in refreshing the screen are stably retained; if it is repeated continuously, it can be further detected whether the message sending user of the new conversation message is a host user or a guest user. If it is a host user, the first conversation message 43 can be directly displayed in the conversation interface, as shown in Figure 4C; in this case, if the social client receives the first conversation message, it receives a guest status again If the message content sent by the user is the same as the second conversation message of multiple conversation messages, the second conversation message can be added because the second conversation message, the first conversation message, and the multiple conversation messages are repeated continuously.
  • the first folding prompt is updated with the second conversation message. If it is a guest user, the first folding prompt can be updated with the first conversation message; taking the first folding prompt containing the folding message as an example, the schematic diagram of updating the folding message with the first conversation message can be seen in FIG. 4D. As shown in FIG. 4D, the updated folding message contains the user identification of the message sending user of the first conversation message, and the remaining number contained in the prompt content in the updated folding message has also changed.
  • the social client can directly display the first conversation message in the conversation interface, as shown in FIG. 4E or FIG. 4F.
  • the social client receives the first conversation message and then receives the second conversation message with the same message content as the multiple conversation messages without continuous repetition, it is because the first conversation message is displayed. The continuity between the second conversation message and the multiple conversation messages is broken, so the second conversation message 44 can be directly displayed in the conversation interface, as shown in FIG. 4G.
  • the social client needs to obtain a new target conversation message based on the re-detected multiple conversation messages, and use the new target conversation message in the conversation interface.
  • the new target conversation message replaces and displays multiple conversation messages that have been detected again.
  • the folding message may include: not displayed in the acquired user identification for triggering display Functional components such as the ellipsis for the remaining user identification and the message link used to trigger the display of the remaining messages. Then, after displaying the folded message in the target conversation message, the master user can also perform a trigger operation on the identifier ellipsis in the folded message to trigger the social client to display the remaining undisplayed user identification in the conversation interface.
  • User identification correspondingly, when the social client detects that the identification ellipsis is triggered, it can display the remaining user identifications in the conversation interface. Taking the folding message shown in the right figure in FIG. 3C as an example, the schematic diagram of triggering the display of the remaining user identification can be seen in FIG. 4H.
  • the master user can also perform trigger operations (such as clicking or pressing the message link) on the message link in the collapsed message to trigger the social client to display the remaining conversation messages.
  • the social client may display the remaining conversation messages and the user identification of the user who sent the corresponding message on the conversation interface.
  • the reference session message is taken as an example. The message receiving time must be earlier than the message receiving time of the remaining session messages.
  • the social client can display the remaining conversation messages and the corresponding message sending in the conversation interface in the order of the message receiving time from morning to night.
  • the user ID of the user as shown in Figure 4I.
  • the social client may output a message display window 45 in the conversation interface, and display the remaining conversation messages and the corresponding message sending user’s user in the message display window 45 Identification; in actual implementation, the social client can display the remaining conversation messages and the user identification of the corresponding message sending user in the message display window 45 in the order of message reception time from morning to night, as shown in Figure 4J.
  • the conversation message sent by the master user can also be used as the reference conversation message; in this case, the message reception time of the conversation message sent by the master user may be later than part of the remaining conversations The message receiving time of the message, if you directly expand and display the remaining conversation messages, it may cause the message display sequence to be wrong. Therefore, in this case, the social client can display successively repeated conversation messages and the user ID of the corresponding message sending user in the conversation interface in the order of message reception time from morning to night, thereby realizing the display of the remaining conversation messages , As shown in Figure 4K.
  • FIG. 4L only uses the interface switching process of switching from the conversation interface to the main interface to exemplarily show that the master user exits the conversation interface; it does not limit the operation of the master user exiting the conversation interface. For example, if the master user switches from the conversation interface to the web interface of the browser, it can also be regarded as the conversation interface where the master user exits the target session.
  • the embodiment of the present application can display the conversation interface of the target conversation, and when there are multiple consecutively repeated conversation messages in the message set of the target conversation, the reference conversation message and the first folding prompt can be used in the conversation interface to replace and display the multiple consecutively repeated conversation messages.
  • Conversation message Since the reference conversation message is selected from multiple conversation messages, the message content of the reference conversation message is the same as the message content of the multiple conversation messages; by displaying the reference conversation message, the complete display of the message content can be ensured.
  • the first folding prompt is obtained by folding the remaining conversation messages excluding the reference conversation message among the multiple conversation messages; therefore, replacing the display of the remaining conversation messages with the first folding prompt can effectively reduce the number of conversation messages caused by the display. And the refreshing effect brought. It can be seen that by displaying the reference conversation message and the first folding prompt, the message display mode of the social client is enriched, the utilization rate of terminal graphics processing resources and the number of human-computer interactions are improved, and the user stickiness of the social client can be effectively improved.
  • the social client can automatically fold and display part of the continuously repeated conversation messages; however, in practical applications, the social client can also support the user to manually collapse One or more conversation messages that have been displayed in the conversation interface of the target conversation to facilitate the user's subsequent management and search of messages.
  • the social client if there are multiple consecutively repeated session messages in the message set of the target session, and the social client automatically folds the remaining session messages in the multiple session messages except for the reference session message through steps S203-S204 If displayed, the displayed session messages in the session interface may include: session messages in the message set except for the remaining session messages.
  • the displayed conversation message in the conversation interface may include: each conversation message in the message set.
  • each conversation message in the message set may include: each conversation message in the message set as an example.
  • the master user wants to manually collapse the conversation messages displayed in the conversation interface, he can input the selection trigger event for the conversation messages displayed in the conversation interface to the social client; correspondingly, social
  • the client detects a selection trigger event for a conversation message that has been displayed in the conversation interface, it can output a message option for each displayed conversation message in the conversation interface; the message option is used to select the conversation message that has been displayed.
  • the selection trigger event may include: detecting an event in which the conversation interface is pressed; in this embodiment, the schematic diagram of the output message option 51 can be referred to as shown in FIG. 5A.
  • the social client can provide a selection trigger button 52 for the host user; the selection trigger button 52 can be clicked or pressed on the conversation interface to trigger display. Then the corresponding selection trigger event may include: detection of an operation triggered by the selection trigger button 52; in this embodiment, the schematic diagram of the output message option 51 can be seen in FIG. 5B.
  • the master user can select the message options of each conversation message according to their actual needs; correspondingly, the social client can select the message options corresponding to the selected message options according to the selection operation in the conversation interface.
  • the conversation message is treated as the collapsed conversation message.
  • the host user selects the message option, he can click or press the selection end button 53 in the conversation interface to input the selection completion event to the client; the selection completion event here refers to the event that the selection end button is clicked or pressed.
  • the social client detects the selection completion event, it can create a collapsed message based on the collapsed conversation message; and replace the displayed collapsed conversation message with the collapsed message in the conversation interface.
  • the implementation manner of creating a collapsed message based on the collapsed conversation message may be: if the selection complete event is detected, the social client can directly randomly obtain or generate a system message Name, and send the user ID of the user according to the system message name and the message of the folded session message to generate a folded message 54; in this case, take the system message name as "folded message 1" as an example, output the received
  • the schematic diagram of the folded message 54 can be seen in FIG. 5C.
  • the implementation manner of creating a collapsed message according to the collapsed conversation message may be: if the selection complete event is detected, output a message naming window 55; the message naming window 55 It may include a name setting area 56 and a name confirmation button 57.
  • the master user can set a custom message name for the collapsed conversation message in the name setting area 56 in the message naming window 55.
  • the social client can obtain the custom message name set for the collapsed conversation message in the message naming window 55; if a confirmation operation for the custom message name is detected, it can be based on the custom message name and the name
  • the message of the collapsed conversation message sends the user ID of the user, and the collapsed message 54 is generated.
  • the confirmation operation for the custom message name may include clicking or pressing the name confirmation button 57 in the message naming window 55; in this case, the schematic diagram of outputting the collapsed message 54 can be seen in FIG. 5D.
  • the collapsed message may also include a message button 58 for triggering the display of the collapsed conversation message; the master user can trigger
  • the message button 58 causes the social client to display the collapsed conversation message.
  • the social client detects that the message button 58 is triggered, it can display the collapsed conversation message in the conversation interface, as shown in FIG. 5E.
  • the social client detects that the message button 58 is triggered, it can output a message display window and display the collapsed conversation message in the message display window, as shown in FIG. 5F.
  • the social client may also provide functions such as copying, forwarding, replying, and collecting.
  • the master user wants to perform operations such as copying, forwarding, replying, and collecting on the folded message, he can perform a trigger operation on the folded message.
  • the social client terminal can output an operation option window 59 about the collapsing message, as shown in FIG. 5G; wherein, the operation option window 59 includes at least one of the following operation options: copy option, Forward options, reply options, favorite options, and select options.
  • the social client can determine the selected operation option from the operation option window according to the selection operation detected in the operation option window; then, perform the corresponding operation on the discount message according to the selected operation option. For example, if the selected operation option is a forwarding option, the corresponding operation performed is the operation of the output forwarding interface; the master user can select a target user through the forwarding interface and trigger the social client to send the folded conversation message To the target user. As another example, for example, if the selected operation option is a favorite option, the corresponding operation performed is an operation of adding the collapsed conversation message to the favorite. For another example, if the selected operation option is a copy option, the corresponding operation performed is an operation to copy the collapsed conversation message, and so on.
  • the social client can also provide functions such as copying, forwarding, replying, and collecting for the first folding prompt obtained by automatic folding; its implementation method and the implementation method for folding messages Similar, I won't repeat them here.
  • the target conversation message contains an image message, or key content extracted from the message content of multiple conversation messages, and a quantity identifier generated according to the number of multiple conversation messages, the above mentioned
  • the manual folding function is also applicable. By providing the manual folding function, the message display methods of the social client can be enriched, thereby increasing the user stickiness of the social client.
  • the message display method shown in FIG. 2 is applicable to conversation messages of any message type; the message type here may include: the first type or the second type.
  • the message content of the conversation message corresponding to the first type does not contain a keyword
  • the message content of the conversation message corresponding to the second type contains a keyword.
  • keywords can be set according to business requirements; for example, in the embodiment of this application, multiple types of keywords can be set; such as blessing type keywords and corporate promotion type keywords, and so on.
  • the blessing type keywords refer to keywords used to express blessings; they may include, but are not limited to: keywords about holiday blessings, keywords about birthday blessings, and so on.
  • Enterprise promotion type keywords refer to keywords used to promote the target company, which can include but not limited to: company name, product attributes of the products operated by the target company (such as product name, product category), etc.; for example, target company
  • the product being operated is a hamburger
  • the keyword of the business type can be the name of a certain hamburger.
  • this embodiment of the application also proposes a message display method as shown in FIG. 6; the message display method shown in FIG. Multiple conversation messages are displayed and processed to enrich the display form of conversation messages.
  • the image message is a message generated based on multiple conversation messages and images matching the message content of the multiple conversation messages.
  • the social client can also apply the message display method shown in FIG. 6 to conversation messages of any message type.
  • the social client can also detect the message type of multiple conversation messages after detecting multiple consecutively repeated conversation messages; in actual implementation, it can detect whether keywords are included in multiple conversation messages; if not, then The message type of the multiple session messages is determined to be the first type; if included, the message type of the multiple session messages is determined to be the second type. Then, in some embodiments, different message display modes are selected for different message types.
  • the message type of multiple consecutively repeated conversation messages is the first type, you can choose to display multiple conversation messages by folding part of the conversation messages, and you can choose the message display method shown in Figure 2 to display multiple conversation messages.
  • the conversation message is displayed and processed.
  • the message type of multiple consecutively repeated conversation messages is the second type, you can select a new image message display mode to display multiple conversation messages, and you can select the message display method shown in Figure 6 to perform multiple conversation messages. Display processing.
  • the message display method shown in FIG. 6 may be executed by any social client in the aforementioned communication session system, or may be executed by a terminal running the social client.
  • the embodiment of the present application uses a social client to execute the message display method, and the target conversation message includes an image message as an example for description; please refer to FIG. 6, the message display method may include the following steps S601-S606:
  • S601 The terminal displays the conversation interface of the target conversation, and obtains the message set of the target conversation.
  • S602 Screening session messages from the message set, and calculating the number of consecutively repeated session messages in the screened session messages.
  • steps S604 If the calculated number is greater than or equal to the preset number, it is determined that there are multiple consecutively repeated session messages in the message set; in this case, steps S605-S606 can be continued. It should be understood that the embodiment of the present application only exemplarily uses steps S602-S604 (ie, counting isolation) to illustrate how to detect multiple consecutively repeated session messages; in practical applications, the steps S202 mentioned above can also be used. And the non-counting isolation method is used to detect whether there are multiple consecutive and repeated conversation messages in the message set.
  • S605 If there are multiple consecutively repeated session messages in the message set, acquire the target session message according to the multiple session messages.
  • the terminal can first obtain a message display template that matches the message content of multiple conversation messages; the message display template includes the following three areas: the top area, the middle area, and the bottom area, and each area displays An image that matches the content of the message.
  • the message type of the multiple conversation messages is the first type, that is, the message content of the multiple conversation messages does not contain keywords
  • the social client can directly obtain a default image template as the message display template.
  • the default image template includes three areas: the top area, the middle area, and the bottom area; and the image in the top area of the default image template can be a roof image used to represent the roof of a house, and the middle area of the default image template
  • the image of may be a floor image used to represent the floor of a house, and the image in the bottom area of the default image template may be a floor image used to represent the bottom of a house, as shown in FIG. 7A.
  • the message display template can be obtained in the following manner:
  • a message display template is configured for each keyword in advance; then the social client can obtain a matching message display template according to the keywords contained in the message content of multiple conversation messages.
  • the message display template can be obtained in the following manner:
  • the system template which contains the following three areas: the top area, the middle area, and the bottom area.
  • the images used to fill in each area in the system template can be obtained respectively.
  • the acquired images can be respectively filled into each area of the system template to obtain a message display template.
  • the image of can be an image used to represent the ingredients of the cake, such as a candle image used to represent the top of the cake, a background image used to represent the middle part of the cake, and a cake image used to represent the bottom of the cake. Then, the first bread image, the background image, and the second bread image can be sequentially filled into the top area, the middle area, and the bottom area to obtain a message display template, as shown in FIG. 7B.
  • the image may be an image used to represent the components of the burger, such as a first bun image used to represent the top of the burger, a background image used to represent the middle part of the burger, and a second bun image used to represent the bottom of the burger. Then, the first bread image, the background image, and the second bread image can be sequentially filled into the top area, the middle area, and the bottom area to obtain a message display template, as shown in FIG. 7C.
  • the embodiment of the present application can realize the configuration of the message display template style, so that the message display template can dynamically respond to various operation scenarios; for example, for the happy birthday operation scenario, the message display template
  • the style can be visually expressed as a cake layer.
  • the style of the message display template can reveal the relevant information of the target company.
  • the embodiment of the present application fills in each area in the system template to generate a message display template, which can effectively improve the versatility of the system template.
  • multiple conversation messages can be filled into the middle area of the message display template to obtain an image message; and the image message is added to the target conversation message.
  • the social client can fill multiple conversation messages in the middle area of the message display template to obtain an image message in the following manner:
  • the target conversation message may only include the image message.
  • the social client may also fill multiple conversation messages in the middle area of the message display template in the following manner to obtain image messages:
  • the social client can first select a preset number of conversation messages from multiple conversation messages in the order of message reception time from morning to night; then fill the selected conversation messages in the middle of the message display template Area, get the image message.
  • the target conversation message may only include the image message.
  • the social client can also perform folding processing on the unselected conversation messages among the multiple conversation messages to obtain the second folding prompt; and add the second folding prompt to the target conversation message; that is, this implementation mode
  • the target conversation message below may include an image message and a second folding prompt. Still take the message display template shown in FIG. 7C as an example, and set the preset number to 5; if the number of multiple conversation messages is 13, then the schematic diagram of the target conversation message in this implementation mode can be seen in 2 in Fig. 7E As shown in the figure.
  • FIG. 7E is only an exemplary display of the display form of the second folding prompt, and is not limited to it; the display form of the second folding prompt can also refer to the folding message or folding shown in FIGS. 3A-3F The display form of the logo.
  • the social client can also select one of the above two implementation modes according to the message types of the multiple conversation messages to complete the message filling of the multiple conversation messages.
  • the message type of the multiple session messages is the first type
  • one of the above two implementation modes can be selected to complete the filling of the multiple session messages.
  • the message type of multiple conversation messages is the second type
  • multiple types of keywords can be set in the embodiment of the present application, such as $9 type keywords, corporate promotion type keywords, etc.; then Correspondingly, the second type can also be subdivided into the following types according to different types of keywords: blessing message type, promotion message type, and so on.
  • the message content of the conversation message corresponding to the blessing message type includes the keyword of the curse type
  • the message content of the conversation message corresponding to the promotion message type includes the keyword of the enterprise promotion type.
  • the social client can also select different implementation methods for different second types to complete the filling of the multiple conversation messages.
  • the type of the second type can be identified first according to the types of keywords contained in the message content of multiple conversation messages.
  • the second type is a blessing message type
  • the first implementation method to complete the filling of multiple conversation messages; you can directly fill all the multiple conversation messages into the message display template In the middle area of, get the image message; so that the master user can view all the continuously repeated conversation messages through the image message.
  • the second type is the promotion message type
  • the promotion effect can usually be achieved when a certain number of conversation messages are continuously displayed in the conversation interface; therefore, the second implementation method is selected to complete the filling of multiple conversation messages; A preset number of conversation messages are selected from the conversation messages to fill in the middle area of the message display template to obtain an image message; this can achieve the promotion effect and avoid the screen refresh effect caused by displaying multiple repeated messages.
  • S606 Use the target conversation message to replace multiple consecutively repeated conversation messages in the message set, and display the replaced message set in the conversation interface of the target conversation.
  • the target conversation message can be displayed on the conversation interface.
  • the target conversation message here may include: an image message, or an image message and a second folding prompt. Since the message set of the target conversation is acquired in real time, the conversation messages contained in the message set may be updated in real time. Therefore, in an application scenario, if the social client is in the process of sequentially displaying each message in the message set on the conversation interface, it detects that there are multiple consecutive and repeated conversation messages in the message set and obtains the target conversation according to the multiple conversation messages. If there is a message, the social client can directly execute step S606, so that the target conversation message can be directly used to replace multiple consecutive conversation messages in the conversation interface.
  • the corresponding display schematic diagram of the target conversation message can be shown in FIG. 7F.
  • the social client can After the conversation interface is displayed, the target conversation message is directly displayed; still taking the target conversation message only containing image messages, and the message content of multiple conversation messages contains the keyword "hamburger" as an example, the corresponding target conversation message display diagram can be See Figure 7G.
  • the embodiment of the present application can recombine the message content of multiple conversation messages for visual redrawing; by displaying more visually expressive in the conversation interface Image messages can effectively enhance the interactive atmosphere of the target conversation, and stimulate users in the target conversation to add a boost to the continuous repetition of multiple conversation messages, thereby increasing the activity of the target conversation.
  • this embodiment of the application may also set a message easter egg reward , So that when the number of consecutively repeated multiple session messages is greater than the number threshold, the message sending user corresponding to each session message in the multiple session messages can get corresponding resource rewards.
  • the social client can also obtain the corresponding master user The amount of electronic resources received.
  • the amount of electronic resource withdrawal is calculated based on the total amount of electronic resources issued by the resource issuing user for multiple conversation messages;
  • the resource issuing user here can be any user, for example, if the message type of the multiple conversation messages is For the blessing message type, the resource issuing user may be the target user who is blessed in the target conversation; for another example, if the message type of multiple conversation messages is the promotion message type, the resource issuing user may be the target enterprise.
  • the social client can switch from the conversation interface to the resource withdrawal interface, and display the amount of electronic resource withdrawal and the user ID of the resource issuing user in the resource withdrawal interface.
  • the schematic diagram of switching from the conversation interface to display the resource receiving interface can be seen in Figure 7H.
  • the social client may also display a message sending button 71 at the display position of the image message. If the social client detects the triggering operation of the message sending button 71 by the master user, it can copy multiple conversation messages to obtain a new conversation message. And can directly display the new conversation message in the image message; or if the image message already contains a preset number of conversation messages, the second folding prompt can be updated with the new conversation message to realize the folding display of the new conversation message ;
  • the update method can refer to the update method of the first fold prompt mentioned above, which will not be repeated here. Take the direct display of a new conversation message in an image message as an example.
  • the master user can click the message sending button 71 to trigger the social client to send a message as A new conversation message of "Hamburg, you deserve it!, the new conversation message can be displayed in the image message at this time, as shown in FIG. 7I.
  • the master user can click the message sending button 71 to trigger the social client to send a message with the content of "Happy birthday [cake] [Cake][cake]", the new conversation message can be displayed in the image message at this time, as shown in Figure 7J.
  • the host user can also manually enter the message content in the message input area 72 in the conversation interface; in this case, the social client can obtain the message content input by the host user in the message input area, according to the acquisition
  • the received message content generates a new conversation message; if the obtained message content is the same as the message content of multiple conversation messages, the new conversation message is displayed in the image message.
  • the social client may also support the target conversation message to be shared to other users in the form of a picture.
  • the host user wants to share the target conversation message with other users in the form of a picture, he can perform the sharing operation on the target conversation message; accordingly, if the social client detects the sharing of the target conversation message Operation, the shared picture can be generated according to the target conversation message.
  • the sharing operation may include any one of the following: detection of an operation instructing to share the user’s voice of the target conversation message, or detection of a long-press operation of a certain physical button in the terminal, or detection of a target conversation message Click or press the message sharing button 73; here, the message sharing button 73 is output to the conversation interface when the social client detects that the target conversation message is triggered, as shown in FIG. 7K.
  • the social client can directly use the target conversation message to generate a shared picture.
  • the social client may first obtain the blessed target when generating a shared picture according to the target conversation message The user ID of the user; then based on the user ID of the target user and the image message, a shared picture is generated. After generating the shared picture, you can switch from the conversation interface to the sharing interface, and display the shared picture in the sharing interface, as shown in Figure 7L.
  • the sharing interface may also include a user selection area 74, a picture sharing button 75, and a picture editing button 76.
  • the master user can select the user who receives the shared picture from the user selection area 74, and then click the picture sharing button 75 to trigger the social client to send the shared picture to the user selected by the master user.
  • the master user can also edit the shared picture through the picture editing button 76, and send the edited shared picture to other users.
  • the embodiment of the present application may generate image messages based on the multiple session messages and images matching the multiple session messages when there are multiple consecutively repeated session messages in the message set of the target session; and use the image message to replace the display in the session interface Multiple consecutive and repeated conversation messages in the message set. This can enrich the display form of multiple consecutively repeated conversation messages, effectively reduce the boring screen effect caused by directly displaying multiple conversation messages, enrich the message display methods of social clients, and effectively increase the user stickiness of social clients .
  • the embodiment of the present application also proposes the social client as shown in FIG. 8A.
  • the social client in the embodiment of the present application may at least include the following functional components: a chat window component 81, a message caching component 82, a message processing component 83, and so on.
  • the chat window component 81 is a component that can interact with the user, record each message in the conversation, and draw and display the conversation interface.
  • the chat window component 81 may be a common chat window component (All In One, AIO); the so-called AIO is a chat window component shared by different sessions.
  • the social client 81 can regard the user's input, click operation and other behavior habits detected by the AIO in different sessions as consistent, so as to provide the user with a unified interactive experience.
  • the message caching component 112 is a component that can read each message of the target conversation from the chat window component, and cache the read messages.
  • the message processing component 83 is a component formed by the abstract model of a repeated message processor. It is mainly used to take each message cached in the message cache component 82 as input, and perform internal calculations on multiple consecutively repeated conversation messages. The partial folding or merging process is performed, and the target conversation message generated by the folding or merging process is used to replace the original continuously repeated multiple conversation messages, so that the chat window component 81 displays the locally generated target conversation message on the conversation interface.
  • this embodiment of the present application adds an abstract model of a repeated message processor, and uses the abstract model as a message processing component 83 to be built in the social client; this eliminates the need to modify the server.
  • the code logic of the message cache component 82 in the social client only the user interface (UI) layer needs to extend the code logic to display the target conversation message, and the social client can detect multiple consecutive repeated conversations. Messages, and the function of folding or merging multiple consecutively repeated conversation messages. It can be seen that the embodiment of the present application implements the folding or combined display of conversation messages by adding a message processing component 83 to the social client, which can reduce code logic modification to a certain extent, and can effectively save labor costs.
  • the social client When the user wants to view the conversation message of a target conversation, he can open the conversation interface of the target conversation to enter the chat window; correspondingly, if the social client detects the user’s opening operation for the conversation interface of the target conversation, it can go through the steps s80 calls the internal message cache component 82 to read the message set of the target conversation from the chat window component 81; each message in the message set is pushed to the chat window component 81 by the server. Then, the social client can pass the message set as input to the message processing component 83 through step s81.
  • the message processing component 83 can traverse the message set through step s82 and detect whether there are continuously repeated multiple session messages in the message set; in actual implementation, it can detect whether there are N or N continuously repeated messages in the message set.
  • the first folding prompt is used to replace part of the folded conversation messages in the message set to obtain a list of messages to be displayed; and through step s85, the list of messages to be displayed is sent to the chat window component 81.
  • the chat window component 81 can sequentially traverse and display each message in the message list to be displayed in the conversation interface through step s86; if it traverses to the first folding prompt in the message list to be displayed, it will be displayed in the style of folding prompt The message.
  • the social client may first cache the new session message in the message set through the message caching component 82 in step s87 to update the message set, thereby ensuring that the message caching component 82 The cached message set completely contains all messages of the target conversation. Then, in step s88, the message cache component 82 transmits the new session message to the message processing component 83; correspondingly, after receiving the new session message, the message processing component 83 can use the new session message to update the pending message in step s89.
  • an implementation manner of updating the list of messages to be displayed with a new conversation message may be: if the last message in the list of messages to be displayed except for the system prompt message is the first folding prompt, then it is detected whether the new conversation message is the same as the collapsed message. The conversation message is repeated; if it is repeated, the first collapsed prompt is updated with the new conversation message to update the list of messages to be displayed; if it is not repeated, the new conversation message is added to the end of the list of messages to be displayed to update List of messages to be displayed.
  • the to-be-displayed message list check whether there are consecutive N-1 conversation messages that are repeated with the new conversation message in the order from back to front. ; If yes, perform folding processing on the N-1 conversation messages and part of the new conversation messages to obtain the first folding prompt, and add the first folding prompt to the list of messages to be displayed to update the list of messages to be displayed ; If not, add the new conversation message to the end of the list of messages to be displayed to update the list of messages to be displayed.
  • the social client can also detect the message types of multiple conversation messages; based on this, the embodiment of the present application can also build a type determination component in the social client 84.
  • the message processing component 83 may send the multiple conversation messages to the type determination component 84.
  • the type determination component 84 can determine the message types of the multiple conversation messages by keyword matching, and the message types may include the first type or the second type; and then the multiple conversation messages The message type of is fed back to the message processing component 82.
  • steps s83-s85 can be executed.
  • the message type is the second type
  • an image message can be generated based on multiple conversation messages.
  • the image message contains all the continuously repeated conversation messages as an example; then the image message can be used to replace the continuous repeated multiple conversations in the message set Message to obtain a list of messages to be displayed; then the list of messages to be displayed is sent to the chat window component 81 through step s86.
  • the chat window component 81 can use the display logic shown in FIG. 8C to sequentially traverse and display each message in the message list to be displayed in the conversation interface; in actual implementation, see FIG. 8C, the chat window component 81
  • the steps of displaying each message in the message list to be displayed may include:
  • Step 801 Obtain a list of messages to be displayed
  • Step 802 Traverse the list of messages to be displayed
  • Step 803 Determine whether the currently traversed message is a message other than the first folding prompt and image message, if not, go to step 804; if yes, go to step 806;
  • Step 804 Determine whether the currently traversed message is the first folding prompt, if not, go to step 805; if yes, go to step 807;
  • Step 805 Display the message in the style of an image message
  • Step 806 directly display the message
  • Step 807 Display the message in a folding prompt style.
  • the message display logic of the embodiment of the present application can display a part of the continuously repeated session messages when there are continuously repeated session messages in the target session, and the number of continuously repeated session messages reaches the preset number (N pieces).
  • N pieces the preset number
  • an embodiment of the present application also discloses a message display device.
  • the message display device may be a computer program (including program code) running in a terminal.
  • the message display device can execute the method shown in FIG. 2 or FIG. 6. Referring to Figure 9, the message display device can run the following units:
  • the display unit 901 is configured to display the conversation interface of the target conversation
  • the obtaining unit 902 is configured to obtain the message set of the target conversation
  • the display unit 901 is further configured to obtain a target session message according to the multiple session messages if there are multiple consecutively repeated session messages in the message set;
  • the display unit 901 is further configured to use the target conversation message to replace multiple consecutively repeated conversation messages in the message set, and display the replaced message set on the conversation interface of the target conversation.
  • the display unit 901 when the display unit 901 is configured to obtain a target conversation message according to the multiple conversation messages, it may select a reference conversation message from the multiple conversation messages;
  • the reference conversation message and the first folding prompt are used to form a target conversation message.
  • each session message in the message set has a message receiving time; correspondingly, when the display unit 901 is configured to select a reference session message from the plurality of session messages, Among the conversation messages, the conversation message with the earliest message reception time is selected as the reference conversation message; or,
  • a preset number of conversation messages are sequentially selected as reference conversation messages in the order of message reception time from morning to night.
  • the display unit 901 when the display unit 901 is configured to select a reference conversation message from the plurality of conversation messages, if there is a conversation message sent by a master user in the plurality of conversation messages, the master The session message sent by the state user is used as the reference session message;
  • the target session is established by a social client
  • the master user refers to a user corresponding to a social account logged in to the social client.
  • the first folding prompt includes a folding identifier; correspondingly, the display unit 901 is configured to perform folding processing on the remaining conversation messages excluding the reference conversation message among the plurality of conversation messages to obtain When the first fold is prompted, determine the remaining number of remaining session messages in the plurality of session messages except for the reference session message;
  • a folding identifier is generated.
  • the first folding prompt includes a folding message; correspondingly, the display unit 901 is configured to perform folding processing on the remaining conversation messages except the reference conversation message among the plurality of conversation messages to obtain When the first fold is prompted, the prompt content is generated according to the remaining number of the remaining conversation messages other than the reference conversation message among the plurality of conversation messages, and the message content of the remaining conversation messages; the prompt content is used to prompt existence The remaining number of users continuously sent the message content, or used to prompt that there is a continuous remaining number of messages that contain the message content;
  • the user identification includes at least one of the following: a user name and a user mark image;
  • a folded message is generated.
  • the folded message includes a message link for triggering the display of the remaining message; correspondingly, the display unit 901 may also be configured to:
  • a message display window is output in the conversation interface, and the remaining conversation messages and the user identification of the corresponding message sender are displayed in the message display window.
  • the target conversation message includes an image message
  • the image message is a message generated based on the plurality of conversation messages and an image matching the message content of the plurality of conversation messages
  • the display unit 901 is configured to obtain a message display template that matches the message content of the multiple conversation messages when obtaining the target conversation message according to the multiple conversation messages;
  • the message display template includes the following three areas: top Area, middle area and bottom area, and images matching the content of the message are displayed in each area;
  • each session message in the message set has a message receiving time; correspondingly, the display unit 901 is configured to fill the multiple session messages in the middle area of the message display template to obtain
  • a preset number of conversation messages are sequentially selected from the plurality of conversation messages in the order of message reception time from morning to night; the selected conversation messages are filled into the middle area of the message display template to obtain Image message
  • the display unit 901 may also be configured to: perform folding processing on the unselected conversation messages among the plurality of conversation messages to obtain a second folding prompt; and add the second folding prompt to the target conversation message middle.
  • the display unit 901 may also be configured as:
  • the multiple conversation messages include conversation messages sent by the master user; correspondingly, the acquiring unit 902 may also be configured to: if the number of the multiple conversation messages is greater than the number threshold, acquire all the conversation messages.
  • the amount of electronic resources received by the host 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 conversation messages;
  • the display unit 901 may also be configured to: The conversation interface is switched to the resource receiving interface, and the electronic resource receiving amount and the user identification of the resource issuing user are displayed in the resource receiving interface.
  • the display unit 901 may also be configured as:
  • the message options of each displayed conversation message are output in the conversation interface; the message options are used to select the displayed conversation information;
  • the displayed conversation message corresponding to the selected message option is taken as the collapsed conversation message
  • a collapsed message is created according to the collapsed conversation message, and the collapsed message is used in the conversation interface to replace and display the collapsed conversation message.
  • the display unit 901 is configured to, if a selection completion event is detected, create a collapsed message based on the collapsed conversation message, and if a selection completion event is detected, output a message naming window;
  • the user ID of the sending user is generated according to the custom message name and the message of the collapsed session message, and a collapsed message is generated.
  • the display unit 901 may be further configured to: when the collapse message is triggered, output an operation option window related to the collapse message, and the operation option window includes at least one of the following operation options : Copy option, forward option, reply option, favorite option and selection option;
  • the message display device may further include a processing unit 903, which may be configured to: determine the selected operation option from the operation option window according to the selection operation detected in the operation option window; The selected operation option performs a corresponding operation on the folding message.
  • a processing unit 903 may be configured to: determine the selected operation option from the operation option window according to the selection operation detected in the operation option window; The selected operation option performs a corresponding operation on the folding message.
  • the message set includes at least one of the following messages: conversational messages and non-conversational messages; correspondingly, the processing unit 903 may also be configured to:
  • steps S201 and S203-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 obtaining unit 902 shown in FIG. 9; for another example, as shown in FIG.
  • the steps involved in step S601 "display the conversation interface of the target conversation” and steps S605-S606 can be performed by the display unit 901 shown in FIG. 9, and the steps involved in step S601 "obtain the message set of the target conversation" can be performed by
  • the acquiring unit 902 shown in FIG. 9 is executed, and steps S602-S604 may be executed by the processing unit 903 shown in FIG. 9.
  • Each unit in the message display device shown in FIG. 9 can be separately or completely combined into one or several other units to form, or some of the units can be further divided into functionally smaller units. It is composed of units, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application.
  • the above-mentioned units are divided based on logical functions. In practical applications, the function of one unit may also be realized by multiple units, or the functions of multiple units may be realized by one unit. In the embodiment of the present application, the message-based display device may also include other units. In practical applications, these functions may also be implemented with the assistance of other units, and may be implemented by multiple units in cooperation.
  • the embodiments of the present application can be implemented in processing elements and storage elements including central processing unit (CPU, Central Processing Unit), random access storage medium (RAM, Random Access Memory), read-only storage medium (ROM, Read-Only Memory), etc.
  • a general-purpose computing device such as a computer runs a computer program (including program code) capable of executing the steps involved in the corresponding method shown in FIG. 2 or FIG. 6 to construct the message display device as shown in FIG. 9 , And to implement the message display method of the embodiment of the present application.
  • the computer program may be recorded on, for example, a computer-readable recording medium, and loaded into the above-mentioned computing device through the computer-readable recording medium, and run in it.
  • the embodiment of the application may obtain the target session message according to the multiple session messages when there are multiple consecutively repeated session messages in the message set of the target session; and replace the multiple consecutively repeated session messages in the message set with the target session message, and then The replaced message set is displayed in the conversation interface of the target conversation.
  • the social client can use the target conversation message to replace the display in the conversation interface for multiple consecutive repeated conversation messages; this can effectively reduce the boring brush caused by directly displaying multiple conversation messages.
  • the screen effect enriches the message display methods of the social client and can effectively increase the user stickiness of the social client.
  • an embodiment of the present application also provides a terminal.
  • 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 may be connected by a bus or other methods.
  • the social client mentioned in the foregoing embodiment may also be running in the terminal.
  • the computer storage medium 1004 may be stored in the memory of the terminal.
  • the computer storage medium 1004 is used to store a computer program.
  • the computer program includes program instructions.
  • the processor 1001 is configured to execute the program instructions stored in the computer storage medium 1004. .
  • the processor 1001 (or Central Processing Unit (CPU)) is the computing core and control core of the terminal.
  • the processor 1001 described in the embodiment of the present application may be configured to perform a series of message display processing, including: displaying the conversation interface of the target conversation, and obtaining the message set of the target conversation; If there are multiple consecutively repeated session messages in the message set, the target session message is obtained according to the multiple session messages; the target session message is used to replace the continuously repeated multiple session messages in the message set, and the target session message is The replaced message set is displayed in the conversation interface of the conversation, and so on.
  • the embodiment of the present application also provides a computer storage medium (Memory).
  • the computer storage medium is a memory device in a terminal for storing programs and data; for example, a computer storage medium can be used for storing program code instructions of a social client.
  • the computer storage medium herein may include a built-in storage medium in the terminal, and of course, may also include an extended storage medium supported by the terminal.
  • the computer storage medium provides storage space, and the storage space stores the operating system of the terminal.
  • one or more instructions suitable for being loaded and executed by the processor 1001 are stored in the storage space, and these instructions may be one or more computer programs (including program codes).
  • the computer storage medium here can be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk memory; optionally, it can also be at least one located far away from the aforementioned processor.
  • Computer storage media can be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk memory; optionally, it can also be at least one located far away from the aforementioned processor.
  • the processor 1001 can load and execute one or more instructions on the social client stored in the computer storage medium to implement the corresponding steps of the method in the above-mentioned message display method embodiment; in implementation, the computer stores One or more instructions in the medium are loaded by the processor 1001 and execute the following steps:
  • the target conversation message is used to replace the continuously repeated multiple conversation messages in the message set, and the replaced message set is displayed in the conversation interface of the target conversation.
  • the embodiment of the application may obtain the target session message according to the multiple session messages when there are multiple consecutively repeated session messages in the message set of the target session; and replace the multiple consecutively repeated session messages in the message set with the target session message, and then The replaced message set is displayed in the conversation interface of the target conversation.
  • the social client can use the target conversation message to replace the display in the conversation interface for multiple consecutive repeated conversation messages; this can effectively reduce the boring brush caused by directly displaying multiple conversation messages.
  • the screen effect enriches the message display methods of the social client and can effectively increase the user stickiness of the social client.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)
  • Document Processing Apparatus (AREA)

Abstract

本申请公开了一种消息显示方法、装置、终端及计算机可读存储介质,其中方法包括:显示目标会话的会话界面,并获取目标会话的消息集;若消息集中存在连续重复的多条会话消息,则根据所述多条会话消息获取目标会话消息;采用目标会话消息替换消息集中的连续重复的多条会话消息,并在目标会话的会话界面中显示替换后的消息集。

Description

消息显示方法、装置、终端及计算机可读存储介质
相关申请的交叉引用
本申请基于申请号为202010410263.5、申请日为2020年05月14日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本申请涉及互联网技术领域,涉及计算机技术领域,尤其涉及一种消息显示方法、一种消息显示装置、一种终端及一种计算机可读存储介质。
背景技术
随着互联网技术的发展,社交客户端逐渐受到了用户的广泛使用;所谓的社交客户端,是指通过网络实现用户和用户之间的信息交互的软件(Application,APP)。社交客户端可在用户和用户之间建立目标会话,以使得目标会话中的各个用户之间,可以通过该目标会话的会话界面进行信息交互。
相关技术中,社交客户端在获取到目标会话的消息集后,通常是直接在目标会话的会话界面中,依次显示消息集中的各条消息,消息显示方式较为单一,社交客户端所在终端的图形处理资源的利用率较低,同时,消息显示方式的单一使得人机交互次数少、社交客户端的用户黏度较低。
发明内容
本申请实施例提供了一种消息显示方法、装置、终端及计算机可读存储介质,能够提高终端图形处理资源的利用率及人机交互次数,从而有效提升终端内所运行的社交客户端的用户黏度。
本申请实施例提供了一种消息显示方法,所述方法包括:
显示目标会话的会话界面,并获取所述目标会话的消息集;
若所述消息集中存在连续重复的多条会话消息,则根据所述多条会话消息获取目标会话消息;
采用所述目标会话消息替换所述消息集中的所述连续重复的多条会话消息,并在所述目标会话的会话界面中显示替换后的消息集。
本申请实施例提供了一种消息显示装置,所述装置包括:
显示单元,配置为显示目标会话的会话界面;
获取单元,配置为获取所述目标会话的消息集;
所述显示单元,还配置为若所述消息集中存在连续重复的多条会话消息,则根据所述多条会话消息获取目标会话消息;
所述显示单元,还配置为采用所述目标会话消息替换所述消息集中的所述连续重复的多条会话消息,并在所述目标会话的会话界面中显示替换后的消息集。
本申请实施例提供了一种终端,所述终端包括:
处理器和存储器,所述存储器中存储有至少一条程序代码,所述至少一条程序代码由所述处理器加载并执行以实现本申请实施例提供的消息显示方法。
本申请实施例提供了一种计算机可读存储介质,该计算机可读存储介质中存储有至少一条程序代码,该至少一条程序代码由处理器加载并执行以实现本申请实施例提供的消息显示方法。
本申请实施例可在目标会话的消息集中存在连续重复的多条会话消息时,根据多条会话消息获取目标会话消息;并采用目标会话消息替换消息集中的连续重复的多条会话消息,然后在目标会话的会话界面中显示替换后的消息集。可见在上述消息显示过程中,社交客户端针对连续重复的多条会话消息,可 在会话界面中采用目标会话消息进行替换显示;这样可有效减少因直接显示多条会话消息而带来的无趣刷屏效果,丰富了社交客户端的消息显示方式,提高了终端图形处理资源的利用率及人机交互次数,进而可有效提升社交客户端的用户黏度。
附图说明
图1是本申请实施例提供的一种通信会话系统的系统架构图;
图2是本申请实施例提供的一种消息显示方法的流程示意图;
图3A是本申请实施例提供的一种折叠消息的示意图;
图3B是本申请实施例提供的另一种折叠消息的示意图;
图3C是本申请实施例提供的另一种折叠消息的示意图;
图3D是本申请实施例提供的另一种折叠消息的示意图;
图3E是本申请实施例提供的另一种折叠消息的示意图;
图3F是本申请实施例提供的一种折叠标识的示意图;
图4A是本申请实施例提供的一种目标会话消息包含折叠消息和参考会话消息的显示示意图;
图4B是本申请实施例提供的另一种目标会话消息包含折叠消息和参考会话消息的显示示意图;
图4C是本申请实施例提供的一种显示新的第一会话消息的示意图;
图4D是本申请实施例提供的另一种显示新的第一会话消息的示意图;
图4E是本申请实施例提供的另一种显示新的第一会话消息的示意图;
图4F是本申请实施例提供的另一种显示新的第一会话消息的示意图;
图4G是本申请实施例提供的一种显示新的第二会话消息的示意图;
图4H是本申请实施例提供的一种显示剩余用户标识的示意图;
图4I是本申请实施例提供的一种显示剩余会话消息的示意图;
图4J是本申请实施例提供的另一种显示剩余会话消息的示意图;
图4K是本申请实施例提供的另一种显示剩余会话消息的示意图;
图4L是本申请实施例提供的一种显示剩余会话消息后再次对剩余会话消息进行折叠显示的示意图;
图5A是本申请实施例提供的一种输出消息选项的示意图;
图5B是本申请实施例提供的另一种输出消息选项的示意图;
图5C是本申请实施例提供的一种输出收折消息的示意图;
图5D是本申请实施例提供的另一种输出收折消息的示意图;
图5E是本申请实施例提供的一种显示被收折的会话消息的示意图;
图5F是本申请实施例提供的另一种显示被收折的会话消息的示意图;
图5G是本申请实施例提供的一种输出收折消息的操作选项窗口的示意图;
图6是本申请实施例提供的一种消息显示方法的流程示意图;
图7A是本申请实施例提供的一种默认图像模板的示意图;
图7B是本申请实施例提供的一种生成消息展示模板的示意图;
图7C是本申请实施例提供的另一种生成消息展示模板的示意图;
图7D是本申请实施例提供的一种将会话消息填充消息展示模板中的示意图;
图7E是本申请实施例提供的一种目标会话消息包含图像消息和第二折叠提示的示意图;
图7F是本申请实施例提供的一种目标会话消息包含图像消息的显示示意图;
图7G是本申请实施例提供的一种目标会话消息包含图像消息的显示示意图;
图7H是本申请实施例提供的一种从会话界面切换至资源领取界面的示意图;
图7I是本申请实施例提供的一种在目标会话消息所包含的图像消息中显示新的会话消息的示意图;
图7J是本申请实施例提供的一种在目标会话消息所包含的图像消息中显示新的会话消息的示意图;
图7K是本申请实施例提供的一种输出消息分享按钮的示意图;
图7L是本申请实施例提供的一种从会话界面切换至分享界面的示意图;
图8A是本申请实施例提供的一种社交客户端的结构示意图;
图8B是本申请实施例提供的一种消息显示方法的流程示意图;
图8C是本申请实施例提供的一种消息显示逻辑的示意图;
图9是本申请实施例提供的一种消息显示装置的结构示意图;
图10是本申请实施例提供的一种终端的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。
本申请实施例提出了一种消息显示方案以及相应的通信会话系统,以丰富社交客户端的消息显示方式,提高终端图形处理资源的利用率及人机交互次数,以及提升社交客户端的用户黏度。参见图1所示,本申请实施例所提出的通信会话系统可包括:至少两个社交客户端11以及服务器12。其中,社交客户端11是指通过网络实现用户和用户之间的信息交互的软件;该社交客户端11可包括以下至少一种:微信、企业微信、腾讯QQ等即时通讯客户端,微博、博客等信息交流类客户端,等等;所谓的即时通讯是指一种允许两人或多人使用网络即时地传递文字、档案、语音等信息以及音视频交流的终端服务。该社交客户端11可运行于任一终端中,此处的终端可包括但不限于:智能手机、膝上型计算机以及平板电脑等便携式设备,或者台式计算机等终端设备。服务器12是指可在至少两个社交客户端11之间建立通信会话,并为各个社交客户端11提供数据存储、消息推送等多项服务的设备;其可以包括但不限于:数据服务器、web服务器、应用服务器、云服务器,等等。应理解的是,在物理部署服务器12时,可将服务器部署为一个独立的服务设备,也可以将服务器12部署为由多个服务设备共同构成的集群设备,本申请实施例对此不作限定。
在实现中,本申请实施例所提出的消息显示方案可由上述通信会话系统中的任一社交客户端11执行,或者由运行任一社交客户端11的终端设备执行;为便于阐述,本申请实施例以任一社交客户端11执行该消息显示方案为例进行说明。在实际应用中,该消息显示方案适用于大量的连续重复消息的会话场景;例如,目标会话中的各用户因回复某一条公告类消息而连续发送“收到”的会话场景;又如,目标会话中的各用户因对某用户表达生日祝福而连续发送“生日快乐”的会话场景;再如,目标会话中的各用户因推广某企业而连续发送推广消息(如“汉堡,你值得拥有”等)的会话场景,等等。其中,该消息显示方案的大致原理如下:
服务器12可向社交客户端11推送关于目标会话的各种消息,以使得社交客户端11可在会话界面中显示目标会话的各种消息,便于用户查看。当目标会话中出现连续重复的会话消息,且连续重复的会话消息的数量大于预设数量时,社交客户端11可根据连续重复的多条会话消息获取目标会话消息。在一种实施方式中,目标会话消息可包括参考会话消息和第一折叠提示。其中,参考会话消息是从多条会话消息中选取得到的;第一折叠提示是对多条会话消息中除参考会话消息以外的剩余会话消息进行折叠处理得到的,该第一折叠提示可包括折叠标识或者折叠消息;此处的折叠标识用于反映剩余会话消息的剩余数量,折叠消息可用于反映剩余会话消息的剩余数量、消息内容以及剩余会话消息的消息发送用户。再一种实施方式中,目标会话消息可以包括图像消息。其中,图像消息是根据多条会话消息以及与该多条会话消息的消息内容相匹配的图像所生成的消息。再一种实施方式中,目标会话消息可包括:从多条会话消息的消息内容中所提取的关键内容,以及根据多条会话消息的数量所生成的数量标识。然后在会话界面中采用目标会话消息替换显示连续重复的多条会话消息。由此可见,本申请实施例所提出的消息显示方案可通过采用目标会话消息替换显示连续重复的多条会话消息,减少因连续显示多条重复的会话消息而造成的无趣刷屏效果;这样可以为用户提供良好的互动沟通氛围;并减少用户遗漏掉重要的会话消息的现象,进而可有效提升社交客户端11的用户黏度。
基于上述消息显示方案的相关描述,本申请实施例提出一种消息显示方法;该消息显示方法可以由上述所提及的通信会话系统中的任一社交客户端执行,也可由运行该社交客户端的终端执行,还可由终端及服务器协同实施。为便于阐述,本申请实施例以终端实施该消息显示方法,且以目标会话消息包括参考会话消息和第一折叠提示为例进行说明;请参见图2,该消息显示方法可包括以下步骤S201-S204:
S201,终端显示目标会话的会话界面。
这里,终端上设置有社交客户端,该社交客户端可以为用于消息通信的即时通讯客户端、用于媒体信息阅读、观看或发布的媒体信息客户端等。
在本申请实施例中,目标会话可由社交客户端建立;例如可以是由社交客户端所建立的任一单聊会话,或者由社交客户端所建立的任一群组会话,对此不作限定。所谓的单聊会话是指由两个用户所构成的会话,群组会话是指由三个或三个以上的用户所构成的会话。在实现中,社交客户端可检测是否存在针对目标会话的会话界面的显示触发操作;若存在,则可显示目标会话的会话界面。
S202,获取目标会话的消息集。
在一些实施例中,目标会话的消息集中可包括至少一种消息:会话消息和非会话消息。其中,会话消息是指目标会话中的各用户通过会话界面所发送的消息;例如可包括以下至少一种:目标会话中的主人态用户所发送的消息,以及客人态用户所发送的消息;所谓的主人态用户是指登录社交客户端的社交账号所对应的用户,即登录用户;客人态用户则是指目标会话中除主人态用户以外的用户,也即非登录用户。相应的,非会话消息则是指消息集中除会话消息以外的消息;其可包括但不限于:公告通知消息、系统提示消息,等等。其中,公告通知消息是指目标会话中的用户通过社交客户端所提供的公告功能,在目标会话中所发表的消息,如群公告消息。系统提示消息是指服务器检测到目标会话存在信息变动而推送的消息;例如,当存在新用户加入目标会话而使得目标会话中新增了新用户的用户信息时,服务器所推送的关于新用户加入目标会话的提示信息;又如,当存在某用户(如用户A)退出目标会话而使得目标会话中减少了用户A的用户信息时,服务器所推送的关于用户A退出目标会话的提示信息;再如,当存在目标会话的会话名称(如群名称)被修改时,服务器所推送的关于会话名称被修改的提示信息,等等。
在实际实施时,消息集中的各条消息均可由服务器实时推送给社交客户端的;也就是说,消息集中的消息可实时更新。并且,消息集中的各消息均具有消息接收时间,该消息接收时间是指社交客户端接收到服务器所推送的消息时的系统时间;消息集中的各消息可按照消息接收时间从早到晚的顺序进行排列。在获取到目标会话的消息集后,可检测该消息集中是否存在连续重复的多条会话消息;若消息集中存在连续重复的多条会话消息,则可执行步骤S203。若消息集中不存在连续重复的多条会话消息,则在会话界面中依次显示消息集中的各消息;在此情况下,社交客户端还可接收服务器所推送的消息以更新消息集,且继续实时检测更新后的消息集中是否存在连续重复的多条消息,并在检测到连续重复的多条会话消息后执行步骤S203。
在一些实施例中,终端可通过如下方式检测消息集中是否存在连续重复的多条会话消息:
终端直接遍历检测消息集中是否存在连续重复的多条会话消息。在实际实施时,可依次遍历消息集中除第一条消息以外的各条消息;若当前遍历的消息为会话消息,且当前遍历消息的消息内容与上一条消息的消息内容相同,则可对目标会话的重复计数执行加一操作,以更新重复计数;此处的重复计数用于确定连续重复的会话消息的数量。若当前遍历的消息为会话消息且当前遍历消息的消息内容与上一条消息的消息内容不相同,或者当前遍历的消息为非会话消息,则将重复计数更新为无效数值(如数值0)。当消息集中的各条消息均被遍历,则结束遍历并对更新后的重复计数执行加一操作,得到消息集中连续重复的会话消息的数量。若连续重复的会话消息的数量大于或等于预设数量,则可确定消息集中存在连续重复的多条会话消息;若连续重复的会话消息的数量小于预设数量,则可确定消息集中不存在连续重复的多条会话消息。其中,预设数量可根据经验值或者业务需求设置;例如可设置预设数量为5。需要说明的是,此实施方式中所提及的上一条消息是指消息集中排列位置位于当前遍历的消息的排列位置之前,且与当前遍历的消息的排列位置相邻的消息。
举例来说,设预设数量为5,且设消息集依次包括如下消息:“收到”“收到”“××用户加入目标会话”“收到”“收到”“收到”。那么,可先遍历第二条消息,由于第二条消息为会话消息且第二条消息的消息内容与上一条消息(即第一条消息)的消息内容相同,因此可对重复计数执行加一操作,使得重复计数从0更新为1。接着可遍历第三条消息,由于第三条消息为系统提示消息,因此可将重复计数从1更新为0。接着再遍历第四条消息,由于第四条消息为会话消息且第四条消息的消息内容与上一条消息(即第三条消息)的消息内容不相同,因此可将重复计数更新为0。再遍历第五条消息,由于第五条消息为会话消息且第五条消息的消息内容与上一条消息(即第四条消息)的消息内容相同,因此可对重复计数执行加一操作,使得重复计数从0更新为1,以此类推。当消息集中的6条消息均被遍历,则可结束遍历,此时可得到更新后的重复计数为2。然后,可对更新后的重复计数(2)执行加一操作,得到消息集中连续重复的会话消息的数量为3;由于连续重复的会话消息的数量(3)小于预设数量(5),因此可确定消息集中不存在连续重复的多条会话消息。
在一些实施例中,终端可通过如下方式检测消息集中是否存在连续重复的多条会话消息:
终端采用计数隔离的方式来检测消息集中是否存在连续重复的多条会话消息;所谓的计数隔离的方式是指隔离消息集中的非会话消息,只对消息集中的会话消息进行遍历检测的方式。例如,可先从消息集中筛选出会话消息,并计算筛选出的会话消息中的连续重复的会话消息的数量。例如,可依次遍历筛选出的会话消息中除第一条会话消息以外的各条会话消息;若当前遍历的会话消息的消息内容与上一条会话消息的消息内容相同,则可对重复计数执行加一操作,以更新重复计数。若当前遍历的会话消息的消息内容与上一条会话消息的消息内容不相同,则可将重复计数更新为无效数值(如数值0)。当筛选出的各条会话消息均被遍历,则可结束遍历并对更新后的重复计数执行加一操作,计算得到筛选出的会话消息中连续重复的会话消息的数量。若计算得到的数量大于或等于预设数量,则可确定消息集中存在连续重复的多条会话消息;若计算得到的数量小于预设数量,则可确定消息集中不存在连续重复的多条会话消息。应理解的是,此实施方式中所提及的上一条会话消息是指筛选出的会话消息中排列位置位于当前遍历的会话消息的排列位置之前,且与当前遍历的会话消息的排列位置相邻的会话消息。
举例来说,仍设预设数量为5,且设消息集依次包括如下消息:“收到”“收到”“××用户加入目标会话”“收到”“收到”“收到”。那么,可先从消息集中筛选得到5条会话消息:“收到”“收到”“收到”“收到”“收到”。然后,计算筛选出的5条会话消息中连续重复的会话消息的数量。在实际实施时,可先遍历5条会话消息中的第二条会话消息,由于第二条会话消息的消息内容与上一条会话消息(即第一条会话消息)的消息内容相同,因此可对重复计数执行加一操作,使得重复计数从0更新为1。接着遍历5条会话消息中的第三条会话消息,由于第三条会话消息的消息内容与上一条会话消息(即第二条会话消息)的消息内容相同,因此可继续对重复计数执行加一操作,使得重复计数从1更新为2。接着再遍历5条会话消息中的第四条会话消息,由于第四条会话消息的消息内容与上一条会话消息(即第三条会话消息)的消息内容相同,因此可继续对重复计数执行加一操作,使得重复计数从2更新为3,以此类推。当5条会话消息均被遍历,则结束遍历,此时可得到更新后的重复计数为4。然后,可对更新后的重复计数执行加一操作,计算得到筛选出的5条会话消息中连续重复的会话消息的数量为5;由于计算得到的数量(5)等于数量阈值(5),因此可确定消息集中存在连续重复的多条会话消息。
基于本申请上述实施例,终端检测消息集中是否存在连续重复的多条会话消息时,通过只对消息集中的会话消息进行遍历检测,可实现对消息集中的非会话消息进行计数隔离;避免重复计数因受非会话消息影响而被清零,从而导致需要再次重新计数的问题;能够真正地使得连续重复的会话消息可以连续计数,从而提升检测结果的准确性。需要说明的是,上述检测消息集中是否存在连续重复的多条会话消息的例子,均是以消息内容只包含文字为例进行说明的;但在实际应用中,消息内容并不只局限于文字,可包括以下至少一种内容:文字、符号、表情,等等。当消息内容包含文字、符号、表情中的至少两种内容时,该消息内容所包含的各内容均参与识别;也就是说,本申请实施例可对消息内容所包含的文字(如中文字符)到符号(如空格)以及表情均进行识别。若出现一个内容不一致,则可认为消息内容不相同。可见本申请实施例对连续重复的会话消息的识别颗粒度较小,这样可有效提升检测结果的准确性。还需说明的是,本申请实施例对步骤S201和步骤S202的执行顺序不作限定。
S203,若消息集中存在连续重复的多条会话消息,则根据多条会话消息获取目标会话消息。
若消息集中存在连续重复的多条会话消息,则由于连续重复的多条会话消息的消息内容均是相同的。因此,为减少因在会话界面中直接显示这连续重复的多条会话消息而带来的无趣的刷屏效果,本申请实施例可根据多条会话消息获取参考会话消息及第一折叠提示作为目标会话消息,以实现对连续重复的部分会话消息进行折叠显示。
在实际实施时,根据多条会话消息获取目标会话消息可包括以下步骤s11-s13:
s11,从多条会话消息中选取参考会话消息。
在一种实施方式中,可从多条会话消息中随机选取一条会话消息或预设数量的会话消息作为参考会话消息;即在此实施方式下,参考会话消息是从多条会话消息中随机选取得到的一条或预设数量的会话消息。再一种实施方式中,由于消息集中的每条会话消息均具有消息接收时间,社交客户端通常是按照消息接收时间从早到晚的顺序依次显示各会话消息的;因此为了不打乱各会话消息在会话界面中的显示顺序,社交客户端还可从多条会话消息中,选取消息接收时间最早的会话消息作为参考会话 消息;即在此实施方式下,参考会话消息是多条会话消息中消息接收时间最早的会话消息。再一种实施方式中,也可从多条会话消息中,按照消息接收时间从早到晚的顺序依次选取预设数量的会话消息作为参考会话消息;即在此实施方式下,参考会话消息包括从多条会话消息中按照接收时间从早到晚的顺序依次选取的预设数量的会话消息。为便于阐述,后续均以参考会话消息包括从多条会话消息中按照接收时间从早到晚的顺序依次选取的预设数量的会话消息为例进行说明。
在一些实施例中,若多条会话消息中存在主人态用户所发送的会话消息,则还可将主人态用户所发送的会话消息作为参考会话消息;以避免后续社交客户端将主人态用户所发送的会话消息进行折叠,使得主人态用户所发送的会话消息可直接显示在会话界面中。这样可打造主人态用户参与消息刷屏时自己所发送的会话消息被稳定保留的用户体验,可便于主人态用户查看自己所发送的会话消息,提高人机交互次数以及社交客户端的用户黏度。
s12,对多条会话消息中除参考会话消息以外的剩余会话消息进行折叠处理,得到第一折叠提示。
由前述可知,第一折叠提示可包括折叠消息和折叠标识。那么相应的,当第一折叠提示包括折叠消息时,步骤s12的实施方式可以是:先根据多条会话消息中除参考会话消息以外的剩余会话消息的剩余数量,以及剩余会话消息的消息内容生成提示内容。其中,提示内容可用于提示存在剩余数量个用户连续发送了该消息内容,或者用于提示存在连续的剩余数量条消息包含了该消息内容。例如,设剩余会话消息的剩余数量为8且设剩余会话消息的消息内容为“收到”,则提示内容可以是“连续8个好友回复“收到””;或者,提示内容可以是“以下8条消息连续回复“收到””,等等。应理解的是,当消息内容所包含的内容(如文字、符号、表情等)较多时,社交客户端在执行步骤s12时,也可只根据多条会话消息中除参考会话消息以外的剩余会话消息的剩余数量,生成提示内容;在此情况下,提示内容可用于提示存在剩余数量个用户连续发送了与参考会话消息相同的消息,或者用于提示存在连续的剩余数量条消息与参考会话消息相同。或者,社交客户端在执行步骤s12时,也可根据多条会话消息中除参考会话消息以外的剩余会话消息的剩余数量、剩余会话消息的部分消息内容以及内容省略符号生成提示内容;该内容省略符号用于提示剩余会话消息的消息内容未完全显示。例如,设剩余会话消息的剩余数量为8且设剩余会话消息的消息内容为“收到,明天准时参加,晚到的有惩罚!哈哈哈哈哈哈,同意!”,则提示内容可以是“连续8个好友回复上述消息”;或者,提示内容可以是“以下8条消息连续回复“收到,明天准时参加…””;其中,“…”为内容省略符号。
除了生成提示内容之外,社交客户端还可获取剩余会话消息所对应的消息发送用户的用户标识。其中,用户标识包括以下至少一项:用户名称以及用户标记图像。此处的用户名称可包括但不限于:网络昵称(一种用户在社交网络中所使用的名称,如即时通讯客户端中的用户名称)、会话名称(一种用户在目标会话中所使用的备注名称),等等。用户标记图像可以是消息发送用户的用户头像。然后,社交客户端可根据获取到的用户标识和提示内容,生成折叠消息;可至少包括以下几种实施方式:
在一种实施方式中,可根据获取到的用户标识和提示内容,直接生成折叠消息。在实际实施时,若提示内容31用于提示存在连续的剩余数量条消息包含了消息内容,且用户标识32包括用户名称,则生成的折叠消息33的示意图可参见图3A中的第1幅图所示。若提示内容31用于提示存在剩余数量个用户连续发送了消息内容,且用户标识32包括用户标记图像,则生成的折叠消息33的示意图可参见图3A中的第2幅图或者第3幅图所示。应理解的是,本申请实施例只是示例性地采用图3A中的3幅图来表示折叠消息33的显示形态,并非穷举。可选的,针对图3A中的第2幅图或者第3幅图所示的折叠消息而言,社交客户端还可在折叠消息的显示区域处显示一个或多个消息发送按钮34,如图3B中的2幅图所示。若社交客户端检测到主人态用户针对任一消息发送按钮34的触发操作(如点击操作、按压操作等),则可复制多条会话消息的消息内容以生成一条新的会话消息,并将此新的会话消息发送至目标会话中。
再一种实施方式中,若获取到的用户标识的数量大于数量阈值,则为避免折叠消息在会话界面占据较大的显示面积;本申请实施例还可选择性地采用部分用户标识和提示内容生成折叠消息,以减少折叠消息的显示面积。在实际实施时,可先从获取到的用户标识中选取一个或多个用户标识作为待显示的用户标识;然后,根据待显示的用户标识、提示内容以及标识省略符号生成折叠消息;该标识省略符号用于提示获取到的用户标识未完全显示,且该标识省略符号可用于触发显示获取到的用户标识中未显示的剩余用户标识。其中,标识省略符号的显示形态可根据业务需求进行设置;例如可在折叠消息中采用“…”或“∨”表示标识省略符号35;相应的,折叠消息的示意图可参见图3C中的2幅 图所示。
再一种实施方式中,考虑到主人态用户可能存在查看剩余会话消息的需求,因此本申请实施例在根据获取到的用户标识和提示内容生成折叠消息时,还可在折叠消息中插入用于触发显示剩余消息的消息链接,以便于主人态用户后续可通过该消息链接查看剩余会话消息。在实际实施时,可采用获取到的用户标识、提示内容以及消息链接36,生成折叠消息;相应的,折叠消息的示意图可参见图3D中的左图所示。应理解的是,若获取到的用户标识的数量大于数量阈值,则也可先从获取到的用户标识中选取一个或多个用户标识作为待显示的用户标识;然后,根据待显示的用户标识、提示内容、标识省略符号以及消息链接36生成折叠消息。此处的提示内容可包含剩余会话消息的剩余数量、剩余会话消息的部分消息内容以及内容省略符号;或者包含剩余数量和完整的消息内容。以提示内容包括内容省略符号37为例,相应的折叠消息的示意图可参见图3D中的右图所示。
需要说明的是,由前述可知,本申请实施例在检测消息集中是否存在连续重复的多条会话消息时,是以会话消息为单位进行检测的;如果目标会话中存在同一个用户连续发送多条重复的会话消息,则也可对该用户所发送的多条会话消息进行折叠显示;在此情况下,折叠消息中所包含的用户标识可连续相同,如图3E所示。
当第一折叠提示包括折叠标识时,步骤s12的实施方式可以包括:
确定多条会话消息中除参考会话消息以外的剩余会话消息的剩余数量。然后,根据剩余会话消息的剩余数量,生成折叠标识。应理解的是,本申请实施例对折叠标识的显示形态不作限定;例如,该折叠标识38可以是剩余数量所对应的数值,如图3F中的左图所示;又如,该折叠标识38可以是采用剩余数量所对应的数值以及预设图画所构成的标识图像,如图3F中的右图所示,等等。
s13,采用参考会话消息和第一折叠提示,组成目标会话消息。
S204,采用目标会话消息替换消息集中的连续重复的多条会话消息,并在目标会话消息的会话界面中显示替换后的消息集。
由前述可知,本申请实施例所提及的步骤S201和S202并无先后顺序,且消息集是实时更新的。那么检测到消息集中存在连续重复的多条会话消息,并根据多条会话消息获取到目标会话消息的时间点可能是在显示目标会话的会话界面之前,也可以是在显示目标会话的会话界面之后。在一种应用场景下,若获取到目标会话消息的时间点是在显示目标会话的会话界面之前,则社交客户端在显示会话界面之前便可采用目标会话消息替换消息集中的连续重复的多条会话消息;在此应用场景下,社交客户端在显示会话界面之后,便可直接在会话界面中显示目标会话消息。再一种应用场景下,若获取到目标会话消息的时间点是在显示目标会话的会话界面之后,则社交客户端在显示目标会话的会话界面后,可实时地在会话界面中依次显示目标会话的消息集中的各条消息。
在一些实施例中,社交客户端在通过步骤S203得到目标会话消息后,可直接执行步骤S204;即可直接采用目标会话消息(即参考会话消息41以及第一折叠提示42)更新消息集中的多条会话消息,并在会话界面中显示更新后的消息集中的各条消息。此处的第一折叠提示42包含如图3A-图3E所示的任一种折叠消息,或者如图3F所示的折叠标识。以第一折叠提示42包含如图3D的左图所示的折叠消息为例,显示目标会话消息的示意图可参见图4A所示。由此可见,社交客户端在会话界面显示消息集中的各消息的过程中,通过采用此处理逻辑可实现只要检测到连续重复的多条会话消息,则可创建第一折叠提示并在会话界面中进行存量消息(即已显示的消息)和新的第一折叠提示的界面更新。
在另一些实施例中,社交客户端在通过步骤S203得到目标会话消息后,可继续在会话界面中依次显示消息集中的各条消息。并在检测到主人态用户退出并重新打开目标会话的会话界面的操作后,再执行步骤S204以使在重新显示的会话界面中直接显示目标会话消息(即参考会话消息41以及第一折叠提示42)。仍以第一折叠提示42包含如图3D的左图所示的折叠消息为例,显示目标会话消息的示意图可参见图4B所示。
在会话界面中显示了目标会话消息之后,社交客户端还可实时检测目标会话中是否存在新的第一会话消息。若检测到新的第一会话消息,则可检测第一会话消息是否与多条会话消息连续重复;若连续重复,则可将第一会话消息添加至多条会话消息中,并直接采用第一会话消息更新目标会话消息中的第一折叠提示。在实际实施时,若第一折叠提示包含折叠标识,则可直接对折叠标识中的数值执行加一操作,以更新折叠标识;若第一折叠提示包含折叠消息,则可对折叠消息中所包含的剩余数量执行加一操作,并将第一会话消息的消息发送用户的用户标识添加至折叠消息中。在一些实施例中,为 打造主人态用户参与刷屏的会话消息被稳定保留的用户体验;若连续重复,则可进一步检测新的会话消息的消息发送用户是主人态用户还是客人态用户。若是主人态用户,则可直接在会话界面中显示该第一会话消息43,如图4C所示;在此情况下,若社交客户端在接收到第一会话消息之后,再次接收到某客人态用户所发送的消息内容与多条会话消息的消息内容相同的第二会话消息,则由于第二会话消息和第一会话消息以及多条会话消息是连续重复的,因此可将第二会话消息添加至多条会话消息中,并将该采用第二会话消息更新第一折叠提示。若是客人态用户,则可采用第一会话消息更新第一折叠提示;以第一折叠提示包含折叠消息为例,采用第一会话消息更新折叠消息的示意图可参见图4D所示。如图4D所示,更新后的折叠消息包含了第一会话消息的消息发送用户的用户标识,且更新后的折叠消息中的提示内容所包含的剩余数量也发生了改变。
若未连续重复,则无论第一会话消息的消息发送用户是主人态用户还是客人态用户,社交客户端均可直接在会话界面中显示该第一会话消息,如图4E或图4F所示。并且,在未连续重复的情况下,若社交客户端在接收到第一会话消息之后,再次接收到消息内容与多条会话消息的消息内容相同的第二会话消息,则由于第一会话消息打断了第二会话消息和多条会话消息之间的连续性,因此可在会话界面中直接显示第二会话消息44,如图4G所示。在此情况下,社交客户端需在重新检测到与第二会话消息连续重复的多条会话消息后,根据重新检测到的多条会话消息获取新的目标会话消息,并在会话界面中采用该新的目标会话消息替换显示重新检测到的多条会话消息。
另外,当第一折叠提示包含折叠消息时;由前述步骤s12的相关描述以及图3A-图3E所示的折叠消息可知,折叠消息中可包括:用于触发显示获取到的用户标识中未显示的剩余用户标识的标识省略符号、以及用于触发显示剩余消息的消息链接等功能性组件。那么在显示目标会话消息中的折叠消息之后,主人态用户还可对该折叠消息中的标识省略符号执行触发操作,以触发社交客户端在会话界面中显示获取到的用户标识中未显示的剩余用户标识;相应的,社交客户端在检测到标识省略符号被触发时,可在会话界面中显示剩余用户标识。以图3C中的右图所示的折叠消息为例,触发显示剩余用户标识的示意图可参见图4H所示。
同理,主人态用户还可通过对折叠消息中的消息链接执行触发操作(如点击或按压消息链接的操作),以触发社交客户端显示剩余会话消息。在一种实现中,当折叠消息中的消息链接被触发时,社交客户端可在会话界面显示剩余会话消息以及对应的消息发送用户的用户标识。在实际实施时,由于本申请实施例是以参考会话消息包括从多条会话消息中按照接收时间从早到晚的顺序依次选取的预设数量的会话消息为例进行说明的,因此参考会话消息的消息接收时间必然早于剩余会话消息的消息接收时间。那么即使直接展开显示剩余会话消息,也并不会影响参考会话消息的显示顺序;因此社交客户端可按照消息接收时间从早到晚的顺序依次在会话界面中显示剩余会话消息以及对应的消息发送用户的用户标识,如图4I所示。在一些实施例中,当折叠消息中的消息链接被触发时,社交客户端可在会话界面中输出消息显示窗口45,并在消息显示窗口45中显示剩余会话消息以及对应的消息发送用户的用户标识;在实际实施时,社交客户端可按照消息接收时间从早到晚的顺序依次在消息显示窗口45中显示剩余会话消息以及对应的消息发送用户的用户标识,如图4J所示。
在实际应用中,选取参考会话消息时,也可将主人态用户发送的会话消息作为参考会话消息;在此情况下,主人态用户所发送的会话消息的消息接收时间可能会晚于部分剩余会话消息的消息接收时间,那么若直接展开显示剩余会话消息,则可能导致消息显示顺序错误。因此在此情况下,社交客户端可按照消息接收时间从早到晚的顺序依次在会话界面中显示连续重复的各条会话消息以及对应的消息发送用户的用户标识,从而实现剩余会话消息的显示,如图4K所示。还需要说明的是,社交客户端在显示剩余会话消息之后,若检测到主人态用户退出并重新打开目标会话的会话界面的操作,则社交客户端可再次根据多条会话消息获取目标会话消息并直接在会话界面中显示目标会话消息,从而实现再次对剩余会话消息进行折叠显示;以目标会话消息包含参考会话消息和折叠消息为例,其示意图可参见图4L所示。应理解的是,图4L只是采用从会话界面切换至主界面这一界面切换过程来示例性地表示主人态用户退出会话界面的示意图;并不对主人态用户退出会话界面这一操作进行限定。例如,主人态用户从会话界面切换至浏览器的网页界面,也可视为主人态用户退出了目标会话的会话界面。
本申请实施例可显示目标会话的会话界面,并在目标会话的消息集中存在连续重复的多条会话消息时,可在会话界面中采用参考会话消息及第一折叠提示替换显示连续重复的多条会话消息。由于参 考会话消息是从多条会话消息中选取得到的,因此参考会话消息的消息内容与多条会话消息的消息内容相同;通过显示参考会话消息,可保证消息内容的完整显示。并且,由于第一折叠提示是对多条会话消息中除参考会话消息以外的剩余会话消息进行折叠处理得到的;因此通过第一折叠提示替换显示剩余会话消息,可有效减少因显示多条会话消息而带来的刷屏效果。可见,通过显示参考会话消息和第一折叠提示,丰富了社交客户端的消息显示方式,提高了终端图形处理资源的利用率及人机交互次数,进而可有效提升社交客户端的用户黏度。
需说明的是,上述图2所示的申请实施例主要体现的是社交客户端可对连续重复的部分会话消息进行自动折叠显示;然而在实际应用中,社交客户端还可支持用户手动收折目标会话的会话界面中已显示的一条或多条会话消息,以方便用户后续对于消息的管理和查找。在一种应用场景下,若目标会话的消息集中存在连续重复的多条会话消息,且社交客户端通过步骤S203-S204对多条会话消息中除参考会话消息以外的剩余会话消息进行了自动折叠显示,则会话界面中已显示的会话消息可包括:消息集中除剩余会话消息以外的会话消息。再一种应用场景下,若目标会话的消息集中存在连续重复的多条会话消息,且多条会话消息中的剩余会话消息被触发展开显示,或者消息集中不存在连续重复的多条会话消息,则会话界面中已显示的会话消息可包括:消息集中的每条会话消息。为便于阐述,后续以会话界面中已显示的会话消息可包括:消息集中的每条会话消息为例进行说明。
在实际实施时,若主人态用户想要对会话界面中已显示的会话消息进行手动收折,则可向社交客户端输入针对会话界面中已显示的会话消息的选择触发事件;相应的,社交客户端若检测到针对会话界面中已显示的会话消息的选择触发事件,则可在会话界面中输出各已显示的会话消息的消息选项;该消息选项用于选择已显示的会话消息。在一种实施方式中,选择触发事件可包括:检测到会话界面被按压的事件;在此实施方式下,输出消息选项51的示意图可参见图5A所示。再一种实施方式中,社交客户端可为主人态用户提供选择触发按钮52;该选择触发按钮52可被点击或按压会话界面等触发操作进行触发显示。那么相应的选择触发事件可包括:检测到选择触发按钮52被触发的操作;在此实施方式下,输出消息选项51的示意图可参见图5B所示。
主人态用户可根据自己的实际需求对各会话消息的消息选项进行选择;相应的,社交客户端可根据针对会话界面中的消息选项的选择操作,将被选择的消息选项所对应的已显示的会话消息作为被收折的会话消息。待主人态用户选完消息选项后,可点击或按压会话界面中的选择结束按钮53以向客户端输入选择完成事件;此处的选择完成事件是指选择结束按钮被点击或按压的事件。相应的,社交客户端若检测到选择完成事件,则可根据被收折的会话消息创建收折消息;并在会话界面中采用收折消息替换显示被收折的会话消息。在实际实施时,若检测到选择完成事件,则根据被收折的会话消息创建收折消息的实施方式可以是:若检测到选择完成事件,则社交客户端可直接随机获取或生成一个系统消息名称,并根据该系统消息名称和被收折的会话消息的消息发送用户的用户标识,生成收折消息54;在此情况下,以系统消息名称为“收折消息1”为例,输出收折消息54的示意图可参见图5C所示。
在一些实施例中,若检测到选择完成事件,则根据被收折的会话消息创建收折消息的实施方式可以是:若检测到选择完成事件,则输出消息命名窗口55;该消息命名窗口55中可包括名称设置区域56以及名称确认按钮57。主人态用户可在消息命名窗口55中的名称设置区域56中,针对被收折的会话消息设置一个自定义消息名称。相应的,社交客户端可在消息命名窗口55中,获取针对被收折的会话消息设置的自定义消息名称;若检测到针对自定义消息名称的确认操作,则可根据自定义消息名称和被收折的会话消息的消息发送用户的用户标识,生成收折消息54。其中,针对自定义消息名称的确认操作可以包括针对消息命名窗口55中的名称确认按钮57的点击或按压操作;在此情况下,输出收折消息54的示意图可参见图5D所示。
在一种实施方式中,参见图5C或图5D所示的收折消息可知,收折消息中还可包括一个用于触发显示被收折的会话消息的消息按钮58;主人态用户可通过触发该消息按钮58,使得社交客户端显示被收折的会话消息。相应的,社交客户端在检测到消息按钮58被触发时,可在会话界面中显示被收折的会话消息,如图5E所示。社交客户端在检测到消息按钮58被触发时,可输出消息显示窗口,并在消息显示窗口中显示被收折的会话消息,如图5F所示。
再一种实施方式中,针对收折消息而言,社交客户端还可提供复制、转发、回复、收藏等功能。当主人态用户想要对收折消息执行复制、转发、回复、收藏等操作时,可对收折消息执行触发操作。 相应的,当收折消息被触发时,社交客户端可输出关于收折消息的操作选项窗口59,如图5G所示;其中,操作选项窗口59中包括以下至少一种操作选项:复制选项、转发选项、回复选项、收藏选项和选择选项。其次,社交客户端可根据在操作选项窗口中检测到的选择操作,从操作选项窗口中确定被选择的操作选项;然后,根据被选择的操作选项对收折消息执行相应操作。例如,若被选择的操作选项为转发选项,则执行的相应操作则为输出转发界面的操作;主人态用户可通过转发界面选择一个目标用户,并触发社交客户端将被收折的会话消息发送至目标用户。又如,例如,若被选择的操作选项为收藏选项,则执行的相应操作则为将被收折的会话消息添加至收藏夹中的操作。再如,若被选择的操作选项为复制选项,则执行的相应操作则为将复制被收折的会话消息的操作,等等。应理解的是,在实际应用中,社交客户端针对自动折叠所得到的第一折叠提示而言,也可提供复制、转发、回复、收藏等功能;其实现方式与针对收折消息的实现方式类似,在此不再赘述。且还应理解的是,当目标会话消息包含图像消息,或者从多条会话消息的消息内容中所提取的关键内容,以及根据多条会话消息的数量所生成的数量标识时,上述所提及的手动收折功能也同样适用。通过提供手动收折功能,可丰富社交客户端的消息显示方式,从而提升社交客户端的用户黏度。
还需要说明的是,上述图2所示的消息显示方法适用于任一消息类型的会话消息;此处的消息类型可包括:第一类型或者第二类型。其中,第一类型所对应的会话消息的消息内容不包含关键字,第二类型所对应的会话消息的消息内容包含关键字。在实际应用中,关键字可根据业务需求进行设置;例如在本申请实施例中,可设置多种类型的关键字;如祝福类型的关键字和企业推广类型的关键字,等等。其中,祝福类型的关键字是指用于表达祝福的关键字;其可包括但不限于:关于节假日祝福的关键字、关于生日祝福的关键字,等等。企业推广类型的关键字是指用于推广目标企业的关键字,其可包括但不限于:企业名称、目标企业所经营产品的产品属性(如产品名称、产品类别),等等;例如目标企业所经营的产品是汉堡,则企业类型的关键字则可以是某种汉堡的名称。为了提升社交客户端的运营能力和用户黏度,本申请实施例还提出了一种如图6所示的消息显示方法;图6所示的消息显示方法主要采用全新图像消息的显示方式对连续重复的多条会话消息进行显示处理,丰富会话消息的显示形态。其中,图像消息是根据多条会话消息以及与多条会话消息的消息内容相匹配的图像所生成的消息。在实际应用中,社交客户端也可将图6所示的消息显示方法适用于任一消息类型的会话消息。例如,社交客户端在检测到连续重复的多条会话消息后,也可检测多条会话消息的消息类型;在实际实施时,可检测多条会话消息中是否包含关键字;若不包含,则确定多条会话消息的消息类型为第一类型;若包含,则确定多条会话消息的消息类型为第二类型。然后,在一些实施例中针对不同的消息类型选择不同的消息显示方式。当连续重复的多条会话消息的消息类型为第一类型时,则可选择对部分会话消息进行折叠的显示方式来显示多条会话消息,即可选择图2所示的消息显示方法对多条会话消息进行显示处理。当连续重复的多条会话消息的消息类型为第二类型时,则可选择全新图像消息的显示方式来显示多条会话消息,即可选择图6所示的消息显示方法对多条会话消息进行显示处理。
在一些实施例中,图6所示的消息显示方法可以由上述所提及的通信会话系统中的任一社交客户端执行,也可由运行该社交客户端的终端执行。为便于阐述,本申请实施例以社交客户端执行该消息显示方法,且以目标会话消息包含图像消息为例进行说明;请参见图6,该消息显示方法可包括以下步骤S601-S606:
S601,终端显示目标会话的会话界面,并获取目标会话的消息集。
S602,从消息集中筛选出会话消息,并计算筛选出的会话消息中连续重复的会话消息的数量。
S603,若计算得到的数量小于预设数量,则确定消息集中不存在连续重复的多条会话消息。
S604,若计算得到的数量大于或等于预设数量,则确定消息集中存在连续重复的多条会话消息;此情况下,可继续执行步骤S605-S606。应理解的是,本申请实施例只是示例性地采用步骤S602-S604(即计数隔离的方式)来说明如何检测连续重复的多条会话消息;在实际应用中也可采用上述步骤S202中所提及的非计数隔离的方式来检测消息集中是否存在连续重复的多条会话消息。
S605,若消息集中存在连续重复的多条会话消息,则根据多条会话消息获取目标会话消息。
在实际实施时,终端可先获取与多条会话消息的消息内容相匹配的消息展示模板;该消息展示模板包含以下三个区域:顶部区域、中间区域和底部区域,且每个区域内显示有与消息内容相匹配的图像。在一种情况下,若多条会话消息的消息类型为第一类型,即多条会话消息的消息内容不包含关键 字,则社交客户端可直接获取一个默认图像模板作为消息展示模板。其中,该默认图像模板包含顶部区域、中间区域和底部区域等三个区域;且默认图像模板的顶部区域中的图像可以是用于表示房屋楼顶的楼顶图像,默认图像模板的中间区域中的图像可以是用于表示房屋楼层的楼层图像,默认图像模板的底部区域中的图像可以是用于表示房屋楼底的楼底图像,如图7A所示。
在一些实施例中,若多条会话消息的消息类型为第二类型,即多条会话消息的消息内容包含关键字,则可通过如下方式获取消息展示模板:
预先为每个关键字配置一个消息展示模板;那么社交客户端可根据多条会话消息的消息内容所包含的关键字来获取相匹配的消息展示模板。
在一些实施例中,若多条会话消息的消息类型为第二类型,即多条会话消息的消息内容包含关键字,则可通过如下方式获取消息展示模板:
先获取系统模板,该系统模板包含以下三个区域:顶部区域、中间区域和底部区域。其次,可根据多条消息的消息内容中的关键字,分别获取用于填充至系统模板中的各区域的图像。然后,可将获取到的图像分别填充到系统模板的各区域中,得到消息展示模板。例如,设多条会话消息的消息内容为“小清,生日快乐!”,则消息内容的关键字为“生日快乐”,那么,根据“生日快乐”这一关键字获取到的各区域所对应的图像可为用于表示蛋糕组成成分的图像,如用于表示蛋糕顶部的蜡烛图像、用于表示蛋糕中间部分的背景图像,用于表示蛋糕底部的蛋糕图像。然后,可将第一面包图像、背景图像和第二面包图像依次填充至顶部区域、中间区域和底部区域,得到消息展示模板,如图7B所示。又如,设多条会话消息的消息内容为“汉堡,你值得拥有!”,则消息内容的关键字为“汉堡”;那么,根据“汉堡”这一关键字获取到的各区域所对应的图像可为用于表示汉堡组成成分的图像,如用于表示汉堡顶部的第一面包图像、用于表示汉堡中间部分的背景图像,用于表示汉堡底部的第二面包图像。然后,可将第一面包图像、背景图像和第二面包图像依次填充至顶部区域、中间区域和底部区域,得到消息展示模板,如图7C所示。由此可见,本申请实施例根据多条会话消息的消息内容可实现对消息展示模板样式的配置化,使得消息展示模板可动态应对各类运营场景;例如针对生日快乐的运营场景,消息展示模板的样式可以视觉表达为蛋糕层,针对目标企业推广的运营场景,消息展示模板的样式可透出目标企业的相关信息。并且,本申请实施例通过对系统模板中的各个区域进行图像填充,从而生成消息展示模板的方式,可有效提升系统模板的通用性。
在获取到消息展示模板之后,可将多条会话消息填充至消息展示模板的中间区域,得到图像消息;并将图像消息添加至目标会话消息中。
在一些实施例中,社交客户端可通过如下方式将多条会话消息填充至消息展示模板的中间区域,得到图像消息:
按照消息接收时间从早到晚的顺序,依次将多条会话消息填充至消息展示模板的中间区域,得到图像消息;以图7C所示的消息展示模板为例,填充各条会话消息的示意图可参见图7D所示。在此实现方式下,目标会话消息可只包括该图像消息。
在一些实施例中,社交客户端还可通过如下方式将多条会话消息填充至消息展示模板的中间区域,得到图像消息:
当连续重复的多条会话消息的数量较多时,还可从多条会话消息中选取部分会话消息添加至图像消息,并对多条会话消息中未被选取的会话消息进行折叠显示,以减少图像消息的显示面积。在实际实施时,社交客户端可先从多条会话消息中,按照消息接收时间从早到晚的顺序依次选取预设数量的会话消息;然后将被选取的会话消息填充至消息展示模板的中间区域,得到图像消息。在此实现方式下,目标会话消息可只包括该图像消息。在此实现方式下,社交客户端还可对多条会话消息中未被选取的会话消息进行折叠处理,得到第二折叠提示;并将第二折叠提示添加至目标会话消息中;即此实现方式下的目标会话消息可包括图像消息和第二折叠提示。仍以图7C所示的消息展示模板为例,且设预设数量为5;若多条会话消息的数量为13,则此实现方式下的目标会话消息的示意图可参见图7E中的2幅图所示。需要说明的是,第二折叠提示的获取方式和第一折叠提示的获取方式类似;因此如何对多条会话消息中未被选取的会话消息进行折叠处理,得到第二折叠提示的实施方式可参见上述方法实施例中步骤s12的相关描述,在此不再赘述。且还应理解的是,图7E只是示例性地表示第二折叠提示的显示形态,并不对其进行限定;第二折叠提示的显示形态也可参见图3A-图3F所示的折叠消息或折叠标识的显示形态。
在实际应用中,社交客户端还可根据多条会话消息的消息类型从上述两种实现方式中选取一种实现方式来完成多条会话消息的消息填充。当多条会话消息的消息类型为第一类型时,可从上述两种实现方式中任意选取一种实现方式来完成多条会话消息的填充。当多条会话消息的消息类型为第二类型时,则由前述可知,本申请实施例可设置多种类型的关键字,如祝福类型的关键字、企业推广类型的关键字,等等;那么相应的,第二类型也可根据关键字的不同类型细分为如下类型:祝福消息类型、推广消息类型,等等。其中,祝福消息类型所对应的会话消息的消息内容中包含祝福类型的关键字;推广消息类型所对应的会话消息的消息内容中包含企业推广类型的关键字。基于此,当多条会话消息的消息类型为第二类型时;社交客户端还可针对不同的第二类型,选取不同的实现方式来完成多条会话消息的填充。在实际实施时,可先根据多条会话消息的消息内容所包含的关键字的类型,识别得到第二类型的类型。若第二类型为祝福消息类型,则由于祝福可以给用户带来愉悦的感受,因此可选择实现方式一来完成多条会话消息的填充;即可直接将多条会话消息全部填充至消息展示模板的中间区域,得到图像消息;使得主人态用户可通过图像消息查看连续重复的所有会话消息。若第二类型为推广消息类型,则由于当会话界面中连续重复显示一定数量的会话消息后,通常就可达到推广效果;因此选择实现方式二来完成多条会话消息的填充;即可从多条会话消息中选取预设数量的会话消息填充至消息展示模板的中间区域,得到图像消息;这样既可达到推广效果,又可避免显示连续重复的多条消息而带来的刷屏效果。
S606,采用目标会话消息替换消息集中的连续重复的多条会话消息,并在目标会话的会话界面中显示替换后的消息集。
在得到目标会话消息之后,可在会话界面中显示该目标会话消息。由前述可知,此处的目标会话消息可包括:图像消息,或者图像消息和第二折叠提示。由于目标会话的消息集是实时获取到的,该消息集中所包含的会话消息存在实时更新的可能。因此在一种应用场景下,若社交客户端是在会话界面依次显示消息集中的各条消息的过程中,检测到消息集中存在连续重复的多条会话消息并根据多条会话消息获取到目标会话消息的,则社交客户端可直接执行步骤S606,使得可直接采用目标会话消息替换会话界面中的连续重复的多条会话消息。以目标会话消息只包含图像消息,且以多条会话消息的消息内容包含的关键字为“汉堡”为例,其对应的目标会话消息的显示示意图可参见图7F所示。再一种应用场景下,若社交客户端是在显示会话界面之前,便已检测到消息集中存在连续重复的多条会话消息并根据多条会话消息获取到目标会话消息,则社交客户端可在显示会话界面后,直接显示目标会话消息;仍以目标会话消息只包含图像消息,且多条会话消息的消息内容包含的关键字为“汉堡”为例,其对应的目标会话消息的显示示意图可参见如图7G所示。由此可见,本申请实施例在消息集存在连续重复的多条会话消息的情况下,可重新结合多条会话消息的消息内容进行视觉重新绘制;通过在会话界面中展示更具视觉表现力的图像消息,可有效提升目标会话的互动氛围,刺激目标会话中的用户对连续重复的多条会话消息进行加一助力,从而提升目标会话的活跃度。
在一种实施方式中,为了可以更好地刺激目标会话中的用户对连续重复的多条会话消息进行加一助力,从而提升目标会话的活跃度;本申请实施例还可设置一个消息彩蛋奖励,使得在连续重复的多条会话消息的数量大于数量阈值时,该多条会话消息中的各会话消息所对应的消息发送用户均可得到相应的资源奖励。基于此,针对主人态用户而言,在多条会话消息中包含主人态用户发送的会话消息的情况下;若多条会话消息的数量大于数量阈值,则社交客户端还可获取主人态用户对应的电子资源领取量。其中,该电子资源领取量是根据资源发放用户针对多条会话消息所发放的电子资源总量计算得到的;此处的资源发放用户可以是任一用户,例如若多条会话消息的消息类型为祝福消息类型,则资源发放用户可以是目标会话中被祝福的目标用户;又如,若多条会话消息的消息类型为推广消息类型,则资源发放用户可以是目标企业。社交客户端在获取到电子资源领取量之后,可从会话界面切换至资源领取界面,并在资源领取界面中显示电子资源领取量和资源发放用户的用户标识。以连续重复的多条会话消息的消息类型为推广消息类型,资源发放用户为目标企业为例,从会话界面切换显示资源领取界面的示意图可参见图7H所示。
在一种实施方式中,为便于主人态用户可快速便捷地对连续重复的多条会话消息进行加一助力,社交客户端还可在图像消息的显示位置处显示一个消息发送按钮71。若社交客户端检测到主人态用户针对消息发送按钮71的触发操作,则可复制多条会话消息,得到新的会话消息。并可在图像消息中直接显示该新的会话消息;或者若图像消息中已包含预设数量的会话消息,则可采用新的会话消息 更新第二折叠提示以实现对新的会话消息的折叠显示;更新方式可参见上述所提及的第一折叠提示的更新方式,在此不再赘述。以在图像消息中直接显示新的会话消息为例,设多条会话消息为“汉堡,你值得拥有!”,则主人态用户可通过点击消息发送按钮71,触发社交客户端发送一条消息内容为“汉堡,你值得拥有!”的新的会话消息,此时图像消息中可显示该新的会话消息,如图7I所示。又如,设多条会话消息为“生日快乐[蛋糕][蛋糕][蛋糕]”,则主人态用户可通过点击消息发送按钮71,触发社交客户端发送一条消息内容为“生日快乐[蛋糕][蛋糕][蛋糕]”的新的会话消息,此时图像消息中可显示该新的会话消息,如图7J所示。应理解的是,主人态用户也可在会话界面中的消息输入区域72内手动输入消息内容;在此情况下,社交客户端可在消息输入区域获取主人态用户所输入的消息内容,根据获取到的消息内容生成新的会话消息;若获取到的消息内容与多条会话消息的消息内容相同,则在图像消息中显示新的会话消息。
再一种实施方式中,当目标会话消息包括图像消息或者包括图像消息和第二折叠提示时,社交客户端还可支持目标会话消息以图片的形式被分享至其他用户。在实际应用中,主人态用户若想要以图片的形式将目标会话消息分享给其它用户,则可对该目标会话消息执行分享操作;相应的,社交客户端若检测到针对目标会话消息的分享操作,则可根据目标会话消息生成分享图片。其中,分享操作可包括以下任一种:检测到用于指示分享该目标会话消息的用户语音的操作,或检测到终端中的某个物理按键被长按的操作,或检测到针对目标会话消息的消息分享按钮73的点击或按压操作;此处的消息分享按钮73是社交客户端在检测到目标会话消息被触发时输出至会话界面的,如图7K所示。在一种实施方式中,社交客户端可直接采用目标会话消息生成分享图片。再一种实施方式中,若多条会话消息的消息类型为第二类型,且第二类型为祝福消息类型,则社交客户端在根据目标会话消息生成分享图片时,可先获取被祝福的目标用户的用户标识;然后根据目标用户的用户标识和图像消息,生成分享图片。在生成分享图片之后,可从会话界面切换至分享界面,并在分享界面中显示分享图片,如图7L所示。参见图7L所示,分享界面中还可包括用户选择区域74、图片分享按钮75以及图片编辑按钮76。主人态用户可从用户选择区域74中选择接收该分享图片的用户,然后点击图片分享按钮75以触发社交客户端将分享图片发送至主人态用户所选择的用户。或者,主人态用户也可通过图片编辑按钮76对分享图片进行编辑操作,并将编辑后的分享图片发送给其他用户。
本申请实施例可在目标会话的消息集中存在连续重复的多条会话消息时,根据多条会话消息以及与多条会话消息相匹配的图像生成图像消息;并在会话界面中采用图像消息替换显示消息集中的连续重复的多条会话消息。这样可丰富连续重复的多条会话消息的显示形态,可有效减少因直接显示多条会话消息而带来的无趣刷屏效果,丰富了社交客户端的消息显示方式,可有效提升社交客户端的用户黏度。
基于上述方法实施例的相关描述,为了可以使得社交客户端可以更好地执行图2和图6所示的消息显示方法;本申请实施例还提出了如图8A所示的社交客户端。参见图8A所示,本申请实施例中的社交客户端可至少包括如下功能组件:聊天窗口组件81、消息缓存组件82、消息处理组件83,等等。其中,聊天窗口组件81是一种可与用户进行交互,记录会话中的各条消息并绘制显示会话界面的组件。在一种实施方式中,该聊天窗口组件81可是公共的聊天窗口组件(All In One,AIO);所谓的AIO是一个不同会话所共享的聊天窗口组件。社交客户端81可将AIO在不同会话中所检测到的用户的输入、点击操作等行为习惯均可看作是一致的,从而为用户提供统一的交互体验。消息缓存组件112是一种可从聊天窗口组件中读取目标会话的各条消息,并对读取到的消息进行缓存的组件。消息处理组件83是一个重复消息处理器的抽象模型所形成的组件,其主要用于将消息缓存组件82中所缓存的各条消息作为输入,经过内部运算后对连续重复的多条会话消息进行部分折叠或合并处理,并采用通过折叠或合并处理而生成的目标会话消息替换原始的连续重复的多条会话消息,从而使得聊天窗口组件81在会话界面中显示本地所生成的目标会话消息。
相较于常见的社交客户端而言,本申请实施例通过新增一个重复消息处理器的抽象模型,并将该抽象模型作为一个消息处理组件83内置在社交客户端中;可使得无需修改服务器以及社交客户端中的消息缓存组件82的代码逻辑,只需在用户界面(User Interface,UI)层扩展对目标会话消息进行展示的代码逻辑,即可实现社交客户端检测连续重复的多条会话消息,并对连续重复的多条会话消息进行折叠或合并显示的功能。由此可见,本申请实施例通过在社交客户端中新增消息处理组件83来 实现会话消息的折叠或合并显示,可在一定程度上减少代码逻辑的修改,可有效节省人力成本。
基于图8A所示的社交客户端以及图2和图6所示的消息显示方法,下面将结合图8B所示的方法示意图示例性地对社交客户端中各功能组件的工作流程进行阐述:
当用户想要查看某目标会话的会话消息时,可打开该目标会话的会话界面以进入聊天窗口;相应的,社交客户端若检测到用户针对目标会话的会话界面的打开操作,则可通过步骤s80调用内部的消息缓存组件82从聊天窗口组件81中读取目标会话的消息集;该消息集中的各消息是由服务器推送至聊天窗口组件81中的。然后,社交客户端可通过步骤s81将该消息集作为输入传递到消息处理组件83中。消息处理组件83在接收到消息集后,可通过步骤s82遍历消息集并检测消息集中是否存在连续重复的多条会话消息;在实际实施时,可检测消息集中是否存在连续重复的N条或N条以上的会话消息,N的取值可根据经验值或业务需求设置,例如可设置N=5。若存在,则可确定消息集中存在连续重复的多条会话消息;此时可通过步骤s83对多条会话消息中的部分会话消息进行折叠处理,得到第一折叠提示。然后,通过步骤s84采用第一折叠提示替换消息集中被折叠的部分会话消息,得到待显示消息列表;并通过步骤s85将待显示消息列表发送至聊天窗口组件81。相应的,聊天窗口组件81可通过步骤s86在会话界面中依次遍历并显示待显示消息列表中的各条消息;若遍历到待显示消息列表中的第一折叠提示,则采用折叠提示的样式显示该消息。
需要说明的是,若目标会话接收到新的会话消息,则社交客户端可先在步骤s87通过消息缓存组件82将新的会话消息缓存至消息集中以更新该消息集,从而保证消息缓存组件82所缓存的消息集完整地包含了目标会话的所有消息。然后,在步骤s88中通过消息缓存组件82将新的会话消息传输至消息处理组件83;相应的,消息处理组件83在接收到新的会话消息后,可在步骤s89采用新的会话消息更新待显示消息列表,并将更新后的待显示消息列表发送至聊天窗口组件81,使得聊天窗口组件81根据更新后的待显示消息列表对会话界面进行UI更新。其中,采用新的会话消息更新待显示消息列表的实施方式可以是:若待显示消息列表中除系统提示消息以外的最后一条消息为第一折叠提示,则检测该新的会话消息是否与被折叠的会话消息重复;若重复,则采用该新的会话消息更新该第一折叠提示以更新待显示消息列表;若不重复,则将该新的会话消息添加至待显示消息列表中的末尾以更新待显示消息列表。若待显示消息列表中除系统提示消息以外的最后一条消息为会话消息,则在待显示消息列表中按照从后往前的顺序检测是否存在连续的N-1条会话消息与新的会话消息重复;若是,则对N-1条会话消息和新的会话消息中的部分会话消息进行折叠处理,得到第一折叠提示,并将第一折叠提示添加至待显示消息列表中以更新待显示消息列表;若否,则将该新的会话消息添加至待显示消息列表中的末尾以更新待显示消息列表。
再一个实施例中,由图6所示的消息显示方法可知,社交客户端还可检测多条会话消息的消息类型;基于此,本申请实施例还可在社交客户端中内置一个类型判定组件84。在此情况下,若消息处理组件83通过步骤s83检测到消息集中存在连续重复的多条会话消息,则消息处理组件83可将多条会话消息发送至类型判定组件84。相应的,类型判定组件84接收到多条会话消息后,可采用关键字匹配的方式确定多条会话消息的消息类型,该消息类型可包括第一类型或者第二类型;然后将多条会话消息的消息类型反馈给消息处理组件82。若消息类型为第一类型,则可执行步骤s83-s85。若消息类型为第二类型,则可根据多条会话消息生成图像消息,此处以图像消息包含连续重复的所有会话消息为例进行说明;然后可采用图像消息替换消息集中的连续重复的多条会话消息,得到待显示消息列表;然后通过步骤s86将待显示消息列表发送至聊天窗口组件81。在此情况下,聊天窗口组件81可采用图8C所示的显示逻辑,在会话界面中依次遍历并显示待显示消息列表中的各条消息;在实际实施时,参见图8C,聊天窗口组件81显示待显示消息列表中各条消息的步骤可以包括:
步骤801:获取待显示消息列表;
步骤802:遍历待显示消息列表;
步骤803:判断当前遍历的消息是否为除第一折叠提示和图像消息外的消息,如果不是,执行步骤804;如果是,执行步骤806;
步骤804:判断当前遍历的消息是否为第一折叠提示,如果不是,执行步骤805;如果是,执行步骤807;
步骤805:采用图像消息的样式来显示该消息;
步骤806:直接显示该消息;
步骤807:采用折叠提示的样式显示该消息。
由此可见,本申请实施例的消息显示逻辑在目标会话存在连续重复的会话消息,且连续重复的会话消息的数量达到预设数量(N条)时,既可通过显示连续重复的一部分会话消息来保证会话消息的消息内容的完整显示;又可自动地对连续重复的另一部分会话消息进行折叠,并以一条第一折叠提示插入到会话界面中进行显示;这样可有效减少会话界面中的无趣的刷屏效果,从而可减少用户遗漏掉重要的会话消息的现象,可有效提升社交客户端的用户黏度。
基于上述消息显示方法实施例的描述,本申请实施例还公开了一种消息显示装置,所述消息显示装置可以是运行于终端中的一个计算机程序(包括程序代码)。该消息显示装置可以执行图2或图6所示的方法。请参见图9,所述消息显示装置可以运行如下单元:
显示单元901,配置为显示目标会话的会话界面;
获取单元902,配置为获取所述目标会话的消息集;
所述显示单元901,还配置为若所述消息集中存在连续重复的多条会话消息,则根据所述多条会话消息获取目标会话消息;
所述显示单元901,还配置为采用所述目标会话消息替换所述消息集中的连续重复的多条会话消息,并在所述目标会话的会话界面中显示替换后的消息集。
在一种实施方式中,显示单元901在配置为根据所述多条会话消息获取目标会话消息时,可从所述多条会话消息中选取参考会话消息;
对所述多条会话消息中除所述参考会话消息以外的剩余会话消息进行折叠处理,得到第一折叠提示;
采用所述参考会话消息和所述第一折叠提示,组成目标会话消息。
再一种实施方式中,所述消息集中的每条会话消息均具有消息接收时间;相应的,显示单元901在配置为从所述多条会话消息中选取参考会话消息时,可从所述多条会话消息中,选取消息接收时间最早的会话消息作为参考会话消息;或者,
从所述多条会话消息中,按照消息接收时间从早到晚的顺序依次选取预设数量的会话消息作为参考会话消息。
再一种实施方式中,显示单元901在配置为从所述多条会话消息中选取参考会话消息时,若所述多条会话消息中存在主人态用户所发送的会话消息,则将所述主人态用户所发送的会话消息作为所述参考会话消息;
其中,所述目标会话由社交客户端建立,所述主人态用户是指登录所述社交客户端的社交账号所对应的用户。
再一种实施方式中,所述第一折叠提示包括折叠标识;相应的,显示单元901在配置为对所述多条会话消息中除所述参考会话消息以外的剩余会话消息进行折叠处理,得到第一折叠提示时,确定所述多条会话消息中除所述参考会话消息以外的剩余会话消息的剩余数量;
根据所述剩余会话消息的剩余数量,生成折叠标识。
再一种实施方式中,所述第一折叠提示包括折叠消息;相应的,显示单元901在配置为对所述多条会话消息中除所述参考会话消息以外的剩余会话消息进行折叠处理,得到第一折叠提示时,根据所述多条会话消息中除所述参考会话消息以外的剩余会话消息的剩余数量,以及所述剩余会话消息的消息内容生成提示内容;所述提示内容用于提示存在所述剩余数量个用户连续发送了所述消息内容,或者用于提示存在连续的所述剩余数量条消息包含了所述消息内容;
获取所述剩余会话消息所对应的消息发送用户的用户标识,所述用户标识包括以下至少一项:用户名称以及用户标记图像;
根据获取到的用户标识和所述提示内容,生成折叠消息。
再一种实施方式中,所述折叠消息中包括用于触发显示所述剩余消息的消息链接;相应的,显示单元901还可配置为:
当所述折叠消息中的消息链接被触发时,在所述会话界面显示所述剩余会话消息以及对应的消息发送用户的用户标识;或者,
当所述折叠消息中的消息链接被触发时,在所述会话界面中输出消息显示窗口,并在所述消息显 示窗口中显示所述剩余会话消息以及对应的消息发送用户的用户标识。
再一种实施方式中,所述目标会话消息包括图像消息,所述图像消息是根据所述多条会话消息以及与所述多条会话消息的消息内容相匹配的图像所生成的消息;相应的,显示单元901在配置为根据所述多条会话消息获取目标会话消息时,获取与所述多条会话消息的消息内容相匹配的消息展示模板;所述消息展示模板包含以下三个区域:顶部区域、中间区域和底部区域,且每个区域内显示有与所述消息内容相匹配的图像;
将所述多条会话消息填充至所述消息展示模板的中间区域,得到图像消息;并将所述图像消息添加至所述目标会话消息中。
再一种实施方式中,所述消息集中的每条会话消息均具有消息接收时间;相应的,显示单元901在配置为将所述多条会话消息填充至所述消息展示模板的中间区域,得到图像消息时,从所述多条会话消息中,按照消息接收时间从早到晚的顺序依次选取预设数量的会话消息;将被选取的会话消息填充至所述消息展示模板的中间区域,得到图像消息;
相应的,显示单元901还可配置为:对所述多条会话消息中未被选取的会话消息进行折叠处理,得到第二折叠提示;并将所述第二折叠提示添加至所述目标会话消息中。
再一种实施方式中,显示单元901还可配置为:
若检测到针对所述目标会话消息的分享操作,则根据所述目标会话消息生成分享图片;
从所述会话界面切换至分享界面,并在所述分享界面中显示所述分享图片。
再一种实施方式中,所述多条会话消息中包含主人态用户发送的会话消息;相应的,获取单元902还可配置为:若所述多条会话消息的数量大于数量阈值,则获取所述主人态用户对应的电子资源领取量;所述电子资源领取量是根据资源发放用户针对所述多条会话消息所发放的电子资源总量计算得到的;显示单元901还可配置为:从所述会话界面切换至资源领取界面,并在所述资源领取界面中显示所述电子资源领取量和所述资源发放用户的用户标识。
再一种实施方式中,显示单元901还可配置为:
若检测到针对所述会话界面中已显示的会话消息的选择触发事件,则在所述会话界面中输出各已显示的会话消息的消息选项;所述消息选项用于选择所述已显示的会话消息;
根据针对所述会话界面中的消息选项的选择操作,将被选择的消息选项所对应的已显示的会话消息作为被收折的会话消息;
若检测到选择完成事件,则根据所述被收折的会话消息创建收折消息,并在所述会话界面中采用所述收折消息替换显示所述被收折的会话消息。
再一种实施方式中,显示单元901在配置为若检测到选择完成事件,则根据所述被收折的会话消息创建收折消息时,若检测到选择完成事件,则输出消息命名窗口;
在所述消息命名窗口中,获取针对所述被收折的会话消息设置的自定义消息名称;
若检测到针对所述自定义消息名称的确认操作,则根据所述自定义消息名称和所述被收折的会话消息的消息发送用户的用户标识,生成收折消息。
再一种实施方式中,显示单元901还可配置为:当所述收折消息被触发时,输出关于所述收折消息的操作选项窗口,所述操作选项窗口中包括以下至少一种操作选项:复制选项、转发选项、回复选项、收藏选项和选择选项;
消息显示装置还可包括处理单元903,该处理单元903可配置为:根据在所述操作选项窗口中检测到的选择操作,从所述操作选项窗口中确定被选择的操作选项;根据所述被选择的操作选项对所述收折消息执行相应操作。
再一种实施方式中,所述消息集包括以下至少一种消息:会话消息和非会话消息;相应的,处理单元903还可配置为:
从所述消息集中筛选出会话消息,并计算筛选出的会话消息中连续重复的会话消息的数量;
若计算得到的数量大于或等于预设数量,则确定所述消息集中存在连续重复的多条会话消息;
若计算得到的数量小于所述预设数量,则确定所述消息集中不存在连续重复的多条会话消息。
图2或图6所示的方法所涉及的各个步骤均可以是由图9所示的消息显示装置中的各个单元来执行的。例如,图2中所示的步骤S201和S203-S204可由图9中所示的显示单元901来执行,步骤S202可由图9中所示的获取单元902来执行;又如,图6中所示的步骤S601中所涉及的步骤“显示目标 会话的会话界面”以及步骤S605-S606可由图9中所示的显示单元901来执行,步骤S601中所涉及的步骤“获取目标会话的消息集”可由图9中所示的获取单元902来执行,步骤S602-S604可由图9中所示的处理单元903来执行。
图9所示的消息显示装置中的各个单元可以分别或全部合并为一个或若干个另外的单元来构成,或者其中的某个(些)单元还可以再拆分为功能上更小的多个单元来构成,这可以实现同样的操作,而不影响本申请实施例的技术效果的实现。上述单元是基于逻辑功能划分的,在实际应用中,一个单元的功能也可以由多个单元来实现,或者多个单元的功能由一个单元实现。在本申请实施例中,基于消息显示装置也可以包括其它单元,在实际应用中,这些功能也可以由其它单元协助实现,并且可以由多个单元协作实现。
本申请实施例可以通过在包括中央处理单元(CPU,Central Processing Unit)、随机存取存储介质(RAM,Random Access Memory)、只读存储介质(ROM,Read-Only Memory)等处理元件和存储元件的例如计算机的通用计算设备上运行能够执行如图2或图6中所示的相应方法所涉及的各步骤的计算机程序(包括程序代码),来构造如图9中所示的消息显示装置设备,以及来实现本申请实施例的消息显示方法。所述计算机程序可以记载于例如计算机可读记录介质上,并通过计算机可读记录介质装载于上述计算设备中,并在其中运行。
本申请实施例可在目标会话的消息集中存在连续重复的多条会话消息时,根据多条会话消息获取目标会话消息;并采用目标会话消息替换消息集中的连续重复的多条会话消息,然后在目标会话的会话界面中显示替换后的消息集。可见在上述消息显示过程中,社交客户端针对连续重复的多条会话消息,可在会话界面中采用目标会话消息进行替换显示;这样可有效减少因直接显示多条会话消息而带来的无趣刷屏效果,丰富了社交客户端的消息显示方式,可有效提升社交客户端的用户黏度。
基于上述方法实施例以及装置实施例的描述,本申请实施例还提供一种终端。请参见图10,该终端至少包括处理器1001、输入设备1002、输出设备1003以及计算机存储介质1004。其中,终端内的处理器1001、输入设备1002、输出设备1003以及计算机存储介质1004可通过总线或其他方式连接。在本申请实施例中,终端内还可运行有前述实施例所提及的社交客户端。
计算机存储介质1004可以存储在终端的存储器中,所述计算机存储介质1004用于存储计算机程序,所述计算机程序包括程序指令,所述处理器1001配置为执行所述计算机存储介质1004存储的程序指令。处理器1001(或称中央处理器(Central Processing Unit,CPU))是终端的计算核心以及控制核心,其适于实现一条或多条指令,如加载并执行一条或多条指令从而实现相应方法流程或相应功能;在一个实施例中,本申请实施例所述的处理器1001可以配置为进行一系列的消息显示处理,包括:显示目标会话的会话界面,并获取所述目标会话的消息集;若所述消息集中存在连续重复的多条会话消息,则根据所述多条会话消息获取目标会话消息;采用目标会话消息替换所述消息集中的连续重复的多条会话消息,并在所述目标会话的会话界面中显示替换后的消息集,等等。
本申请实施例还提供了一种计算机存储介质(Memory),所述计算机存储介质是终端中的记忆设备,用于存放程序和数据;例如,计算机存储介质可用于存放社交客户端的程序代码指令。可以理解的是,此处的计算机存储介质既可以包括终端中的内置存储介质,当然也可以包括终端所支持的扩展存储介质。计算机存储介质提供存储空间,该存储空间存储了终端的操作系统。并且,在该存储空间中还存放了适于被处理器1001加载并执行的一条或多条的指令,这些指令可以是一个或一个以上的计算机程序(包括程序代码)。需要说明的是,此处的计算机存储介质可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器;可选的还可以是至少一个位于远离前述处理器的计算机存储介质。
在一个实施例中,可由处理器1001加载并执行计算机存储介质中存放的一条或多条关于社交客户端的指令,以实现上述有关消息显示方法实施例中的方法的相应步骤;实现中,计算机存储介质中的一条或多条指令由处理器1001加载并执行如下步骤:
显示目标会话的会话界面,并获取所述目标会话的消息集;
若所述消息集中存在连续重复的多条会话消息,则根据所述多条会话消息获取目标会话消息;
采用所述目标会话消息替换所述消息集中的所述连续重复的多条会话消息,并在所述目标会话的会话界面中显示替换后的消息集。
本申请实施例可在目标会话的消息集中存在连续重复的多条会话消息时,根据多条会话消息获取目标会话消息;并采用目标会话消息替换消息集中的连续重复的多条会话消息,然后在目标会话的会话界面中显示替换后的消息集。可见在上述消息显示过程中,社交客户端针对连续重复的多条会话消息,可在会话界面中采用目标会话消息进行替换显示;这样可有效减少因直接显示多条会话消息而带来的无趣刷屏效果,丰富了社交客户端的消息显示方式,可有效提升社交客户端的用户黏度。
以上所揭露的仅为本申请较佳实施例而已,当然不能以此来限定本申请之权利范围,因此依本申请权利要求所作的等同变化,仍属本申请所涵盖的范围。

Claims (18)

  1. 一种消息显示方法,所述方法由终端执行,所述方法包括:
    显示目标会话的会话界面,并获取所述目标会话的消息集;
    若所述消息集中存在连续重复的多条会话消息,则根据所述多条会话消息获取目标会话消息;
    采用所述目标会话消息替换所述消息集中的所述连续重复的多条会话消息,并在所述目标会话的会话界面中显示替换后的消息集。
  2. 如权利要求1所述的方法,其中,所述根据所述多条会话消息获取目标会话消息,包括:
    从所述多条会话消息中选取参考会话消息;
    对所述多条会话消息中除所述参考会话消息以外的剩余会话消息进行折叠处理,得到第一折叠提示;
    采用所述参考会话消息和所述第一折叠提示,组成目标会话消息。
  3. 如权利要求2所述的方法,其中,所述消息集中的每条会话消息均具有消息接收时间;所述从所述多条会话消息中选取参考会话消息,包括:
    从所述多条会话消息中,选取消息接收时间最早的会话消息作为参考会话消息;或者,
    从所述多条会话消息中,按照消息接收时间从早到晚的顺序依次选取预设数量的会话消息作为参考会话消息。
  4. 如权利要求3所述的方法,其中,所述从所述多条会话消息中选取参考会话消息,还包括:
    若所述多条会话消息中存在登录用户所发送的会话消息,则将所述登录用户所发送的会话消息作为所述参考会话消息;
    其中,所述目标会话由社交客户端建立,所述登录用户是指登录所述社交客户端的社交账号所对应的用户。
  5. 如权利要求2所述的方法,其中,所述第一折叠提示包括折叠标识;所述对所述多条会话消息中除所述参考会话消息以外的剩余会话消息进行折叠处理,得到第一折叠提示,包括:
    确定所述多条会话消息中除所述参考会话消息以外的剩余会话消息的剩余数量;
    根据所述剩余会话消息的剩余数量,生成折叠标识。
  6. 如权利要求2所述的方法,其中,所述第一折叠提示包括折叠消息;所述对所述多条会话消息中除所述参考会话消息以外的剩余会话消息进行折叠处理,得到第一折叠提示,包括:
    根据所述多条会话消息中除所述参考会话消息以外的剩余会话消息的剩余数量,以及所述剩余会话消息的消息内容生成提示内容;
    所述提示内容用于提示存在所述剩余数量个用户连续发送了所述消息内容,或者用于提示存在连续的所述剩余数量条消息包含了所述消息内容;
    获取所述剩余会话消息所对应的消息发送用户的用户标识,所述用户标识包括以下至少一项:用户名称以及用户标记图像;
    根据获取到的用户标识和所述提示内容,生成折叠消息。
  7. 如权利要求5所述的方法,其中,所述折叠消息中包括用于触发显示所述剩 余消息的消息链接;所述方法还包括:
    当所述折叠消息中的消息链接被触发时,在所述会话界面显示所述剩余会话消息以及对应的消息发送用户的用户标识;或者,
    当所述折叠消息中的消息链接被触发时,在所述会话界面中输出消息显示窗口,并在所述消息显示窗口中显示所述剩余会话消息以及对应的消息发送用户的用户标识。
  8. 如权利要求1所述的方法,其中,所述目标会话消息包括图像消息,所述图像消息是根据所述多条会话消息以及与所述多条会话消息的消息内容相匹配的图像所生成的消息;所述根据所述多条会话消息获取目标会话消息,包括:
    获取与所述多条会话消息的消息内容相匹配的消息展示模板;所述消息展示模板包含以下三个区域:顶部区域、中间区域和底部区域,且每个区域内显示有与所述消息内容相匹配的图像;
    将所述多条会话消息填充至所述消息展示模板的中间区域,得到图像消息;并将所述图像消息添加至所述目标会话消息中。
  9. 如权利要求8所述的方法,其中,所述消息集中的每条会话消息均具有消息接收时间;所述将所述多条会话消息填充至所述消息展示模板的中间区域,得到图像消息,包括:
    从所述多条会话消息中,按照消息接收时间从早到晚的顺序依次选取预设数量的会话消息;
    将被选取的会话消息填充至所述消息展示模板的中间区域,得到图像消息;
    所述方法还包括:对所述多条会话消息中未被选取的会话消息进行折叠处理,得到第二折叠提示;并将所述第二折叠提示添加至所述目标会话消息中。
  10. 如权利要求8所述的方法,其中,所述方法还包括:
    若检测到针对所述目标会话消息的分享操作,则根据所述目标会话消息生成分享图片;
    从所述会话界面切换至分享界面,并在所述分享界面中显示所述分享图片。
  11. 如权利要求8所述的方法,其中,所述多条会话消息中包含登录用户发送的会话消息;所述方法还包括:
    若所述多条会话消息的数量大于数量阈值,则获取所述登录用户对应的电子资源领取量;所述电子资源领取量是根据资源发放用户针对所述多条会话消息所发放的电子资源总量计算得到的;
    从所述会话界面切换至资源领取界面,并在所述资源领取界面中显示所述电子资源领取量和所述资源发放用户的用户标识。
  12. 如权利要求1所述的方法,其中,所述方法还包括:
    若检测到针对所述会话界面中已显示的会话消息的选择触发事件,则在所述会话界面中输出各已显示的会话消息的消息选项;所述消息选项用于选择所述已显示的会话消息;
    根据针对所述会话界面中的消息选项的选择操作,将被选择的消息选项所对应的已显示的会话消息作为被收折的会话消息;
    若检测到选择完成事件,则根据所述被收折的会话消息创建收折消息,并在所述会话界面中采用所述收折消息替换显示所述被收折的会话消息。
  13. 如权利要求12所述的方法,其中,所述若检测到选择完成事件,则根据所述被收折的会话消息创建收折消息,包括:
    若检测到选择完成事件,则输出消息命名窗口;
    在所述消息命名窗口中,获取针对所述被收折的会话消息设置的自定义消息名称;
    若检测到针对所述自定义消息名称的确认操作,则根据所述自定义消息名称和所述被收折的会话消息的消息发送用户的用户标识,生成收折消息。
  14. 如权利要求12所述的方法,其中,所述方法还包括:
    当所述收折消息被触发时,输出关于所述收折消息的操作选项窗口,所述操作选项窗口中包括以下至少一种操作选项:复制选项、转发选项、回复选项、收藏选项和选择选项;
    根据在所述操作选项窗口中检测到的选择操作,从所述操作选项窗口中确定被选择的操作选项;
    根据所述被选择的操作选项对所述收折消息执行相应操作。
  15. 如权利要求1所述的方法,其中,所述消息集包括以下至少一种消息:会话消息和非会话消息;所述方法还包括:
    从所述消息集中筛选出会话消息,并计算筛选出的会话消息中连续重复的会话消息的数量;
    若计算得到的数量大于或等于预设数量,则确定所述消息集中存在连续重复的多条会话消息;
    若计算得到的数量小于所述预设数量,则确定所述消息集中不存在连续重复的多条会话消息。
  16. 一种消息显示装置,所述装置包括:
    显示单元,配置为显示目标会话的会话界面;
    获取单元,配置为获取所述目标会话的消息集;
    所述显示单元,还配置为若所述消息集中存在连续重复的多条会话消息,则根据所述多条会话消息获取目标会话消息;
    所述显示单元,还配置为采用所述目标会话消息替换所述消息集中的连续重复的多条会话消息,并在所述目标会话的会话界面中显示替换后的消息集。
  17. 一种终端,所述终端包括:处理器和存储器;其中,
    所述存储器中存储有至少一条程序代码,所述至少一条程序代码由所述处理器加载并执行以实现如权利要求1至权利要求15任一项所述的消息显示方法。
  18. 一种计算机可读存储介质,所述计算机可读存储介质中存储有至少一条程序代码,所述至少一条程序代码由处理器加载并执行以实现如权利要求1至权利要求15任一项所述的消息显示方法。
PCT/CN2021/088042 2020-05-14 2021-04-19 消息显示方法、装置、终端及计算机可读存储介质 WO2021227779A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2022546110A JP7472296B2 (ja) 2020-05-14 2021-04-19 メッセージ表示方法、メッセージ表示装置、端末及びコンピュータプログラム
US17/709,055 US20220224663A1 (en) 2020-05-14 2022-03-30 Message Display Method and Apparatus, Terminal, and Computer-Readable Storage Medium
JP2024063447A JP2024086854A (ja) 2020-05-14 2024-04-10 メッセージ表示方法、装置、端末及びコンピュータ読み取り可能記憶媒体

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010410263.5A CN111614547B (zh) 2020-05-14 2020-05-14 消息显示方法、装置、终端及介质
CN202010410263.5 2020-05-14

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/709,055 Continuation US20220224663A1 (en) 2020-05-14 2022-03-30 Message Display Method and Apparatus, Terminal, and Computer-Readable Storage Medium

Publications (1)

Publication Number Publication Date
WO2021227779A1 true WO2021227779A1 (zh) 2021-11-18

Family

ID=72204816

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/088042 WO2021227779A1 (zh) 2020-05-14 2021-04-19 消息显示方法、装置、终端及计算机可读存储介质

Country Status (4)

Country Link
US (1) US20220224663A1 (zh)
JP (2) JP7472296B2 (zh)
CN (2) CN116886660A (zh)
WO (1) WO2021227779A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422482A (zh) * 2022-01-19 2022-04-29 北京字跳网络技术有限公司 消息的发送方法、装置、电子设备、存储介质和程序产品
CN115412517A (zh) * 2022-08-05 2022-11-29 北京达佳互联信息技术有限公司 会话显示方法、会话消息处理方法、设备和存储介质

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116886660A (zh) * 2020-05-14 2023-10-13 腾讯科技(深圳)有限公司 消息显示方法、装置、终端及介质
CN114527913B (zh) * 2020-11-06 2024-03-19 腾讯科技(深圳)有限公司 消息显示方法及装置、终端设备
CN114598674B (zh) * 2020-11-20 2024-07-23 腾讯科技(深圳)有限公司 一种数量统计方法、装置、设备及存储介质
US12021807B2 (en) * 2021-03-12 2024-06-25 Avaya Management L.P. Aggregation and aggregation omission of messages
CN116016415A (zh) * 2022-12-28 2023-04-25 网易(杭州)网络有限公司 会话消息的提示方法、装置、设备及存储介质
US12056450B1 (en) * 2023-05-31 2024-08-06 Dell Products L.P. Message content reduction using message templates
CN118433144B (zh) * 2024-07-04 2024-10-18 阿里健康科技(杭州)有限公司 目标即时通信消息的确定方法及相关装置

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103744592A (zh) * 2013-12-26 2014-04-23 华为技术有限公司 一种信息处理的方法及终端
CN105760104A (zh) * 2016-02-26 2016-07-13 深圳市金立通信设备有限公司 一种消息处理方法及终端
US20180321806A1 (en) * 2017-05-04 2018-11-08 Microsoft Technology Licensing, Llc Arranging user representations according to a priority of users that are concurrently generating instant message content
CN110048862A (zh) * 2019-03-08 2019-07-23 北京三快在线科技有限公司 消息显示方法、装置、电子设备
CN111614547A (zh) * 2020-05-14 2020-09-01 腾讯科技(深圳)有限公司 消息显示方法、装置、终端及介质
CN111865758A (zh) * 2020-06-19 2020-10-30 维沃移动通信(杭州)有限公司 一种消息显示方法、装置及电子设备

Family Cites Families (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20000054321A (ko) * 2000-06-01 2000-09-05 김용태 그림 메일 송수신 시스템 및 방법
JP2002175068A (ja) * 2000-09-22 2002-06-21 Canon Inc 画像表示システム、画像表示方法、記憶媒体及び画像表示装置
US9270806B2 (en) * 2011-06-24 2016-02-23 Google Inc. Graphical user interface which displays profile information associated with a selected contact
KR101942308B1 (ko) * 2012-08-08 2019-01-25 삼성전자주식회사 메시지 기능을 제공하기 위한 방법 및 그 전자 장치
WO2015149025A1 (en) * 2014-03-27 2015-10-01 Dropbox, Inc. Activation of dynamic filter generation for message management systems through gesture-based input
CN106375179B (zh) * 2015-07-23 2020-04-21 腾讯科技(深圳)有限公司 一种显示即时通信消息的方法和装置
US9608950B2 (en) * 2015-08-18 2017-03-28 Blend Systems, Inc. Systems and methods for sharing videos and images in a texting environment
CN105530372A (zh) * 2015-12-03 2016-04-27 小米科技有限责任公司 消息显示方法、装置及终端设备
CN107404387A (zh) * 2016-05-19 2017-11-28 阿里巴巴集团控股有限公司 一种群信息的处理方法、装置
US10509531B2 (en) * 2017-02-20 2019-12-17 Google Llc Grouping and summarization of messages based on topics
CN108334388B (zh) * 2017-07-28 2019-09-17 腾讯科技(深圳)有限公司 会话背景处理方法、装置、计算机设备和存储介质
CN109587031A (zh) * 2017-09-28 2019-04-05 阿里巴巴集团控股有限公司 数据处理方法
US20190121907A1 (en) * 2017-10-23 2019-04-25 International Business Machines Corporation Grouping messages based on temporal and multi-feature similarity
EP3718015B1 (en) * 2017-11-27 2024-08-21 RealNetworks LLC Messaging platform communication processing using message cluster detection and categorization
CN110505141B (zh) * 2018-05-17 2022-10-28 腾讯科技(深圳)有限公司 即时通讯消息的处理方法、装置、可读介质及电子设备
CN108881624B (zh) * 2018-05-30 2021-08-31 维沃移动通信有限公司 一种消息显示方法及终端设备
US11201844B2 (en) * 2018-08-29 2021-12-14 International Business Machines Corporation Methods and systems for managing multiple topic electronic communications
KR102690215B1 (ko) * 2019-03-26 2024-08-01 라인플러스 주식회사 대화 스레드를 표시하기 위한 방법 및 시스템

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103744592A (zh) * 2013-12-26 2014-04-23 华为技术有限公司 一种信息处理的方法及终端
CN105760104A (zh) * 2016-02-26 2016-07-13 深圳市金立通信设备有限公司 一种消息处理方法及终端
US20180321806A1 (en) * 2017-05-04 2018-11-08 Microsoft Technology Licensing, Llc Arranging user representations according to a priority of users that are concurrently generating instant message content
CN110048862A (zh) * 2019-03-08 2019-07-23 北京三快在线科技有限公司 消息显示方法、装置、电子设备
CN111614547A (zh) * 2020-05-14 2020-09-01 腾讯科技(深圳)有限公司 消息显示方法、装置、终端及介质
CN111865758A (zh) * 2020-06-19 2020-10-30 维沃移动通信(杭州)有限公司 一种消息显示方法、装置及电子设备

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422482A (zh) * 2022-01-19 2022-04-29 北京字跳网络技术有限公司 消息的发送方法、装置、电子设备、存储介质和程序产品
CN114422482B (zh) * 2022-01-19 2024-05-10 北京字跳网络技术有限公司 消息的发送方法、装置、电子设备和存储介质
CN115412517A (zh) * 2022-08-05 2022-11-29 北京达佳互联信息技术有限公司 会话显示方法、会话消息处理方法、设备和存储介质
CN115412517B (zh) * 2022-08-05 2023-10-31 北京达佳互联信息技术有限公司 会话显示方法、会话消息处理方法、设备和存储介质

Also Published As

Publication number Publication date
CN116886660A (zh) 2023-10-13
US20220224663A1 (en) 2022-07-14
CN111614547A (zh) 2020-09-01
CN111614547B (zh) 2023-06-09
JP2024086854A (ja) 2024-06-28
JP7472296B2 (ja) 2024-04-22
JP2023513030A (ja) 2023-03-30

Similar Documents

Publication Publication Date Title
WO2021227779A1 (zh) 消息显示方法、装置、终端及计算机可读存储介质
US10728192B2 (en) Apparatus and method for message reference management
US10116598B2 (en) System and method for increasing clarity and expressiveness in network communications
US9425974B2 (en) System and method for increasing clarity and expressiveness in network communications
JP4995973B2 (ja) 電子メール会話を読むためのユーザインタフェース
KR102074022B1 (ko) 네트워크 통신들에서 명확성 및 표현성을 증가시키기 위한 시스템 및 방법
US9544265B2 (en) Tracking interactive text-message communications
CN111193654B (zh) 一种社交会话的处理方法、装置、终端及介质
CN103493438B (zh) 用于移动消息传递应用的优先收件箱通知和同步
US20080212936A1 (en) System and method for editing web-based video
WO2022206699A1 (zh) 消息发送方法、装置及电子设备
US20060031361A1 (en) Method and apparatus for conversational annotation for instant messaging systems
WO2023016536A1 (zh) 一种交互方法、装置、设备和存储介质
WO2024007655A1 (zh) 一种社交处理方法及相关设备
WO2011160468A1 (zh) 一种创建独立消息页的方法及装置
CN112035206A (zh) 一种消息处理方法及设备
JP7478898B2 (ja) メッセージングサービス
US10873554B2 (en) Determining consensus among message participants based on message content
CN114527913A (zh) 消息显示方法及装置、终端设备
US20230342539A1 (en) Information insertion method and apparatus, device, medium, and computer program product
US20240267347A1 (en) Apparatus and method for flow-through editing in a quote-reply messaging system
US20240281103A1 (en) Interaction method and apparatus based on multimedia content, and device and storage medium
CN110855554B (zh) 一种内容聚合方法、装置、计算机设备和存储介质
CN116418776A (zh) 通信对象推荐方法、装置、计算机设备和存储介质
CN117010344A (zh) 会话信息的处理方法和装置、存储介质及电子装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21803571

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2022546110

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 18/04/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21803571

Country of ref document: EP

Kind code of ref document: A1