Message processing method, device, electronic device and storage medium
By aggregating messages that meet the same conditions in the chat group, forming aggregated messages and replacing the original messages, the problem of repeated information flooding in the chat group is solved and information efficiency is improved.
Patent Information
- Application Number
- CN202210764451.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-29
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2042-06-29
AI Technical Summary
In chat groups, duplicate information is prone to flooding the screen when there are too many messages, resulting in low information efficiency.
By determining whether the message sent by the user in the session meets the same message condition, if it is satisfied, multiple messages are aggregated to form an aggregated message, and multiple identical messages are replaced with aggregated messages in the session.
It effectively reduces the display of duplicate information, improves the efficiency of information communication within the group, and avoids the emergence of too much invalid information.
Smart Images

Figure CN115098210B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of software technology, and in particular to a message processing method, device, electronic device and storage medium. Background Art
[0002] Nowadays, the use of communication chat software for communication has become more and more popular. Through chat messages, you can quickly and intuitively obtain effective information in the chat messages.
[0003] When there are many messages in a chat group, repeated messages often appear below the messages that require a reply, resulting in low information efficiency. Summary of the Invention
[0004] In view of this, the purpose of this application is to provide a message processing method, device and electronic device.
[0005] Based on the above objectives, this application provides a message processing method, including:
[0006] In response to messages sent by users in a conversation, multiple messages that meet the same message condition are aggregated to form an aggregate message;
[0007] The aggregate message is used to replace the messages meeting the same message condition in the conversation and the aggregate message is displayed.
[0008] In some optional implementations, the aggregate message includes one or more of the following:
[0009] Message content;
[0010] the number of the plurality of messages;
[0011] User information of the user who sent the multiple messages.
[0012] In some optional embodiments, if the multiple messages include only text messages, it is determined whether the multiple text messages exceeding the threshold contain the same text content. If so, it is determined that the multiple messages containing the same text content meet the same message condition, and the same text content is used as the message content of the aggregate message corresponding to the multiple text messages.
[0013] In some optional implementations, if the first text message that meets the same message condition includes other content in addition to the same text content, the aggregate message is displayed along with the first text message.
[0014] In some optional implementations, if the multiple messages include both text messages and emoticon messages, determining a keyword corresponding to each emoticon message;
[0015] Determine whether the text message contains the same text content, and whether the keyword corresponding to the emoticon message is the same as the text content; or, determine the keyword corresponding to the emoticon message, and determine whether the text message contains the keyword;
[0016] If so, when the number of the text messages and emoticon messages exceeds a threshold, it is determined that the text messages and the emoticon messages meet the same message condition, and the keyword and / or the first emoticon corresponding to the emoticon message is used as the message content of the corresponding aggregate message.
[0017] In some optional implementations, after displaying the aggregate message, if it is determined that the message interruption condition is met and multiple messages that meet the same requirements as the previous aggregate message are received again, the multiple messages received again are aggregated again to obtain a new aggregate message.
[0018] In some optional implementations, after displaying the aggregate message, when a message meeting the same message condition is received again, it is determined whether the message interruption condition is met. If not, the received message is aggregated into the aggregate message.
[0019] In some optional embodiments, the method further comprises:
[0020] Preset at least one keyword corresponding to each expression;
[0021] If it is detected that the text message input by the user includes a keyword corresponding to the second emoticon, the second emoticon and the text content corresponding to the text message are used together as message sending options, so that the user can select a corresponding message format to send to the conversation.
[0022] In some optional implementations, detecting that the text message input by the user includes a keyword corresponding to the second emoticon includes:
[0023] Using the mouse cursor positioning point as the search cutoff point, search the text content before the cursor in the user input message, and match it with the keywords corresponding to each emoticon preset in the system in turn. If the match is successful, it is determined that the text message input by the user includes the keyword corresponding to the second emoticon that is successfully matched.
[0024] In some optional implementations, if it is detected that the text message input by the user includes keywords corresponding to multiple second expressions, the multiple second expressions are provided as message sending options for the user to select.
[0025] In some optional implementations, in response to an aggregate message merging operation triggered by a user, the new aggregate message is merged with the previous aggregate message.
[0026] In some optional implementations, displaying the aggregate message and displaying the first text message includes:
[0027] The number of messages in the aggregate message is increased by 1, and the first text message is displayed.
[0028] In some optional implementations, if the multiple messages that meet the same message condition include multiple messages sent by the same user, the message count corresponding to the multiple messages sent by the same user is 1.
[0029] In some optional embodiments, the method further includes:
[0030] Re-aggregate adjacent aggregated messages.
[0031] In some optional implementations, the multiple messages are all text messages;
[0032] or,
[0033] The plurality of messages include text messages and emoticons.
[0034] Based on the same technical concept, the present application also provides a message processing device, including:
[0035] an aggregation module, configured to, in response to a group message sent by a user in a group conversation, aggregate a plurality of consecutive messages in the group message that meet the same message condition to form an aggregate message;
[0036] The display module is configured to replace the messages meeting the same message condition with the aggregate message in the group conversation and to display the aggregate message.
[0037] Based on the same technical concept, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the methods described above is implemented.
[0038] Based on the same technical concept, the present application also provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable a computer to execute any of the methods described above.
[0039] As can be seen from the above, the message processing method provided by the present application, when receiving a message sent by a user in a conversation, judges the message. If multiple messages meet the same message conditions, the multiple messages are aggregated to form an aggregated message, and the aggregated message is used to replace multiple identical messages in the conversation, so that repeated replies from multiple people in the communication conversation message can be displayed in an aggregated manner, thereby improving the efficiency of information communication within the group and avoiding excessive invalid information. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions in this application or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are merely embodiments of this application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0041] Figure 1 This is a schematic diagram of an application scenario of the message processing method according to an embodiment of the present application;
[0042] Figure 2 A flowchart of a message processing method according to an embodiment of the present application;
[0043] Figure 3 This is a schematic diagram of an aggregate message according to an embodiment of the present application;
[0044] Figure 4 This is another schematic diagram of aggregated messages according to an embodiment of the present application;
[0045] Figure 5 This is a structural diagram of a message processing device according to an embodiment of the present application;
[0046] Figure 6 This is a schematic structural diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0047] In order to make the objectives, technical solutions and advantages of this application more clear, this application is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0048] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should have the usual meanings understood by people with ordinary skills in the field to which this application belongs. The "first", "second" and similar words used in the embodiments of the present application do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect.
[0049] When there are many messages in a chat group, repeated messages often appear on the screen below the messages that need to be replied to, resulting in low information efficiency. In order to solve this problem, the relevant technology hides repeated emojis in the chat messages in the chat group. Emoji (Japanese "emoji") is a visual emotional symbol used in Internet communication. "Emoji" refers to graphics, and text is the interpretation of graphics. It can be used to express a variety of emotions, such as a smiley face represents laughter, a cake represents food, etc.
[0050] In related technologies, when more than three identical emoji expressions appear consecutively in a group chat message, they will be received in a card. If the same emoji is sent again after a period of time, it will still be received in the card until other content is sent in the group.
[0051] However, in the related art, only repeated emojis can be collapsed, while group messages still contain a large amount of text content. When the text content is repeated, the repeated text cannot be collapsed, which also leads to low efficiency of group information.
[0052] In order to solve the above problems, an embodiment of the present application provides a message processing method, which responds to messages sent by users in a conversation, aggregates multiple messages that meet the same message conditions in the message to form an aggregated message; uses the aggregated message to replace the messages that meet the same message conditions in the conversation and displays the aggregated message, so that repetitive replies from multiple people in the communication conversation message can be displayed in an aggregated manner, thereby improving the efficiency of information communication within the group and avoiding excessive invalid information.
[0053] refer to Figure 1 , which is a schematic diagram of an application scenario of the message processing method provided in an embodiment of the present application. The application scenario includes a first electronic device 110 and a second electronic device 120. Among them, the first electronic device 110 and the second electronic device 120 can be connected through a wired or wireless communication network. The first electronic device 110 and the second electronic device 120 are only used to distinguish different electronic devices and do not represent the number of electronic devices in the application scenario. In actual applications, there can be multiple electronic devices. The first electronic device 110 or the second electronic device 120 includes but is not limited to desktop computers, mobile phones, mobile computers, tablet computers, media players, smart wearable devices, personal digital assistants (PDAs) or other electronic devices that can realize the above functions.
[0054] The first electronic device 110 / the second electronic device 120 is installed with a client for communicating with the second electronic device 120 / the first electronic device 110. The user can enter the group conversation through the client and view messages sent by other users. When there are multiple messages that meet the same message conditions, the multiple messages are aggregated to form an aggregated message, where the aggregated message includes the message content, the number of merged messages and user information; the aggregated message is used to replace the message that meets the same message conditions in the conversation and the aggregated message is displayed, so that repeated replies from multiple people in the communication conversation message can be received in one place, thereby improving the efficiency of information communication within the group and avoiding excessive invalid information.
[0055] The following combination Figure 1 The message processing method according to the exemplary embodiment of the present application is described with reference to an application scenario. It should be noted that the above application scenario is only shown to facilitate understanding of the spirit and principles of the present application, and the implementation of the present application is not limited in this respect. On the contrary, the implementation of the present application can be applied to any applicable scenario.
[0056] Figure 2 This is a flow chart of a message processing method according to an embodiment of the present application. Figure 2 As shown, the method includes:
[0057] Step S210: In response to messages sent by users in a conversation, aggregating multiple messages that meet the same message condition to form an aggregated message;
[0058] Specifically, when multiple users send messages in a communication session, it is determined whether the multiple messages meet the same message condition, where the multiple messages can all be text messages or messages including text messages and emoticons. It is determined whether the messages meet the same message condition, for example, whether they all have the same emoticon, whether they are all "received" messages, etc. If so, the multiple identical messages are aggregated to form an aggregated message, which includes one or more of the message content, the number of multiple messages, and the user information of the user who sent the multiple messages, where the message content, such as "received", and the number of multiple messages, that is, the number of identical messages sent.
[0059] Step S220: Use the aggregate message to replace the messages that meet the same message condition in the conversation and display the aggregate message.
[0060] After determining the aggregated message, you can use the aggregated message to replace the messages that meet the same message conditions in the conversation and display the aggregated message. Multiple identical messages will no longer be displayed, that is, multiple identical messages will be collapsed. If there are still identical messages in the future, you only need to increase the number of merged messages and the added user information in the displayed aggregated message, so as to improve the information efficiency within the group and avoid omitting key information due to screen swiping.
[0061] like Figure 3 As shown, when multiple users send "GET" expressions, the content is collapsed and displayed on a message card, which displays the number of users who replied and the names of the users who replied.
[0062] The message processing method provided in the embodiment of the present application judges the message after receiving a message sent by a user in a conversation. If multiple messages meet the same message conditions, the multiple messages are aggregated to form an aggregated message. The aggregated message includes the message content, the number of mergers and user information, and the aggregated message is used to replace multiple identical messages in the conversation, so that repeated replies from multiple people in the communication conversation message can be received in one place, thereby improving the efficiency of information communication within the group and avoiding excessive invalid information.
[0063] In some embodiments, if the multiple messages only include text messages, it is determined whether the multiple text messages exceeding the threshold contain the same text content. If so, it is determined that the multiple messages containing the same text content meet the same message condition, and the same text content is used as the message content of the aggregate message corresponding to the multiple text messages.
[0064] Specifically, if multiple messages are text messages, it is determined whether the multiple text messages sent by users exceeding the threshold contain the same text content. If they contain the same text, it means that the same message condition is met, and the same text is used as the message content of the aggregated message. For example, if multiple users reply with multiple "received", the content will be collapsed and summarized on a message card for display. The specific operation is to detect that the messages exceeding the threshold have the same content, and such collapsing will be initiated.
[0065] In some embodiments, if the first text message that meets the same message condition includes other content in addition to the same text content, the aggregate message is displayed along with the first text message.
[0066] Specifically, if the same text message also includes other content, if the message is directly folded, important messages may be hidden. Therefore, in an embodiment of the present application, when the first text message that meets the same message conditions includes other content in addition to the same text content, the first text message will still be displayed while displaying the aggregated message. Specifically, the number of messages in the aggregated message will be increased by 1, and the first text message will be displayed. For example, the content of the user's reply is a paragraph, which contains reply content and other content, such as "OK, I will arrange a meeting to prepare it later." The system will detect the key text "OK" as a reply message and summarize it on the card, count +1. The paragraph of text sent by the user itself will not be folded, but will be displayed in the chat interface to avoid missing information. If the same reply expression, text, or text paragraph with a reply continues to appear later, it will still be automatically folded.
[0067] In some embodiments, if the plurality of messages include both text messages and emoticon messages, determining a keyword corresponding to each emoticon message;
[0068] Determining whether the text message contains the same text content, and whether the keyword corresponding to the emoticon message is the same as the text content;
[0069] or,
[0070] Determining a keyword corresponding to the emoticon message, and judging whether the text message contains the keyword;
[0071] If so, when the number of the text messages and emoticon messages exceeds a threshold, it is determined that the text messages and the emoticon messages meet the same message condition, and the keyword and / or the emoticon message is used as the message content of the corresponding aggregate message.
[0072] Specifically, if a message contains both text messages and emoticon messages, it is necessary to determine whether the text message and the emoticon are the same message. A text message can be a plain text message or a message containing both text and emoticons, and an emoticon message is a message containing only emoticons. First, determine whether the text messages contain the same text content, and then determine whether the keywords corresponding to the emoticon message are the same as the text content. If so, determine that the emoticon message and the text message meet the same message condition when the number of text messages and emoticon messages exceeds a threshold, or
[0073] First, the keyword corresponding to the emoticon message is determined, and the keyword is used as the text content corresponding to the emoticon message. The emoticon message is then treated as a text message. Then, a determination is made as to whether the text message contains the keyword. If so, if the number of text messages and emoticon messages exceeds a threshold, the text message and emoticon message are determined to meet the same message condition. The first emoticon corresponding to the keyword and / or emoticon message is used as the message content of the corresponding aggregated message. In other words, if the user's reply contains both text and emoticons, and the content and meaning expressed are the same, the sent text and emoticons will be collected together in the same summary card.
[0074] In an embodiment of the present application, in a message, multiple repetitive expressions, texts, mixed texts, and long texts with reply content can be collapsed to improve the efficiency of information in the group and avoid omitting key information due to screen swiping.
[0075] In some embodiments, after displaying the aggregate message, if it is determined that the message interruption condition is met and multiple messages that meet the same requirements as the previous aggregate message are received again, the multiple messages received again are aggregated again to obtain a new aggregate message.
[0076] Specifically, when a user sends a message with the same reply message, such as "OK", and no other irrelevant replies appear, no matter how long the time interval is, it will be put on the same summary card until the message interruption condition is met, such as the new message does not meet the same message condition, or the new message contains specific information, or the time interval between the new message and the previous message is greater than the preset time period threshold, etc. For example, if someone sends other messages, the message will be interrupted and put away;
[0077] When a message with related reply text appears in the message and contains other text, it will not be blocked from being folded. The card count itself will be increased by 1, and the text paragraph will not be folded;
[0078] When content completely unrelated to the specified text reply appears in the message, it will be interrupted and folded. The reply information that appears later will not be folded into the above card; if continuous reply content appears after the interruption, it will be folded into a new summary card.
[0079] In some embodiments, after displaying the aggregate message, when a message meeting the same message condition is received again, it is determined whether the message interruption condition is met. If not, the received message is aggregated into the aggregate message.
[0080] Specifically, if after displaying the aggregate message, a message meeting the same message condition is received again, it is first determined whether the message interruption condition is met. If not, the received message is aggregated into the aggregate message; if so, it is not aggregated.
[0081] In some embodiments, in response to an aggregate message merging operation triggered by a user, the new aggregate message is merged with the previous aggregate message.
[0082] Specifically, message merging options such as "upward merge" can be set on the information summary card. After the user clicks it, the summary information of this card and the summary information of the previous card can be merged into one card, and the personnel information will be counted without duplication; if the content of the merged cards is inconsistent, the summary of the two information will be displayed, and the personnel information will not be deduplicated.
[0083] In the embodiment of the present application, when continuous messages appear in the message content type, the information folding will not be interrupted. The folding behavior will only be interrupted when completely irrelevant information appears. When information interrupts the folding operation, multiple folding cards can be manually merged and the data can be displayed together to facilitate statistics and tracing by managers.
[0084] In some embodiments, the message processing method further includes presetting at least one keyword corresponding to each expression;
[0085] If it is detected that the text message input by the user includes a keyword corresponding to the second emoticon, the second emoticon and the text content corresponding to the text message are used together as message sending options, so that the user can select a corresponding message format to send to the group.
[0086] Specifically, each emoticon has some preset associative keywords. For example, the "fireworks" emoticon can evoke associative results through multiple different keywords such as "fireworks", "festival", "celebration", etc.; users can choose to send associated emoticons, or send them directly in text form. Users are allowed to directly enter text to associate emoticons, and associations can be evoked at any position in a text without the need for special characters, which reduces the user's learning cost and makes it more convenient and quick to use.
[0087] In some embodiments, detecting that the text message input by the user includes a keyword corresponding to the second emoticon includes:
[0088] Using the mouse cursor positioning point as the search cutoff point, search the text content before the cursor in the user input message, and match it with the associated words corresponding to each emoticon preset in the system in turn. If the match is successful, it is determined that the text message input by the user includes the keyword corresponding to the second emoticon that is successfully matched.
[0089] In some embodiments, if it is detected that the text message input by the user includes keywords corresponding to multiple second expressions, the multiple second expressions are provided as message sending options for the user to select.
[0090] Specifically, since there is no special character as the search start position, it is necessary to perform dynamic detection of long text keywords. Using the mouse cursor positioning point as the search end point, search the text before the cursor, and sequentially match it with the text associated with expressions in the system. Set the maximum number of matching keywords and perform matching searches in decreasing order. If there are multiple matching results, such as "笑哭" and "笑", display multiple matching results in the hint panel at the same time;
[0091] For example, assume that the associations of preset expressions have three keywords, and their text lengths are: 4 characters, 3 characters, and 2 characters respectively. Based on the current cursor position, first determine 4 characters forward and match. If no result is matched, then determine 3 characters forward and match, and so on. Through dynamic detection of long text keywords, related expressions can be evoked at any position in a piece of input text without entering special characters, and expression association display can be directly performed.
[0092] In some embodiments, it further includes: If multiple messages that meet the same message condition include multiple messages sent by the same user, the message count corresponding to the multiple messages sent by the same user is 1.
[0093] Specifically, for the convenience of statistics, different messages can also be distinguished by user, that is, the same message sent by the same user is only counted once. In this way, if multiple messages that meet the same message condition include multiple messages sent by the same user, the aggregated message count corresponding to the multiple messages sent by the same user is 1.
[0094] In some embodiments, it further includes:
[0095] Perform secondary aggregation on adjacent aggregated messages.
[0096] Such as Figure 4 As shown, if adjacent messages are adjacent aggregated messages, then the adjacent aggregated messages can be further aggregated to form a card.
[0097] First, the message processing method provided in the embodiments of the present application can automatically perform collapsed aggregation display on multiple repetitive expressions, texts, mixtures of expressions and texts, and long texts with reply content in session messages, reducing interference of invalid information in the group and helping to focus on key information; multiple aggregated information can be combined to help managers perform data statistics and information collection, reducing workload and improving work efficiency;
[0098] Then, when the message content type appears continuous messages, the information collapse will not be interrupted, and only when completely irrelevant information appears will the collapse behavior be interrupted; when there is information interrupting the collapse operation, multiple collapsed cards can be manually merged and the data is merged and displayed, which is convenient for managers to perform statistics and traceability;
[0099] Finally, directly inputting text can associate the required emoticons, and the association can occur at any position in a text without entering special characters, reducing user learning costs and improving input efficiency.
[0100] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied in a distributed scenario and performed by multiple devices working together. In such a distributed scenario, one of the multiple devices may only perform one or more steps of the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the method.
[0101] It should be noted that the above description is limited to some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in an order different from that described in the above embodiments and still achieve the desired results. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the specific order or sequential order shown to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0102] Based on the same technical concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a message processing device.
[0103] refer to Figure 5 The message processing device includes: an aggregation module 510 and a display module 520, wherein:
[0104] The aggregation module 510 is used to respond to messages sent by users in a conversation, aggregate multiple messages that meet the same message conditions in the messages to form an aggregate message; the display module 520 is used to use the aggregate message to replace the messages that meet the same message conditions in the conversation and display the aggregate message.
[0105] In some embodiments, the aggregate message includes one or more of the following:
[0106] Message content;
[0107] the number of the plurality of messages;
[0108] User information of the user who sent the multiple messages.
[0109] In some embodiments, if the multiple messages only include text messages, the aggregation module 510 determines whether the multiple text messages exceeding the threshold contain the same text content. If so, it determines that the multiple messages containing the same text content meet the same message condition, and uses the same text content as the message content of the aggregate message corresponding to the multiple text messages.
[0110] In some embodiments, if the first text message that meets the same message condition includes other content in addition to the same text content, the display module 520 displays the aggregate message and the first text message.
[0111] In some embodiments, if the plurality of messages include both text messages and emoticon messages, the aggregation module 510 determines a keyword corresponding to each emoticon message;
[0112] Determine whether the text message contains the same text content, and whether the keyword corresponding to the emoticon message is the same as the text content; or, determine the keyword corresponding to the emoticon message, and determine whether the text message contains the keyword;
[0113] If so, when the number of the text messages and emoticon messages exceeds a threshold, it is determined that the text messages and the emoticon messages meet the same message condition, and the keyword and / or the first emoticon corresponding to the emoticon message is used as the message content of the corresponding aggregate message.
[0114] In some embodiments, after displaying the aggregate message, if the aggregation module 310 determines that the message interruption condition is met, and multiple messages that meet the same requirements as the previous aggregate message are received again, the multiple messages received again are aggregated again to obtain a new aggregate message.
[0115] In some embodiments, after displaying the aggregate message, when a message meeting the same message condition is received again, the aggregation module 310 determines whether the message interruption condition is met. If not, the received message is aggregated into the aggregate message.
[0116] In some embodiments, the aggregation module 510 is further configured to:
[0117] Preset at least one keyword corresponding to each expression;
[0118] If it is detected that the text message input by the user includes a keyword corresponding to the second emoticon, the second emoticon and the text content corresponding to the text message are used together as message sending options, so that the user can select a corresponding message format to send to the conversation.
[0119] In some embodiments, the aggregation module 510 is further configured to:
[0120] Detecting that the text message input by the user includes a keyword corresponding to the second emoticon includes:
[0121] Using the mouse cursor positioning point as the search cutoff point, search the text content before the cursor in the user input message, and match it with the keywords corresponding to each emoticon preset in the system in turn. If the match is successful, it is determined that the text message input by the user includes the keyword corresponding to the second emoticon that is successfully matched.
[0122] In some embodiments, the aggregation module 510 is further configured to:
[0123] If it is detected that the text message input by the user includes keywords corresponding to multiple second expressions, the multiple second expressions are provided as message sending options for the user to select.
[0124] In some embodiments, the aggregation module 510 is further configured to:
[0125] In response to the aggregate message merging operation triggered by the user, the new aggregate message is merged with the previous aggregate message.
[0126] In some embodiments, the aggregation module 510 is further configured to:
[0127] The number of messages in the aggregate message is increased by 1, and the first text message is displayed.
[0128] In some embodiments, the aggregation module 510 is further configured to:
[0129] If the multiple messages that meet the same message condition include multiple messages sent by the same user, the message count corresponding to the multiple messages sent by the same user is 1.
[0130] In some embodiments, the aggregation module 510 is further configured to:
[0131] Re-aggregate adjacent aggregated messages.
[0132] In some embodiments, the plurality of messages are text messages;
[0133] or,
[0134] The plurality of messages include text messages and emoticons.
[0135] For the convenience of description, the above devices are described as being divided into various modules according to their functions. Of course, when implementing this application, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0136] The apparatus of the above embodiment is used to implement the corresponding group message aggregation method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.
[0137] Based on the same technical concept, corresponding to any of the above-mentioned embodiments and methods, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the group message aggregation method described in any of the above embodiments is implemented.
[0138] Figure 6 10 is a schematic diagram showing a more specific hardware structure of an electronic device provided in this embodiment. The device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are communicatively connected to each other within the device via the bus 1050.
[0139] The processor 1010 can be implemented using a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0140] The memory 1020 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage devices, dynamic storage devices, etc. The memory 1020 can store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 1020 and is called and executed by the processor 1010.
[0141] The input / output interface 1030 is used to connect input / output modules to implement information input and output. The input / output modules can be configured as components within the device (not shown in the figure) or can be externally connected to the device to provide corresponding functions. Input devices may include a keyboard, mouse, touch screen, microphone, various sensors, etc., and output devices may include a display, speaker, vibrator, indicator light, etc.
[0142] The communication interface 1040 is used to connect to a communication module (not shown) to enable communication between the device and other devices. The communication module can communicate via a wired method (such as USB, network cable, etc.) or a wireless method (such as mobile network, WiFi, Bluetooth, etc.).
[0143] The bus 1050 comprises a path for transmitting information between the various components of the device (eg, the processor 1010 , the memory 1020 , the input / output interface 1030 , and the communication interface 1040 ).
[0144] It should be noted that although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040, and the bus 1050, in a specific implementation, the device may also include other components necessary for normal operation. In addition, it will be understood by those skilled in the art that the above device may only include the components necessary to implement the embodiments of this specification, and does not necessarily include all the components shown in the figure.
[0145] The electronic device of the above embodiment is used to implement the corresponding group message aggregation method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.
[0146] Based on the same technical concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable the computer to execute the group message aggregation method described in any of the above embodiments.
[0147] The computer-readable media of this embodiment include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0148] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the group message aggregation method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0149] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. Within the scope of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.
[0150] In addition, for simplicity of description and discussion, and in order not to make the embodiment of the application difficult to understand, the known power supply / ground connection with integrated circuit (IC) chip and other components may or may not be shown in the accompanying drawings provided. In addition, the device can be shown in the form of a block diagram to avoid making the embodiment of the application difficult to understand, and this also takes into account the following fact, that is, the details of the embodiment of these block diagram devices are highly dependent on the platform to be implemented in the embodiment of the application (that is, these details should be fully within the scope of understanding of those skilled in the art). When specific details (for example, circuit) are set forth to describe exemplary embodiments of the application, it will be apparent to those skilled in the art that the embodiment of the application can be implemented without these specific details or when these specific details are changed. Therefore, these descriptions should be considered to be illustrative rather than restrictive.
[0151] Although the present invention has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of these embodiments will be apparent to those skilled in the art based on the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may utilize the embodiments discussed.
[0152] The embodiments of the present application are intended to cover all such substitutions, modifications, and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the scope of protection of this application.
Claims
1. A method for processing a session message, comprising: In response to messages sent by users in a conversation, multiple messages satisfying the same message condition are aggregated to form an aggregate message; Using the aggregate message to replace the messages satisfying the same message condition in the conversation and displaying the aggregate message; In response to the aggregate message merging operation triggered by the user, the new aggregate message is merged with the previous aggregate message, including: In response to a user clicking a message merge option set on an information summary card and the contents of the merged cards being consistent, the summary information of the information summary card and the summary information of the previous card are merged into one card, and the personnel information is de-duplicated and counted, or In response to a user clicking a message merge option set on an information summary card and the contents of the merged cards being inconsistent, the summary information of the information summary card and the summary information of the previous card are displayed together, and the personnel information is not deduplicated; The new aggregate message is obtained by re-aggregating the multiple messages received again after the aggregate message is displayed if it is determined that the message interruption condition is met and multiple messages that meet the same requirements as the previous aggregate message are received again; If the first text messages satisfying the same message condition include other contents in addition to the same text content, the aggregated message is displayed and the first text message is displayed.
2. The method according to claim 1, wherein: The aggregate message includes one or more of the following: Message content; the number of the plurality of messages; User information of a user who sent the plurality of messages.
3. The method according to claim 1, wherein: If the multiple messages only include text messages, determine whether the multiple text messages exceeding the threshold contain the same text content. If so, determine that the multiple messages containing the same text content meet the same message condition, and use the same text content as the message content of the aggregate message corresponding to the multiple text messages.
4. The method according to claim 1, wherein: If the multiple messages include both text messages and emoticon messages, determining a keyword corresponding to each emoticon message; Determine whether the text message contains the same text content, and whether the keyword corresponding to the emoticon message is the same as the text content; or, determining a keyword corresponding to the emoticon message, and judging whether the text message contains the keyword; If so, when the number of the text messages and emoticon messages exceeds a threshold, it is determined that the text messages and the emoticon messages meet the same message condition, and the keyword and / or the first emoticon corresponding to the emoticon message are used as the message content of the corresponding aggregate message.
5. The method according to any one of claims 1 to 4, wherein: After displaying the aggregate message, when a message satisfying the same message condition is received again, it is determined whether the message interruption condition is satisfied, and if not satisfied, the received message is aggregated into the aggregate message.
6. The method according to claim 1, wherein: The method further includes: Preset at least one keyword corresponding to each expression; If it is detected that the text message input by the user includes a keyword corresponding to the second expression, the second expression and the text content corresponding to the text message are used together as message sending options, so that the user can select a corresponding message form to send to the conversation.
7. The method according to claim 6, wherein: Detecting that the text message input by the user includes a keyword corresponding to the second expression includes: Using the mouse cursor positioning point as the search cutoff point, search the text content before the cursor in the user input message, and match it with the keywords corresponding to each emoticon preset in the system in turn. If the match is successful, it is determined that the text message input by the user includes the keyword corresponding to the second emoticon that is matched successfully.
8. The method according to claim 6, wherein: If it is detected that the text message input by the user includes keywords corresponding to multiple second expressions, the multiple second expressions are provided as message sending options for the user to select.
9. The method according to claim 3, wherein: Displaying the aggregated message and displaying the first text message includes: The number of messages in the aggregated message is increased by 1, and the first text message is displayed.
10. The method according to claim 2, wherein: Also includes: If the multiple messages satisfying the same message condition include multiple messages sent by the same user, the message times corresponding to the multiple messages sent by the same user is 1.
11. The method according to claim 5, wherein: Also includes: Adjacent aggregated messages are aggregated again.
12. The method according to claim 1, wherein: The multiple messages are all text messages; or, The plurality of messages include text messages and emoticons.
13. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the method according to any one of claims 1 to 12 is implemented.
14. A message processing device, comprising: An aggregation module, configured to respond to a group message sent by a user in a group conversation and aggregate a plurality of consecutive messages in the group message that meet the same message condition to form an aggregate message; A display module, configured to replace the messages satisfying the same message condition with the aggregated message in the group conversation and to display the aggregated message; The merging module is used to merge the new aggregate message with the previous aggregate message in response to the aggregate message merging operation triggered by the user, including: In response to a user clicking a message merge option set on an information summary card and the contents of the merged cards being consistent, the summary information of the information summary card and the summary information of the previous card are merged into one card, and the personnel information is de-duplicated and counted, or In response to a user clicking a message merge option set on an information summary card and the contents of the merged cards being inconsistent, the summary information of the information summary card and the summary information of the previous card are displayed together, and the personnel information is not deduplicated; The new aggregate message is obtained by re-aggregating the multiple messages received again after the aggregate message is displayed if it is determined that the message interruption condition is met and multiple messages that meet the same requirements as the previous aggregate message are received again; If the first text messages satisfying the same message condition include other contents in addition to the same text content, the aggregated message is displayed and the first text message is displayed.
15. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to make a computer execute the method according to any one of claims 1 to 12.
Citation Information
Patent Citations
Message display method and device thereof
CN112769679A
Message display method and device and electronic equipment
CN114020384A
Communication message aggregation method and device
CN114500434A