WO2022161431A1 - Display method, apparatus, and electronic device - Google Patents

Display method, apparatus, and electronic device Download PDF

Info

Publication number
WO2022161431A1
WO2022161431A1 PCT/CN2022/074262 CN2022074262W WO2022161431A1 WO 2022161431 A1 WO2022161431 A1 WO 2022161431A1 CN 2022074262 W CN2022074262 W CN 2022074262W WO 2022161431 A1 WO2022161431 A1 WO 2022161431A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
target
session
conversation
messages
Prior art date
Application number
PCT/CN2022/074262
Other languages
French (fr)
Chinese (zh)
Inventor
单文
Original Assignee
维沃移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2022161431A1 publication Critical patent/WO2022161431A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects

Definitions

  • the present application belongs to the field of communication technologies, and in particular relates to a display method, an apparatus and an electronic device.
  • social applications installed in electronic devices play an increasingly important role.
  • users can share various information (eg, text, pictures, audio, etc.) with other users through the group chat function of these social applications anytime and anywhere.
  • the purpose of the embodiments of the present application is to provide a display method, apparatus and electronic device, which can solve the problems of complicated steps and long time-consuming in the search process of articles or article links.
  • an embodiment of the present application provides a display method, the method includes: determining N conversation messages from M conversations of a first application, and the message contents corresponding to the N conversation messages match each other; Condition, the target conversation message is determined from the above N conversation messages, and the above preset condition includes any one of the following: the receiving time of the N conversation messages, the frequency of viewing the conversation messages of the M conversations by the user, the user's checking of the M conversation messages The viewing duration of the session message of the session; the target session message is displayed in the session corresponding to the target session message, M and N are positive integers, and M is greater than or equal to N.
  • an embodiment of the present application provides a display device, where the display device includes: a determination module and a display module; wherein: the determination module is configured to determine N session messages from M sessions of the first application, The message contents corresponding to the N conversation messages match each other; the determining module is further configured to determine the target conversation message from the N conversation messages based on a preset condition, and the preset condition includes any one of the following: receiving the N conversation messages time, the viewing frequency of the session messages of the M sessions by the user, and the viewing duration of the session messages of the M sessions by the user; the display module is used to display the target session message in the session corresponding to the target session message, and M and N are positive integers , M is greater than or equal to N.
  • embodiments of the present application provide an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of the method according to the first aspect when executed.
  • an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method according to the first aspect are implemented .
  • an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, and implement the first aspect the method described.
  • the electronic device may determine, from the M sessions of the first application, N session messages whose message contents match each other, and determine the target session message from the above N session messages based on preset conditions.
  • the above preset conditions include any one of the following: the receiving time of the N conversation messages, the frequency of viewing the conversation messages of the M conversations by the user, and the viewing duration of the conversation messages of the M conversations by the user;
  • the target session message is displayed in the session of .
  • the electronic device can filter out multiple repeated conversation messages, and based on the actual needs of the user, determine from the above multiple repeated conversation messages that need to be displayed and display the session message in the session corresponding to the target session message. In this way, the electronic device can display unread messages that meet the conditions among the multiple repeated unread messages according to the actual needs of the user, thereby improving the efficiency of the user to view messages.
  • FIG. 1 is a flowchart of a display method provided by an embodiment of the present application.
  • FIG. 2 is one of the schematic diagrams of an interface to which a display method provided by an embodiment of the present application is applied;
  • FIG. 3 is a second schematic diagram of an interface to which a display method provided by an embodiment of the present application is applied;
  • FIG. 4 is a third schematic diagram of an interface to which a display method provided by an embodiment of the present application is applied;
  • FIG. 5 is a schematic structural diagram of a display device provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
  • first, second and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between “first”, “second”, etc.
  • the objects are usually of one type, and the number of objects is not limited.
  • the first object may be one or more than one.
  • “and/or” in the description and claims indicates at least one of the connected objects, and the character “/" generally indicates that the associated objects are in an "or” relationship.
  • the display method provided by the embodiment of the present application can be applied to a multi-session scenario.
  • the electronic device may determine, from the unread messages of the above three group chat sessions, N unread messages whose message contents match each other. Read messages, that is, repeated unread messages, and then, the electronic device can determine the target conversation message from the above N unread messages based on preset conditions, and place the target conversation message in the group chat session corresponding to the target conversation message. displayed in. For example, when the preset condition is the reception time of the N unread messages, the electronic device may determine, according to the morning or evening of the reception time of the N unread messages, the one with an earlier reception time or a later reception time among the N unread messages.
  • Unread messages and display the unread messages in the group chat session corresponding to the unread messages.
  • the electronic device can display one unread message that satisfies the condition among the multiple repeated unread messages according to the actual needs of the user, which improves the efficiency of the user in viewing messages.
  • FIG. 1 shows a flowchart of the display method provided by the embodiment of the present application.
  • the display method provided by this embodiment of the present application may include the following steps 101 to 103 .
  • Step 101 Determine N session messages from the M sessions of the first application.
  • the message contents corresponding to the N conversation messages match each other, M and N are positive integers, and M is greater than or equal to N.
  • the above-mentioned first application may be any application in the electronic device that can send and receive messages, such as a social application, a mobile phone address book, and the like.
  • the above-mentioned M conversations may be private conversations or group conversations.
  • the above N session messages may be all or part of the messages in the M sessions.
  • the above-mentioned N session messages may include: N session messages that satisfy the first condition in the first application.
  • the first condition includes at least one of the following: unread messages, messages received within a first predetermined period of time, the message sender is the target message sender, messages containing target keywords, and messages in the target conversation.
  • the above N conversation messages may be unread messages received by the first application but not yet viewed by the user.
  • the above-mentioned predetermined time period may be set by the user, or may be a time period determined by the display device based on user behavior (for example, the viewing frequency of messages). For example, if it is calculated that the frequency of users viewing conversation messages is high from 17:00 to 21:00 every day, the N conversation messages may be conversation messages received between 17:00 and 21:00 every day. It should be noted that, since user behavior will change, the above-mentioned predetermined time period can be changed according to the change of user behavior, which is not static.
  • the above-mentioned target message sender may be preset, or may be determined by the display device according to user behavior (eg, the frequency of chatting between the user and each contact). For example, the chat frequency between the user and friend A is the highest among all contacts. Therefore, friend A may be set as the target message sender, that is, the N conversation messages may include messages sent by friend A.
  • the above-mentioned target keywords may be preset, or may be determined by the display device according to user behavior (eg, keywords in conversation messages frequently viewed by the user).
  • the message content in the above N conversation messages may include any of the following: text, pictures, audio, video, links, etc., which are not limited in this embodiment of the present application.
  • the message contents corresponding to the N conversation messages match each other, which may be that the message contents of the N conversation messages are the same or the similarity of the message contents is greater than the first threshold.
  • the display device may perform similarity calculation on the message contents of the N messages by using a similarity algorithm (eg, Doc2Vec algorithm) to obtain a similarity value between each message. Further, if the similarity value between at least one message is greater than the first threshold (eg, 90%), it is considered that the contents of the at least one message match each other, that is, the at least one message is a duplicate message.
  • a similarity algorithm eg, Doc2Vec algorithm
  • Step 102 Based on a preset condition, a target session message is determined from the above N session messages.
  • the preset condition includes any one of the following: the reception time of the N conversation messages, the frequency of viewing the conversation messages of the M conversations by the user, and the viewing duration of the conversation messages of the M conversations by the user.
  • the above-mentioned target session message may include one or more session messages.
  • the display device may acquire the reception times of the N session messages in real time, and then determine the target session message from the N session messages according to the morning and evening of the reception times of the N session messages.
  • the display apparatus may determine the message with the earliest reception time among the N conversation messages as the target conversation message.
  • Example 1 taking the first application as a conversation application as an example, it is assumed that the above N conversation messages include: message 1 and message 2 in group conversation A, message 3 and message 4 in group conversation B, and message 3 and message 4 in group conversation C. message 5, where the reception time of message 5 is the earliest, then take message 5 as the target session message.
  • the display device may acquire in real time the viewing frequency of the conversation messages of each of the M conversations by the user, and determine the conversations to which the N conversation messages belong, and then determine the conversations to which the N conversation messages belong.
  • the viewing frequency of conversation messages is high or low, and the target conversation message is determined from the N conversation messages.
  • the display apparatus may use, among the N conversation messages, a conversation message whose viewing frequency of the conversation message of the belonged conversation is greater than the first threshold as the target conversation message.
  • Example 2 Suppose there are four repeated session messages, session message 1, session message 2, session message 3, and session message 4 in the first application. Session message 1 belongs to session A, session information 2 belongs to session B, session message 3 and session message 4 belongs to session C, and the user views the session messages in session A most frequently, so message 1 in session A can be used as the target session message.
  • the display device may separately determine the session to which each message belongs according to the message attribute of each message in the N messages.
  • the above message attributes may include any of the following: message content, message reception time, session to which the message belongs, message sender information, message receiver information, and the like.
  • the display device may acquire in real time the viewing duration of the conversation messages of each of the M conversations by the user, and determine the conversations to which the N conversation messages belong, and then determine the conversations to which the N conversation messages belong according to the user's viewing duration of each conversation message.
  • the size of the viewing duration of the session message, and the target session message is determined from the N session messages.
  • the display apparatus may use, among the N conversation messages, a conversation message whose viewing duration of the conversation message of the belonged conversation is greater than the second threshold as the target conversation message.
  • the above-mentioned user's viewing duration of the session message of the session may be the display duration of the session interface of the session. It can be understood that, in the case of displaying the conversation interface, it can be considered that the user is viewing the conversation message.
  • the display apparatus may enable a message screening function, so that the display apparatus may determine the target conversation message from N conversation messages of the M conversations.
  • the message sources of the above N conversation messages may be conversations in which the message screening function is enabled in the first application.
  • the electronic device displays a function setting interface, where multiple session options are displayed on the function setting interface, one session option corresponds to one session, and each session option is used to enable or relate to the session’s
  • the message screening function in this way, the user can enable the message screening function of at least one group chat through the function setting interface.
  • Step 103 Display the above target session message in the session corresponding to the target session message.
  • the session corresponding to the target session message is the session to which the target session message belongs.
  • the display device may acquire the session to which the target session message belongs, and display the target session message in the session interface of the session to which the target session message belongs.
  • the session interface of the session to which the target message belongs may be a newly generated session interface, or an original session interface of the session.
  • N conversation messages include: message 1 and message 2 in group conversation A, message 3 and message 4 in group conversation B, and message 5 in group conversation C , where the reception time of message 5 is the earliest, then message 5 is used as the target conversation message, then message 5 is displayed in the conversation interface of group conversation C, and message 1 and message 2 in group conversation A are displayed in the group conversation
  • the group conversation A is hidden, and the message 3 and the message 4 in the group conversation B are hidden in the group conversation B.
  • the target conversation message when the target conversation message is displayed in the conversation corresponding to the target conversation message, only the target conversation message may be displayed in the conversation interface of the conversation without displaying other conversation messages in the conversation. In this way, it is convenient for the user to visually view the target conversation message in the conversation interface.
  • Example 3 in combination with the above example 1, when it is determined that the message 5 is the target conversation message, as shown in FIG. 3 , the display device can display the message 5 on the conversation interface of the conversation to which the message 5 belongs (ie, group conversation C) displayed in. In this way, when there are multiple repeated conversation messages currently, the user can intuitively view the messages that satisfy the conditions among the multiple repeated messages, thereby improving the user's operation efficiency.
  • the display device may display the above-mentioned target conversation message in the newly generated conversation interface.
  • the display device may filter the conversation messages in the conversation interface except the above-mentioned target conversation message, and only display the target conversation message.
  • the target session message and other session messages other than the target session message in the session may be displayed simultaneously.
  • the display device may display the target conversation message in a predetermined position or in a predetermined form in the conversation interface, so as to distinguish the target conversation message from other conversation messages except the target conversation message.
  • the display device may display the target conversation message in the central area of the conversation interface, or highlight the target conversation message.
  • step 103 may also be step 103a1:
  • Step 103a1 Display the above target session message on the second interface.
  • the above-mentioned second interface may be any application interface of the first application, or may be a newly generated display interface, or any display interface of an electronic device, for example, a notification bar interface, a main interface, which is implemented in this application.
  • the display device may display the target conversation message in a suspended manner on the second interface.
  • the electronic device may determine, from the M sessions of the first application, N session messages whose message contents match each other, and based on a preset condition, from the above N session messages, determine The target conversation message is output, and the above preset conditions include any one of the following: the receiving time of the N conversation messages, the frequency of viewing the conversation messages of the M conversations by the user, and the viewing time of the conversation messages of the M conversations by the user; The target session message is displayed in the session corresponding to the target session message.
  • the electronic device can filter out multiple repeated conversation messages, and based on the actual needs of the user, determine from the above multiple repeated conversation messages that need to be displayed and display the session message in the session corresponding to the target session message. In this way, the electronic device can display unread messages that meet the conditions among the multiple repeated unread messages according to the actual needs of the user, thereby improving the efficiency of the user to view messages.
  • the first session message in the above-mentioned M conversations includes the first link; the process of the above-mentioned step 101 may include the following steps 101a and 101b:
  • Step 101a Acquire the first information corresponding to the first link according to the above-mentioned first link.
  • Step 101b If the first information includes a preset keyword, determine that the above-mentioned first conversation message is one of N conversation messages.
  • the above-mentioned first link may include any one of the following: an article link (ie, a text link), an image link, an E-mail link, a multimedia file link, and the like.
  • the first information corresponding to the first link may be content corresponding to the link.
  • the first information when the link is an article link, the first information is the article content corresponding to the article link; when the link is an image link, the first information is the image content corresponding to the image link.
  • the above preset keywords may include one or more keywords.
  • the foregoing preset keyword may be user-defined, or may be a system default keyword, which is not limited in this embodiment of the present application. It can be understood that the above-mentioned preset keyword may also be a conversation message filter word, and by using the conversation message filter word, N messages including the content that the user needs to view can be determined from the M conversations.
  • the display device may first obtain a session message (that is, a first session message) that includes the first link in the session messages of the M sessions, and obtain the corresponding first link according to the first link in the session message. the first information, and then matching the first information based on the preset keyword to determine whether the first information contains the preset keyword.
  • a session message that is, a first session message
  • the first information and then matching the first information based on the preset keyword to determine whether the first information contains the preset keyword.
  • the display device may, based on the article link, open the article corresponding to the article link in the background, and then match the article content based on "communication", and if the article content includes "communication", it will include the first link.
  • Conversation message as one of the above N messages.
  • the display device may perform image recognition on the picture corresponding to the picture link to obtain the text content contained in the picture, and then, based on the preset keyword, determine the picture. Whether the preset keyword is included in the text.
  • the display device can obtain multiple repeated conversation messages containing the same link from the M conversations, and can further filter out the content corresponding to the link (ie, the first information) from the multiple repeated conversation messages that contains the pre-defined link.
  • a session message with a keyword is set, so that when there are multiple repeated session messages in the M sessions in the first application, the session message that the user needs to view can be screened from the multiple repeated session messages according to the actual needs of the user. to improve the efficiency of users viewing messages.
  • the display method provided by the embodiment of the present application further includes the following steps 101b1 and 101b1.
  • Step 101b1 Determine target information according to the first link included in the N conversation messages based on the preset keyword.
  • Step 101b2 Display the information identifier of the target information.
  • the display apparatus acquires target information corresponding to the first link according to the first link in the N conversation messages.
  • the target information corresponding to the first link is the article corresponding to the article link.
  • the above information identifier may be any of the following: a thumbnail image of the target information, a keyword in the target information, an icon included in the target information, and a hyperlink of the target information.
  • the display device may display the first target control in the application interface of the first application, and after receiving the user's input on the first target control, display the information identifier of the above target information.
  • the floating control 21 For example, taking the first application as a chat session APP, and taking the first link as an article link as an example, as shown in FIG.
  • the words "today's summary information" are displayed in the floating control 21 to remind the user that the floating control 21 is used to remind the user of the summary of today's information of the chat APP.
  • the above step 101b2 may include the following step 101c:
  • Step 101c Display X first signs.
  • One first identifier corresponds to one session, and each first identifier is used to indicate the information identifier of the target information corresponding to the second session message in the corresponding session.
  • X first identifiers may be X sub-windows, or X tab pages, or X icons, which are not limited in this embodiment of the present application.
  • the at least one second message is all or part of the N session messages.
  • X is a positive integer, that is, the above-mentioned X sessions may be one or more sessions.
  • the display device may display the information identifier of the target information in the session corresponding to the target session message with an earlier reception time according to the message reception time of the target session message corresponding to the target information. In this way, when there are multiple duplicate target information, the display device may only display the information identifier of the target information with an earlier reception time, so as to facilitate the user to view the target information conveniently.
  • the display method provided by the embodiment of the present application further includes the following steps A1 and A2:
  • Step A1 In the case of displaying the first interface of the above-mentioned first application, display the target control on the first interface.
  • Step A2 Receive the user's first input to the target control.
  • the process of the above step 103 may include the following step 103a:
  • Step 103a In response to the above-mentioned first input, the message identifier corresponding to the target session message is displayed.
  • the above-mentioned target control is used to display the message identifier of the target conversation message on the touch display device.
  • the above-mentioned first input may be a user's touch input on the target control or other feasible input, such as sliding input, pressing input, etc., which is not limited in this embodiment of the present application.
  • the message identifier corresponding to the above target conversation message may be any of the following: a picture (such as a thumbnail image of the message content of the conversation message), abbreviated information of the message content, the identifier of the conversation receiving the message, and the message in the conversation. index in .
  • the electronic device enables the user to select when to display the message identifier of the target session message through the target control, thereby improving the human-computer interaction performance.
  • the electronic device may also display first prompt information, where the first prompt information is used to prompt the user of the target session message or the target session message.
  • the display method provided by the embodiment of the present application further includes the following step B1:
  • Step B1 In the case that the above-mentioned target conversation message is in a read state, display a read mark of the target conversation message, and the above-mentioned read mark is used to identify that the user has consulted the target conversation message.
  • the above-mentioned reading mark includes any one of the following: an icon, a corner mark, a text or a pattern, and the like.
  • the display device may acquire the read status of the target conversation message, and display the read mark of the target conversation message when the target conversation message has been read, for example, adding a mark (eg, adding a mark to the message identifier of the target conversation message) red exclamation mark), highlighting the message ID, etc.
  • adding a mark eg, adding a mark to the message identifier of the target conversation message
  • red exclamation mark e.g., adding a mark to the message identifier of the target conversation message
  • the display device can differentiate and display the target conversation messages that the user has already viewed and the target conversation messages that have not been viewed by the user, thereby improving human-computer interaction performance.
  • the display method provided by the embodiment of the present application further includes the following steps C1 and C2:
  • Step C1 Receive a second input by the user of the message identifier corresponding to the target session message.
  • Step C2 In response to the second input, perform a target operation corresponding to the second input.
  • the above-mentioned target operation includes any one of the following: displaying the above-mentioned target session message, jumping to the display position of the target session message, and displaying the information identifier corresponding to the first link in the target session information.
  • the above-mentioned second input may be any feasible input, such as a user's click input, pressing input, sliding input, etc. on the message identifier.
  • the electronic device displays the article identifier of the target article
  • the user can perform different operations on the target article through the article identifier, which improves the human-computer interaction performance.
  • the foregoing step 103 may include the following step 103b1:
  • Step 103b2 Under the condition that the second condition is satisfied, display the target session message in the session corresponding to the target session message.
  • the above-mentioned second condition includes at least one of the following: when the target time point is reached, the message quantity of the target session message is greater than or equal to the first threshold.
  • the display device can automatically display the target conversation message according to the predetermined condition for the user to view without triggering the user's input, thereby improving the human-computer interaction performance.
  • the electronic device may determine, from the M sessions of the first application, N session messages whose message contents match each other, and based on a preset condition, from the above N session messages, determine The target conversation message is output, and the above preset conditions include any one of the following: the receiving time of the N conversation messages, the frequency of viewing the conversation messages of the M conversations by the user, and the viewing time of the conversation messages of the M conversations by the user; The target session message is displayed in the session corresponding to the target session message.
  • the electronic device can filter out the multiple repeated conversation messages, and based on the actual needs of the user, determine from the above multiple repeated conversation messages that need to be displayed and display the session message in the session corresponding to the target session message. In this way, the electronic device can display unread messages that meet the conditions among the multiple repeated unread messages according to the actual needs of the user, thereby improving the efficiency of the user to view messages.
  • the execution subject may be a display device, or a control module in the display device for executing the display method.
  • a method for performing display by a display device is used as an example to describe the display device provided by the embodiments of the present application.
  • the display device 400 includes: a determination module 401 and a display module 402; wherein:
  • the above determining module 401 is configured to determine N conversation messages from the M conversations of the first application, and the message contents corresponding to the above N conversation messages match each other; Among the conversation messages, the target conversation message is determined, and the above preset conditions include any one of the following: the receiving time of the above N conversation messages, the frequency of viewing the conversation messages of the above M conversations by the user, the user's viewing frequency of the above M conversations. The viewing duration of the session message; the display module 402 is configured to display the target session message in the session corresponding to the target session message determined by the determining module 401, where M and N are positive integers, and M is greater than or equal to N.
  • the first session message in the above-mentioned M sessions includes a first link
  • the above-mentioned determining module 401 is specifically configured to obtain the first information corresponding to the above-mentioned first link according to the above-mentioned first link; if the above-mentioned first information contains a preset keyword, determine that the above-mentioned first conversation message is among the N conversation messages one of.
  • the above-mentioned display device further includes: a receiving module 403;
  • the above-mentioned display module 402 is further configured to display the target control on the above-mentioned first interface when the first interface of the above-mentioned first application is displayed; the above-mentioned receiving module 403 is used to receive the above-mentioned target displayed by the user on the above-mentioned display module 402 The first input of the control;
  • the above-mentioned display module 402 is specifically configured to display the message identifier corresponding to the above-mentioned target session message in response to the above-mentioned first input received by the above-mentioned receiving module.
  • the above-mentioned display module 402 is specifically configured to display the read mark of the above-mentioned target conversation message when the above-mentioned target conversation message is in a read state, and the above-mentioned read mark is used to identify that the user has consulted.
  • the above target session message is specifically configured to display the read mark of the above-mentioned target conversation message when the above-mentioned target conversation message is in a read state, and the above-mentioned read mark is used to identify that the user has consulted.
  • the above-mentioned device display device further includes: an execution module 404;
  • the above-mentioned receiving module 403 is also used to receive the second input of the message identifier corresponding to the above-mentioned target session message by the user; the above-mentioned execution module 404 is used to respond to the above-mentioned second input received by the above-mentioned receiving module 403.
  • the corresponding target operation includes any one of the following: displaying the above target conversation message, and jumping to the display position of the target conversation message.
  • the electronic device may determine, from the M sessions of the first application, N session messages whose message contents match each other, and based on a preset condition, from the above N session messages, determine The target conversation message is output, and the above preset conditions include any one of the following: the receiving time of the N conversation messages, the frequency of viewing the conversation messages of the M conversations by the user, and the viewing time of the conversation messages of the M conversations by the user; The target session message is displayed in the session corresponding to the target session message.
  • the electronic device can filter out the multiple duplicate conversation messages, and based on the actual needs of the user, determine from the above-mentioned multiple duplicate conversation messages that need to be displayed and display the session message in the session corresponding to the target session message. In this way, the electronic device can display unread messages that meet the conditions among the multiple repeated unread messages according to the actual needs of the user, thereby improving the efficiency of the user to view messages.
  • the modules that must be included in the display device 400 are indicated by solid-line boxes, such as the display module 402 ; the modules that may or may not be included in the display device 400 are indicated by dashed-line boxes, such as execution modules 404.
  • the display device in this embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal.
  • the apparatus may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant).
  • UMPC ultra-mobile personal computer
  • PDA personal digital assistant
  • non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • the display device in this embodiment of the present application may be a device having an operating system.
  • the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
  • the display device provided by the embodiment of the present application can implement each process implemented by the method embodiments in FIG. 1 to FIG. 4 , which is not repeated here to avoid repetition.
  • an embodiment of the present application further provides an electronic device 500, including a processor 501, a memory 502, a program or instruction stored in the memory 502 and executable on the processor 501,
  • an electronic device 500 including a processor 501, a memory 502, a program or instruction stored in the memory 502 and executable on the processor 501,
  • the program or instruction is executed by the processor 501, each process of the foregoing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
  • the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110, etc. part.
  • the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power management through the power management system. consumption management and other functions.
  • a power source such as a battery
  • the structure of the electronic device shown in FIG. 7 does not constitute a limitation on the electronic device.
  • the electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .
  • the above processor 110 is configured to determine N session messages from the M sessions of the first application, and the message contents corresponding to the N session messages match each other; the above processor 110 is further configured to, based on a preset condition, A target conversation message is determined from the N conversation messages, and the above preset conditions include any one of the following: the receiving time of the above N conversation messages, the frequency of viewing the conversation messages of the above M conversations by the user, the user's checking of the above M conversation messages The viewing duration of the session message of the session; the display unit 106 is configured to display the target session message in the session corresponding to the target session message determined by the processor 110, where M and N are positive integers, and M is greater than or equal to N.
  • the first session messages in the above-mentioned M conversations include a first link; the above-mentioned processor 110 is specifically configured to obtain the first information corresponding to the above-mentioned first link according to the above-mentioned first link ; If the above-mentioned first information contains a preset keyword, it is determined that the above-mentioned first conversation message is one of N conversation messages.
  • the above-mentioned display unit 106 is further configured to display a target control on the above-mentioned first interface when the first interface of the above-mentioned first application is displayed; the above-mentioned user input unit 107 is configured to use The above-mentioned display unit 106 is specifically configured to display the message identifier corresponding to the above-mentioned target session message in response to the above-mentioned first input received by the above-mentioned user input unit 107.
  • the above-mentioned display unit 106 is specifically configured to display the read mark of the above-mentioned target conversation message when the above-mentioned target conversation message is in a read state, and the above-mentioned read mark is used to identify that the user has consulted.
  • the above target session message is specifically configured to display the read mark of the above-mentioned target conversation message when the above-mentioned target conversation message is in a read state, and the above-mentioned read mark is used to identify that the user has consulted.
  • the above-mentioned user input unit 107 is further configured to receive a second input from the user to the message identifier corresponding to the above-mentioned target session message; the above-mentioned processor 110 is used to respond to the above-mentioned user input unit 107
  • the received second input performs a target operation corresponding to the second input; wherein the target operation includes any one of the following: displaying the target conversation message, and jumping to the display position of the target conversation message.
  • the electronic device may determine, from the M sessions of the first application, N session messages whose message contents match each other, and based on a preset condition, from the above N session messages, determine The target conversation message is output, and the above preset conditions include any one of the following: the receiving time of the N conversation messages, the frequency of viewing the conversation messages of the M conversations by the user, and the viewing time of the conversation messages of the M conversations by the user; The target session message is displayed in the session corresponding to the target session message.
  • the electronic device can filter out the multiple duplicate conversation messages, and based on the actual needs of the user, determine from the above-mentioned multiple duplicate conversation messages that need to be displayed and display the session message in the session corresponding to the target session message. In this way, the electronic device can display unread messages that meet the conditions among the multiple repeated unread messages according to the actual needs of the user, thereby improving the efficiency of the user to view messages.
  • the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042. Such as camera) to obtain still pictures or video image data for processing.
  • the display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 107 includes a touch panel 1071 and other input devices 1072 .
  • the touch panel 1071 is also called a touch screen.
  • the touch panel 1071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
  • Memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems.
  • the processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the like, and the modem processor mainly processes wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 110 .
  • Embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium.
  • a program or an instruction is stored on the readable storage medium.
  • the processor is the processor in the electronic device described in the foregoing embodiments.
  • the readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
  • An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each of the foregoing display method embodiments process, and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.
  • the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
  • the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation.
  • the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of this application.
  • a storage medium such as ROM/RAM, magnetic disk, CD-ROM

Abstract

The present application discloses a display method, an apparatus, and an electronic device, belonging to the field of communication technology. Said method comprises: determining N session messages from M sessions of a first application, the message content corresponding to the N session messages matching each other; determining a target session message from the N session messages on the basis of a preset condition, wherein the preset condition comprises any one of the following: the receiving time of the N session messages, the frequency at which a user views the session messages of the M sessions, and the duration when the user views the session messages of the M sessions; and displaying the target session message in the session corresponding to the target session message, M and N being positive integers, and M being equal to or greater than N. The present application is applied to a scenario of viewing a message.

Description

显示方法、装置及电子设备Display method, device and electronic device
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请主张在2021年01月28日在中国提交的中国专利申请号No.202110119225.9的优先权,其全部内容通过引用包含于此。This application claims priority to Chinese Patent Application No. 202110119225.9 filed in China on Jan. 28, 2021, the entire contents of which are hereby incorporated by reference.
技术领域technical field
本申请属于通信技术领域,具体涉及一种显示方法、装置及电子设备。The present application belongs to the field of communication technologies, and in particular relates to a display method, an apparatus and an electronic device.
背景技术Background technique
随着电子技术的发展,电子设备中安装的社交应用扮演着越来越重要的角色。目前,用户可以随时随地的通过这些社交应用的群聊功能与其他用户分享各种信息(如,文本、图片、音频等)。With the development of electronic technology, social applications installed in electronic devices play an increasingly important role. At present, users can share various information (eg, text, pictures, audio, etc.) with other users through the group chat function of these social applications anytime and anywhere.
在相关技术中,在一些交流较为频繁的聊天群中,经常因为用户未及时查看而出现大量的未读消息。如果这些未读消息中包括大量重复的未读消息,并且属于多个群聊会话,即,在多个群聊会话中存在大量重复的未读消息,则用户需要在多个群聊会话中分别进行翻阅查找,来查看这些重复的未读消息。In the related art, in some chat groups with frequent communication, a large number of unread messages often appear because users do not check in time. If these unread messages include a large number of repeated unread messages and belong to multiple group chat sessions, that is, there are a large number of repeated unread messages in multiple group chat sessions, the user needs to Scroll through to see these duplicate unread messages.
如此,导致整个消息的查找过程步骤繁琐、耗时较长。In this way, the search process of the entire message is complicated and time-consuming.
发明内容SUMMARY OF THE INVENTION
本申请实施例的目的是提供一种显示方法、装置及电子设备,能够解决文章或文章链接的查找过程步骤繁琐、耗时较长的问题。The purpose of the embodiments of the present application is to provide a display method, apparatus and electronic device, which can solve the problems of complicated steps and long time-consuming in the search process of articles or article links.
为了解决上述技术问题,本申请是这样实现的:In order to solve the above technical problems, this application is implemented as follows:
第一方面,本申请实施例提供了一种显示方法,该方法包括:从第一应用的M个会话中确定出N个会话消息,上述N个会话消息对应的消息内容相互匹配;基于预设条件,从上述N个会话消息中,确定出目标会话消息,上述预设条件包括以下任意一项:N个会话消息的接收时间、用户对M个会话的会话消息的查看频率、用户对M 个会话的会话消息的查看时长;在目标会话消息对应的会话中显示目标会话消息,M和N为正整数,M大于或等于N。In a first aspect, an embodiment of the present application provides a display method, the method includes: determining N conversation messages from M conversations of a first application, and the message contents corresponding to the N conversation messages match each other; Condition, the target conversation message is determined from the above N conversation messages, and the above preset condition includes any one of the following: the receiving time of the N conversation messages, the frequency of viewing the conversation messages of the M conversations by the user, the user's checking of the M conversation messages The viewing duration of the session message of the session; the target session message is displayed in the session corresponding to the target session message, M and N are positive integers, and M is greater than or equal to N.
第二方面,本申请实施例提供了一种显示的装置,上述显示装置包括:确定模块和显示模块;其中:确定模块,用于从第一应用的M个会话中确定出N个会话消息,N个会话消息对应的消息内容相互匹配;确定模块,还用于基于预设条件,从N个会话消息中,确定出目标会话消息,预设条件包括以下任意一项:N个会话消息的接收时间、用户对M个会话的会话消息的查看频率、用户对M个会话的会话消息的查看时长;显示模块,用于在目标会话消息对应的会话中显示目标会话消息,M和N为正整数,M大于或等于N。In a second aspect, an embodiment of the present application provides a display device, where the display device includes: a determination module and a display module; wherein: the determination module is configured to determine N session messages from M sessions of the first application, The message contents corresponding to the N conversation messages match each other; the determining module is further configured to determine the target conversation message from the N conversation messages based on a preset condition, and the preset condition includes any one of the following: receiving the N conversation messages time, the viewing frequency of the session messages of the M sessions by the user, and the viewing duration of the session messages of the M sessions by the user; the display module is used to display the target session message in the session corresponding to the target session message, and M and N are positive integers , M is greater than or equal to N.
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, embodiments of the present application provide an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of the method according to the first aspect when executed.
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method according to the first aspect are implemented .
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In a fifth aspect, an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, and implement the first aspect the method described.
在本申请实施例中,电子设备可以从第一应用的M个会话中确定出N个消息内容相互匹配的会话消息,并基于预设条件,从上述N个会话消息中,确定出目标会话消息,上述预设条件包括以下任意一项:N个会话消息的接收时间、用户对M个会话的会话消息的查看频率、用户对M个会话的会话消息的查看时长;最后,在目标会话消息对应的会话中显示目标会话消息。如此,在多个会话中存在重复的会话消息的情况下,电子设备可以从中筛选出多个重复的会话消息,并基于根据用户的实际需求,从上述多个重复的会话消息中确定出需要显示的会话消息,并将该会话消息在该目标会话消息对应的会话中显示。如此,电子设备可以根据用户实际需求,显示多个重复未读消息中满足条件的未读消息,提高了用户查看消息的效率。In this embodiment of the present application, the electronic device may determine, from the M sessions of the first application, N session messages whose message contents match each other, and determine the target session message from the above N session messages based on preset conditions. , the above preset conditions include any one of the following: the receiving time of the N conversation messages, the frequency of viewing the conversation messages of the M conversations by the user, and the viewing duration of the conversation messages of the M conversations by the user; The target session message is displayed in the session of . In this way, in the case where there are repeated conversation messages in multiple conversations, the electronic device can filter out multiple repeated conversation messages, and based on the actual needs of the user, determine from the above multiple repeated conversation messages that need to be displayed and display the session message in the session corresponding to the target session message. In this way, the electronic device can display unread messages that meet the conditions among the multiple repeated unread messages according to the actual needs of the user, thereby improving the efficiency of the user to view messages.
附图说明Description of drawings
图1是本申请实施例提供的一种显示方法的流程图;1 is a flowchart of a display method provided by an embodiment of the present application;
图2是本申请实施例提供的一种显示方法所应用的界面的示意图之一;FIG. 2 is one of the schematic diagrams of an interface to which a display method provided by an embodiment of the present application is applied;
图3是本申请实施例提供的一种显示方法所应用的界面的示意图之二;3 is a second schematic diagram of an interface to which a display method provided by an embodiment of the present application is applied;
图4是本申请实施例提供的一种显示方法所应用的界面的示意图之三;4 is a third schematic diagram of an interface to which a display method provided by an embodiment of the present application is applied;
图5是本申请实施例提供的一种显示装置的结构示意图;FIG. 5 is a schematic structural diagram of a display device provided by an embodiment of the present application;
图6是本申请实施例提供的一种电子设备的硬件结构示意图;6 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application;
图7是本申请实施例提供的一种电子设备的硬件结构示意图。FIG. 7 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between "first", "second", etc. The objects are usually of one type, and the number of objects is not limited. For example, the first object may be one or more than one. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the associated objects are in an "or" relationship.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的显示方法进行详细地说明。The display method provided by the embodiments of the present application will be described in detail below through specific embodiments and application scenarios with reference to the accompanying drawings.
本申请实施例提供的显示方法可以应用于多会话场景中。The display method provided by the embodiment of the present application can be applied to a multi-session scenario.
以聊天APP中的群聊会话为例。在电子设备显示该聊天APP的主界面的情况下,假设该主界面显示的会话列表中包含3个群聊会话。在上述3个群聊会话中包括多个重复的未读消息的情况下,当用户想要查看这3个群聊会话中的重复的未读消息时,则需要用户分别打开每个群聊会话的会话界面,对多个群聊会话的众多会话消息进行翻阅查看,来查找重复的会话消息。如此,导致查看会话消息的过程繁琐且耗时较长。Take a group chat session in a chat app as an example. When the electronic device displays the main interface of the chat APP, it is assumed that the conversation list displayed on the main interface includes three group chat conversations. In the case that the above three group chat sessions include multiple repeated unread messages, when the user wants to view the repeated unread messages in the three group chat sessions, the user needs to open each group chat session separately On the conversation interface, you can browse through many conversation messages of multiple group chat conversations to find duplicate conversation messages. In this way, the process of viewing conversation messages is cumbersome and time-consuming.
在本申请实施例中,在用户需要查看多个群聊中的重复的未读消息的情况下,电子设 备可以从上述3个群聊会话的未读消息中确定消息内容相互匹配的N个未读消息,即,重复的未读消息,然后,电子设备可以基于预设条件,从上述N个未读消息中确定出目标会话消息,并将目标会话消息在该目标会话消息对应的群聊会话中显示。例如,当预设条件为N个未读消息的接收时间时,电子设备可以按照N个未读消息的接收时间的早晚,确定出N个未读消息中接收时间较早或者接收时间较晚的未读消息,并在该未读消息对应的群聊会话中显示该未读消息。如此,电子设备可以根据用户实际需求,显示多个重复未读消息中满足条件的一个未读消息,提高了用户查看消息的效率。In this embodiment of the present application, when the user needs to view the repeated unread messages in multiple group chats, the electronic device may determine, from the unread messages of the above three group chat sessions, N unread messages whose message contents match each other. Read messages, that is, repeated unread messages, and then, the electronic device can determine the target conversation message from the above N unread messages based on preset conditions, and place the target conversation message in the group chat session corresponding to the target conversation message. displayed in. For example, when the preset condition is the reception time of the N unread messages, the electronic device may determine, according to the morning or evening of the reception time of the N unread messages, the one with an earlier reception time or a later reception time among the N unread messages. Unread messages, and display the unread messages in the group chat session corresponding to the unread messages. In this way, the electronic device can display one unread message that satisfies the condition among the multiple repeated unread messages according to the actual needs of the user, which improves the efficiency of the user in viewing messages.
本申请实施例提供了一种显示方法,该显示方法可以应用于电子设备,图1示出了本申请实施例提供的显示方法的流程图。如图1所示,本申请实施例提供的显示方法可以包括下述的步骤101至步骤103。An embodiment of the present application provides a display method, and the display method can be applied to an electronic device. FIG. 1 shows a flowchart of the display method provided by the embodiment of the present application. As shown in FIG. 1 , the display method provided by this embodiment of the present application may include the following steps 101 to 103 .
步骤101:从第一应用的M个会话中确定出N个会话消息。Step 101: Determine N session messages from the M sessions of the first application.
其中,所述N个会话消息对应的消息内容相互匹配,M和N为正整数,M大于或等于N。Wherein, the message contents corresponding to the N conversation messages match each other, M and N are positive integers, and M is greater than or equal to N.
在本申请实施例中,上述第一应用可以为电子设备中的任一可以收发消息的应用,如,社交应用,手机通讯录等。In the embodiment of the present application, the above-mentioned first application may be any application in the electronic device that can send and receive messages, such as a social application, a mobile phone address book, and the like.
在本申请实施例中,上述M个会话可以为私人会话,也可以为群组会话。In this embodiment of the present application, the above-mentioned M conversations may be private conversations or group conversations.
在本申请实施例中,上述N个会话消息可以是M个会话中的全部或者部分消息。In this embodiment of the present application, the above N session messages may be all or part of the messages in the M sessions.
可选地,在本申请实施例中,上述N个会话消息可以包括:第一应用中满足第一条件的N个会话消息。其中,上述第一条件包括以下至少一项:未读消息,第一预定时间段内接收到的消息,消息发送方为目标消息发送方,包含目标关键字的消息,目标会话中的消息。例如,上述N个会话消息可以为第一应用接收的、用户还未查看的未读消息。Optionally, in this embodiment of the present application, the above-mentioned N session messages may include: N session messages that satisfy the first condition in the first application. The first condition includes at least one of the following: unread messages, messages received within a first predetermined period of time, the message sender is the target message sender, messages containing target keywords, and messages in the target conversation. For example, the above N conversation messages may be unread messages received by the first application but not yet viewed by the user.
示例性的,上述预定时间段可以是用户设置的,也可以是显示装置基于用户行为(例如,消息的查看频率)确定的一个时间段。例如,若统计出用户在每天17点-21点查看会话消息的频率较高,则N个会话消息可以为每天17点-21点间接收到的会话消息。应注意的是,由于用户行为会发生变化,因此,上述的预定时间段可以按照用户行为的更改而更改,其并不是一成不变的。Exemplarily, the above-mentioned predetermined time period may be set by the user, or may be a time period determined by the display device based on user behavior (for example, the viewing frequency of messages). For example, if it is calculated that the frequency of users viewing conversation messages is high from 17:00 to 21:00 every day, the N conversation messages may be conversation messages received between 17:00 and 21:00 every day. It should be noted that, since user behavior will change, the above-mentioned predetermined time period can be changed according to the change of user behavior, which is not static.
示例性的,上述目标消息发送方可以为预设的,也可以是显示装置根据用户行为(如, 用户与各个联系人的聊天频率)确定的。例如,用户与好友A的聊天频率是所有联系人中最高的,因此,可以将好友A设置为目标消息发送方,即N个会话消息可以包括好友A发送的消息。Exemplarily, the above-mentioned target message sender may be preset, or may be determined by the display device according to user behavior (eg, the frequency of chatting between the user and each contact). For example, the chat frequency between the user and friend A is the highest among all contacts. Therefore, friend A may be set as the target message sender, that is, the N conversation messages may include messages sent by friend A.
示例性的,上述目标关键字可以为预设的,也可以是显示装置根据用户行为(如,用户经常查看的会话消息中的关键字)确定的。Exemplarily, the above-mentioned target keywords may be preset, or may be determined by the display device according to user behavior (eg, keywords in conversation messages frequently viewed by the user).
在本申请实施例中,上述N个会话消息中的消息内容可以包括以下任一项:文本、图片、音频、视频、链接等,本申请实施例对此不做任何限定。In this embodiment of the present application, the message content in the above N conversation messages may include any of the following: text, pictures, audio, video, links, etc., which are not limited in this embodiment of the present application.
在本申请实施例中,上述N个会话消息对应的消息内容相互匹配,可以为上述N个会话消息的消息内容相同或者消息内容的相似度大于第一阈值。In this embodiment of the present application, the message contents corresponding to the N conversation messages match each other, which may be that the message contents of the N conversation messages are the same or the similarity of the message contents is greater than the first threshold.
示例性的,显示装置可以通过相似度算法(如,Doc2Vec算法)对N个消息的消息内容进行相似度计算,得到各个消息之间的相似度值。进一步地,如果至少一个消息之间的相似度值大于第一阈值(如,90%),则认为该至少一个消息的内容相互匹配,即,该至少一个消息为重复消息。Exemplarily, the display device may perform similarity calculation on the message contents of the N messages by using a similarity algorithm (eg, Doc2Vec algorithm) to obtain a similarity value between each message. Further, if the similarity value between at least one message is greater than the first threshold (eg, 90%), it is considered that the contents of the at least one message match each other, that is, the at least one message is a duplicate message.
步骤102:基于预设条件,从上述N个会话消息中,确定出目标会话消息。Step 102: Based on a preset condition, a target session message is determined from the above N session messages.
其中,上述预设条件包括以下任意一项:上述N个会话消息的接收时间、用户对上述M个会话的会话消息的查看频率、用户对上述M个会话的会话消息的查看时长。The preset condition includes any one of the following: the reception time of the N conversation messages, the frequency of viewing the conversation messages of the M conversations by the user, and the viewing duration of the conversation messages of the M conversations by the user.
在本申请实施例中,上述目标会话消息可以包括一个或者多个会话消息。In this embodiment of the present application, the above-mentioned target session message may include one or more session messages.
在本申请实施例中,显示装置可以实时获取上述N个会话消息的接收时间,然后按照N个会话消息的接收时间的早晚,从N个会话消息中确定出目标会话消息。示例性的,显示装置在获取N个会话消息(即,N个重复消息)之后,可以将N个会话消息中接收时间最早的消息确定为目标会话消息。In the embodiment of the present application, the display device may acquire the reception times of the N session messages in real time, and then determine the target session message from the N session messages according to the morning and evening of the reception times of the N session messages. Exemplarily, after acquiring N conversation messages (ie, N repeated messages), the display apparatus may determine the message with the earliest reception time among the N conversation messages as the target conversation message.
例1,以第一应用为会话应用为例,假设上述N个会话消息包括:群组会话A中的消息1和消息2,群组会话B中的消息3和消息4,群组会话C中的消息5,其中,消息5的接收时间最早,则将消息5作为目标会话消息。Example 1, taking the first application as a conversation application as an example, it is assumed that the above N conversation messages include: message 1 and message 2 in group conversation A, message 3 and message 4 in group conversation B, and message 3 and message 4 in group conversation C. message 5, where the reception time of message 5 is the earliest, then take message 5 as the target session message.
在本申请实施例中,显示装置可以实时获取用户对M个会话中的每个会话的会话消息的查看频率,并确定N个会话消息所属的会话,然后按照用户对每个会话消息所属会话的会话消息的查看频率的高低,从N个会话消息中确定出目标会话消息。In the embodiment of the present application, the display device may acquire in real time the viewing frequency of the conversation messages of each of the M conversations by the user, and determine the conversations to which the N conversation messages belong, and then determine the conversations to which the N conversation messages belong. The viewing frequency of conversation messages is high or low, and the target conversation message is determined from the N conversation messages.
示例性的,显示装置可以将N个会话消息中,所属会话的会话消息查看频率大于第一阈值的会话消息,作为目标会话消息。Exemplarily, the display apparatus may use, among the N conversation messages, a conversation message whose viewing frequency of the conversation message of the belonged conversation is greater than the first threshold as the target conversation message.
例2,假设第一应用中存在会话消息1、会话消息2、会话消息3和会话消息4这四条重复会话消息,会话消息1属于会话A,会话息2属于会话B,会话消息3和会话消息4属于会话C,并且,用户对会话A中的会话消息查看最为频繁,则可以将会话A中的消息1作为目标会话消息。Example 2: Suppose there are four repeated session messages, session message 1, session message 2, session message 3, and session message 4 in the first application. Session message 1 belongs to session A, session information 2 belongs to session B, session message 3 and session message 4 belongs to session C, and the user views the session messages in session A most frequently, so message 1 in session A can be used as the target session message.
可选地,在本申请实施例中,显示装置可以根据N个消息中的每个消息的消息属性,分别确定出每个消息所属的会话。示例性的,上述消息属性可以包括以下任一项:消息内容、消息接收时间、消息所属的会话,消息发送方信息、消息接收方信息等。Optionally, in this embodiment of the present application, the display device may separately determine the session to which each message belongs according to the message attribute of each message in the N messages. Exemplarily, the above message attributes may include any of the following: message content, message reception time, session to which the message belongs, message sender information, message receiver information, and the like.
在本申请实施例中,显示装置可以实时获取用户对M个会话中的每个会话的会话消息的查看时长,并确定N个会话消息所属的会话,然后按照用户对每个会话消息所属会话的会话消息的查看时长的大小,从N个会话消息中确定出目标会话消息。示例性的,显示装置可以将N个会话消息中,所属会话的会话消息查看时长大于第二阈值的会话消息,作为目标会话消息。In this embodiment of the present application, the display device may acquire in real time the viewing duration of the conversation messages of each of the M conversations by the user, and determine the conversations to which the N conversation messages belong, and then determine the conversations to which the N conversation messages belong according to the user's viewing duration of each conversation message. The size of the viewing duration of the session message, and the target session message is determined from the N session messages. Exemplarily, the display apparatus may use, among the N conversation messages, a conversation message whose viewing duration of the conversation message of the belonged conversation is greater than the second threshold as the target conversation message.
示例性的,上述用户对会话的会话消息查看时长可以为会话的会话界面的显示时长。可以理解的是,通常在显示会话界面的情况下,则可以认为用户在查看会话消息。Exemplarily, the above-mentioned user's viewing duration of the session message of the session may be the display duration of the session interface of the session. It can be understood that, in the case of displaying the conversation interface, it can be considered that the user is viewing the conversation message.
可选地,在本申请实施例中,显示装置可以开启消息筛选功能,使得显示装置可以从M个会话的N个会话消息中确定出目标会话消息。可以理解,上述N个会话消息的消息来源可以为第一应用中开启了消息筛选功能的会话。在一种示例中,如图2所示,电子设备显示功能设置界面,该功能设置界面上显示有多个会话选项,一个会话选项对应一个会话,每个会话选项用于开启或关系该会话的消息筛选功能,如此,用户可以通过该功能设置界面,开启至少一个群聊的消息筛选功能。Optionally, in this embodiment of the present application, the display apparatus may enable a message screening function, so that the display apparatus may determine the target conversation message from N conversation messages of the M conversations. It can be understood that the message sources of the above N conversation messages may be conversations in which the message screening function is enabled in the first application. In an example, as shown in FIG. 2 , the electronic device displays a function setting interface, where multiple session options are displayed on the function setting interface, one session option corresponds to one session, and each session option is used to enable or relate to the session’s The message screening function, in this way, the user can enable the message screening function of at least one group chat through the function setting interface.
步骤103:在目标会话消息对应的会话中显示上述目标会话消息。Step 103: Display the above target session message in the session corresponding to the target session message.
在本申请实施例中,目标会话消息对应的会话为目标会话消息所属的会话。In this embodiment of the present application, the session corresponding to the target session message is the session to which the target session message belongs.
在本申请实施例中,显示装置可以获取目标会话消息所属的会话,并在目标会话消息所属会话的会话界面中显示目标会话消息。In this embodiment of the present application, the display device may acquire the session to which the target session message belongs, and display the target session message in the session interface of the session to which the target session message belongs.
示例性的,上述目标消息所属会话的会话界面可以是新生成的会话界面,或者该会话 的原始会话界面。Exemplarily, the session interface of the session to which the target message belongs may be a newly generated session interface, or an original session interface of the session.
以第一应用为会话应用为例,假设上述N个会话消息包括:群组会话A中的消息1和消息2,群组会话B中的消息3和消息4,群组会话C中的消息5,其中,消息5的接收时间最早,则将消息5作为目标会话消息,则将消息5在群组会话C的会话界面中进行显示,并且将群组会话A中的消息1和消息2在群组会话A中隐藏,将群组会话B中的消息3和消息4在群组会话B中隐藏。这样,在用户群组会话C查看了消息5之后,在用户查看群组会话A和B中的会话消息时,减少了显示的消息数量,提高用户查看消息的效率。Taking the first application as a conversation application as an example, it is assumed that the above N conversation messages include: message 1 and message 2 in group conversation A, message 3 and message 4 in group conversation B, and message 5 in group conversation C , where the reception time of message 5 is the earliest, then message 5 is used as the target conversation message, then message 5 is displayed in the conversation interface of group conversation C, and message 1 and message 2 in group conversation A are displayed in the group conversation The group conversation A is hidden, and the message 3 and the message 4 in the group conversation B are hidden in the group conversation B. In this way, after the user group session C views the message 5, when the user views the session messages in the group sessions A and B, the number of displayed messages is reduced, and the efficiency of the user viewing messages is improved.
在一种示例中,在目标会话消息对应的会话中显示目标会话消息的情况下,可以仅在该会话的会话界面中显示目标会话消息,而不显示该会话中的其他的会话消息。如此,便于用户在会话界面中直观地查看该目标会话消息。In an example, when the target conversation message is displayed in the conversation corresponding to the target conversation message, only the target conversation message may be displayed in the conversation interface of the conversation without displaying other conversation messages in the conversation. In this way, it is convenient for the user to visually view the target conversation message in the conversation interface.
例3,结合上述例1,在确定消息5为目标会话消息的情况下,如图3所示,显示装置可以将该消息5在该消息5所属会话的会话界面(即,群组会话C)中显示。如此,在当前存在多条重复会话消息的情况下,使得用户可以直观地查看多条重复消息中的满足条件的消息,提高了用户的操作效率。Example 3, in combination with the above example 1, when it is determined that the message 5 is the target conversation message, as shown in FIG. 3 , the display device can display the message 5 on the conversation interface of the conversation to which the message 5 belongs (ie, group conversation C) displayed in. In this way, when there are multiple repeated conversation messages currently, the user can intuitively view the messages that satisfy the conditions among the multiple repeated messages, thereby improving the user's operation efficiency.
进一步地,在上述会话界面为新生成的会话界面的情况下,显示装置可在该新生成的会话界面中显上述目标会话消息。Further, in the case that the above-mentioned conversation interface is a newly generated conversation interface, the display device may display the above-mentioned target conversation message in the newly generated conversation interface.
进一步地,在上述会话界面为原始的会话界面的情况下,显示装置可以将会话界面中除上述目标会话消息之外的会话消息过滤,只显示该目标会话消息。Further, in the case that the above-mentioned conversation interface is an original conversation interface, the display device may filter the conversation messages in the conversation interface except the above-mentioned target conversation message, and only display the target conversation message.
在另一种示例中,在目标会话消息对应的会话中显示目标会话消息的情况下,可以同时显示有目标会话消息和该会话中目标会话消息外的其他会话消息。In another example, when the target session message is displayed in a session corresponding to the target session message, the target session message and other session messages other than the target session message in the session may be displayed simultaneously.
进一步地,显示装置可以将目标会话消息在会话界面中的预定位置或者以预定形式显示,以区分目标会话消息和除目标会话消息之外的其他会话消息。例如,显示装置可以将目标会话消息在会话界面的中心区域显示,或者,将目标会话消息高亮显示。Further, the display device may display the target conversation message in a predetermined position or in a predetermined form in the conversation interface, so as to distinguish the target conversation message from other conversation messages except the target conversation message. For example, the display device may display the target conversation message in the central area of the conversation interface, or highlight the target conversation message.
可选地,在本申请实施例中,上述步骤103也可以为步骤103a1:Optionally, in this embodiment of the present application, the foregoing step 103 may also be step 103a1:
步骤103a1:在第二界面上显示上述目标会话消息。Step 103a1: Display the above target session message on the second interface.
示例性的,上述第二界面可以为第一应用的任一应用界面,也可以为新生成的显示界 面,或者为电子设备的任一显示界面,例如,通知栏界面,主界面,本申请实施例对此不做限定。进一步的,显示装置可以在第二界面上悬浮显示目标会话消息。Exemplarily, the above-mentioned second interface may be any application interface of the first application, or may be a newly generated display interface, or any display interface of an electronic device, for example, a notification bar interface, a main interface, which is implemented in this application. The example does not limit this. Further, the display device may display the target conversation message in a suspended manner on the second interface.
在本申请实施例提供的显示方法中,电子设备可以从第一应用的M个会话中确定出N个消息内容相互匹配的会话消息,并基于预设条件,从上述N个会话消息中,确定出目标会话消息,上述预设条件包括以下任意一项:N个会话消息的接收时间、用户对M个会话的会话消息的查看频率、用户对M个会话的会话消息的查看时长;最后,在目标会话消息对应的会话中显示目标会话消息。如此,在多个会话中存在重复的会话消息的情况下,电子设备可以从中筛选出多个重复的会话消息,并基于根据用户的实际需求,从上述多个重复的会话消息中确定出需要显示的会话消息,并将该会话消息在该目标会话消息对应的会话中显示。如此,电子设备可以根据用户实际需求,显示多个重复未读消息中满足条件的未读消息,提高了用户查看消息的效率。In the display method provided by the embodiment of the present application, the electronic device may determine, from the M sessions of the first application, N session messages whose message contents match each other, and based on a preset condition, from the above N session messages, determine The target conversation message is output, and the above preset conditions include any one of the following: the receiving time of the N conversation messages, the frequency of viewing the conversation messages of the M conversations by the user, and the viewing time of the conversation messages of the M conversations by the user; The target session message is displayed in the session corresponding to the target session message. In this way, in the case where there are repeated conversation messages in multiple conversations, the electronic device can filter out multiple repeated conversation messages, and based on the actual needs of the user, determine from the above multiple repeated conversation messages that need to be displayed and display the session message in the session corresponding to the target session message. In this way, the electronic device can display unread messages that meet the conditions among the multiple repeated unread messages according to the actual needs of the user, thereby improving the efficiency of the user to view messages.
可选地,在本申请实施例中,上述M个会话中的第一会话消息包括第一链接;上述步骤101的过程可以包括如下步骤101a和步骤101b:Optionally, in this embodiment of the present application, the first session message in the above-mentioned M conversations includes the first link; the process of the above-mentioned step 101 may include the following steps 101a and 101b:
步骤101a:按照上述第一链接,获取第一链接对应的第一信息。Step 101a: Acquire the first information corresponding to the first link according to the above-mentioned first link.
步骤101b:若第一信息中包含预设关键字,则确定上述第一会话消息为N个会话消息中的一个。Step 101b: If the first information includes a preset keyword, determine that the above-mentioned first conversation message is one of N conversation messages.
示例性的,上述第一链接可以包括以下任一项:文章链接(即,文本链接)、图像链接、E-mail链接、多媒体文件链接等。Exemplarily, the above-mentioned first link may include any one of the following: an article link (ie, a text link), an image link, an E-mail link, a multimedia file link, and the like.
示例性的,上述第一链接对应的第一信息可以为该链接对应的内容。示例性的,当链接为文章链接时,该第一信息为该文章链接对应的文章内容;当连接为图像链接时,该第一信息为该图像链接对应的图像内容。Exemplarily, the first information corresponding to the first link may be content corresponding to the link. Exemplarily, when the link is an article link, the first information is the article content corresponding to the article link; when the link is an image link, the first information is the image content corresponding to the image link.
示例性的,上述预设关键字可以包括一个或多个关键字。Exemplarily, the above preset keywords may include one or more keywords.
示例性的,上述预设关键字可以是用户自定义的,也可以是系统默认的关键字,本申请实施例对此不做限定。可以理解,上述的预设关键字也可以为会话消息过滤词,通过该会话消息过滤词便可从M个会话中确定出包括用户需求查看的内容的N个消息。Exemplarily, the foregoing preset keyword may be user-defined, or may be a system default keyword, which is not limited in this embodiment of the present application. It can be understood that the above-mentioned preset keyword may also be a conversation message filter word, and by using the conversation message filter word, N messages including the content that the user needs to view can be determined from the M conversations.
示例性的,显示装置可以先获取M个会话中的会话消息中包括第一链接的会话消息(即,第一会话消息),并根据该会话消息中的第一链接,获取第一链接对应的第一信息, 然后,基于预设关键字对第一信息进行匹配,以确定该第一信息中是否包含预设关键字。Exemplarily, the display device may first obtain a session message (that is, a first session message) that includes the first link in the session messages of the M sessions, and obtain the corresponding first link according to the first link in the session message. the first information, and then matching the first information based on the preset keyword to determine whether the first information contains the preset keyword.
举例说明,以第一链接为文章链接,第一信息为文章内容,预设关键字为“通信”为例。显示装置可以基于该文章链接,后台打开该文章链接对应的文章,然后,基于“通信”对文章内容进行匹配,并在该文章内容中包含“通信”的情况下,将包含该第一链接的会话消息作为上述N个消息中的一个。For example, take the first link as an article link, the first information as the article content, and the preset keyword as "communication" as an example. The display device may, based on the article link, open the article corresponding to the article link in the background, and then match the article content based on "communication", and if the article content includes "communication", it will include the first link. Conversation message as one of the above N messages.
示例性的,在上述第一链接为图片的链接的情况下,显示装置可以对该图片链接对应的图片进行图像识别,得到该图片中包含的文本内容,然后,基于预设关键字,确定该文本中是否包含该预设关键字。Exemplarily, in the case that the above-mentioned first link is a link of a picture, the display device may perform image recognition on the picture corresponding to the picture link to obtain the text content contained in the picture, and then, based on the preset keyword, determine the picture. Whether the preset keyword is included in the text.
如此,显示装置可以从M个会话中获取到包含相同链接的多个重复会话消息,并且,可以进一步从上述多个重复会话消息中筛选出链接对应的内容(即,第一信息)中包含预设关键字的会话消息,使得在第一应用中的M个会话中存在多个重复会话消息的情况下,可以根据用户的实际需求,从多个重复会话消息中筛选出用户需要查看的会话消息,提高用户查看消息的效率。In this way, the display device can obtain multiple repeated conversation messages containing the same link from the M conversations, and can further filter out the content corresponding to the link (ie, the first information) from the multiple repeated conversation messages that contains the pre-defined link. A session message with a keyword is set, so that when there are multiple repeated session messages in the M sessions in the first application, the session message that the user needs to view can be screened from the multiple repeated session messages according to the actual needs of the user. to improve the efficiency of users viewing messages.
进一步可选地,在本申请实施例中,在M个会话中的第一会话消息包括第一链接的情况下,上述步骤101b之后,本申请实施例提供的显示方法还包括如下步骤101b1和步骤101b2:Further optionally, in the embodiment of the present application, in the case where the first session messages in the M sessions include the first link, after the above step 101b, the display method provided by the embodiment of the present application further includes the following steps 101b1 and 101b1. 101b2:
步骤101b1:基于预设关键字,根据N个会话消息包括的第一链接,确定出目标信息。Step 101b1: Determine target information according to the first link included in the N conversation messages based on the preset keyword.
步骤101b2:显示目标信息的信息标识。Step 101b2: Display the information identifier of the target information.
示例性的,显示装置根据N个会话消息中的第一链接,获取第一链接对应的目标信息。例如,当第一链接为文章链接时,第一链接对应的目标信息为该文章链接对应的文章。Exemplarily, the display apparatus acquires target information corresponding to the first link according to the first link in the N conversation messages. For example, when the first link is an article link, the target information corresponding to the first link is the article corresponding to the article link.
示例性的,上述信息标识可以为以下任一项:目标信息的缩略图,目标信息中的关键字,目标信息中包含的图标,目标信息的超链接。Exemplarily, the above information identifier may be any of the following: a thumbnail image of the target information, a keyword in the target information, an icon included in the target information, and a hyperlink of the target information.
进一步可选地,在本申请实施例中,显示装置可以在第一应用的应用界面中显示第一目标控件,在接收用户对该第一目标控件的输入后,显示上述目标信息的信息标识。Further optionally, in this embodiment of the present application, the display device may display the first target control in the application interface of the first application, and after receiving the user's input on the first target control, display the information identifier of the above target information.
举例说明,以第一应用为聊天会话APP,以第一链接为文章链接为例,如图4所示,该聊天APP的会话列表界面上显示一个悬浮控件21(即上述第一目标控件)该悬浮控件21内显示有“!今日汇总信息”的字样,以提示用户该悬浮控件21用于提醒用户该聊天 APP的今日信息汇总。For example, taking the first application as a chat session APP, and taking the first link as an article link as an example, as shown in FIG. The words "today's summary information" are displayed in the floating control 21 to remind the user that the floating control 21 is used to remind the user of the summary of today's information of the chat APP.
进一步可选地,在本申请实施例中,在上述目标信息为X个会话中的会话消息对应的目标信息的情况下,上述步骤101b2:可以包括如下步骤101c:Further optionally, in this embodiment of the present application, in the case that the above target information is target information corresponding to session messages in X sessions, the above step 101b2: may include the following step 101c:
步骤101c:显示X个第一标识。Step 101c: Display X first signs.
其中,一个第一标识对应一个会话,每个第一标识用于指示相应会话中的第二会话消息对应的目标信息的信息标识。One first identifier corresponds to one session, and each first identifier is used to indicate the information identifier of the target information corresponding to the second session message in the corresponding session.
示例性的,上述X个第一标识可以为X个子窗口,或者,X个标签页,也可以为X个图标,本申请实施例对此不做限定。Exemplarily, the above-mentioned X first identifiers may be X sub-windows, or X tab pages, or X icons, which are not limited in this embodiment of the present application.
示例性的,上述至少一个第二消息为上述N个会话消息中的全部或部分消息。Exemplarily, the at least one second message is all or part of the N session messages.
示例性的,X为正整数,即上述X个会话可以为一个或多个会话。Exemplarily, X is a positive integer, that is, the above-mentioned X sessions may be one or more sessions.
进一步可选地,在本申请实施例中,显示装置可以按照目标信息对应的目标会话消息的消息接收时间,在接收时间较早的目标会话消息对应的会话中显示目标信息的信息标识。如此,在存在多个重复的目标信息的情况下,显示装置可以仅显示接收时间较早的目标信息的信息标识,以便于用户便捷地查看该目标信息。Further optionally, in this embodiment of the present application, the display device may display the information identifier of the target information in the session corresponding to the target session message with an earlier reception time according to the message reception time of the target session message corresponding to the target information. In this way, when there are multiple duplicate target information, the display device may only display the information identifier of the target information with an earlier reception time, so as to facilitate the user to view the target information conveniently.
可选地,在本申请实施例中,上述步骤102的过程之后,本申请实施例提供的显示方法还包括如下步骤A1和步骤A2:Optionally, in the embodiment of the present application, after the process of the above step 102, the display method provided by the embodiment of the present application further includes the following steps A1 and A2:
步骤A1:在显示上述第一应用的第一界面的情况下,在第一界面上显示目标控件。Step A1: In the case of displaying the first interface of the above-mentioned first application, display the target control on the first interface.
步骤A2:接收用户对目标控件的第一输入。Step A2: Receive the user's first input to the target control.
结合上述步骤A1和步骤A2,上述步骤103的过程可以包括如下步骤103a:Combining the above steps A1 and A2, the process of the above step 103 may include the following step 103a:
步骤103a:响应于上述第一输入,显示目标会话消息对应的消息标识。Step 103a: In response to the above-mentioned first input, the message identifier corresponding to the target session message is displayed.
其中,上述目标控件用于触显示装置显示目标会话消息的消息标识。Wherein, the above-mentioned target control is used to display the message identifier of the target conversation message on the touch display device.
示例性的,上述第一输入可以是用户对目标控件的触控输入或其他可行性输入,例如,滑动输入、按压输入等,本申请实施例对此不做限定。Exemplarily, the above-mentioned first input may be a user's touch input on the target control or other feasible input, such as sliding input, pressing input, etc., which is not limited in this embodiment of the present application.
示例性的,上述目标会话消息对应的消息标识可以为以下任一项:图片(如,会话消息的消息内容的缩略图),消息内容的缩略信息,接收消息的会话的标识以及消息在会话中的索引。Exemplarily, the message identifier corresponding to the above target conversation message may be any of the following: a picture (such as a thumbnail image of the message content of the conversation message), abbreviated information of the message content, the identifier of the conversation receiving the message, and the message in the conversation. index in .
如此,电子设备通过显示目标控件,来使得用户通过该目标控件来选择何时显示目标 会话消息的消息标识,提高了人机交互性能。In this way, by displaying the target control, the electronic device enables the user to select when to display the message identifier of the target session message through the target control, thereby improving the human-computer interaction performance.
可选地,在本申请实施例中,电子设备在显示目标会话消息的消息标识的情况下,还可以显示第一提示信息,该第一提示信息用于提示用户该目标会话消息,或者该目标会话消息中的第一链接对应的第一信息的读取状态。Optionally, in this embodiment of the present application, in the case of displaying the message identifier of the target session message, the electronic device may also display first prompt information, where the first prompt information is used to prompt the user of the target session message or the target session message. The read status of the first information corresponding to the first link in the conversation message.
可选地,在本申请实施例中,上述步骤103之后,本申请实施例提供的显示方法还包括如下步骤B1:Optionally, in the embodiment of the present application, after the above step 103, the display method provided by the embodiment of the present application further includes the following step B1:
步骤B1:在上述目标会话消息为已读状态的情况下,显示目标会话消息的阅读标记,上述阅读标记用于标识用户已查阅目标会话消息。Step B1: In the case that the above-mentioned target conversation message is in a read state, display a read mark of the target conversation message, and the above-mentioned read mark is used to identify that the user has consulted the target conversation message.
示例性的,上述阅读标记包括以下任意一项:图标、角标、文字或者图案等。Exemplarily, the above-mentioned reading mark includes any one of the following: an icon, a corner mark, a text or a pattern, and the like.
示例性的,显示装置可以获取目标会话消息的读取状态,并在目标会话消息已读的情况下,显示目标会话消息的阅读标记,例如,在目标会话消息的消息标识上添加标记(如,红色叹号),高亮显示消息标识等。Exemplarily, the display device may acquire the read status of the target conversation message, and display the read mark of the target conversation message when the target conversation message has been read, for example, adding a mark (eg, adding a mark to the message identifier of the target conversation message) red exclamation mark), highlighting the message ID, etc.
如此,显示装置可以将用户已经查看过得目标会话消息和未查看过得目标会话消息区别显示,提高人机交互性能。In this way, the display device can differentiate and display the target conversation messages that the user has already viewed and the target conversation messages that have not been viewed by the user, thereby improving human-computer interaction performance.
进一步可选地,在本申请实施例中,上述步骤103之后,本申请实施例提供的显示方法还包括如下步骤C1和步骤C2:Further optionally, in the embodiment of the present application, after the above step 103, the display method provided by the embodiment of the present application further includes the following steps C1 and C2:
步骤C1:接收用户对目标会话消息对应的消息标识的第二输入。Step C1: Receive a second input by the user of the message identifier corresponding to the target session message.
步骤C2:响应于第二输入,执行与第二输入对应的目标操作。Step C2: In response to the second input, perform a target operation corresponding to the second input.
其中,上述目标操作包括以下任一项:显示上述目标会话消息,跳转至目标会话消息的显示位置,显示目标会话信息中的第一链接对应的信息标识。The above-mentioned target operation includes any one of the following: displaying the above-mentioned target session message, jumping to the display position of the target session message, and displaying the information identifier corresponding to the first link in the target session information.
示例性的,上述第二输入可以为用户对消息标识的点击输入、按压输入、滑动输入等任一可行性输入。Exemplarily, the above-mentioned second input may be any feasible input, such as a user's click input, pressing input, sliding input, etc. on the message identifier.
如此,电子设备显示目标文章的文章标识后,用户便可通过该文章标识对目标文章执行不同操作,提高了人机交互性能。In this way, after the electronic device displays the article identifier of the target article, the user can perform different operations on the target article through the article identifier, which improves the human-computer interaction performance.
可选地,在本申请实施例中,上述步骤103可以包括如下步骤103b1:Optionally, in this embodiment of the present application, the foregoing step 103 may include the following step 103b1:
步骤103b2:在满足第二条件的情况下,在所述目标会话消息对应的会话中显示目标会话消息。Step 103b2: Under the condition that the second condition is satisfied, display the target session message in the session corresponding to the target session message.
示例性的,上述第二条件包括以下至少一项:在到达目标时间点时,目标会话消息的消息数量大于或等于第一阈值时。Exemplarily, the above-mentioned second condition includes at least one of the following: when the target time point is reached, the message quantity of the target session message is greater than or equal to the first threshold.
如此,显示装置可以根据预定条件,自动显示目标会话消息以便用户查看,而无需用户的输入触发,提高人机交互性能。In this way, the display device can automatically display the target conversation message according to the predetermined condition for the user to view without triggering the user's input, thereby improving the human-computer interaction performance.
在本申请实施例提供的显示方法中,电子设备可以从第一应用的M个会话中确定出N个消息内容相互匹配的会话消息,并基于预设条件,从上述N个会话消息中,确定出目标会话消息,上述预设条件包括以下任意一项:N个会话消息的接收时间、用户对M个会话的会话消息的查看频率、用户对M个会话的会话消息的查看时长;最后,在目标会话消息对应的会话中显示目标会话消息。如此,在多个会话中存在重复的会话消息的情况下,电子设备可以从中筛选出多个重复的会话消息,并基于根据用户的实际需求,从上述多个重复的会话消息中确定出需要显示的会话消息,并将该会话消息在该目标会话消息对应的会话中显示。如此,电子设备可以根据用户实际需求,显示多个重复未读消息中满足条件的未读消息,提高了用户查看消息的效率。In the display method provided by the embodiment of the present application, the electronic device may determine, from the M sessions of the first application, N session messages whose message contents match each other, and based on a preset condition, from the above N session messages, determine The target conversation message is output, and the above preset conditions include any one of the following: the receiving time of the N conversation messages, the frequency of viewing the conversation messages of the M conversations by the user, and the viewing time of the conversation messages of the M conversations by the user; The target session message is displayed in the session corresponding to the target session message. In this way, in the case where there are repeated conversation messages in multiple conversations, the electronic device can filter out the multiple repeated conversation messages, and based on the actual needs of the user, determine from the above multiple repeated conversation messages that need to be displayed and display the session message in the session corresponding to the target session message. In this way, the electronic device can display unread messages that meet the conditions among the multiple repeated unread messages according to the actual needs of the user, thereby improving the efficiency of the user to view messages.
需要说明的是,本申请实施例提供的显示方法,执行主体可以为显示装置,或者该显示装置中的用于执行显示的方法的控制模块。本申请实施例中以显示装置执行显示的方法为例,说明本申请实施例提供的显示装置。It should be noted that, in the display method provided by the embodiments of the present application, the execution subject may be a display device, or a control module in the display device for executing the display method. In the embodiments of the present application, a method for performing display by a display device is used as an example to describe the display device provided by the embodiments of the present application.
本申请实施例提供一种显示装置,如图5所示,该显示装置400包括:确定模块401和显示模块402;其中:An embodiment of the present application provides a display device. As shown in FIG. 5 , the display device 400 includes: a determination module 401 and a display module 402; wherein:
上述确定模块401,用于从第一应用的M个会话中确定出N个会话消息,上述N个会话消息对应的消息内容相互匹配;上述确定模块401,还用于基于预设条件,从N个会话消息中,确定出目标会话消息,上述预设条件包括以下任意一项:上述N个会话消息的接收时间、用户对上述M个会话的会话消息的查看频率、用户对上述M个会话的会话消息的查看时长;上述显示模块402,用于在确定模块401确定的上述目标会话消息对应的会话中显示上述目标会话消息,M和N为正整数,M大于或等于N。The above determining module 401 is configured to determine N conversation messages from the M conversations of the first application, and the message contents corresponding to the above N conversation messages match each other; Among the conversation messages, the target conversation message is determined, and the above preset conditions include any one of the following: the receiving time of the above N conversation messages, the frequency of viewing the conversation messages of the above M conversations by the user, the user's viewing frequency of the above M conversations. The viewing duration of the session message; the display module 402 is configured to display the target session message in the session corresponding to the target session message determined by the determining module 401, where M and N are positive integers, and M is greater than or equal to N.
可选地,在本申请实施例中,上述M个会话中的第一会话消息包括第一链接;Optionally, in this embodiment of the present application, the first session message in the above-mentioned M sessions includes a first link;
上述确定模块401,具体用于按照上述第一链接,获取上述第一链接对应的第一信息;若上述第一信息中包含预设关键字,则确定上述第一会话消息为N个会话消息中的一个。The above-mentioned determining module 401 is specifically configured to obtain the first information corresponding to the above-mentioned first link according to the above-mentioned first link; if the above-mentioned first information contains a preset keyword, determine that the above-mentioned first conversation message is among the N conversation messages one of.
可选地,在本申请实施例中,上述显示装置还包括:接收模块403;Optionally, in this embodiment of the present application, the above-mentioned display device further includes: a receiving module 403;
上述显示模块402,还用于在显示上述第一应用的第一界面的情况下,在上述第一界面上显示目标控件;上述接收模块403,用于接收用户对上述显示模块402显示的上述目标控件的第一输入;The above-mentioned display module 402 is further configured to display the target control on the above-mentioned first interface when the first interface of the above-mentioned first application is displayed; the above-mentioned receiving module 403 is used to receive the above-mentioned target displayed by the user on the above-mentioned display module 402 The first input of the control;
上述显示模块402,具体用于响应于上述接收模块接收的上述第一输入,显示上述目标会话消息对应的消息标识。The above-mentioned display module 402 is specifically configured to display the message identifier corresponding to the above-mentioned target session message in response to the above-mentioned first input received by the above-mentioned receiving module.
可选地,在本申请实施例中,上述显示模块402,具体用于在上述目标会话消息为已读状态的情况下,显示上述目标会话消息的阅读标记,上述阅读标记用于标识用户已查阅上述目标会话消息。Optionally, in the embodiment of the present application, the above-mentioned display module 402 is specifically configured to display the read mark of the above-mentioned target conversation message when the above-mentioned target conversation message is in a read state, and the above-mentioned read mark is used to identify that the user has consulted. The above target session message.
可选地,在本申请实施例中,上述装显示置还包括:执行模块404;Optionally, in this embodiment of the present application, the above-mentioned device display device further includes: an execution module 404;
上述接收模块403,还用于接收用户对上述目标会话消息对应的消息标识的第二输入;上述执行模块404,用于响应于上述接收模块403接收的上述第二输入,执行与上述第二输入对应的目标操作;其中,上述目标操作包括以下任一项:显示上述目标会话消息,跳转至目标会话消息的显示位置。The above-mentioned receiving module 403 is also used to receive the second input of the message identifier corresponding to the above-mentioned target session message by the user; the above-mentioned execution module 404 is used to respond to the above-mentioned second input received by the above-mentioned receiving module 403. The corresponding target operation; wherein, the above target operation includes any one of the following: displaying the above target conversation message, and jumping to the display position of the target conversation message.
在本申请实施例提供的显示装置中,电子设备可以从第一应用的M个会话中确定出N个消息内容相互匹配的会话消息,并基于预设条件,从上述N个会话消息中,确定出目标会话消息,上述预设条件包括以下任意一项:N个会话消息的接收时间、用户对M个会话的会话消息的查看频率、用户对M个会话的会话消息的查看时长;最后,在目标会话消息对应的会话中显示目标会话消息。如此,在多个会话中存在重复的会话消息的情况下,电子设备可以从中筛选出多个重复的会话消息,并基于根据用户的实际需求,从上述多个重复的会话消息中确定出需要显示的会话消息,并将该会话消息在该目标会话消息对应的会话中显示。如此,电子设备可以根据用户实际需求,显示多个重复未读消息中满足条件的未读消息,提高了用户查看消息的效率。In the display device provided in this embodiment of the present application, the electronic device may determine, from the M sessions of the first application, N session messages whose message contents match each other, and based on a preset condition, from the above N session messages, determine The target conversation message is output, and the above preset conditions include any one of the following: the receiving time of the N conversation messages, the frequency of viewing the conversation messages of the M conversations by the user, and the viewing time of the conversation messages of the M conversations by the user; The target session message is displayed in the session corresponding to the target session message. In this way, in the case where there are duplicate conversation messages in multiple conversations, the electronic device can filter out the multiple duplicate conversation messages, and based on the actual needs of the user, determine from the above-mentioned multiple duplicate conversation messages that need to be displayed and display the session message in the session corresponding to the target session message. In this way, the electronic device can display unread messages that meet the conditions among the multiple repeated unread messages according to the actual needs of the user, thereby improving the efficiency of the user to view messages.
需要说明的是,如图5所示,显示装置400中一定包括的模块用实线框示意,如显示模块402;显示装置400中可以包括也可以不包括的模块用虚线框示意,如执行模块404。It should be noted that, as shown in FIG. 5 , the modules that must be included in the display device 400 are indicated by solid-line boxes, such as the display module 402 ; the modules that may or may not be included in the display device 400 are indicated by dashed-line boxes, such as execution modules 404.
本申请实施例中的显示装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为 手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The display device in this embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The apparatus may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). assistant, PDA), etc., non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
本申请实施例中的显示装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The display device in this embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
本申请实施例提供的显示装置能够实现图1至图4的方法实施例实现的各个过程,为避免重复,这里不再赘述。The display device provided by the embodiment of the present application can implement each process implemented by the method embodiments in FIG. 1 to FIG. 4 , which is not repeated here to avoid repetition.
可选的,如图6所示,本申请实施例还提供一种电子设备500,包括处理器501,存储器502,存储在存储器502上并可在所述处理器501上运行的程序或指令,该程序或指令被处理器501执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in FIG. 6, an embodiment of the present application further provides an electronic device 500, including a processor 501, a memory 502, a program or instruction stored in the memory 502 and executable on the processor 501, When the program or instruction is executed by the processor 501, each process of the foregoing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
图7为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
该电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、以及处理器110等部件。The electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110, etc. part.
本领域技术人员可以理解,电子设备100还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图7中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power management through the power management system. consumption management and other functions. The structure of the electronic device shown in FIG. 7 does not constitute a limitation on the electronic device. The electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .
其中,上述处理器110,用于从第一应用的M个会话中确定出N个会话消息,上述N个会话消息对应的消息内容相互匹配;上述处理器110,还用于基于预设条件,从N个会 话消息中,确定出目标会话消息,上述预设条件包括以下任意一项:上述N个会话消息的接收时间、用户对上述M个会话的会话消息的查看频率、用户对上述M个会话的会话消息的查看时长;上述显示单元106,用于在处理器110确定的上述目标会话消息对应的会话中显示上述目标会话消息,M和N为正整数,M大于或等于N。The above processor 110 is configured to determine N session messages from the M sessions of the first application, and the message contents corresponding to the N session messages match each other; the above processor 110 is further configured to, based on a preset condition, A target conversation message is determined from the N conversation messages, and the above preset conditions include any one of the following: the receiving time of the above N conversation messages, the frequency of viewing the conversation messages of the above M conversations by the user, the user's checking of the above M conversation messages The viewing duration of the session message of the session; the display unit 106 is configured to display the target session message in the session corresponding to the target session message determined by the processor 110, where M and N are positive integers, and M is greater than or equal to N.
可选地,在本申请实施例中,上述M个会话中的第一会话消息包括第一链接;上述处理器110,具体用于按照上述第一链接,获取上述第一链接对应的第一信息;若上述第一信息中包含预设关键字,则确定上述第一会话消息为N个会话消息中的一个。Optionally, in this embodiment of the present application, the first session messages in the above-mentioned M conversations include a first link; the above-mentioned processor 110 is specifically configured to obtain the first information corresponding to the above-mentioned first link according to the above-mentioned first link ; If the above-mentioned first information contains a preset keyword, it is determined that the above-mentioned first conversation message is one of N conversation messages.
可选地,在本申请实施例中,上述显示单元106,还用于在显示上述第一应用的第一界面的情况下,在上述第一界面上显示目标控件;上述用户输入单元107,用于接收用户对上述显示单元106显示的上述目标控件的第一输入;上述显示单元106,具体用于响应于上述用户输入单元107接收的上述第一输入,显示上述目标会话消息对应的消息标识。Optionally, in this embodiment of the present application, the above-mentioned display unit 106 is further configured to display a target control on the above-mentioned first interface when the first interface of the above-mentioned first application is displayed; the above-mentioned user input unit 107 is configured to use The above-mentioned display unit 106 is specifically configured to display the message identifier corresponding to the above-mentioned target session message in response to the above-mentioned first input received by the above-mentioned user input unit 107.
可选地,在本申请实施例中,上述显示单元106,具体用于在上述目标会话消息为已读状态的情况下,显示上述目标会话消息的阅读标记,上述阅读标记用于标识用户已查阅上述目标会话消息。Optionally, in this embodiment of the present application, the above-mentioned display unit 106 is specifically configured to display the read mark of the above-mentioned target conversation message when the above-mentioned target conversation message is in a read state, and the above-mentioned read mark is used to identify that the user has consulted. The above target session message.
可选地,在本申请实施例中,上述用户输入单元107,还用于接收用户对上述目标会话消息对应的消息标识的第二输入;上述处理器110,用于响应于上述用户输入单元107接收的上述第二输入,执行与上述第二输入对应的目标操作;其中,上述目标操作包括以下任一项:显示上述目标会话消息,跳转至目标会话消息的显示位置。Optionally, in this embodiment of the present application, the above-mentioned user input unit 107 is further configured to receive a second input from the user to the message identifier corresponding to the above-mentioned target session message; the above-mentioned processor 110 is used to respond to the above-mentioned user input unit 107 The received second input performs a target operation corresponding to the second input; wherein the target operation includes any one of the following: displaying the target conversation message, and jumping to the display position of the target conversation message.
在本申请实施例提供的电子设备中,电子设备可以从第一应用的M个会话中确定出N个消息内容相互匹配的会话消息,并基于预设条件,从上述N个会话消息中,确定出目标会话消息,上述预设条件包括以下任意一项:N个会话消息的接收时间、用户对M个会话的会话消息的查看频率、用户对M个会话的会话消息的查看时长;最后,在目标会话消息对应的会话中显示目标会话消息。如此,在多个会话中存在重复的会话消息的情况下,电子设备可以从中筛选出多个重复的会话消息,并基于根据用户的实际需求,从上述多个重复的会话消息中确定出需要显示的会话消息,并将该会话消息在该目标会话消息对应的会话中显示。如此,电子设备可以根据用户实际需求,显示多个重复未读消息中满足条件的未读消息,提高了用户查看消息的效率。In the electronic device provided in the embodiment of the present application, the electronic device may determine, from the M sessions of the first application, N session messages whose message contents match each other, and based on a preset condition, from the above N session messages, determine The target conversation message is output, and the above preset conditions include any one of the following: the receiving time of the N conversation messages, the frequency of viewing the conversation messages of the M conversations by the user, and the viewing time of the conversation messages of the M conversations by the user; The target session message is displayed in the session corresponding to the target session message. In this way, in the case where there are duplicate conversation messages in multiple conversations, the electronic device can filter out the multiple duplicate conversation messages, and based on the actual needs of the user, determine from the above-mentioned multiple duplicate conversation messages that need to be displayed and display the session message in the session corresponding to the target session message. In this way, the electronic device can display unread messages that meet the conditions among the multiple repeated unread messages according to the actual needs of the user, thereby improving the efficiency of the user to view messages.
应理解的是,本申请实施例中,输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元106可包括显示面板1061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板1061。用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器109可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。It should be understood that, in this embodiment of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042. Such as camera) to obtain still pictures or video image data for processing. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and other input devices 1072 . The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts, a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here. Memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems. The processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the like, and the modem processor mainly processes wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 110 .
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述显示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium. When the program or instruction is executed by a processor, each process of the foregoing display method embodiment can be implemented, and can achieve the same The technical effect, in order to avoid repetition, will not be repeated here.
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the foregoing embodiments. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述显示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each of the foregoing display method embodiments process, and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的 是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in the reverse order depending on the functions involved. To perform functions, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to some examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of this application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of this application, without departing from the scope of protection of the purpose of this application and the claims, many forms can be made, which all fall within the protection of this application.

Claims (15)

  1. 一种显示方法,所述方法包括:A display method, the method includes:
    从第一应用的M个会话中确定出N个会话消息,所述N个会话消息对应的消息内容相互匹配;N session messages are determined from the M sessions of the first application, and the message contents corresponding to the N session messages match each other;
    基于预设条件,从所述N个会话消息中,确定出目标会话消息,所述预设条件包括以下任意一项:所述N个会话消息的接收时间、用户对所述M个会话的会话消息的查看频率、用户对所述M个会话的会话消息的查看时长;A target conversation message is determined from the N conversation messages based on a preset condition, where the preset condition includes any one of the following: the receiving time of the N conversation messages, the user's conversation on the M conversations The viewing frequency of messages, and the viewing duration of the session messages of the M sessions by the user;
    在所述目标会话消息对应的会话中显示所述目标会话消息,M和N为正整数,M大于或等于N。The target session message is displayed in the session corresponding to the target session message, M and N are positive integers, and M is greater than or equal to N.
  2. 根据权利要求1所述的方法,其中,所述M个会话中的第一会话消息包括第一链接;The method of claim 1, wherein the first session message of the M sessions includes a first link;
    所述从第一应用的M个会话中确定出N个会话消息,包括:The determining of N session messages from the M sessions of the first application includes:
    按照所述第一链接,获取所述第一链接对应的第一信息;According to the first link, obtain the first information corresponding to the first link;
    若所述第一信息中包含预设关键字,则确定所述第一会话消息为N个会话消息中的一个。If the first information includes a preset keyword, it is determined that the first conversation message is one of N conversation messages.
  3. 根据权利要求2所述的方法,其中,所述基于预设条件,从所述N个会话消息中,确定出目标会话消息之后,所述方法还包括:The method according to claim 2, wherein after the target session message is determined from the N session messages based on a preset condition, the method further comprises:
    在显示所述第一应用的第一界面的情况下,在所述第一界面上显示目标控件;In the case of displaying the first interface of the first application, displaying the target control on the first interface;
    接收用户对所述目标控件的第一输入;receiving a first input from the user to the target control;
    所述在所述目标会话消息对应的会话中显示所述目标会话消息,包括:The displaying the target session message in the session corresponding to the target session message includes:
    响应于所述第一输入,显示所述目标会话消息对应的消息标识。In response to the first input, a message identifier corresponding to the target conversation message is displayed.
  4. 根据权利要求1所述的方法,其中,所述在所述目标会话消息对应的会话中显示所述目标会话消息之后,所述方法还包括:The method according to claim 1, wherein after the target conversation message is displayed in the conversation corresponding to the target conversation message, the method further comprises:
    在所述目标会话消息为已读状态的情况下,显示所述目标会话消息的阅读标记,所述阅读标记用于标识用户已查阅所述目标会话消息。When the target conversation message is in a read state, a read mark of the target conversation message is displayed, and the read mark is used to identify that the user has consulted the target conversation message.
  5. 根据权利要求3所述的方法,其中,所述在所述目标会话消息对应的会话中显示所述目标会话消息之后,还包括:The method according to claim 3, wherein after displaying the target conversation message in the conversation corresponding to the target conversation message, the method further comprises:
    接收用户对所述目标会话消息对应的消息标识的第二输入;receiving a second input from the user to the message identifier corresponding to the target session message;
    响应于所述第二输入,执行与所述第二输入对应的目标操作;in response to the second input, performing a target operation corresponding to the second input;
    其中,所述目标操作包括以下任一项:显示所述目标会话消息,跳转至目标会话消息的显示位置。The target operation includes any one of the following: displaying the target conversation message, and jumping to the display position of the target conversation message.
  6. 一种显示装置,所述装置包括:确定模块和显示模块;其中:A display device, the device comprising: a determination module and a display module; wherein:
    所述确定模块,用于从第一应用的M个会话中确定出N个会话消息,所述N个会话消息对应的消息内容相互匹配;The determining module is configured to determine N session messages from the M sessions of the first application, and the message contents corresponding to the N session messages match each other;
    所述确定模块,还用于基于预设条件,从所述N个会话消息中,确定出目标会话消息,所述预设条件包括以下任意一项:所述N个会话消息的接收时间、用户对所述M个会话的会话消息的查看频率、用户对所述M个会话的会话消息的查看时长;The determining module is further configured to determine a target conversation message from the N conversation messages based on a preset condition, where the preset condition includes any one of the following: the receiving time of the N conversation messages, the user The viewing frequency of the session messages of the M sessions, and the viewing duration of the session messages of the M sessions by the user;
    所述显示模块,用于在所述确定模块确定的所述目标会话消息对应的会话中显示所述目标会话消息,M和N为正整数,M大于或等于N。The display module is configured to display the target conversation message in the conversation corresponding to the target conversation message determined by the determining module, where M and N are positive integers, and M is greater than or equal to N.
  7. 根据权利要求6所述的装置,其中,所述M个会话中的第一会话消息包括第一链接;The apparatus of claim 6, wherein the first session message of the M sessions includes a first link;
    所述确定模块,具体用于按照所述第一链接,获取所述第一链接对应的第一信息;若所述第一信息中包含预设关键字,则确定所述第一会话消息为N个会话消息中的一个。The determining module is specifically configured to obtain the first information corresponding to the first link according to the first link; if the first information contains a preset keyword, determine that the first conversation message is N one of the conversation messages.
  8. 根据权利要求7所述的装置,其中,所述装置还包括:接收模块;The apparatus according to claim 7, wherein the apparatus further comprises: a receiving module;
    所述显示模块,还用于在显示所述第一应用的第一界面的情况下,在所述第一界面上显示目标控件;The display module is further configured to display a target control on the first interface when the first interface of the first application is displayed;
    所述接收模块,用于接收用户对所述显示模块显示的所述目标控件的第一输入;the receiving module, configured to receive the first input from the user to the target control displayed by the display module;
    所述显示模块,具体用于响应于所述接收模块接收的所述第一输入,显示所述目标会话消息对应的消息标识。The display module is specifically configured to display the message identifier corresponding to the target conversation message in response to the first input received by the receiving module.
  9. 根据权利要求6所述的装置,其中,所述显示模块,具体用于在所述目标会话消息为已读状态的情况下,显示所述目标会话消息的阅读标记,所述阅读标记用于标识用户已查阅所述目标会话消息。The device according to claim 6, wherein the display module is specifically configured to display a read mark of the target conversation message when the target conversation message is in a read state, and the read mark is used to identify The user has reviewed the target conversation message.
  10. 根据权利要求8所述的装置,其中,所述装置还包括:执行模块;The apparatus of claim 8, wherein the apparatus further comprises: an execution module;
    所述接收模块,还用于接收用户对所述目标会话消息对应的消息标识的第二输入;The receiving module is further configured to receive a second input from the user to the message identifier corresponding to the target session message;
    所述执行模块,用于响应于所述接收模块接收的所述第二输入,执行与所述第二输入对应的目标操作;the executing module, configured to execute a target operation corresponding to the second input in response to the second input received by the receiving module;
    其中,所述目标操作包括以下任一项:显示所述目标会话消息,跳转至目标会话消息的显示位置。The target operation includes any one of the following: displaying the target conversation message, and jumping to the display position of the target conversation message.
  11. 一种电子设备,其特征在于,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-5任一项所述的显示方法的步骤。An electronic device, characterized in that it includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being executed by the processor to achieve the right The steps of the display method described in any one of requirements 1-5.
  12. 一种可读存储介质,其特征在于,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1-5任一项所述的显示方法的步骤。A readable storage medium, characterized in that a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the display method according to any one of claims 1-5 are implemented .
  13. 一种显示装置,其特征在于,包括所述装置被配置成用于执行如权利要求1至5中任一项所述的显示方法。A display device, characterized in that the device is configured to perform the display method according to any one of claims 1 to 5 .
  14. 一种芯片,其特征在于,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1至5中任一项所述的显示方法。A chip, characterized in that the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run a program or an instruction to implement any one of claims 1 to 5 the display method.
  15. 一种计算机程序产品,其特征在于,所述程序产品被存储在非易失的存储介质中,所述程序产品被至少一个处理器执行以实现如权利要求1-5任一项所述的显示方法。A computer program product, characterized in that the program product is stored in a non-volatile storage medium, and the program product is executed by at least one processor to implement the display according to any one of claims 1-5 method.
PCT/CN2022/074262 2021-01-28 2022-01-27 Display method, apparatus, and electronic device WO2022161431A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110119225.9A CN112947807A (en) 2021-01-28 2021-01-28 Display method and device and electronic equipment
CN202110119225.9 2021-01-28

Publications (1)

Publication Number Publication Date
WO2022161431A1 true WO2022161431A1 (en) 2022-08-04

Family

ID=76238756

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/074262 WO2022161431A1 (en) 2021-01-28 2022-01-27 Display method, apparatus, and electronic device

Country Status (2)

Country Link
CN (1) CN112947807A (en)
WO (1) WO2022161431A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112947807A (en) * 2021-01-28 2021-06-11 维沃移动通信有限公司 Display method and device and electronic equipment
CN113709306B (en) * 2021-08-31 2024-03-19 维沃移动通信有限公司 Session processing method and device and electronic equipment
CN114397987A (en) * 2021-12-03 2022-04-26 北京达佳互联信息技术有限公司 Session display method, device, electronic equipment, storage medium and product
CN117135258A (en) * 2022-05-20 2023-11-28 华为技术有限公司 Method and terminal for displaying short message

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095440A (en) * 2016-06-13 2016-11-09 浙江翼信科技有限公司 A kind of method and apparatus presenting message
US20160364368A1 (en) * 2015-06-11 2016-12-15 International Business Machines Corporation Organizing messages in a hierarchical chat room framework based on topics
CN111182150A (en) * 2019-12-30 2020-05-19 维沃移动通信有限公司 Message association processing method, device, equipment and medium
CN111865758A (en) * 2020-06-19 2020-10-30 维沃移动通信(杭州)有限公司 Message display method and device and electronic equipment
CN112947807A (en) * 2021-01-28 2021-06-11 维沃移动通信有限公司 Display method and device and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106100969A (en) * 2016-05-30 2016-11-09 北京三快在线科技有限公司 A kind of do not read the based reminding method of session, device and terminal unit
CN109710370B (en) * 2018-12-29 2023-06-16 天津字节跳动科技有限公司 Session list display method and device and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160364368A1 (en) * 2015-06-11 2016-12-15 International Business Machines Corporation Organizing messages in a hierarchical chat room framework based on topics
CN106095440A (en) * 2016-06-13 2016-11-09 浙江翼信科技有限公司 A kind of method and apparatus presenting message
CN111182150A (en) * 2019-12-30 2020-05-19 维沃移动通信有限公司 Message association processing method, device, equipment and medium
CN111865758A (en) * 2020-06-19 2020-10-30 维沃移动通信(杭州)有限公司 Message display method and device and electronic equipment
CN112947807A (en) * 2021-01-28 2021-06-11 维沃移动通信有限公司 Display method and device and electronic equipment

Also Published As

Publication number Publication date
CN112947807A (en) 2021-06-11

Similar Documents

Publication Publication Date Title
WO2022161431A1 (en) Display method, apparatus, and electronic device
WO2018166361A1 (en) Session filtering method and device
WO2022089568A1 (en) File sharing method and apparatus, and electronic device
WO2021239018A1 (en) Page switching method and apparatus, and electronic device
CN110059273B (en) Method for displaying rich media on mobile terminal and mobile terminal
WO2022206698A1 (en) Message display method and apparatus and electronic device
WO2022206699A1 (en) Message transmission method and apparatus, and electronic device
WO2023040845A1 (en) Message transmission method and apparatus, and electronic device
WO2022063045A1 (en) Message display method and apparatus, and electronic device
WO2023046184A1 (en) Message processing method and apparatus, and electronic device
WO2022143524A1 (en) Information display method and apparatus, and electronic device
WO2022194004A1 (en) Application icon arrangement method and apparatus, and electronic device
WO2022253182A1 (en) Communication method and apparatus, electronic device, and readable storage medium
WO2022214082A1 (en) Notification message display method, apparatus and device, readable storage medium, and chip
WO2022233276A1 (en) Display method and apparatus, and electronic device
CN113325978B (en) Message display method and device and electronic equipment
US20240089223A1 (en) Information display method and apparatus, and electronic device
WO2024067636A1 (en) Content presentation method and apparatus, and device and storage medium
CN113965614A (en) Session creation method and device and electronic equipment
CN111857466B (en) Message display method and device
WO2023131092A1 (en) Information display method and apparatus
WO2023024970A1 (en) Information processing method, related device, and readable storage medium
WO2022228433A1 (en) Information processing method and apparatus, and electronic device
CN114124874B (en) Chat information sending method and device
WO2022156674A1 (en) Chat content processing method and apparatus, and electronic device

Legal Events

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

Ref document number: 22745304

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22745304

Country of ref document: EP

Kind code of ref document: A1