CN108881624B - Message display method and terminal equipment - Google Patents

Message display method and terminal equipment Download PDF

Info

Publication number
CN108881624B
CN108881624B CN201810542696.9A CN201810542696A CN108881624B CN 108881624 B CN108881624 B CN 108881624B CN 201810542696 A CN201810542696 A CN 201810542696A CN 108881624 B CN108881624 B CN 108881624B
Authority
CN
China
Prior art keywords
message
target
terminal device
messages
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810542696.9A
Other languages
Chinese (zh)
Other versions
CN108881624A (en
Inventor
李景
李帅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810542696.9A priority Critical patent/CN108881624B/en
Publication of CN108881624A publication Critical patent/CN108881624A/en
Application granted granted Critical
Publication of CN108881624B publication Critical patent/CN108881624B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72436User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for text messaging, e.g. SMS or e-mail
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72439User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72469User interfaces specially adapted for cordless or mobile telephones for operating the device by selecting functions from two or more displayed items, e.g. menus or icons
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72484User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events

Abstract

The embodiment of the invention discloses a message display method and terminal equipment, relates to the technical field of communication, and aims to solve the problem that the message displayed by the terminal equipment is low in readability. The method comprises the following steps: under the condition that a target message is displayed on a target page, if the target message is determined to be a message which is already triggered by a user to be displayed by terminal equipment, and the number of repeated messages in the target message is greater than or equal to a first preset threshold, displaying first prompt information on the target interface, wherein the repeated messages are messages with similarity greater than or equal to the similarity threshold in the target message or messages with the same identifier in the target message, and the target interface is a part of the target page; and responding to the received first operation of the user on the first prompt message, keeping displaying the first message on the target page, and canceling displaying other messages except the first message in the repeated messages, wherein the first message is any one of the repeated messages. The method can be applied to the scene that the user views the chat records.

Description

Message display method and terminal equipment
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a message display method and terminal equipment.
Background
With the development of communication technology, many applications have social functions. When people use social-enabled applications to communicate with each other, emotions can be expressed by sending pictures (e.g., dynamic expressions).
Currently, in a process that a user chats with other users by using a certain application program with a social function, the user can trigger the terminal device to continuously send a plurality of repeated pictures to the terminal devices of the other users, so as to enhance the strength of emotion expression of the user. And, after the user finishes chatting with other users, if the user wants to view the chat log again, the user can trigger the terminal device to display the chat log.
However, since the number of messages that can be simultaneously displayed on one display interface of the terminal device is limited, a large number of display areas of one display interface may be occupied by a plurality of repeated pictures in the chat log, so that the display interface may not be capable of simultaneously displaying other messages, thereby reducing the readability of the messages displayed by the terminal device.
Disclosure of Invention
The embodiment of the invention provides a message display method and terminal equipment, and aims to solve the problem that the readability of a message displayed by the terminal equipment is low.
In order to solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, an embodiment of the present invention provides a message display method, where the method includes: under the condition that a target message is displayed on a target page, if the target message is determined to be a message which is already triggered by a user to be displayed by terminal equipment, and the number of repeated messages in the target message is greater than or equal to a first preset threshold, displaying first prompt information on the target interface, wherein the repeated messages are messages with similarity greater than or equal to the similarity threshold in the target message or messages with the same identifier in the target message, and the target interface is a part of the target page; and responding to the received first operation of the user on the first prompt message, keeping displaying the first message on the target page, and canceling displaying other messages except the first message in the repeated messages, wherein the first message is any one of the repeated messages.
In a second aspect, an embodiment of the present invention provides a terminal device, where the terminal device includes a determining module, a receiving module, and a displaying module. The display module is used for displaying first prompt information on a target interface if the determining module determines that the target message is a message which is already triggered by a user and displayed by terminal equipment, and the number of repeated messages in the target message is greater than or equal to the first preset threshold value under the condition that the target message is displayed on a target page; and responding to a first operation of the user on the first prompt message received by the receiving module, keeping displaying a first message on the target page, and canceling displaying other messages except the first message in the repeated messages, wherein the first message is any one of the repeated messages, the repeated messages are messages with similarity greater than or equal to a similarity threshold value in the target message or messages with the same identifier in the target message, and the target interface is a part of the target page.
In a third aspect, an embodiment of the present invention provides a terminal device, which includes a processor, a memory, and a computer program stored on the memory and operable on the processor, where the computer program, when executed by the processor, implements the steps of the message display method provided in the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the message display method provided in the first aspect.
In the embodiment of the present invention, in a case that a target page displays a target message, if it is determined that the target message is a message that a user has triggered a terminal device to display, and the number of repeated messages in the target message (the repeated messages are messages whose similarity in the target message is greater than or equal to a similarity threshold or messages having the same identifier in the target message) is greater than or equal to a first preset threshold, first prompt information may be displayed on a target interface (the target interface is a part of the target page); and responding to the received first operation of the user on the first prompt message, keeping displaying any one message (namely the first message) in the repeated messages on the target page, and canceling displaying other messages except the first message in the repeated messages. According to the scheme, when the target message displayed on the target page is a message which is triggered to be displayed by the terminal device by the user (namely, a message which is already viewed by the user) and the number of the repeated messages in the target message is greater than or equal to the first preset threshold value, the terminal device can keep displaying any one of the repeated messages (namely, the first message) on the target page under the trigger of the user and cancel displaying other messages except the first message in the repeated messages, so that the display of a large number of repeated messages on the target page is avoided, and the readability of the messages displayed by the terminal device is improved.
Drawings
Fig. 1 is a schematic structural diagram of an android operating system according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a message display method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a terminal device displaying a target message according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a terminal device displaying a prompt message according to an embodiment of the present invention;
fig. 5 is a second schematic diagram illustrating a terminal device displaying a prompt message according to an embodiment of the present invention;
fig. 6 is a second schematic diagram illustrating a message display method according to an embodiment of the present invention;
fig. 7 is a third schematic diagram of a terminal device displaying a prompt message according to an embodiment of the present invention;
fig. 8 is a third schematic diagram illustrating a message display method according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 10 is a hardware schematic diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The term "and/or" herein is an association relationship describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The symbol "/" herein denotes a relationship in which the associated object is or, for example, a/B denotes a or B.
The terms "first" and "second," and the like, in the description and in the claims of the present invention are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first operation and the second operation, etc. are for distinguishing different operations, and are not for describing a particular order of operations.
In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the embodiments of the present invention, unless otherwise specified, "a plurality" means two or more, for example, a plurality of processing units means two or more processing units, and the like.
Some terms/nouns referred to in the embodiments of the present invention are explained below.
Interface: the method refers to an operation window of an application program, namely an interface capable of realizing interaction between a user and terminal equipment in the application program. It should be noted that, in the embodiment of the present invention, the target interface refers to an interactive interface displayed on a screen of the terminal device, and the target interface is completely visible to the user, that is, the user may perform any operation in the interactive interface without moving (for example, sliding up and down or left and right) the target interface.
Page: refers to a display window of a web page. It should be noted that, in the embodiment of the present invention, the target page refers to a web page, and the size of the target page may be greater than or equal to the size of the screen of the terminal device. When the size of the target page is larger than that of the terminal device screen, the terminal device screen may display a part of the message of the target page, that is, the terminal device screen cannot simultaneously display all the contents of the target page, at this time, the user may move (for example, slide up and down or left and right) the target page to cause the terminal device to scroll and display the target page, so that the user may perform any operation on the part of the target page displayed by the terminal device.
The embodiment of the invention provides a message display method and terminal equipment, wherein under the condition that a target page displays a target message, if the target message is determined to be a message which is already displayed by a user triggering the terminal equipment, and the number of repeated messages in the target message (the repeated messages are messages with similarity greater than or equal to a similarity threshold value in the target message or messages with the same identifier in the target message) is greater than or equal to a first preset threshold value, first prompt information can be displayed on a target interface (the target interface is one part of the target page); and responding to the received first operation of the user on the first prompt message, keeping displaying any one message (namely the first message) in the repeated messages on the target page, and canceling displaying other messages except the first message in the repeated messages. According to the scheme, when the target message displayed on the target page is a message which is triggered to be displayed by the terminal device by the user (namely, a message which is already viewed by the user) and the number of the repeated messages in the target message is greater than or equal to the first preset threshold value, the terminal device can keep displaying any one of the repeated messages (namely, the first message) on the target page under the trigger of the user and cancel displaying other messages except the first message in the repeated messages, so that the display of a large number of repeated messages on the target page is avoided, and the readability of the messages displayed by the terminal device is improved.
The terminal device in the embodiment of the present invention may be a terminal device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
The following describes a software environment applied to the message display method provided by the embodiment of the present invention, taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of an android operating system according to an embodiment of the present invention. In fig. 1, the architecture of the android operating system includes 4 layers, which are respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the message display method provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 1, so that the message display method may operate based on the android operating system shown in fig. 1. Namely, the processor or the terminal device can implement the message display method provided by the embodiment of the invention by running the software program in the android operating system.
The terminal device in the embodiment of the invention can be a mobile terminal device and can also be a non-mobile terminal device. For example, the mobile terminal device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile terminal device may be a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiment of the present invention is not particularly limited.
The execution main body of the message display method provided in the embodiment of the present invention may be the terminal device, or may also be a functional module and/or a functional entity capable of implementing the message display method in the terminal device, which may be determined specifically according to actual use requirements, and the embodiment of the present invention is not limited. The following takes a terminal device as an example to exemplarily explain a message display method provided by the embodiment of the present invention.
As shown in fig. 2, an embodiment of the present invention provides a message display method, which may include steps 100 to 105 described below.
Step 100, the terminal device displays the target message on the target page.
In the embodiment of the present invention, when a user operates a terminal device, for example, the user triggers an icon of an application (for example, a social application or a shopping application) displayed on a screen of the terminal device, the terminal device may run the application in the foreground in response to the operation of the user and display an interactive interface of the application. Then, the user may trigger the terminal device to display the target message on the target page, for example, the user may trigger the terminal device to open a chat page between the user and the other user by clicking an avatar of the other user displayed on the interactive interface, and display the target message on the chat page.
Optionally, in this embodiment of the present invention, the target page may be a page (e.g., a chat page) capable of implementing interaction between users in the application program, and a size of the target page may be greater than or equal to a size of a screen of the terminal device. When the size of the target page is larger than that of the terminal equipment screen, the terminal equipment screen can display a part of messages of the target page at one time, namely the terminal equipment screen cannot display all messages of the target page at the same time; when the size of the target page is equal to the size of the terminal device screen, the terminal device screen can display all messages of the target page at one time, that is, the terminal device screen can simultaneously display all messages of the target page.
Illustratively, as shown in fig. 3 (a), the target page may be a chat page, and the number of messages displayed on the chat page is 17. As shown in (b) of fig. 3, the number of messages displayed on the screen of the terminal device is 13. Because the number of the messages displayed on the chat page is larger than that of the messages displayed on the screen of the terminal equipment, the screen of the terminal equipment can display part of the messages of the chat page, and can not display all the messages of the chat page at the same time. In this case, if the user wants to view all the messages of the chat page, the user can trigger the terminal device screen to scroll and display other messages of the chat page by performing a slide up and down operation on the terminal device screen, as shown in (b) of fig. 3.
Optionally, in this embodiment of the present invention, the target message may be a message that has been viewed by the user (i.e., a message in a message record stored in the terminal device), or may be a message that has not been viewed by the user (i.e., a message that is displayed by the terminal device for the first time). The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
Optionally, in this embodiment of the present invention, the type of the target message may be a dialog message. Of course, it can be understood that, in the embodiment of the present invention, the type of the message may also be any other message type that meets the actual use requirement, and the embodiment of the present invention is not limited.
Optionally, in this embodiment of the present invention, the format of the message may include at least one format of a text format, a symbol format, a picture format, and a voice format. When the format of the message is a picture format, the picture format may be a dynamic picture. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
Optionally, in this embodiment of the present invention, the target message may include at least one of a first target message and a second target message. The first target message is a message which is sent to the first target terminal device by the terminal device. The second target message is a message that the terminal device has received and is sent by the second target terminal device to the third target terminal device.
Specifically, when a user uses a terminal device to communicate with a single user (for example, single-group communication), the first target terminal device and the second target terminal device are the same terminal device, and the terminal device used by the user and the third target terminal device are the same terminal device.
When a user uses a terminal device to communicate with multiple users (e.g., group communication), a first possible implementation manner is that a first target terminal device and a second target terminal device are the same terminal device, and a terminal device used by the user and a third target terminal device are the same terminal device; a second possible implementation manner is that the first target terminal device and the second target terminal device are the same terminal device, and the terminal device used by the user and the third target terminal device are different terminal devices; the third possible implementation manner is that the first target terminal device and the second target terminal device are different terminal devices, and the terminal device used by the user and the third target terminal device are different terminal devices; a fourth possible implementation manner is that the first target terminal device and the second target terminal device are different terminal devices, and the terminal device used by the user and the third target terminal device are the same terminal device. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
Step 101, the terminal device determines whether the target message is a message that the user has triggered the terminal device to display.
In the embodiment of the invention, under the condition that the target page displays the target message, the terminal device can determine whether the target message is the message which is already triggered by the user to be displayed by the terminal device. If the terminal device determines that the target message is a message that the user has triggered the terminal device to display, the terminal device may determine that the user is not viewing the chat log for the first time (e.g., the user is viewing the chat log for a second time) and continue to perform step 102 described below. If the terminal device determines that the target message is not a message that the user has triggered the terminal device to display, the terminal device may determine that the user views the target message for the first time, and at this time, the terminal device does not need to perform subsequent steps, and returns to continue to perform step 101.
It should be noted that, in the embodiment of the present invention, the message that the user has triggered the terminal device to display may not include a notification message automatically displayed on the screen of the terminal device. For example, when the terminal device receives a message, the terminal device may automatically display a notification message of the message in a notification bar of a screen of the terminal device, and in a case where the user does not trigger the terminal device to display the message, the user may be considered to have not viewed the message.
For the implementation manner of determining, by the terminal device, whether the target message is a message that the user has triggered the terminal device to display, step 101a, or step 101b, or step 101c in the following embodiments will be specifically described, which is not described herein again.
Step 102, the terminal device determines whether the number of repeated messages in the target message is greater than or equal to a first preset threshold.
The repeated message may be a message with similarity greater than or equal to a similarity threshold in the target message or a message with the same identifier in the target message.
In the embodiment of the present invention, the terminal device may determine whether the number of repeated messages in the target message is greater than or equal to a first preset threshold. If the terminal device determines that the number of repeated messages in the target message is greater than or equal to the first preset threshold, the terminal device may continue to perform step 103 described below. If the terminal device determines that the number of repeated messages in the target message is less than the first preset threshold, the terminal device may return to continue to perform step 101.
Optionally, in this embodiment of the present invention, the repeated message may be a message continuously displayed in the target message.
In the embodiments of the present invention, continuous may mean that there is no other action between any two actions. Illustratively, the repeated messages displayed consecutively in step 102 may be understood as repeated messages displayed twice or more consecutively. For example, if the terminal device displays a second message after displaying a first message, the terminal device may be considered to display two messages in succession, and if the first message and the second message are duplicate messages, the terminal device may be considered to display two duplicate messages in succession.
Optionally, in this embodiment of the present invention, the similarity threshold may be 95%. The first preset threshold may be 2, 3, 4 or 10, etc. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
Optionally, in this embodiment of the present invention, each message in the target messages may be respectively provided with one identifier. For example, some of the above target messages may be dynamic pictures, and each of the dynamic pictures in the some messages may be respectively provided with an identifier. It can be understood that, in a general case, a dynamic picture is composed of a plurality of frames of pictures, and compared with whether the similarity of each frame of picture in different dynamic pictures is greater than a similarity threshold, by comparing the identifiers of different dynamic pictures, it can be determined more quickly and more simply whether some messages are repeated messages.
Optionally, in this embodiment of the present invention, the terminal device may determine whether at least two consecutively displayed messages in the target message are repeated messages through any one of the following two possible implementation manners.
A first possible implementation manner is that, after the terminal device continuously displays two messages (for example, hereinafter referred to as a message M1 and a message M2) on the target page, the terminal device may determine whether the similarity between the message M2 and the message M1 is greater than or equal to a similarity threshold, if the similarity is greater than or equal to the similarity threshold, the terminal device may determine that the message M2 is a repeated message of the message M1 (if the similarity is less than the similarity threshold, the terminal device may determine that the message M2 is not a repeated message of the message M1), and then a counter of the terminal device starts to count. When the terminal device displays a message on the target page and then continuously displays another message, the terminal device can repeat the judging process, and when the terminal device displays another message continuously displayed after the message on the target page as the repeated message of the message, the terminal device can control the counting value of the counter to be accumulated by 1; until the count value of the counter (i.e. the number of repeated messages continuously displayed on the target page) is greater than or equal to the first preset threshold, the terminal device may determine that the number of repeated messages continuously displayed in the target message is greater than or equal to the first preset threshold.
It should be noted that, for a specific implementation manner in which the terminal device determines whether the messages continuously displayed on the target page are repeated messages, reference may be made to related descriptions of a comparison algorithm in the prior art, and details of the embodiment of the present invention are not repeated.
A second possible implementation is that, after the terminal device continuously displays two messages (for example, hereinafter referred to as a message M1 and a message M2) on the destination page, if the identifiers are set in the message M2 and the message M1, respectively, the terminal device may determine whether the identifier of the message M2 is the same as the identifier of the message M1. If the identity of the message M2 is the same as the identity of the message M1, the terminal device may determine that the message M2 is a duplicate of the message M1 (if the identity of the message M2 is different from the identity of the message M1, the terminal device may determine that the message M2 is not a duplicate of the message M1), at which point the terminal device's counter starts counting. When the terminal device displays a message on the target page and then continuously displays another message, the terminal device can repeat the judging process, and when the terminal device displays another message continuously displayed after the message on the target page as the repeated message of the message, the terminal device can control the counting value of the counter to be accumulated by 1; until the count value of the counter (i.e. the number of repeated messages continuously displayed on the target page) is greater than or equal to the first preset threshold, the terminal device may determine that the number of repeated messages continuously displayed in the target message is greater than or equal to the first preset threshold.
It should be noted that, in the embodiment of the present invention, the terminal device first determines whether the target message is a message that the user has triggered the terminal device to display, and when the terminal device determines that the target message is a message that the user has triggered the terminal device to display, the terminal device then determines whether the number of repeated messages continuously displayed in the target message is greater than or equal to a first preset threshold. Of course, it may be understood that, in an actual application, the terminal device may also determine whether the number of the repeated messages continuously displayed in the target message is greater than or equal to a first preset threshold, and in a case that the terminal device determines that the number of the repeated messages continuously displayed in the target message is greater than or equal to the first preset threshold, the terminal device then determines whether the target message (or the continuously displayed repeated messages) is a message that the user has triggered the terminal device to display; or, the terminal device may also determine whether the target message is a message that the user has triggered the terminal device to display, and whether the number of repeated messages continuously displayed in the target message is greater than or equal to a first preset threshold. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
And 103, the terminal equipment displays the first prompt information on the target interface.
The target interface can be a part of a target page.
Optionally, in this embodiment of the present invention, the target interface may be an interactive interface displayed on a screen of the terminal device, and the target interface may be completely visible to the user, that is, the user may perform any operation in the interactive interface without moving (for example, sliding up and down or left and right) the target interface.
Illustratively, as shown in fig. 3 (b), the target interface may be an interactive interface displayed on a screen of the terminal device, and the number of messages displayed on the target interface by the terminal device is 13. Specifically, the number of messages (17) displayed on the destination page as shown in (a) in fig. 3 is greater than the number of displayed messages (13) displayed on the destination interface as shown in (b) in fig. 3, that is, the destination interface may be a part of the destination page.
Optionally, in this embodiment of the present invention, the first prompt information may be in any one of the following two manners.
In the first mode, the first prompt message may be a prompt control.
Exemplarily, fig. 4 is a schematic view of an interface for displaying prompt information according to an embodiment of the present invention. Assuming that the first prompt information is a prompt control, in a case that the target page displays the target message, if the terminal device determines that the target message is a message that the user has triggered the terminal device to display, and the number of repeated messages in the target message is greater than or equal to a first preset threshold, the terminal device may display the prompt control (i.e., "hide" control) on the target interface as shown in (a) of fig. 4, or may display the prompt control (i.e., "merge" control) on the target interface as shown in (b) of fig. 4.
In a second mode, the first prompt message may include prompt content and X prompt options, where each prompt option in the X prompt options corresponds to a processing action (X is a positive integer).
Exemplarily, fig. 5 is a schematic view of another interface for displaying prompt information according to an embodiment of the present invention. Assuming that the first prompt information includes prompt content and 2 prompt options, in the case that the target page displays the target message, if the terminal device determines that the target message is a message that the user has triggered the terminal device to display (i.e., a message that the user has viewed), and the number of repeated messages in the target message is greater than or equal to a first preset threshold, then as shown in (a) in fig. 5, the terminal device may display the prompt content and 2 prompt options on the target interface, where the prompt content may be "there is a repeated message in the viewed message, and whether to display in a combined manner? ", prompt options may be" yes "and" no ".
And 104, the terminal equipment receives a first operation of the user on the first prompt message.
In the embodiment of the invention, when the terminal equipment displays the first prompt message on the target interface, the user can perform the first operation on the first prompt message. For example, the user may click on a "hidden" control as shown in (a) of fig. 4, or the user may click on a "merge" control as shown in (b) of fig. 4. For another example, the user may click on the prompt option "yes" shown in (a) in fig. 5, or may click on the prompt option "no" shown in (a) in fig. 5.
And 105, responding to the first operation, the terminal equipment keeps displaying the first message on the target page and cancels to display other messages except the first message in the repeated messages.
The first message may be any one of repeated messages.
For example, still taking fig. 4 as an example for illustration, the terminal device may receive an operation (i.e., a first operation) by the user, and if the terminal device receives the first operation by the user as a click operation on a "hidden" control as shown in (a) in fig. 4, the terminal device may, in response to the first operation, keep displaying any one of the repeated messages (i.e., the first message) on the target page and cancel displaying the messages other than the first message in the repeated messages, as shown in (c) in fig. 4.
For another example, still taking fig. 5 as an example for illustration, the terminal device may receive an operation (i.e., a first operation) of the user, and if the terminal device receives the first operation of the user as a trigger operation for "yes" of the prompt option shown in (a) in fig. 5, the terminal device may, in response to the first operation, keep displaying any one of the repeated messages (i.e., a first message) on the target page, and cancel displaying the messages other than the first message in the repeated messages, as shown in (b) in fig. 5. And if the terminal device receives a first operation of the user as a trigger operation to prompt the option "no" as shown in (a) of fig. 5, the terminal device may cancel displaying the first prompt information and keep displaying the target message on the target page, for example, all messages as shown in (a) of fig. 5.
Optionally, in this embodiment of the present invention, after canceling to display other messages except for the first message in the repeated message, the terminal device may further display third prompt information on the target interface, where the third prompt information may be used to indicate the number of the repeated messages. For example, as shown in (c) in fig. 4 and (b) in fig. 5, the third prompt information displayed on the target interface by the terminal device is "x 4", and the third prompt information may be used to indicate that the number of repeated messages is 4.
The embodiment of the invention provides a message display method, because when a target message displayed on a target page is a message (i.e. a message which has been already displayed by a user) which is triggered by the user and displayed by a terminal device, and the number of repeated messages in the target message is greater than or equal to a first preset threshold, the terminal device can keep displaying any one of the repeated messages (i.e. a first message) on the target page under the trigger of the user, and cancel displaying other messages except the first message in the repeated messages, thereby avoiding displaying a large number of repeated messages on the target page, and further improving the readability of the messages displayed by the terminal device.
Optionally, in an embodiment of the present invention, the step 101 may be specifically implemented by a step 101a, a step 101b, or a step 101c described below. That is, after step 100 described above, the terminal device may perform any one of step 101a, step 101b, and step 101 c.
Step 101a, the terminal device obtains a target time, and determines whether the target time is earlier than a system time of the terminal device.
The target time is the time when the terminal device sends the last message displayed on the target page or the time when the terminal device receives the last message displayed on the target page.
In the embodiment of the invention, the terminal equipment can acquire the target time and judge whether the target time is earlier than the system time of the terminal equipment. In the case that the target time is earlier than the system time of the terminal device, the terminal device may determine that the target message is a message that the user has triggered the terminal device to display (i.e., a message that the user has already viewed), and may continue to perform step 102 described above. In the case that the target time is equal to the system time of the terminal device, the terminal device may determine that the target message is not a message that the user has triggered the terminal device to display (e.g., a message that the user first viewed), and may return to continue to perform step 101a described above.
And step 101b, the terminal device acquires the number of the target messages and judges whether the number of the target messages is larger than or equal to a second preset threshold value.
In the embodiment of the present invention, the terminal device may obtain the number of the target messages, and determine whether the number of the target messages is greater than or equal to a second preset threshold. In the case that the number of the target messages is greater than or equal to the second preset threshold, the terminal device may determine that the target messages are messages that the user has triggered the terminal device to display (i.e., messages that the user has viewed), and may continue to perform step 102 described above. And in the case that the number of the target messages is smaller than the second preset threshold, the terminal device may determine that the target messages are not messages that the user has triggered the terminal device to display (for example, messages that the user first viewed), and may return to continue to perform step 101b described above.
Optionally, in this embodiment of the present invention, the second preset threshold may be a maximum value of the number of messages displayed on the target interface by the terminal device, that is, the maximum value of the number of messages that can be displayed on the screen of the terminal device at a time. For example, as shown in (b) of fig. 3, the second preset threshold may be 13 pieces.
And step 101c, the terminal equipment receives the operation of the user and judges whether the operation is a second operation.
The second operation can be used for triggering the terminal device to scroll and display the target message on the target interface.
For example, the second operation may be a sliding operation of the user on the screen of the terminal device. For example, the user may slide on the screen of the terminal device in a direction from the top of the terminal device to the bottom of the terminal device, and after the terminal device detects the sliding operation of the user, the terminal device may display a target message on the target interface (e.g., display a chat log on the screen of the terminal device) in response to the sliding operation.
In the embodiment of the invention, the terminal equipment can receive the operation of the user and judge whether the operation is the second operation. In the case that the operation is the second operation, the terminal device may determine that the target message is a message that the user has triggered the terminal device to display (i.e., in the case that the second operation of the user is received, the terminal device may determine that the target message is a message that the user has viewed), and may continue to perform step 102 described above. In the case that the operation is not the second operation, the terminal device may determine that the target message is not a message that the user has triggered the terminal device to display, and may return to continue to perform step 101c described above.
The message display method provided by the embodiment of the invention can determine that the target message is a message (namely a message which is already viewed by a user) which is already triggered by the user and the terminal device can keep displaying any one message (namely a first message) in the repeated messages on the target page under the trigger of the user and cancel displaying other messages except the first message in the repeated messages when the number of the repeated messages in the target message is greater than or equal to a first preset threshold, so that the display of a large number of repeated messages on the target page is avoided and the readability of the messages displayed by the terminal device is improved.
Optionally, with reference to fig. 2, as shown in fig. 6, in the embodiment of the present invention, after the step 105, the message display method provided in the embodiment of the present invention may further include the following step 106a and step 106 b.
And 106a, the terminal equipment displays second prompt information on the target interface.
The second prompt message may be used to prompt the user to trigger the terminal device to display a repeat message on the target page.
And 106b, the terminal equipment responds to the received third operation of the user on the second prompt message, and displays a repeated message on the target page.
For the description of the target interface and the target page, reference may be made to the related description of the target interface and the target page in step 100 and step 103, which is not described herein again.
Optionally, in this embodiment of the present invention, the second prompt information may be a prompt control, or may also be prompt content and Y prompt options, where each prompt option in the Y prompt options corresponds to one processing action (Y is a positive integer).
Exemplarily, fig. 7 is a schematic view of another interface for displaying prompt information according to an embodiment of the present invention. Assuming that the second prompt information is a prompt control, the terminal device may display the prompt control on the target interface, for example, the prompt control is an "expansion" control as shown in (a) of fig. 7. If the user wants to trigger the terminal device to display a repeat message on the target page, the user may perform a third operation on the "expand" control, e.g., the user may click on the "expand" control. Thus, after receiving a third operation of the "expand" control by the user, the terminal device may display a repeat message on the target page in response to the third operation, as shown in (b) of fig. 7.
According to the message display method provided by the embodiment of the invention, the terminal equipment can display the second prompt message on the target interface, so that the user can trigger the terminal equipment to keep displaying the repeated message on the target page by executing the trigger operation on the second prompt message, and the readability of the message displayed by the terminal equipment is improved.
Optionally, with reference to fig. 2, as shown in fig. 8, in the embodiment of the present invention, after step 103, the message display method provided in the embodiment of the present invention may further include step 107 described below. In this case, step 104 may be specifically realized by step 104a described below.
And 107, if the terminal equipment does not receive the first operation of the user within the preset time, the terminal equipment cancels the display of the first prompt message after the preset time.
And 104a, the terminal equipment receives a first operation of the user within a preset time.
For example, in the embodiment of the present invention, the preset time may be 5 seconds, 8 seconds, 10 seconds, or the like.
It should be noted that, in the embodiment of the present invention, the preset time is an exemplary list, and the value of the preset time is not limited to any value, and in actual implementation, the preset time may be determined according to actual needs, and the embodiment of the present invention is not limited.
It is understood that after the step 103, the terminal device may alternatively perform the step 107 and the step 104 a. I.e. after step 103 described above, the terminal device may perform step 107 or perform step 104 a.
According to the message display method provided by the embodiment of the invention, under the condition that the terminal device displays the first prompt message, whether the user performs the first operation within the preset time is detected, so that the influence on the display effect of the target interface caused by displaying the first prompt message for a long time can be avoided, the interference on the use of the target interface by the user can be avoided, and the user can conveniently and normally use the application program corresponding to the target interface.
Optionally, in this embodiment of the present invention, when the target message is a text message, a symbolic message, a voice message, or a static picture, the message display method provided in this embodiment of the present invention may directly perform the method for determining repeated messages in step 102, that is, determine whether multiple messages in the target message have the same identifier, or determine whether the similarity of multiple messages in the target message is greater than or equal to the similarity threshold. When the target message is a dynamic picture, the message display method provided by the embodiment of the present invention may determine whether the target message is a repeated message by performing the following determination method.
Specifically, the target message may include the second message and the third message. The second message and the third message may be both moving pictures, the second message may include N frames of first images, and the third message may include M frames of second images. M and N may both be positive integers (the second message and the third message may be two messages in the target message).
In this case, the step of determining that the second message and the third message are the repeated messages may include the following steps 102a and 102 b:
step 102a, the terminal device determines whether N and M are the same.
In the embodiment of the invention, the terminal equipment can determine whether N is the same as M. If the terminal device determines that N and M are the same, the terminal device may continue to perform step 102b described below. If the terminal device determines that N and M are different, the terminal device may determine that the second message and the third message are not duplicate messages.
Step 102B, if the terminal device determines that N and M are the same, the terminal device determines that each frame of image in the M frames of second images and each frame of image corresponding to the N frames of first images are repetitive frame images by executing the following steps a and B for the M frames of second images and the N frames of first images, so as to determine that the second message and the third message are repetitive messages.
A. The terminal device determines whether the similarity between the Kth frame second image in the M frames of second images and the Kth frame first image in the N frames of first images is greater than or equal to a similarity threshold.
B. And if the similarity between the second image of the Kth frame and the first image of the Kth frame is greater than or equal to a similarity threshold, the terminal equipment determines that the second image of the Kth frame and the first image of the Kth frame are repeated frame images.
In the message display method provided in the embodiment of the present invention, if two messages in the target message are dynamic pictures, the terminal device may first determine whether the frame numbers of the two dynamic pictures are the same, and then determine whether the corresponding frames of the two dynamic pictures are both repeat frame images under the condition that the frame numbers are the same, so as to determine whether the two dynamic pictures are repeat messages.
As shown in fig. 9, an embodiment of the present invention provides a terminal device 900. The terminal device 900 may include a determining module 901, a displaying module 902, and a receiving module 903. The display module 902 is configured to, when a target message is displayed on a target page, if the determining module 901 determines that the target message is a message that a user has triggered a terminal device to display, and the number of repeated messages in the target message is greater than or equal to the first preset threshold, display a first prompt message on a target interface; and in response to a first operation of the user on the first prompt message received by the receiving module 903, maintaining to display a first message on the target page, and canceling to display other messages except the first message in a repeated message, where the first message is any one of the repeated messages, the repeated message is a message with a similarity greater than or equal to a similarity threshold in the target message or a message with the same identifier in the target message, and the target interface is a part of the target page.
Optionally, in this embodiment of the present invention, the determining module 901 may be specifically configured to obtain a target time, and determine that the target message is a message that a user has triggered the terminal device to display when the target time is earlier than the system time of the terminal device, where the target time is a time when the terminal device sends a last message displayed on a target page or a time when the terminal device receives the last message displayed on the target page; or acquiring the number of target messages, and determining that the target messages are messages which are already triggered by the user to be displayed by the terminal equipment under the condition that the number of the target messages is greater than or equal to a second preset threshold value; or, in a case that the receiving module 903 receives a second operation of the user, the target message is determined to be a message that the user has triggered the terminal device to display, where the second operation is used to trigger the terminal device to scroll and display the target message on the target interface.
Optionally, in this embodiment of the present invention, the display module 902 is further configured to keep displaying the first message on the target page, and after canceling to display other messages except the first message in the repeated message, display second prompt information on the target interface, where the second prompt information is used to prompt a user to trigger the terminal device to display the repeated message on the target page; and in response to a third operation of the second prompt message by the user, which is received by the receiving module 903, a repeat message is displayed on the target page.
Optionally, in this embodiment of the present invention, the display module 902 may be further configured to, after the first prompt information is displayed on the target interface, cancel displaying the first prompt information after a preset time if the receiving module 903 does not receive the first operation of the user within the preset time.
Optionally, in this embodiment of the present invention, the target message may include a second message and a third message. The second message and the third message may both be moving pictures, the second message includes N frames of the first image, the third message includes M frames of the second image, and N and M are positive integers. A determining module 901, configured to determine whether N and M are the same; and if N and M are the same, determining that each frame of image in the M frames of second images and each frame of image corresponding to the N frames of first images are repeated frame images by executing the following steps to determine that the second message and the third message are repeated messages: determining whether the similarity between a Kth frame second image in the M frames of second images and a Kth frame first image in the N frames of first images is greater than or equal to a similarity threshold; and if the similarity between the second image of the Kth frame and the first image of the Kth frame is greater than or equal to a similarity threshold, determining that the second image of the Kth frame and the first image of the Kth frame are repeated frame images.
Optionally, in this embodiment of the present invention, the target message may include at least one of the first target message and the second target message. The first target message is a message which is sent to the first target terminal device by the terminal device. The second target message is a message that the terminal device has received and is sent by the second target terminal device to the third target terminal device.
The terminal device provided by the embodiment of the present invention can implement each process implemented by the terminal device in the above method embodiments, and is not described here again to avoid repetition.
The embodiment of the invention provides a terminal device, and when a target message displayed on a target page is a message (that is, a message which has been already displayed by a user) which has been triggered by the user and displayed by the terminal device by the user, and the number of repeated messages in the target message is greater than or equal to a first preset threshold, the terminal device can keep displaying any one of the repeated messages (that is, a first message) on the target page under the trigger of the user, and cancel displaying other messages except the first message in the repeated messages, so that the display of a large number of repeated messages on the target page is avoided, and the readability of the messages displayed by the terminal device is improved.
Fig. 10 is a schematic diagram of a hardware structure of a terminal device for implementing various embodiments of the present invention. As shown in fig. 10, the terminal device 200 includes, but is not limited to: radio frequency unit 201, network module 202, audio output unit 203, input unit 204, sensor 205, display unit 206, user input unit 207, interface unit 208, memory 209, processor 210, and power supply 211. Those skilled in the art will appreciate that the terminal device configuration shown in fig. 10 is not intended to be limiting, and that terminal devices may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal device, a wearable device, a pedometer, and the like.
The display unit 206 is configured to, when the target page displays the target message, if the processor 210 determines that the target message is a message that the user has triggered the terminal device to display, and the number of repeated messages in the target message is greater than or equal to a first preset threshold, display first prompt information on the target interface; and is configured to, in response to a first operation of the user on the first prompt message received by the interface unit 208, keep displaying a first message on the target page, and cancel displaying other messages except the first message in the repeated message, where the first message is any one of the repeated messages, the repeated message is a message with a similarity greater than or equal to a similarity threshold in the target message or a message with the same identifier in the target message, and the target interface is a part of the target page.
The embodiment of the invention provides a terminal device, and when a target message displayed on a target page is a message (that is, a message which has been already displayed by a user) which has been triggered by the user and displayed by the terminal device by the user, and the number of repeated messages in the target message is greater than or equal to a first preset threshold, the terminal device can keep displaying any one of the repeated messages (that is, a first message) on the target page under the trigger of the user, and cancel displaying other messages except the first message in the repeated messages, so that the display of a large number of repeated messages on the target page is avoided, and the readability of the messages displayed by the terminal device is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 201 may be used for receiving and sending signals during a message transmission and reception process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 210; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 201 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 201 can also communicate with a network and other devices through a wireless communication system.
The terminal device provides the user with wireless broadband internet access through the network module 202, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 203 may convert audio data received by the radio frequency unit 201 or the network module 202 or stored in the memory 209 into an audio signal and output as sound. Also, the audio output unit 203 may also provide audio output related to a specific function performed by the terminal apparatus 200 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 203 includes a speaker, a buzzer, a receiver, and the like.
The input unit 204 is used to receive an audio or video signal. The input Unit 204 may include a Graphics Processing Unit (GPU) 2041 and a microphone 2042, and the Graphics processor 2041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 206. The image frames processed by the graphic processor 2041 may be stored in the memory 209 (or other storage medium) or transmitted via the radio frequency unit 201 or the network module 202. The microphone 2042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 201 in case of a phone call mode.
The terminal device 200 further comprises at least one sensor 205, such as light sensors, motion sensors and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 2061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 2061 and/or the backlight when the terminal apparatus 200 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 205 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 206 is used to display information input by the user or information provided to the user. The Display unit 206 may include a Display panel 2061, and the Display panel 2061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 207 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device. Specifically, the user input unit 207 includes a touch panel 2071 and other input devices 2072. Touch panel 2071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 2071 (e.g., user operation on or near the touch panel 2071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 2071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 210, and receives and executes commands sent by the processor 210. In addition, the touch panel 2071 may be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 207 may include other input devices 2072 in addition to the touch panel 2071. In particular, the other input devices 2072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not further described herein.
Further, a touch panel 2071 may be overlaid on the display panel 2061, and when the touch panel 2071 detects a touch operation on or near the touch panel 2071, the touch panel is transmitted to the processor 210 to determine the type of the touch event, and then the processor 210 provides a corresponding visual output on the display panel 2061 according to the type of the touch event. Although the touch panel 2071 and the display panel 2061 are shown as two separate components in fig. 10 to implement the input and output functions of the terminal device, in some embodiments, the touch panel 2071 and the display panel 2061 may be integrated to implement the input and output functions of the terminal device, and are not limited herein.
The interface unit 208 is an interface for connecting an external device to the terminal apparatus 200. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 208 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal apparatus 200 or may be used to transmit data between the terminal apparatus 200 and the external device.
The memory 209 may be used to store software programs as well as various data. The memory 209 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 209 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 210 is a control center of the terminal device, connects various parts of the entire terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by running or executing software programs and/or modules stored in the memory 209 and calling data stored in the memory 209, thereby performing overall monitoring of the terminal device. Processor 210 may include one or more processing units; optionally, the processor 210 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user interfaces, application programs, and the like, and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 210.
Terminal device 200 may also include a power source 211 (e.g., a battery) for providing power to various components, and optionally, power source 211 may be logically connected to processor 210 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system.
In addition, the terminal device 200 includes some functional modules that are not shown, and are not described in detail here.
Optionally, an embodiment of the present invention further provides a terminal device, which includes the processor 210 shown in fig. 10, the memory 209, and a computer program stored in the memory 209 and capable of running on the processor 210, where the computer program, when executed by the processor 210, implements the processes of the foregoing method embodiment, and can achieve the same technical effect, and details are not described here to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the processes of the method embodiments, and can achieve the same technical effects, and in order to avoid repetition, the details are not repeated here. Examples of the computer-readable storage medium include a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, and an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A method for displaying messages, the method comprising:
under the condition that a target message is displayed on a target page, if the target message is determined to be a message which is displayed by a terminal device triggered by a user before the target message is displayed on the target page, and the number of repeated messages in the target message is greater than or equal to a first preset threshold value, displaying first prompt information on a target interface, wherein the target page is a chat interface, the target message is a chat message, the repeated messages are messages which are continuously displayed in the target message and have the similarity greater than or equal to a similarity threshold value or messages which are continuously displayed in the target message and have the same identifier, the target interface is a part of the target page, the target message comprises a first target message and a second target message, and the first target message is a message which is sent to a first target terminal device by the terminal device, the second target message is a message which is received by the terminal equipment and is sent by the second target terminal equipment to the third target terminal equipment;
responding to a received first operation of the user on the first prompt message, keeping displaying a first message on the target page, and canceling displaying other messages except the first message in the repeated messages, wherein the first message is any one of the repeated messages;
the target message comprises a second message and a third message, the second message and the third message are both dynamic pictures, the second message comprises N frames of first images, the third message comprises M frames of second images, and both N and M are positive integers;
the step of determining that the second message and the third message are duplicate messages comprises:
determining whether N and M are the same; if N and M are the same, determining that each frame of image in the M frames of second images and each frame of image corresponding to the N frames of first images are repeated frame images by executing the following steps to determine that the second message and the third message are repeated messages: determining whether a similarity between a Kth frame second image of the M frames of second images and a Kth frame first image of the N frames of first images is greater than or equal to a similarity threshold; and if the similarity between the second image of the Kth frame and the first image of the Kth frame is greater than or equal to a similarity threshold, determining that the second image of the Kth frame and the first image of the Kth frame are repeated frame images.
2. The method of claim 1, wherein the determining that the target message is a message that a user has triggered a terminal device to display comprises:
acquiring target time, and determining that the target message is a message which is already triggered by a user to be displayed by a terminal device under the condition that the target time is earlier than the system time of the terminal device, wherein the target time is the time when the terminal device sends the last message displayed on the target page or the time when the terminal device receives the last message displayed on the target page; alternatively, the first and second electrodes may be,
acquiring the number of the target messages, and determining that the target messages are messages which are already triggered by a user to be displayed by terminal equipment under the condition that the number of the target messages is greater than or equal to a second preset threshold value; alternatively, the first and second electrodes may be,
and under the condition that a second operation of the user is received, determining that the target message is a message which is already triggered by the user to be displayed by the terminal equipment, wherein the second operation is used for triggering the terminal equipment to scroll and display the target message on the target interface.
3. The method of claim 1, wherein after the first message remains displayed on the target page and the messages of the repeated messages other than the first message are not displayed, the method further comprises:
displaying second prompt information on the target interface, wherein the second prompt information is used for prompting a user to trigger the terminal equipment to display the repeated message on the target page;
and responding to the received third operation of the user on the second prompt message, and displaying the repeated message on the target page.
4. The method of any of claims 1-3, wherein after displaying the first prompt on the target interface, the method further comprises:
and if the first operation of the user is not received within the preset time, canceling the display of the first prompt message after the preset time.
5. The terminal equipment is characterized by comprising a determining module, a receiving module and a display module;
the display module is configured to, in a case that a target message is displayed on a target page, if the determination module determines that the target message is a message that a user has triggered a terminal device to display before the target message is displayed on the target page, and the number of repeated messages in the target message is greater than or equal to a first preset threshold, display first prompt information on a target interface, where the target page is a chat interface, the target message is a chat message, the repeated messages are messages that are continuously displayed in the target message and have a similarity greater than or equal to a similarity threshold or messages that are continuously displayed in the target message and have the same identifier, the target interface is a part of the target page, the target message includes a first target message and a second target message, and the first target message is a message that the terminal device has sent to a first target terminal device, the second target message is a message which is received by the terminal equipment and is sent by the second target terminal equipment to the third target terminal equipment; responding to a first operation of the user on the first prompt message received by the receiving module, keeping displaying a first message on the target page, and canceling displaying other messages except the first message in the repeated messages, wherein the first message is any one of the repeated messages;
the target message comprises a second message and a third message, the second message and the third message are both dynamic pictures, the second message comprises N frames of first images, the third message comprises M frames of second images, and N and M are positive integers;
the determining module is further configured to determine whether N and M are the same; and if N and M are the same, determining that each frame of image in the M frame of second image and each frame of image in the N frame of first image are repetitive frame images by performing the following steps to determine that the second message and the third message are repetitive messages:
determining whether a similarity between a Kth frame second image of the M frames of second images and a Kth frame first image of the N frames of first images is greater than or equal to a similarity threshold; and if the similarity between the second image of the Kth frame and the first image of the Kth frame is greater than or equal to a similarity threshold, determining that the second image of the Kth frame and the first image of the Kth frame are repeated frame images.
6. The terminal device of claim 5,
the determining module is specifically configured to obtain a target time, and determine that the target message is a message that a user has triggered a terminal device to display when the target time is earlier than a system time of the terminal device, where the target time is a time when the terminal device sends a last message displayed on the target page or a time when the terminal device receives the last message displayed on the target page; or acquiring the number of the target messages, and determining that the target messages are messages which are already triggered by a user to be displayed by terminal equipment under the condition that the number of the target messages is greater than or equal to a second preset threshold value; or, in a case that the receiving module receives a second operation of the user, determining that the target message is a message that the user has triggered the terminal device to display, where the second operation is used to trigger the terminal device to scroll and display the target message on the target interface.
7. The terminal device of claim 5,
the display module is further configured to keep displaying the first message on the target page, and display second prompt information on the target interface after canceling to display other messages except the first message in the repeated message, where the second prompt information is used to prompt a user to trigger the terminal device to display the repeated message on the target page; and responding to a third operation of the user on the second prompt message received by the receiving module, and displaying the repeated message on the target page.
8. The terminal device according to any of claims 5 to 7,
the display module is further configured to cancel displaying the first prompt message after a preset time if the receiving module does not receive the first operation of the user within the preset time after the first prompt message is displayed on the target interface.
9. Terminal device, characterized in that it comprises a processor, a memory and a computer program stored on said memory and executable on said processor, said computer program, when executed by said processor, implementing the steps of the message display method according to any one of claims 1 to 4.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the message display method according to any one of claims 1 to 4.
CN201810542696.9A 2018-05-30 2018-05-30 Message display method and terminal equipment Active CN108881624B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810542696.9A CN108881624B (en) 2018-05-30 2018-05-30 Message display method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810542696.9A CN108881624B (en) 2018-05-30 2018-05-30 Message display method and terminal equipment

Publications (2)

Publication Number Publication Date
CN108881624A CN108881624A (en) 2018-11-23
CN108881624B true CN108881624B (en) 2021-08-31

Family

ID=64335858

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810542696.9A Active CN108881624B (en) 2018-05-30 2018-05-30 Message display method and terminal equipment

Country Status (1)

Country Link
CN (1) CN108881624B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109815462B (en) * 2018-12-10 2023-12-01 维沃移动通信有限公司 Text generation method and terminal equipment
CN110109803B (en) * 2019-05-09 2022-05-06 腾讯科技(深圳)有限公司 User behavior reporting method and system
CN110196747B (en) * 2019-05-31 2022-09-30 北京小米智能科技有限公司 Information processing method and device
CN111614544B (en) * 2020-04-20 2022-03-25 维沃移动通信有限公司 Message processing method and electronic equipment
CN111614547B (en) 2020-05-14 2023-06-09 腾讯科技(深圳)有限公司 Message display method, device, terminal and medium
CN111813294B (en) * 2020-05-29 2022-03-11 维沃移动通信有限公司 Content processing method and electronic equipment
CN111865758A (en) * 2020-06-19 2020-10-30 维沃移动通信(杭州)有限公司 Message display method and device and electronic equipment
CN114244792B (en) * 2020-09-09 2023-07-25 中国联合网络通信集团有限公司 Message sending method and device and message display method and device
CN112217713B (en) * 2020-10-13 2022-05-17 维沃移动通信有限公司 Method and device for displaying message

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105530372A (en) * 2015-12-03 2016-04-27 小米科技有限责任公司 Message display method and apparatus and terminal device
CN107911283A (en) * 2017-11-20 2018-04-13 珠海市魅族科技有限公司 Message display method and device, computer installation and computer-readable recording medium

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2428152A (en) * 2005-07-08 2007-01-17 Sharp Kk Processing image data for direction dependent viewing on a display device
CN103377221B (en) * 2012-04-24 2016-06-01 富士通株式会社 Message integration device, message integration method and electronic equipment
CN105426189A (en) * 2015-11-13 2016-03-23 科大讯飞股份有限公司 Notification bar combining method and system
RU2635906C2 (en) * 2015-11-16 2017-11-16 Общество С Ограниченной Ответственностью "Яндекс" Method (versions) and client device for processing and displaying electronic letters
CN106372204A (en) * 2016-08-31 2017-02-01 北京小米移动软件有限公司 Push message processing method and device
KR20180057366A (en) * 2016-11-22 2018-05-30 엘지전자 주식회사 Mobile terminal and method for controlling the same
CN107577512B (en) * 2017-08-25 2021-01-08 维沃移动通信有限公司 Message display method, mobile terminal and computer readable storage medium
CN107562475B (en) * 2017-08-29 2019-02-05 Oppo广东移动通信有限公司 Message display method, device and terminal
CN108093123A (en) * 2017-10-30 2018-05-29 努比亚技术有限公司 A kind of message informing processing method, terminal and computer readable storage medium
CN107889070B (en) * 2017-11-08 2020-12-22 Oppo广东移动通信有限公司 Picture processing method, device, terminal and computer readable storage medium
CN107846352B (en) * 2017-11-10 2021-01-08 维沃移动通信有限公司 Information display method and mobile terminal
CN108037869B (en) * 2017-12-07 2022-04-26 北京小米移动软件有限公司 Message display method and device and terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105530372A (en) * 2015-12-03 2016-04-27 小米科技有限责任公司 Message display method and apparatus and terminal device
CN107911283A (en) * 2017-11-20 2018-04-13 珠海市魅族科技有限公司 Message display method and device, computer installation and computer-readable recording medium

Also Published As

Publication number Publication date
CN108881624A (en) 2018-11-23

Similar Documents

Publication Publication Date Title
CN108881624B (en) Message display method and terminal equipment
CN111107222B (en) Interface sharing method and electronic equipment
CN111010332A (en) Group chat method and electronic equipment
CN110855830A (en) Information processing method and electronic equipment
CN110062105B (en) Interface display method and terminal equipment
CN109857494B (en) Message prompting method and terminal equipment
CN109543099B (en) Content recommendation method and terminal equipment
CN109857290B (en) Unread content display method and terminal equipment
CN110913066A (en) Display method and electronic equipment
CN109240783B (en) Interface display method and terminal equipment
CN110764666B (en) Display control method and electronic equipment
CN109710349B (en) Screen capturing method and mobile terminal
CN110752981B (en) Information control method and electronic equipment
CN111030917B (en) Message display method and electronic equipment
CN109901761B (en) Content display method and mobile terminal
CN110049187B (en) Display method and terminal equipment
CN110865745A (en) Screen capturing method and terminal equipment
CN108874906B (en) Information recommendation method and terminal
CN109358931B (en) Interface display method and terminal
CN110930410A (en) Image processing method, server and terminal equipment
CN110769118A (en) Message prompting method and terminal equipment
CN111190517B (en) Split screen display method and electronic equipment
CN109992192B (en) Interface display method and terminal equipment
CN110012151B (en) Information display method and terminal equipment
CN109189514B (en) Terminal device control method and terminal device

Legal Events

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