Message processing method, device, electronic device and medium

By alternately displaying chat messages and unread messages on the entertainment software interface, the problem of cumbersome operations when using entertainment software is solved, and the function of viewing chat messages without manually switching the interface is realized, simplifying user operations.

CN116074433BActive Publication Date: 2024-12-03VIVO MOBILE COMM CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202310077649.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-13
Publication Date
2024-12-03
Estimated Expiration
2043-01-13

AI Technical Summary

Technical Problem

When receiving chat messages when using entertainment software, users need to manually switch the interface to view relevant content, which is cumbersome.

Method used

When displaying the interface of the entertainment software, chat messages and unread chat messages are displayed alternately through the message window. The contents of the two adjacent unread chat messages are different, and dynamic scrolling is realized to remind users to view.

Benefits of technology

Users can view the context content of chat messages without manually switching the interface, simplifying the operation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116074433B_ABST
    Figure CN116074433B_ABST
Patent Text Reader

Abstract

The present application discloses a message processing method, device, electronic device and readable storage medium, which belongs to the field of communication technology. The method includes: displaying the interface of a first application, the interface including a first message window; when receiving a first chat message of a first session in a second application, alternately displaying the first chat message and any unread chat message of the first session in the first message window; when the number of unread chat messages of the first session is at least two, the message contents of the two adjacent unread chat messages are different.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication technology, and specifically relates to a message processing method, device, electronic device and readable storage medium. Background Art

[0002] At present, with the development and popularization of smart phones, people's daily lives are becoming more and more inseparable from mobile phones. For example, people spend a lot of time on chat software and entertainment software every day.

[0003] In the prior art, when a user receives a chat message while using entertainment software, the chat message is displayed at the top of the interface of the current software for a short time. The user cannot understand the relevant contextual content based on the displayed chat message and can only manually switch to the interface of the chat software to view the contextual content associated with the chat message.

[0004] It can be seen that in the prior art, when a user receives a chat message while using, for example, entertainment software, it is relatively cumbersome to view the relevant content of the chat message. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a message processing method that can solve the problem in the prior art that when a user receives a chat message while using entertainment software, it is cumbersome to view the relevant content of the chat message.

[0006] In a first aspect, an embodiment of the present application provides a message processing method, the method comprising: displaying an interface of a first application, the interface comprising a first message window; upon receiving a first chat message of a first conversation in a second application, alternately displaying the first chat message and any unread chat message of the first conversation in the first message window; wherein, when the number of unread chat messages of the first conversation is at least two, the message contents of two adjacent unread chat messages are different.

[0007] In a second aspect, an embodiment of the present application provides a message processing device, which includes: a first display module, used to display an interface of a first application, the interface including a first message window; a second display module, used to, upon receiving a first chat message of a first conversation in a second application, alternately display the first chat message and any unread chat message of the first conversation in the first message window; wherein, when the number of unread chat messages of the first conversation is at least two, the message contents of two adjacent unread chat messages are different.

[0008] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0009] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0010] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

[0011] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.

[0012] In an embodiment of the present application, when the interface of the first application is displayed, the first message window is displayed on the interface, and when the first chat message of the first session of the second application is received, the first chat message and any unread chat message of the first session are alternately displayed in the first message window, and when the number of unread chat messages of the first session is at least two, the message contents of the two adjacent unread chat messages are different, thereby realizing the dynamic display of the first chat message and each unread chat message in a scrolling manner. On the one hand, the first chat message is frequently displayed to remind the user to check; on the other hand, each unread chat message is interspersed between the two displays of the first chat message to inform the user of the relevant content. It can be seen that in an embodiment of the present application, the user can see each chat message in the first session on the interface to help the user understand the contextual content of each chat message without the user having to manually switch to the interface of the first session, thereby achieving the purpose of simplifying user operations. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 is a flowchart of a message processing method according to an embodiment of the present application;

[0014] Figure 2 It is one of the display schematic diagrams of the electronic device according to the embodiment of the present application;

[0015] Figure 3 This is the second display schematic diagram of the electronic device according to the embodiment of the present application;

[0016] Figure 4 This is the third display schematic diagram of the electronic device according to the embodiment of the present application;

[0017] Figure 5 is a schematic diagram illustrating a message processing method according to an embodiment of the present application;

[0018] Figure 6 This is the fourth schematic diagram of the interface of the electronic device according to the embodiment of the present application;

[0019] Figure 7 is a block diagram of a message processing device according to an embodiment of the present application;

[0020] Figure 8 It is one of the hardware structure diagrams of the electronic device according to the embodiment of the present application;

[0021] Fig. 9 This is the second schematic diagram of the hardware structure of the electronic device according to the embodiment of the present application. DETAILED DESCRIPTION

[0022] The following will be combined with the drawings of the embodiments of the present application to clearly describe the technical solutions of the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present application belong to the scope of protection of this application.

[0023] The terms "first", "second", etc. in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited, for example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0024] The message processing method provided in the embodiment of the present application may be executed by the message processing device provided in the embodiment of the present application, or an electronic device integrating the message processing device, wherein the message processing device may be implemented in hardware or software.

[0025] The message processing method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0026] Figure 1 A flowchart of a message processing method according to an embodiment of the present application is shown, and the method is applied to an electronic device as an example, including:

[0027] Step 110: Display the interface of the first application, where the interface includes a first message window.

[0028] Optionally, the above interface is any interface of the first application.

[0029] Optionally, the first application is any application in the electronic device.

[0030] For reference, this embodiment provides a solution for displaying chat messages in a non-chat application while the user is using the non-chat application. Therefore, the first application is preferably a non-chat application.

[0031] For example, the interface is the interface of a game application; the interface is the interface of a video application.

[0032] Optionally, the first message window is located in any area of ​​the interface.

[0033] For example, see Figure 2 , the interface 201 is displayed in horizontal mode, and the first message window 202 is located in the middle area of ​​the interface 201 near the upper edge.

[0034] Step 120: When the first chat message of the first conversation in the second application is received, the first chat message and any unread chat message of the first conversation are alternately displayed in the first message window; wherein, when the number of unread chat messages of the first conversation is at least two, the message contents of the two adjacent unread chat messages are different.

[0035] In this embodiment, the first message window is used to display unread chat messages of the first conversation in the second application.

[0036] Optionally, the second application is a chat application.

[0037] Optionally, the first session is a group session; optionally, the first session is a friend session.

[0038] Optionally, the unread chat messages of the first conversation displayed in the first message window are chat messages of the first conversation received within a certain historical period, and the user has not replied to these chat messages within the historical period.

[0039] For example, the first time point of entering the interface is used as the start time point, and the current time point is used as the end time point, so that the unread chat messages of the first conversation within this historical period are displayed in the first message window.

[0040] Application scenarios include, after entering the interface at the first time point, when the chat message of the first conversation is received for the first time at the second time point, the first message window is displayed, and the chat message is displayed in the first message window; further, when the chat message of the first conversation is received for the second time at the third time point after the second time point, the above two chat messages are displayed in the first message window. Wherein, until the third time point, the user has not replied to the chat message of the first conversation, then at the third time point, the first chat message is an unread chat message, and the second chat message is a currently received chat message.

[0041] In this step, the first chat message may be a chat message received at the current time point.

[0042] Optionally, when the first chat message of the first conversation is received, if the first message window does not display unread chat messages, the first chat message is directly displayed in the first message window.

[0043] Optionally, in this step, when the first chat message of the first conversation is received and there are unread chat messages in the first message window, the first chat message and any unread chat message of the first conversation are alternately displayed in the first message window.

[0044] Optionally, the number of chat messages simultaneously displayed in the first message window is one, so the first chat message and any unread chat message of the first conversation are displayed alternately.

[0045] Optionally, in an alternating display scheme, if the number of unread chat messages in the first message window is one, the first chat message and the unread chat message are displayed alternately.

[0046] Optionally, in another alternating display scheme, if there are multiple unread chat messages in the first message window, the first chat message and one unread chat message are displayed in one alternation, and the first chat message and another unread chat message are displayed in the next alternation, so that the message contents of the two adjacent unread chat messages are different.

[0047] time illustrate content 1 Latest News

D

D

D

D

D

D

[0048] Table 1

[0049] For example, referring to Table 1, at "time 1", "

D

D

D

D

D

D

D

[0050] In Table 1, "Time 1" can be defaulted to the time point when the first chat message is received, and correspondingly, the latest message can be defaulted to the first chat message; further, "Time 2" to "Time 6" can be defaulted to multiple time points after "Time 1", and during this period, no chat message of the first conversation is received, so as to determine that the first chat message is the latest message.

[0051] Optionally, all unread chat messages are displayed in order of the receiving time from recent to earliest.

[0052] For example, referring to Table 1, the unread chat messages include "Historical Message 1" and "Historical Message 2". The receiving time point of "Historical Message 1" is closer to the current time point, and the receiving time point of "Historical Message 2" is farther from the current time point. Therefore, in the first alternating display, "Historical Message 1" is displayed, and in the second alternating display, "Historical Message 2" is displayed.

[0053] Optionally, the display area of ​​the first message window is small and can only display one chat message to avoid a large impact on the display of the interface. The user can view the chat messages in the first message window by sliding up and down in the first message window.

[0054] Optionally, the first message window is further used to display: identification information of the first conversation.

[0055] For reference, the identification information of the first session includes the name of the first session, that is, the friend name and the group name, which may be: "Zhang" or "Company A". For reference, the identification information of the first session includes the avatar of the first session, that is, the friend avatar and the group avatar.

[0056] For example, see Figure 2 , the second “C” in the first message window 202 is used to represent the name of the first conversation.

[0057] Optionally, the first message window is further used to display: identification information of a second application to which the first conversation belongs.

[0058] For reference, the identification information of the second application includes an application name; for reference, the identification information of the second application includes an application icon.

[0059] For example, see Figure 2 , the first “C” in the first message window 202 is used to represent the name of the second application.

[0060] Optionally, in the first message window, each chat message displays identification information of the first conversation and identification information of the second application accordingly.

[0061] In an embodiment of the present application, during the display of the interface of the first application, a first message window is displayed on the interface, and when the first chat message of the first session of the second application is received, the first chat message and any unread chat message of the first session are alternately displayed in the first message window, and when the number of unread chat messages of the first session is at least two, the message contents of the two adjacent unread chat messages are different, thereby realizing the dynamic display of the first chat message and each unread chat message in a scrolling manner. On the one hand, the first chat message is frequently displayed to remind the user to check; on the other hand, each unread chat message is interspersed between the two displays of the first chat message to inform the user of the relevant content. It can be seen that in an embodiment of the present application, the user can see each chat message in the first session on the interface to help the user understand the contextual content of each chat message without the user having to manually switch to the interface of the first session, thereby achieving the purpose of simplifying user operations.

[0062] In the process of the message processing method of another embodiment of the present application, step 120 includes:

[0063] Sub-step A1: alternately displaying in the first message window the text content corresponding to the first chat message and the text content corresponding to any unread chat message of the first conversation.

[0064] The text content corresponding to the image content in the chat message includes at least one of image attribute information and image text information.

[0065] Optionally, if the message content of the chat message of the first conversation is text content, the text content is directly displayed.

[0066] Optionally, if the message content of the chat message of the first conversation is voice content, the voice content is converted into text content, and then the text content is displayed.

[0067] Optionally, the image content includes video content, emoticon content, and picture content.

[0068] For example, if the message content of the chat message of the first session is video content, the voice in the video content is converted into text content, and then the text content is displayed. Correspondingly, the displayed text content is image text information.

[0069] For example, if the message content of the chat message of the first session is video content, the video content is converted into the text content of "video" and then the text content is displayed. Correspondingly, the displayed text content is image attribute information.

[0070] For example, if the content of the chat message of the first session is an emoticon, the emoticon is converted into corresponding text content according to the existing correspondence in the gallery, and then the text content is displayed. In the gallery, the text content corresponding to the emoticon includes: "happy", "sad", "running", etc. Correspondingly, the displayed text content is image text information.

[0071] For example, if the message content of the chat message of the first session is an emoticon image content, the emoticon image content is converted into a text content of "emoticon image" and then the text content is displayed. Correspondingly, the displayed text content is image attribute information.

[0072] For example, if the message content of the chat message of the first conversation is picture content, the text content in the picture is extracted to display the text content. Correspondingly, the displayed text content is image text information.

[0073] For example, if the message content of the chat message of the first session is a picture content, the picture content is analyzed to obtain the text content, and the text content is displayed. Correspondingly, the displayed text content is image text information. Specifically, if the picture includes a blue sky, the text content is "blue sky".

[0074] For example, if the message content of the chat message of the first session is picture content, the picture content is converted into the text content of "picture" and then the text content is displayed. Correspondingly, the displayed text content is image attribute information.

[0075] Optionally, the image attribute information and the image text information may be combined to obtain text content such as: "sad expression picture".

[0076] Optionally, the image attribute information and the image text information may be combined to obtain text content such as: "hot pot picture", "blue sky picture".

[0077] In this embodiment, the text content corresponding to the chat message of the first conversation is displayed in the first message window, and any type of chat content can be converted into corresponding text content for display. It can be seen that based on this embodiment, the user's keen perception of text content in game scenes, drama chasing scenes, etc. can be fully utilized, so that the user can understand the chat content at a glance.

[0078] In the process of the message processing method of another embodiment of the present application, after step 110, the method further includes:

[0079] Step B1: Receive a first input to a first message window.

[0080] Step B2: In response to the first input, display a first identifier.

[0081] The first input includes a touch input performed by a user on the screen, not limited to inputs such as clicks, slides, and drags. The first input may also be a user's air input, such as gestures, facial movements, etc. The first input also includes a user's input on a physical button on the device, not limited to inputs such as pressing. Moreover, the first input includes one or more inputs, wherein the multiple inputs may be continuous or separated by time intervals.

[0082] In this step, the first input is used to trigger display of a first identifier corresponding to the first message window.

[0083] For example, see Figure 2 , the user long presses the first message window 202 and slides to the right, see Figure 3 , the first mark 301 is displayed.

[0084] Among them, Figure 3 In the example, the first identifier 301 provides an entry for the user to input the content of the voice message.

[0085] For example, see Figure 2 , the user long presses the first message window 202 and slides it to the right, and the voice mark is displayed, providing the user with an entry for inputting the voice message content. If the user does not need to input the voice message content, the user long presses the voice mark and slides it to the right, see Figure 4 , multiple first identifiers 401 are displayed. The first identifier 401 provides an entry for the user to input text message content. A first identifier 401 is used to represent the content of a text message. The specific text message content can be customized by the user or by the system, such as the commonly used text message content for reply: "Received", "Thank you".

[0086] Step B3: Receive a second input for the first identifier, where the second input is used to input a second chat message.

[0087] The second input includes a touch input performed by a user on the screen, not limited to inputs such as clicks, slides, and drags. The second input may also be a user's air input, such as gestures, facial movements, etc. The second input also includes a user's input on a physical button on the device, not limited to inputs such as pressing. Moreover, the second input includes one or more inputs, wherein the multiple inputs may be continuous or separated by time intervals.

[0088] In this step, the second input is used to operate the first identifier to input a second chat message.

[0089] Optionally, the second chat message includes any one of text message content and voice message content.

[0090] For example, see Figure 3 , the user presses and holds the first mark 301, starts speaking, and inputs the content of the language message.

[0091] For example, see Figure 4 , the user clicks on any first identifier 401; or, after the user slides to the right to trigger the display of multiple first identifiers 401, the user does not let go and continues to slide to any first identifier 401 to enter the text message content.

[0092] Step B4: In response to the second input, sending the second chat message to the first session.

[0093] In this step, based on the identification information of the first session and the identification information of the second application, the second chat message is sent to the first session.

[0094] Optionally, the user withdraws sending the second chat message through a preset input method.

[0095] For example, after sending the second chat message, the first message window continues to be displayed. The user can long press the first message window and slide it to the left to withdraw sending the second chat message.

[0096] Optionally, when any chat message is displayed in the first message window, the user replies to the second chat message through the input method of this embodiment. If the first message window only displays this chat message, a reminder message indicating that the reply is completed is displayed, and after a period of time, such as five seconds, the first message window is no longer displayed.

[0097] Optionally, if the first message window includes multiple chat messages, a reminder message of completed reply is displayed, and after a period of time, such as five seconds, the first message window continues to be displayed, and other chat messages are displayed in the first message window to facilitate the user to continue replying.

[0098] Optionally, if the user no longer needs to reply to the chat message in the first message window, the first message window is controlled to no longer be displayed through a preset input method.

[0099] For example, the user long presses the first message window and slides it to the left outside the interface, and the first message window is no longer displayed.

[0100] In this embodiment, a quick reply solution is provided. On the one hand, the user can choose a voice reply; on the other hand, the user can choose a text reply. Based on the above two aspects, the purpose of simplifying user operations can be achieved. In addition, this embodiment does not display the input mark in a large area in the interface, and the occlusion effect on the interface is also small.

[0101] In the process of the message processing method of another embodiment of the present application, step B4 includes:

[0102] Sub-step C1: when the first chat message and the second chat message have different message types, convert the second chat message into a third chat message, where the third chat message has the same message type as the first chat message.

[0103] The message type includes any one of a text type message, a voice type message, and an image type message.

[0104] The second chat message is used to reply to the first chat message.

[0105] In this step, when the first chat message is received, the message type of the first chat message is obtained.

[0106] Correspondingly, in the process of sending the second chat message, the second chat message is converted into a third chat message according to the message type of the first chat message, so that the replied third chat message is consistent with the message type of the first chat message.

[0107] For example, the first chat message is of text type, and the user can directly reply to the text message content, which is directly sent to the first conversation.

[0108] For another example, the first chat message is of text type, and the user can reply to the voice message content, thereby converting the voice message content into text message content and sending it to the first conversation.

[0109] For example, the first chat message is of voice type, and the user can reply to the voice message content, which is directly sent to the first session.

[0110] For another example, if the first chat message is of voice type, the user can reply to the text message content, thereby converting the text message content into voice message content and sending it to the first session. Among them, the user's timbre and other features can be extracted for conversion.

[0111] Optionally, the first chat message is of image type, and the user can reply to the text message content, thereby converting the text message content into emoticon content and sending it to the first session.

[0112] Optionally, the first chat message is of image type, and the user can reply with the voice message content, thereby converting the voice message content into text message content, and then converting it into emoticon content, and sending it to the first session.

[0113] Optionally, the first chat message is of image type, and the user can reply with text message content, add the text message content to at least one image frame of the first chat message, and then send it to the first session.

[0114] Optionally, the first chat message is of image type, and the user can reply with voice message content, thereby converting the voice message content into text message content, adding the text message content to at least one image frame of the first chat message, and then sending it to the first session.

[0115] Furthermore, a preset text message content such as "in the game" may be added to at least one image frame of the first chat message and then sent to the first session.

[0116] In more embodiments, when the first chat message is of image type, the second chat message may be sent directly without conversion to save the image processing process.

[0117] Optionally, a unified format field is used to store the message type of the first chat message, so that a unified interface is used to complete the rapid conversion of the second chat message to the third chat message based on the message type of the first chat message.

[0118] In this embodiment, a reply scheme is provided. In this scheme, based on the chat message to be replied, the chat message of the same type can be replied, such as receiving a video and replying with a video; receiving a voice and replying with a voice; etc. It can be seen that in this embodiment, the user operation can be simplified, the chat scene can be enriched, and the chat fun can be improved.

[0119] In the process of the message processing method of another embodiment of the present application, after step 110, the method further includes:

[0120] Step D1: Receive a third input to the first message window.

[0121] The third input includes the touch input performed by the user on the screen, not limited to click, slide, drag and other inputs. The third input can also be the user's air input, such as gestures, facial movements, etc. The third input also includes the user's input on the physical button on the device, not limited to pressing and other inputs. Moreover, the third input includes one or more inputs, wherein the multiple inputs can be continuous or separated by time intervals.

[0122] In this step, the third input is used to cancel display of the first message window.

[0123] For example, the user long presses the first message window and slides it to the left.

[0124] Step D2: In response to the third input, hide the first message window.

[0125] In this step, the first message window is hidden, that is, the first message window is no longer displayed.

[0126] In this embodiment, the user can control the interface to no longer display the first message window according to needs, thereby flexibly applying the message processing method of the present application to meet different needs of users.

[0127] In a message processing method of another embodiment of the present application, the interface also includes a second message window, and the second message window is used to display chat messages of the second session of the third application.

[0128] Optionally, the number of message windows in the interface is associated with the number of sessions to which chat messages received by the electronic device belong during display of the interface.

[0129] For example, when the interface of the first application is displayed, each time a chat message of a new session is received, a message window is displayed on the interface; further, when a chat message of the session is received again, the chat message is directly updated in the message window, and correspondingly, the chat message of the session received previously can be regarded as an unread chat message if the user has not replied. The message window is no longer displayed until the user manually deletes the message window or all chat messages in the message window have been replied.

[0130] Optionally, the number of message windows simultaneously displayed on the interface of the first application is five to avoid display impact on the interface of the first interface, and the user can view each message window through input methods such as sliding.

[0131] Optionally, in the process of creating a new message window, first, a data packet is created in the background, and the data packet is used to represent a session. In the data packet, the chat message of the session is processed in the format of "[identification information of the application to which the session belongs] - [identification information of the session] - [receiving time of the chat message] - [type of the chat message] - [content of the chat message]". Then, the corresponding message window is displayed according to the data packet.

[0132] For example, see Figure 5 , multiple data packets are established in the background, namely: A packet 501, B packet 502, C packet 503 and D packet 504. Among them, "Application 1" and "Application 2" are used to represent the identification information of the two applications respectively, "A", "B", "C" and "D" after the application identification information are used to represent the identification information of the four sessions respectively, the time points are used to represent the receiving time points of the corresponding chat messages respectively, "text", "video", "voice" and "group message" are used to represent the four message types respectively, and the last part is used to represent the content of the chat message.

[0133] Among them, in a data packet, if the user does not reply to the chat message, the chat message will remain in the data packet. When a new chat message is received, a new chat message will be added to the data packet according to the aforementioned format.

[0134] Optionally, when the interface of the first application no longer displays the message window, the corresponding data packet is deleted.

[0135] Optionally, the user hides all message windows in the interface through a preset input method.

[0136] For example, see Figure 6 , all message windows are displayed in the target area 601, the user long presses any position of the target area 601, and then slides along the track 602, that is, first slides to the left, then slides back to the right, and then slides to the left, so that all message windows are no longer displayed.

[0137] Based on this, this embodiment is described by taking the interface including the first message window and the second message window as an example.

[0138] Optionally, the second application and the third application are the same application, but the first session and the second session are different sessions.

[0139] Optionally, the second application and the third application are different applications.

[0140] Correspondingly, after step 110, the method further includes:

[0141] Step E1: Obtain a first priority of a first session and a second priority of a second session.

[0142] When the interface includes multiple message windows, a method for arranging the multiple message windows is provided.

[0143] In this embodiment, the priority of each session can be preset by the user.

[0144] Optionally, the priority includes three types: "high", "normal" and "low".

[0145] Optionally, the chat message in the data packet is processed according to the format of "[identification information of the application to which the session belongs] - [identification information of the session] - [priority] - [time point of receiving the chat message] - [type of the chat message] - [content of the chat message]".

[0146] For example, see Figure 5 ,“High”, “Normal” and “Low” in each data packet are used to indicate different priorities.

[0147] Step E2: Determine the arrangement order of the first message window and the second message window according to the first priority and the second priority.

[0148] Optionally, when the first priority is greater than the second priority, the arrangement position of the first message window is prior to the arrangement position of the second message window.

[0149] For example, see Figure 5 , "High" priority is arranged in front, "Normal" priority is arranged in the middle, and "Low" priority is arranged at the end.

[0150] Optionally, when the first priority is equal to the second priority, the first message window and the second message window are randomly arranged.

[0151] Optionally, the arrangement order of the multiple data packets in the background is arranged first, and then the arrangement order of the multiple message windows is updated accordingly in the interface of the first application.

[0152] In this embodiment, the interface includes multiple message windows, so that the user can see the chat messages of multiple sessions in the interface while the interface of the first application is displayed. This embodiment provides a scheme for sorting multiple message windows, in which the message windows of a certain session are prioritized according to priority, so that the user can prioritize them. It can be seen that based on this embodiment, the user can prioritize the chat messages of individual sessions in a targeted manner without the user having to search in multiple sessions, thereby achieving the purpose of simplifying user operations.

[0153] In the process of the message processing method of another embodiment of the present application, step E2 includes:

[0154] Sub-step F1: When the first priority is equal to the second priority, determine the arrangement order of the first message window and the second message window according to the receiving time information of the fourth chat message in the first message window and the receiving time information of the fifth chat message in the second message window.

[0155] In this embodiment, the defined scenario is that the first priority is equal to the second priority.

[0156] Optionally, the receiving time information of the fourth chat message is closest to the current time among the receiving time information of all chat messages in the first message window.

[0157] Optionally, the receiving time information of the fifth chat message is closest to the current time among the receiving time information of all chat messages in the second message window.

[0158] Optionally, if the reception time information of the fourth chat message is closer to the current time than the reception time information of the fifth chat message, the arrangement order of the first message window precedes the arrangement order of the second message window. Conversely, if the reception time information of the fifth chat message is closer to the current time than the reception time information of the fourth chat message, the arrangement order of the second message window precedes the arrangement order of the first message window.

[0159] Optionally, each data packet is first arranged in the background, and then the arrangement order of each message window is updated in the interface.

[0160] For example, see Figure 5 , the priorities of package B 502 and package C 503 are both "normal", and the time point of the chat message received by package B 502 is "10:11", and the time point of the chat message received by package C 503 is "10:13". "10:13" is a closer time point, so package C 503 is arranged in front of package B 502, and accordingly, the message window corresponding to package C 503 is arranged in front of the message window corresponding to package B 502.

[0161] In this embodiment, the message windows in the interface are sorted based on the priority and the time point of receiving the chat message, so that the user can give priority to the currently or most recently received chat message.

[0162] In a message processing method according to another embodiment of the present application, the background of the first message window is transparent.

[0163] In this embodiment, the first message window is displayed transparently in the interface to avoid blocking the content in the interface.

[0164] In summary, this application aims to provide a convenient, fast, and easy-to-operate chat message display and reply method. In this application, while the user is using the electronic device, the received chat messages are processed, sorted, and the processing results are "packaged" and integrated into the current interface dynamic display. At the same time, the user can reply to the chat message in a timely and fast manner according to the "package" rules. Among them, this application includes but is not limited to the following points:

[0165] First, this application extracts and combines the conversation chat messages, and performs a "packaging" operation on the "unreplied chat messages" in each conversation, and finally integrates the "packaging" results into the current interface for display;

[0166] Second, according to the priority and time of each "package", the important chat messages are displayed to the user first;

[0167] Third, each "package" retains all the "unreplied chat messages" in the conversation, and presents all the "unreplied chat messages" to the user in a dynamic display manner.

[0168] Fourth, through the preset interaction method, the function of "replying" or "cancelling replying" the chat message is realized in the current interface.

[0169] Fifth, reply to chat messages using voice or text shortcuts, process the reply chat messages by extracting key fields in the "package", and send the processed chat messages to the session accurately and quickly.

[0170] The message processing method provided in the embodiment of the present application can be executed by a message processing device. In the embodiment of the present application, the message processing device provided in the embodiment of the present application is described by taking the message processing method executed by the message processing device as an example.

[0171] Figure 7 A block diagram of a message processing device according to another embodiment of the present application is shown, the device comprising:

[0172] A first display module 10, used to display an interface of a first application, the interface including a first message window;

[0173] The second display module 20 is used to alternately display the first chat message and any unread chat message of the first conversation in the first message window when receiving the first chat message of the first conversation in the second application;

[0174] Wherein, when the number of unread chat messages in the first conversation is at least two, the message contents of the two adjacent unread chat messages are different.

[0175] Thus, in an embodiment of the present application, during the period of displaying the interface of the first application, the first message window is displayed on the interface, and when the first chat message of the first session of the second application is received, the first chat message and any unread chat message of the first session are alternately displayed in the first message window, and when the number of unread chat messages of the first session is at least two, the message contents of the two adjacent unread chat messages are different, thereby realizing the dynamic display of the first chat message and each unread chat message in a scrolling manner. On the one hand, the first chat message is frequently displayed to remind the user to check; on the other hand, each unread chat message is interspersed between the two displays of the first chat message to inform the user of the relevant content. It can be seen that in an embodiment of the present application, the user can see each chat message in the first session on the interface to help the user understand the contextual content of each chat message without the user having to manually switch to the interface of the first session, thereby achieving the purpose of simplifying user operations.

[0176] Optionally, the second display module 20 includes:

[0177] A display unit, configured to alternately display text content corresponding to the first chat message and text content corresponding to any unread chat message of the first conversation in the first message window;

[0178] The text content corresponding to the image content in the chat message includes at least one of image attribute information and image text information.

[0179] Optionally, the device further comprises:

[0180] A first receiving module, used for receiving a first input to a first message window;

[0181] A third display module, configured to display a first identifier in response to the first input;

[0182] A second receiving module, used to receive a second input of the first identifier, the second input is used to input a second chat message;

[0183] The sending module is used to send the second chat message to the first session in response to the second input.

[0184] Optionally, the sending module includes:

[0185] a conversion unit, configured to convert the second chat message into a third chat message when the first chat message and the second chat message have different message types, wherein the third chat message has the same message type as the first chat message;

[0186] The message type includes any one of a text type message, a voice type message, and an image type message;

[0187] The second chat message is used to reply to the first chat message.

[0188] Optionally, the device further comprises:

[0189] A third receiving module, used for receiving a third input to the first message window;

[0190] The hiding module is used to hide the first message window in response to the third input.

[0191] Optionally, the interface further includes a second message window, and the second message window is used to display chat messages of the second session of the third application;

[0192] The device also includes:

[0193] An acquisition module, configured to acquire a first priority of the first session and a second priority of the second session;

[0194] The determination module is used to determine the arrangement order of the first message window and the second message window according to the first priority and the second priority.

[0195] Optionally, a module is determined, including:

[0196] A determination unit is used to determine the arrangement order of the first message window and the second message window according to the reception time information of the fourth chat message in the first message window and the reception time information of the fifth chat message in the second message window when the first priority is equal to the second priority.

[0197] The message processing device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0198] The message processing device of the embodiment of the present application may be a device having an action system. The action system may be an Android action system, an iOS action system, or other possible action systems, which are not specifically limited in the embodiment of the present application.

[0199] The message processing device provided in the embodiment of the present application can implement each process implemented in the above method embodiment. To avoid repetition, it will not be described here.

[0200] Alternatively, if Figure 8 As shown, an embodiment of the present application also provides an electronic device 100, including a processor 101, a memory 102, and a program or instruction stored in the memory 102 and executable on the processor 101. When the program or instruction is executed by the processor 101, each step of any of the above-mentioned message processing method embodiments is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0201] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0202] Fig. 9 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0203] The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010 and other components.

[0204] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig. 9 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0205] Among them, the display unit 1006 is used to display the interface of the first application, and the interface includes a first message window; when a first chat message of a first conversation in a second application is received, the first chat message and any unread chat message of the first conversation are alternately displayed in the first message window; wherein, when the number of unread chat messages of the first conversation is at least two, the message contents of the two adjacent unread chat messages are different.

[0206] Thus, in an embodiment of the present application, during the period of displaying the interface of the first application, the first message window is displayed on the interface, and when the first chat message of the first session of the second application is received, the first chat message and any unread chat message of the first session are alternately displayed in the first message window, and when the number of unread chat messages of the first session is at least two, the message contents of the two adjacent unread chat messages are different, thereby realizing the dynamic display of the first chat message and each unread chat message in a scrolling manner. On the one hand, the first chat message is frequently displayed to remind the user to check; on the other hand, each unread chat message is interspersed between the two displays of the first chat message to inform the user of the relevant content. It can be seen that in an embodiment of the present application, the user can see each chat message in the first session on the interface to help the user understand the contextual content of each chat message without the user having to manually switch to the interface of the first session, thereby achieving the purpose of simplifying user operations.

[0207] Optionally, the display unit 1006 is also used to alternately display the text content corresponding to the first chat message and the text content corresponding to any unread chat message of the first conversation in the first message window; wherein the text content corresponding to the image content in the chat message includes: at least one of image attribute information and image text information.

[0208] Optionally, the user input unit 1007 is used to receive a first input to the first message window; the display unit 1006 is also used to display a first identifier in response to the first input; the user input unit 1007 is also used to receive a second input to the first identifier, and the second input is used to input a second chat message; the processor 1010 is used to send the second chat message to the first session in response to the second input.

[0209] Optionally, processor 1010 is further used to, when the message types of the first chat message and the second chat message are different, convert the second chat message into a third chat message, wherein the third chat message is of the same message type as the first chat message; wherein the message type includes any one of a text type message, a voice type message, and an image type message; and the second chat message is used to reply to the first chat message.

[0210] Optionally, the user input unit 1007 is further configured to receive a third input to the first message window; and the processor 1010 is further configured to hide the first message window in response to the third input.

[0211] Optionally, the interface also includes a second message window, which is used to display chat messages of a second session of a third application; the processor 1010 is also used to obtain a first priority of the first session and a second priority of the second session; and determine an arrangement order of the first message window and the second message window according to the first priority and the second priority.

[0212] Optionally, processor 1010 is also used to determine an arrangement order of the first message window and the second message window based on reception time information of the fourth chat message in the first message window and reception time information of the fifth chat message in the second message window when the first priority is equal to the second priority.

[0213] In summary, the electronic device 1000 of the present application is intended to provide a convenient, fast, and easy-to-operate chat message display and reply method. In the present application, while the user is using the electronic device, the received chat messages are processed, sorted, and the processing results are "packaged" and integrated into the current interface dynamic display. At the same time, the user can reply to the chat messages in a timely and fast manner according to the "package" rules. Among them, the present application includes but is not limited to the following points:

[0214] First, this application extracts and combines the conversation chat messages, and performs a "packaging" operation on the "unreplied chat messages" in each conversation, and finally integrates the "packaging" results into the current interface for display;

[0215] Second, according to the priority and time of each "package", the important chat messages are displayed to the user first;

[0216] Third, each "package" retains all the "unreplied chat messages" in the conversation, and presents all the "unreplied chat messages" to the user in a dynamic display manner.

[0217] Fourth, through the preset interaction method, the function of "replying" or "cancelling replying" the chat message is realized in the current interface.

[0218] Fifth, reply to chat messages using voice or text shortcuts, process the reply chat messages by extracting key fields in the "package", and send the processed chat messages to the session accurately and quickly.

[0219] It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static picture or video image obtained by the image capture device (such as a camera) in the video image capture mode or the image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and at least one of other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and an action rod, which will not be repeated here. The memory 1009 can be used to store software programs and various data, including but not limited to applications and action systems. The processor 1010 may integrate an application processor and a modem processor, wherein the application processor mainly processes the action system, user pages and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 1010.

[0220] The memory 1009 can be used to store software programs and various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1009 may include a volatile memory or a non-volatile memory, or the memory 1009 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1009 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0221] The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1010.

[0222] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned message processing method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0223] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0224] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned message processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0225] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0226] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned message processing method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0227] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0228] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0229] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A message processing method, characterized in that: The method comprises: Displaying an interface of a first application, wherein the interface includes a first message window; When a first chat message of a first conversation in a second application is received, the first chat message and any unread chat message of the first conversation are alternately displayed in the first message window; Wherein, when the number of unread chat messages in the first conversation is at least two, the message contents of the two adjacent unread chat messages are different; The alternately displaying the first chat message and any unread chat message of the first conversation in the first message window includes: In the case where the message content of the chat message of the first conversation is voice content and / or image content, the voice content and / or image content is converted into text content, and the converted text content is displayed; the image content includes at least one of the following: video content, emoticon content, and picture content; After displaying the interface of the first application, the method further includes: Receiving a first input to the first message window; In response to the first input, displaying a first identifier; receiving a second input of the first identifier, where the second input is used to input a second chat message; In response to the second input, if the first chat message and the second chat message are of different message types, convert the second chat message into a third chat message, the third chat message being of the same message type as the first chat message; and sending the third chat message to the first session; The message type includes any one of a text type message, a voice type message, and an image type message.

2. The method according to claim 1, characterized in that The alternately displaying the first chat message and any unread chat message of the first conversation in the first message window includes: Alternately displaying in the first message window the text content corresponding to the first chat message and the text content corresponding to any unread chat message of the first conversation; The text content corresponding to the image content in the chat message includes at least one of image attribute information and image text information.

3. The method according to claim 1, characterized in that After displaying the interface of the first application, the method further includes: Receiving a third input to the first message window; In response to the third input, the first message window is hidden.

4. The method according to claim 1, characterized in that: The interface also includes a second message window, wherein the second message window is used to display chat messages of a second session of a third application; After displaying the interface of the first application, the method further includes: Obtaining a first priority of the first session and a second priority of the second session; An arrangement order of the first message window and the second message window is determined according to the first priority and the second priority.

5. The method according to claim 4, characterized in that The determining, according to the first priority and the second priority, an arrangement order of the first message window and the second message window includes: When the first priority is equal to the second priority, the arrangement order of the first message window and the second message window is determined according to the receiving time information of the fourth chat message in the first message window and the receiving time information of the fifth chat message in the second message window.

6. A message processing device, characterized in that: The device comprises: A first display module, used to display an interface of a first application, wherein the interface includes a first message window; A second display module is used for, when receiving a first chat message of a first conversation in a second application, alternately displaying the first chat message and any unread chat message of the first conversation in the first message window; Wherein, when the number of unread chat messages in the first conversation is at least two, the message contents of the two adjacent unread chat messages are different; The second display module is specifically used to convert the voice content and / or image content of the chat message of the first conversation into text content and display the converted text content when the message content of the chat message of the first conversation is voice content and / or image content; the image content includes at least one of the following: video content, emoticon content, and picture content; The device also includes: A first receiving module, used for receiving a first input to the first message window; A third display module, configured to display a first identifier in response to the first input; A second receiving module, configured to receive a second input of the first identifier, wherein the second input is used to input a second chat message; a sending module, configured to, in response to the second input, convert the second chat message into a third chat message in a case where the first chat message and the second chat message have different message types, wherein the third chat message has the same message type as the first chat message; and send the third chat message to the first session; The message type includes any one of a text type message, a voice type message, and an image type message.

7. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the message processing method according to any one of claims 1 to 5 are implemented.

8. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the message processing method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Game application-based pushed message processing method and related product

    CN107870790A

  • Display control method applying chat components, terminal and computer storage medium

    CN108737254A

  • Session display method and device in instant messaging, storage medium and electronic device

    CN111030922A

  • Message reminding method and device thereof, equipment and storage medium

    CN113769371A

  • Message display method and device

    CN115412634A