CN112311656B - Message aggregation and display method and device, electronic equipment and computer readable medium - Google Patents

Message aggregation and display method and device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN112311656B
CN112311656B CN202010093611.0A CN202010093611A CN112311656B CN 112311656 B CN112311656 B CN 112311656B CN 202010093611 A CN202010093611 A CN 202010093611A CN 112311656 B CN112311656 B CN 112311656B
Authority
CN
China
Prior art keywords
message
session
aggregation
aggregated
displayed
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202010093611.0A
Other languages
Chinese (zh)
Other versions
CN112311656A (en
Inventor
不公告发明人
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202010093611.0A priority Critical patent/CN112311656B/en
Publication of CN112311656A publication Critical patent/CN112311656A/en
Application granted granted Critical
Publication of CN112311656B publication Critical patent/CN112311656B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • 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

Abstract

The embodiment of the disclosure discloses a message aggregation and display method, a message aggregation and display device, an electronic device and a computer readable medium. One embodiment of the method comprises: in response to receiving a session message sent by a user in a target session, determining whether an aggregation condition is met; responding to the condition that the aggregation is met, and determining whether a corresponding aggregation queue exists in the target session, wherein the aggregation queue comprises summary information corresponding to at least one session message to be aggregated; and in response to determining that the target session has the corresponding aggregation queue, generating an aggregation message based on the session summary information corresponding to the at least one session message to be aggregated in the aggregation queue and the session message sent by the user. The implementation method avoids resource consumption caused by frequently receiving messages or updating the number of unread messages when the number of messages is large, and further avoids possible abnormal conditions such as application deadlocking or jamming.

Description

Message aggregation and display method and device, electronic equipment and computer readable medium
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to a message aggregation and display method, a message aggregation and display device, electronic equipment and a computer readable medium.
Background
The development of internet technology makes people more and more convenient to communicate, and particularly, the instant chat application greatly facilitates the communication and the exchange of people. In the instant chat application, the messages in the session can be sent to the corresponding terminal in an instant.
Disclosure of Invention
This disclosure presents concepts in a simplified form that are described in detail below in the detailed description. This disclosure is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Some embodiments of the present disclosure propose message aggregation, presentation methods, apparatuses, electronic devices and computer readable media.
In a first aspect, some embodiments of the present disclosure provide a message aggregation method, applied to a server, including: in response to receiving a session message sent by a user in a target session, determining whether an aggregation condition is met; in response to the fact that the aggregation condition is met, determining whether the target session has a corresponding aggregation queue, wherein the aggregation queue comprises session summary information corresponding to at least one session message to be aggregated; adding the session information into an aggregation queue in response to determining that the target session has the corresponding aggregation queue; and responding to the received aggregation instruction, and generating an aggregated message based on the session summary information corresponding to the at least one session message to be aggregated and the session message sent by the user.
In a second aspect, some embodiments of the present disclosure provide a message display method, which is applied to a terminal, and includes: responding to a received message to be displayed corresponding to a target session sent by a server, and determining whether the message to be displayed is an aggregated message; in response to determining that the message to be displayed is an aggregated message, determining whether a session window of the target session is displayed in a foreground, wherein the aggregated message comprises the number of the messages to be displayed and original information of a last message to be displayed; responding to the fact that the conversation window of the target conversation is displayed on the foreground, and acquiring original information of the message to be displayed before aggregation; and displaying the original information.
In a third aspect, some embodiments of the present disclosure provide a message aggregation apparatus, applied to a server, including: a first determining unit, configured to determine whether an aggregation condition is satisfied in response to receiving a session message sent by a user in a target session; a second determining unit, configured to determine, in response to determining that an aggregation condition is satisfied, whether a corresponding aggregation queue exists for the target session, where the aggregation queue includes session digest information corresponding to at least one session message to be aggregated; the adding unit is used for responding to the aggregation queue corresponding to the target session and adding the session information into the aggregation queue; and the aggregation unit is used for responding to the received aggregation instruction and generating an aggregated message based on the session summary information corresponding to the at least one session message to be aggregated and the session message sent by the user.
In a fourth aspect, some embodiments of the present disclosure provide a message display apparatus, which is applied to a terminal, and includes: the message type determining unit is used for responding to the received message to be displayed corresponding to the target session sent by the server and determining whether the message to be displayed is an aggregated message; the running state determining unit is used for responding to the fact that the message to be displayed is determined to be an aggregated message, and determining whether a conversation window of the target conversation is displayed in the foreground, wherein the aggregated message comprises the number of the messages to be displayed and the original information of the last message to be displayed; the acquisition unit is used for responding to the fact that the conversation window of the target conversation is displayed in the foreground, and acquiring original information of the message to be displayed before aggregation; and the display unit is used for displaying the original information.
In a fifth aspect, some embodiments of the present disclosure provide an electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon which, when executed by the one or more processors, cause the one or more processors to implement the method as in any one of the above.
In a sixth aspect, some embodiments of the disclosure provide a computer readable medium having a computer program stored thereon, wherein the program when executed by a processor implements any of the methods described above.
According to the message aggregation method, the message aggregation device, the electronic equipment and the computer readable medium, messages are aggregated, so that resource consumption caused by frequently receiving the messages or updating the number of unread messages when the number of the messages is large is avoided, and abnormal conditions such as application deadlock or blockage are avoided. In practice, by setting the aggregation conditions, the timing for starting the aggregation can be selected and judged so as to increase the adaptability and pertinence of different scenes. In addition, the conversation messages are maintained through the aggregation queue, a certain sequence among a plurality of conversation messages is ensured, and subsequent processing such as distribution is facilitated.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and components are not necessarily drawn to scale.
Fig. 1 is a flow diagram of some embodiments of a message aggregation method according to the present disclosure;
fig. 2 is a flow diagram of some embodiments of a message presentation method according to the present disclosure;
fig. 3 is a schematic structural diagram of some embodiments of a message aggregation apparatus according to the present disclosure;
FIG. 4 is a schematic block diagram of some embodiments of a message presentation apparatus according to the present disclosure;
FIG. 5 is an architectural diagram of an exemplary system in which some embodiments of the present disclosure may be applied;
FIG. 6 is a schematic block diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and the embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein is intended to be open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
In the existing instant chat application, messages in a conversation can be sent to a corresponding terminal instantly. However, in a scenario where there are many conversation messages or a message generation speed is fast, for example, a scenario where many people in a group chat quickly, an abnormal situation such as no response of an application may be caused due to too many messages needing to be processed.
Referring to fig. 1, a flow 100 of some embodiments of a message aggregation method according to the present disclosure is shown. The message aggregation method comprises the following steps:
step 101, in response to receiving a session message sent by a user in a target session, determining whether an aggregation condition is satisfied.
In some embodiments, an electronic device performing a message aggregation method (e.g., a server serving an instant messaging application) may determine whether an aggregation condition is satisfied in response to receiving a session message sent by a user in a target session. The target session may be any session, and the determination of the target session may be obtained through specification or screening according to a certain condition. As an example, a session identified in a currently received message may be determined to be a target session. In practice, when multiple users communicate with each other through various communication applications, it can be considered that a conversation is performed between the multiple users. The window used by the user to enter the conversation message and view conversation messages sent by other users may be considered a conversation window. In practice, the conversation window may also be called a chat window or the like in combination with the presentation habits of people.
In some embodiments, the electronic device may determine whether the aggregation condition is satisfied through various methods according to actual situations. The method of judgment varies depending on the polymerization conditions. As an example, the aggregation condition may be a screening condition for a network condition. Therefore, the session messages are aggregated under the condition of poor network conditions, and the situations of session message loss and the like are avoided. Specifically, it may be determined whether the current wire speed is lower than a preset threshold. As an example, the aggregation condition may be a filtering condition for a message generation speed. Therefore, when the message generation speed is high, the session messages are aggregated, and the condition that the receiving end expenses are overlarge is avoided. Specifically, it may be determined whether the number of message generations within a certain time exceeds a preset threshold. As an example, the aggregation condition may also be a filtering condition for the number of users in the target session. For example, the polymerization conditions may be: and aggregating when the number of users is greater than or equal to 100. Thereby avoiding the reduction of processing capacity caused by too many people and too fast message generation speed.
In some embodiments, if the aggregation condition is satisfied, execution may continue with step 102. Optionally, if the aggregation condition is not satisfied, the session message may not be aggregated and may be directly sent to the corresponding terminal.
Step 102, in response to determining that the aggregation condition is satisfied, determining whether the target session has a corresponding aggregation queue, where the aggregation queue includes at least one session message to be aggregated.
In some embodiments, in response to meeting the aggregation condition, the electronic device executing the message aggregation method may determine whether a corresponding aggregation queue exists for the target session. The aggregation queue comprises session summary information corresponding to at least one session message to be aggregated. In some application scenarios, the aggregation queue may include respective original information of the at least one session message to be aggregated, and in other application scenarios, the aggregation queue may include respective storage addresses of the respective original information of the at least one session message to be aggregated. According to the actual situation, the session summary information corresponding to at least one session message to be aggregated can be arranged according to a certain sequence. As an example, the ordering may be in chronological order of the generation of the messages. Therefore, the correct sequence of the session messages finally received by the user is ensured. In practice, as an example, there may be a correspondence between the target session and the aggregation queue. Therefore, the corresponding aggregation queue can be searched for through the target session (for example, through a preset identifier), and if the aggregation queue cannot be searched for, it can be determined that the target session does not have the corresponding aggregation queue. If so, execution may continue at step 103.
In an optional implementation manner of some embodiments, if it is determined that the aggregation queue corresponding to the target session does not exist, the aggregation queue corresponding to the target session may be created, and the session information may be added to the aggregation queue.
Step 103, adding session information into the aggregation queue in response to determining that the target session has the corresponding aggregation queue.
In some embodiments, in response to determining that the aggregation queue corresponding to the target session exists, the electronic device performing the message aggregation method may add session information (where the session information may include summary information and original information of the session information sent by the user, or the session information may include summary information and a storage address corresponding to the original information of the session information sent by the user, etc.) to the aggregation queue. In practice, session messages may be added to the aggregation queue according to the ordering in the queue. For example, session messages may be added to the aggregation queue according to the precedence order in which the session messages are generated. For another example, the conversation message may be classified according to its type (e.g., picture, text, voice), and then added to the aggregation queue.
And step 104, in response to receiving the aggregation instruction, generating an aggregation message based on the session summary information corresponding to each of the at least one session message to be aggregated and the session message sent by the user.
In some embodiments, in response to receiving the aggregation instruction, the electronic device executing the message aggregation method may generate an aggregated message based on the session summary information corresponding to each of the at least one session message to be aggregated in the aggregation queue and the session message sent by the user.
In some application scenarios, the generating an aggregated message based on session summary information corresponding to at least one session message to be aggregated and a session message sent by a user includes the following steps:
first, digest information of session messages in an aggregation queue is obtained, and a digest information set is obtained. Wherein, as an example, the summary information may include but is not limited to: number, identification, keyword, etc. The digest information may also be obtained by encoding the session message using a preset encoding rule.
Secondly, the summary information set and the original information of the session message which is added into the aggregation queue finally are combined to obtain the aggregation message. In practice, the summary information set obtained in the first step and the original information of the session message that is finally added to the aggregation queue may be combined according to a preset format or rule, so as to obtain the aggregation message.
In some other application scenarios, summary information corresponding to each of the plurality of session messages in the aggregation queue may be aggregated.
The aggregation instruction may be an instruction directly sent by a background, or an instruction generated according to a preset processing logic or condition. As an example, a time window (e.g., 3 seconds) may be preset. When the time window edge is reached, an aggregation instruction may be generated to aggregate the plurality of session messages in the aggregation queue to obtain an aggregated message.
In practice, according to practical situations, a plurality of aggregation modes can be adopted to obtain the aggregation message. As an example, part of the information of each session message in the aggregation queue may be extracted and combined, so as to obtain an aggregated message. In addition, the original information of each session message in the aggregation queue can be aggregated, so that an aggregated message is obtained.
In an optional implementation manner of some embodiments, the electronic device executing the message aggregation method may push the aggregated message to the terminal.
According to the message aggregation method provided by some embodiments of the disclosure, by aggregating messages, resource consumption caused by frequently receiving messages and updating the number of unread messages when the number of messages is large is avoided, so that abnormal situations such as application deadlock or blocking are avoided. In practice, by setting the aggregation conditions, the timing for starting the aggregation can be selected and judged so as to increase the adaptability and pertinence of different scenes. In addition, the conversation messages are maintained through the aggregation queue, a certain sequence among a plurality of conversation messages is ensured, and subsequent processing such as distribution is facilitated.
With further reference to fig. 2, a flow 200 of some embodiments of a message presentation method is shown. The process 200 of the message display method includes the following steps:
step 201, in response to receiving a message to be displayed corresponding to a target session sent by a server, determining whether the message to be displayed is an aggregated message.
In some embodiments, an electronic device (e.g., a terminal device of a user) executing the message presentation method may determine whether a message to be presented is an aggregated message in response to receiving a message to be presented corresponding to a target session sent by a server. In practice, the message to be presented is generally a message forwarded via the server. Which may be messages sent by one or more users in the target session. On the basis, the electronic device executing the message presentation method can determine whether the message to be presented is an aggregated message. If the message is an aggregated message, step 202 may be continued. Optionally, if the message is not an aggregated message, the message to be displayed may be directly displayed. In practice, the message to be presented may include an identifier for indicating the type of the message, so that whether the message to be presented is an aggregated message may be determined by the identifier.
Step 202, in response to determining that the message to be displayed is an aggregated message, determining whether a conversation window of the target conversation is displayed in the foreground.
In some embodiments, in response to determining that the message to be presented is an aggregated message, the electronic device performing the message presentation method described above may determine whether the target conversation window is displayed in the foreground. In practice, in some messaging applications, a user may communicate with different users (buddies) so that there are multiple conversation windows. Generally, a session window corresponding to a session currently performed by the user is displayed in the foreground. And the conversation window corresponding to the conversation not currently carried out by the user is not displayed in the foreground. In practice, as an example, the attribute of the conversation window may include the display state of the conversation window, that is, whether the conversation window is displayed in the foreground. So that it can be determined whether the conversation window is displayed in the foreground by querying for a particular attribute.
The aggregated message may include the number of messages to be displayed and the original information of the last message to be displayed
Step 203, in response to determining that the conversation window of the target conversation is displayed in the foreground, acquiring the original information of the message to be displayed before aggregation.
And step 204, displaying the original information.
In some embodiments, in response to determining that the conversation window of the target conversation is displayed in the foreground, the electronic device executing the message presentation method may obtain an original message of the message to be presented before aggregation. Since the message to be presented is an aggregated message, it can be aggregated by multiple session messages (e.g., the summary information of the original messages corresponding to the session messages). The message to be displayed has a corresponding relation with a plurality of pieces of original information. As an example, the plurality of original messages may be stored at the server. Therefore, the electronic device executing the message display method may obtain multiple original messages corresponding to the aggregated message, that is, the original messages before aggregation, from the server in response to an operation (for example, an up-down sliding update operation) of the user.
In some embodiments, the original information may be presented. According to the requirement, different display modes can be adopted to display the original information. For example, the original message may be presented in a conversation window. Further, the number of the original information updated this time may also be displayed.
In some application scenarios, the original messages before aggregation can be acquired from the server side in batches according to actual requirements.
In these application scenarios, the obtaining the original information of the message to be displayed before aggregation in response to determining that the session window of the target session is displayed in the foreground includes: and acquiring original information of a part of messages to be displayed matched with the sliding operation before aggregation based on the sliding operation executed by the user in the conversation window of the target conversation.
Further, the displaying the original information includes: and displaying the original information of the message before aggregation in a part of the display matched with the sliding operation of the user in the current window of the target session.
In an optional implementation manner of some embodiments, the message to be displayed is obtained by the following steps: acquiring summary information of session messages in a polymerization queue to obtain a summary information set; and combining the summary information set with the session message which is finally added into the aggregation queue to obtain the message to be displayed.
On this basis, the message display method 200 may further include: and in response to the fact that the conversation window of the target conversation is not displayed in the foreground, analyzing the message to be displayed to obtain the conversation message and the abstract information set which are finally added into the aggregation queue. The message to be displayed can be analyzed according to the method or rule adopted by aggregation. Thereby obtaining the set of session messages and summary information that is added to the aggregate queue at last. Further, the number of the session messages in the aggregation queue is obtained according to the summary information set, and the original content and the number of the session messages added into the aggregation queue are displayed finally.
According to the message display method provided by some embodiments of the disclosure, by determining the message type and the display state of the conversation window, when the conversation window is displayed in the foreground, the original message corresponding to the aggregated message can be acquired, and finally the original message is displayed.
With further reference to fig. 3, as an implementation of the method shown in fig. 1 described above, the present disclosure provides some embodiments of a message aggregation apparatus, which correspond to those of the method shown in fig. 1, and which may be applied in various electronic devices in particular.
As shown in fig. 3, the message aggregation apparatus 300 of some embodiments includes: a first determining unit 301, a second determining unit 302, a joining unit 303 and an aggregation unit 304. The first determining unit 301 is configured to determine whether an aggregation condition is satisfied in response to receiving a session message sent by a user in a target session. The second determining unit 302 is configured to determine, in response to determining that the aggregation condition is satisfied, whether a corresponding aggregation queue exists for the target session, where the aggregation queue includes session summary information corresponding to each of at least one to-be-aggregated session message. The adding unit 303 is configured to add session information to an aggregation queue in response to determining that a corresponding aggregation queue exists for the target session. The aggregation unit 304 is configured to, in response to receiving the aggregation instruction, generate an aggregation message based on session summary information corresponding to each of the at least one session message to be aggregated and the session message sent by the user.
In this embodiment, specific processes of the first determining unit 301, the second determining unit 302, the adding unit 303, and the aggregating unit 304 of the message aggregating apparatus and technical effects thereof may refer to related descriptions of step 101, step 102, step 103, and step 104 in the corresponding embodiment of fig. 1, which are not described herein again.
In some embodiments, specific implementations of the first determining unit 301, the second determining unit 302, the adding unit 303, and the aggregating unit 304 in the message aggregating apparatus 300 and technical effects brought by the specific implementations may refer to those embodiments corresponding to fig. 1, and are not described herein again.
In an optional implementation manner of some embodiments, the aggregation unit 304 is further configured to obtain summary information of the session messages in the aggregation queue, to obtain a summary information set; and combining the summary information set with the original information of the session message which is added into the aggregation queue finally to obtain the aggregation message.
In an optional implementation manner of some embodiments, the message aggregation apparatus 300 may further include: a creating unit (not shown in the figure). The creating unit is used for creating an aggregation queue corresponding to the target session in response to determining that the aggregation queue corresponding to the target session does not exist, and adding the session information into the aggregation queue.
In an optional implementation manner of some embodiments, the message aggregation apparatus 300 may further include: a pushing unit (not shown in the figure). Wherein, the pushing unit is used for: and pushing the aggregated message to the terminal.
The embodiment provides a pair of message aggregation devices, which can avoid abnormal situations such as application deadlock or deadlock caused by frequent message receiving and unread message updating when a large number of messages are provided. In practice, by setting the aggregation conditions, the timing for starting the aggregation can be selected and judged so as to increase the adaptability and pertinence of different scenes. In addition, the conversation messages are maintained through the aggregation queue, a certain sequence among a plurality of conversation messages is ensured, and subsequent processing such as distribution is facilitated.
With continuing reference to fig. 4, as an implementation of the method illustrated in fig. 2 described above, the present disclosure provides some embodiments of a message presentation apparatus, which correspond to those of the method illustrated in fig. 2, and which may be particularly applicable in various electronic devices.
As shown in fig. 4, the message presentation apparatus 400 of some embodiments includes: a message type determining unit 401, an operation state determining unit 402, an obtaining unit 403 and a presentation unit 404. The message type determining unit 401 is configured to determine, in response to receiving a message to be displayed corresponding to a target session sent by a server, whether the message to be displayed is an aggregated message; the running state determining unit 402 is configured to determine whether a session window of a target session is displayed in the foreground in response to determining that the message to be displayed is an aggregated message; the obtaining unit 403 is configured to obtain, in response to determining that a session window of a target session is displayed in a foreground, original information of a message to be displayed before aggregation; the presentation unit 404 is used for presenting the original information.
In this embodiment, the detailed processing of the message type determining unit 401, the running state determining unit 402, the obtaining unit 403, and the displaying unit 404 of the message displaying apparatus 400 and the technical effects brought by the detailed processing may refer to the related descriptions of step 201, step 202, step 203, and step 204 in the corresponding embodiment of fig. 2, which are not repeated herein.
In an optional implementation manner of some embodiments, the message to be displayed is obtained by the server through the following steps: acquiring summary information of session messages in a polymerization queue to obtain a summary information set; combining the summary information set with the session message which is added into the aggregation queue finally to obtain a message to be displayed; and message presentation apparatus 400 may further comprise: a parsing unit (not shown in the figure), a quantity determination unit (not shown in the figure) and a message and quantity presentation unit (not shown in the figure). The analysis unit is used for responding to the fact that the conversation window of the target conversation is not displayed in the foreground, analyzing the message to be displayed and obtaining the conversation message and the abstract information set which are added into the aggregation queue finally; the quantity determining unit is used for obtaining the quantity of the session messages in the aggregation queue according to the summary information set; and the message and quantity display unit is used for displaying the session messages and quantity finally added into the aggregation queue.
In an optional implementation manner of some embodiments, the obtaining unit 403 is further configured to obtain, based on a sliding operation performed by a user in a session window of the target session, original information of a part of the message to be displayed, which is matched with the sliding operation, before aggregation.
In an optional implementation manner of some embodiments, the presentation unit 404 is further configured to present, in a current window of the target session, original information of a part of the messages to be presented, which is matched with the sliding operation of the user, before aggregation. The message display unit provided in this embodiment can obtain the original message corresponding to the aggregated message when the conversation window is displayed in the foreground by determining the message type and the display state of the conversation window, and finally realize the display of the original message.
With further reference to fig. 5, fig. 5 illustrates an exemplary system architecture 500 of a message aggregation, exposure method or message aggregation, exposure apparatus to which some embodiments of the present disclosure may be applied.
As shown in fig. 5, the system architecture 500 may include terminal devices 501, 502, 503, a network 504, and a server 505. The network 504 serves to provide a medium for communication links between the terminal devices 501, 502, 503 and the server 505. Network 504 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 501, 502, 503 to interact with a server 505 over a network 504 to receive or send messages or the like. Various communication client applications, such as an instant messaging application, may be installed on the terminal devices 501, 502, 503.
The terminal devices 501, 502, 503 may be hardware or software. When the terminal devices 501, 502, 503 are hardware, they may be various electronic devices having a display screen and supporting information presentation, including but not limited to smart phones, tablet computers, e-book readers, laptop portable computers, desktop computers, and the like. When the terminal devices 501, 502, and 503 are software, they can be installed in the electronic devices listed above. It may be implemented, for example, as multiple software or software modules to provide distributed services, or as a single software or software module. And is not particularly limited herein.
The server 505 may be a server providing various services, such as a background message processing server providing support for messages presented on the terminal devices 501, 502, 503. The background message processing server can forward the session message sent by the user and the like.
It should be noted that the message aggregation method provided by the embodiment of the present disclosure is generally performed by the server 505. Accordingly, the message aggregation means is also typically provided in the server 505. The message presentation methods provided by the embodiments of the present disclosure are generally performed by the terminal devices 501, 502, 503. Accordingly, the message presentation means are also typically provided in the terminal devices 501, 502, 503.
The server may be hardware or software. When the server is hardware, it may be implemented as a distributed server cluster composed of multiple servers, or may be implemented as a single server. When the server is software, it may be implemented as multiple pieces of software or software modules, for example, to provide distributed services, or as a single piece of software or software module. And is not particularly limited herein.
It should be understood that the number of terminal devices, networks, and servers in fig. 5 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to fig. 6, a schematic diagram of an electronic device (e.g., the server or terminal device of fig. 5) 600 suitable for use in implementing some embodiments of the present disclosure is shown. The terminal device in some embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a fixed terminal such as a digital TV, a desktop computer, and the like. The terminal device/server shown in fig. 6 is only an example, and should not bring any limitation to the functions and the use range of the embodiments of the present disclosure.
As shown in fig. 6, the electronic device 600 may include a processing means (e.g., central processing unit, graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, or the like; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; a storage device 608 including, for example, a magnetic tape, a hard disk, a memory card, or the like; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates an electronic device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 6 may represent one device or may represent multiple devices as desired.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer-readable medium, the computer program comprising program code for performing the method illustrated by the flow chart. In some such embodiments, the computer program may be downloaded and installed from a network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of some embodiments of the present disclosure.
It should be noted that the computer readable medium described in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: in response to receiving a session message sent by a user in a target session, determining whether an aggregation condition is met; responding to the condition that the aggregation is met, and determining whether the target session has a corresponding aggregation queue, wherein the aggregation queue comprises session summary information corresponding to at least one session message to be aggregated; in response to determining that the target session has a corresponding aggregation queue, adding the session information to the aggregation queue; and in response to receiving an aggregation instruction, generating an aggregation message based on the session summary information corresponding to each of the at least one to-be-aggregated session message in the aggregation queue and the session message sent by the user. Or alternatively
Responding to a received message to be displayed corresponding to a target session sent by a server, and determining whether the message to be displayed is an aggregated message; in response to determining that the message to be displayed is an aggregated message, determining whether a conversation window of the target conversation is displayed in a foreground; in response to the fact that the conversation window of the target conversation is determined to be displayed in the foreground, acquiring original information of the message to be displayed before aggregation; and displaying the original information.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by software or hardware. For example, the aggregation unit may be further described as a "unit that generates an aggregation message based on the session summary information corresponding to each of the at least one session message to be aggregated and the session message sent by the user in response to receiving the aggregation instruction".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems on a chip (SOCs), complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the inventive concept as defined above. For example, the above features and (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.

Claims (12)

1. A message aggregation method is applied to a server and comprises the following steps:
in response to receiving a session message sent by a user in a target session, determining whether an aggregation condition is met;
in response to the fact that the aggregation condition is met, determining whether the target session has a corresponding aggregation queue, wherein the aggregation queue comprises session summary information corresponding to at least one session message to be aggregated;
in response to determining that the target session has a corresponding aggregation queue, adding the session message to the aggregation queue;
and in response to receiving an aggregation instruction, generating an aggregation message based on the session summary information corresponding to each of the at least one to-be-aggregated session message in the aggregation queue and the session message sent by the user.
2. The method of claim 1, wherein the generating an aggregated message based on the session summary information corresponding to each of the at least one session message to be aggregated and the session message sent by the user comprises:
acquiring summary information of the session messages in the aggregation queue to obtain a summary information set;
and combining the summary information set with the original information of the session message which is added into the aggregation queue finally to obtain the aggregation message.
3. The method of claim 1, wherein the method further comprises:
and in response to the fact that the aggregation queue corresponding to the target session does not exist, creating the aggregation queue corresponding to the target session, and adding the session message into the aggregation queue.
4. The method of claim 1, wherein the method further comprises:
and pushing the aggregation message to a terminal.
5. A message display method is applied to a terminal and comprises the following steps:
responding to a received message to be displayed corresponding to a target session sent by a server, and determining whether the message to be displayed is an aggregated message;
in response to determining that the message to be displayed is an aggregated message, determining whether a conversation window of the target conversation is displayed in the foreground;
in response to the fact that the conversation window of the target conversation is determined to be displayed in the foreground, acquiring original information of the message to be displayed before aggregation;
displaying the original information;
wherein the aggregated message is obtained by the server by: in response to receiving a session message sent by a user in a target session, determining whether an aggregation condition is met; in response to the fact that the aggregation condition is met, determining whether the target session has a corresponding aggregation queue, wherein the aggregation queue comprises session summary information corresponding to at least one session message to be aggregated; in response to determining that the target session has a corresponding aggregation queue, adding the session message to the aggregation queue; and in response to receiving an aggregation instruction, generating the aggregated message based on the session summary information corresponding to each of the at least one to-be-aggregated session message in the aggregation queue and the session message sent by the user.
6. The method of claim 5, wherein the message to be presented is obtained by the server by:
acquiring summary information of session messages in an aggregation queue to obtain a summary information set;
combining the summary information set with the session message which is added into the aggregation queue finally to obtain the message to be displayed; and
the method further comprises the following steps:
in response to determining that the conversation window of the target conversation is not displayed in the foreground, analyzing the message to be displayed to obtain the conversation message and the summary information set which are finally added into the aggregation queue;
acquiring the number of session messages in the aggregation queue according to the summary information set;
and displaying the original content and the quantity of the session messages finally added into the aggregation queue.
7. The method of claim 5, wherein the obtaining of the original information of the message to be presented before the aggregation in response to determining that the conversation window of the target conversation is displayed in the foreground comprises:
and acquiring original information of a part of messages to be displayed matched with the sliding operation before aggregation based on the sliding operation executed by the user in the session window of the target session.
8. The method of claim 7, wherein said presenting the original information comprises:
and displaying the original information of the part of the messages to be displayed, which is matched with the sliding operation of the user, before aggregation in the current window of the target session.
9. A message aggregation device applied to a server comprises:
a first determining unit, configured to determine whether an aggregation condition is satisfied in response to receiving a session message sent by a user in a target session;
a second determining unit, configured to determine, in response to determining that an aggregation condition is met, whether the target session has a corresponding aggregation queue, where the aggregation queue includes session summary information corresponding to at least one session message to be aggregated;
the joining unit is used for responding to the fact that the aggregation queue corresponding to the target session exists, and joining the session message into the aggregation queue;
and the aggregation unit is used for responding to the received aggregation instruction and generating an aggregated message based on the session summary information corresponding to the at least one session message to be aggregated and the session message sent by the user.
10. A message display device is applied to a terminal and comprises:
the message type determining unit is used for responding to the received message to be displayed corresponding to the target session sent by the server and determining whether the message to be displayed is an aggregated message;
the running state determining unit is used for determining whether a conversation window of the target conversation is displayed in the foreground or not in response to the fact that the message to be displayed is determined to be an aggregated message, wherein the aggregated message comprises the number of the messages to be displayed and the original information of the last message to be displayed;
the acquisition unit is used for responding to the fact that the conversation window of the target conversation is displayed in the foreground, and acquiring original information of the message to be displayed before aggregation;
the display unit is used for displaying the original information;
wherein the aggregated message is obtained by the server by: in response to receiving a session message sent by a user in a target session, determining whether an aggregation condition is met; in response to the fact that the aggregation condition is met, determining whether the target session has a corresponding aggregation queue, wherein the aggregation queue comprises session summary information corresponding to at least one session message to be aggregated; in response to determining that the target session has a corresponding aggregation queue, adding the session message to the aggregation queue; and in response to receiving an aggregation instruction, generating the aggregated message based on the session summary information corresponding to each of the at least one to-be-aggregated session message in the aggregation queue and the session message sent by the user.
11. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-8.
12. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1-8.
CN202010093611.0A 2020-02-14 2020-02-14 Message aggregation and display method and device, electronic equipment and computer readable medium Active CN112311656B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010093611.0A CN112311656B (en) 2020-02-14 2020-02-14 Message aggregation and display method and device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010093611.0A CN112311656B (en) 2020-02-14 2020-02-14 Message aggregation and display method and device, electronic equipment and computer readable medium

Publications (2)

Publication Number Publication Date
CN112311656A CN112311656A (en) 2021-02-02
CN112311656B true CN112311656B (en) 2022-10-11

Family

ID=74336741

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010093611.0A Active CN112311656B (en) 2020-02-14 2020-02-14 Message aggregation and display method and device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN112311656B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113626504B (en) * 2021-07-30 2024-02-09 北京达佳互联信息技术有限公司 Message aggregation method and device
CN114205320B (en) * 2021-09-28 2023-06-20 北京达佳互联信息技术有限公司 Message display method and device, electronic equipment and storage medium
CN113905002A (en) * 2021-09-30 2022-01-07 北京字跳网络技术有限公司 Message pushing method, device, system and storage medium
CN116760504B (en) * 2023-08-16 2023-11-03 中移(苏州)软件技术有限公司 Session synchronization method, device, service node, terminal and readable storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10164783B2 (en) * 2014-02-26 2018-12-25 International Business Machines Corporation Enhancing collaboration in real-time group chat system and method
CN108989179B (en) * 2017-05-31 2020-10-02 腾讯科技(深圳)有限公司 Message processing method and device and storage medium
CN109639564A (en) * 2018-12-12 2019-04-16 金瓜子科技发展(北京)有限公司 A kind of method, apparatus and computer readable storage medium obtaining offline message

Also Published As

Publication number Publication date
CN112311656A (en) 2021-02-02

Similar Documents

Publication Publication Date Title
CN112311656B (en) Message aggregation and display method and device, electronic equipment and computer readable medium
CN112311841B (en) Information pushing method and device, electronic equipment and computer readable medium
CN110809189B (en) Video playing method and device, electronic equipment and computer readable medium
CN110781373B (en) List updating method and device, readable medium and electronic equipment
CN111784712B (en) Image processing method, device, equipment and computer readable medium
CN112035030B (en) Information display method and device and electronic equipment
CN111596991A (en) Interactive operation execution method and device and electronic equipment
CN112965673A (en) Content printing method, device, equipment and storage medium
CN111596992B (en) Navigation bar display method and device and electronic equipment
CN111262778B (en) Invitation link information processing method and device, electronic equipment and readable medium
CN112367241A (en) Message generation and message transmission method, device, equipment and computer readable medium
CN110619101B (en) Method and apparatus for processing information
CN111756953A (en) Video processing method, device, equipment and computer readable medium
CN111368557B (en) Video content translation method, device, equipment and computer readable medium
CN113486749A (en) Image data collection method, device, electronic equipment and computer readable medium
CN112417276A (en) Paging data acquisition method and device, electronic equipment and computer readable storage medium
CN112363782A (en) Chat interface display method and device, electronic equipment and computer readable medium
CN112100205A (en) Data processing method, device, equipment and computer readable medium
CN112131832A (en) Method and device for reminding task state of online document and electronic equipment
CN111291254A (en) Information processing method and device
CN111367592A (en) Information processing method and device
CN113612676B (en) Social group message synchronization method, device, equipment and storage medium
CN111294321B (en) Information processing method and device
CN110602224B (en) Method, electronic device and computer readable medium for pushing information
CN115314456A (en) Interaction method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant