CN115134317A - Message display method, message display device, storage medium and electronic device - Google Patents

Message display method, message display device, storage medium and electronic device Download PDF

Info

Publication number
CN115134317A
CN115134317A CN202210648488.3A CN202210648488A CN115134317A CN 115134317 A CN115134317 A CN 115134317A CN 202210648488 A CN202210648488 A CN 202210648488A CN 115134317 A CN115134317 A CN 115134317A
Authority
CN
China
Prior art keywords
message
instant messaging
picture
messaging interface
displaying
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.)
Granted
Application number
CN202210648488.3A
Other languages
Chinese (zh)
Other versions
CN115134317B (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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202210648488.3A priority Critical patent/CN115134317B/en
Publication of CN115134317A publication Critical patent/CN115134317A/en
Application granted granted Critical
Publication of CN115134317B publication Critical patent/CN115134317B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/043Real-time or near real-time messaging, e.g. instant messaging [IM] using or handling presence information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/18Commands or executable codes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a message display method, a message display device, a storage medium and an electronic device. The method comprises the following steps that an instant messaging interface is provided through terminal equipment, and sent first messages are displayed in the instant messaging interface, and the method comprises the following steps: in response to the first message withdrawal operation, hiding the first message in the instant messaging interface and acquiring the reading state of the first message; responding to the editing operation of the first message, and acquiring a second message; comparing the first message with the second message to obtain a comparison result; generating a modification trace based on the first message and the second message in response to the reading state being the read state and the comparison result being that the first message is different from the second message; and displaying the modification trace in the instant messaging interface. The invention solves the technical problem of poor reading experience of users in the related technology.

Description

Message display method, message display device, storage medium and electronic device
Technical Field
The present invention relates to the field of communications, and in particular, to a message display method, device, storage medium, and electronic device.
Background
With the development of information technology, communication software is widely popularized and becomes an essential part of social interaction and work in the life of people.
In order to solve the problem, related technologies provide a withdrawal function in the communication software, so that a user can withdraw a message sent within a certain time, but if a user receiving the message may have read the content of the message sent before, the user needs to read repeatedly, reading workload is increased, and the reading experience of the user is poor.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a message display method, a message display device, a storage medium and an electronic device, which are used for at least solving the technical problem of poor reading experience of users in the related technology.
According to an aspect of an embodiment of the present invention, a message display method is provided, in which an instant messaging interface is provided through a terminal device, and a first message that has been sent is displayed in the instant messaging interface, and the method includes: in response to the first message withdrawal operation, hiding the first message in the instant messaging interface and acquiring the reading state of the first message; responding to the editing operation of the first message, and acquiring a second message, wherein the second message is obtained by editing the first message; comparing the first message with the second message to obtain a comparison result, wherein the comparison result is used for representing whether the first message is the same as the second message or not; generating a modification trace based on the first message and the second message in response to the reading state being the read state and the comparison result being that the first message is different from the second message; and displaying the modification trace in the instant messaging interface.
Optionally, in response to the first message and the second message being text messages, generating the modification trace based on the first message and the second message comprises: sequentially comparing each character contained in the first message with each character contained in the second message to determine repeated characters in the first message and the second message; determining a first character except for the repeated characters in the first message; determining second characters except for the repeated characters in the second message; and generating a modification trace based on the first character, the second character and the repeated character.
Optionally, generating the modification trace based on the first word, the second word, and the repeated word comprises: determining a first arrangement sequence of the first characters and the repeated characters; determining a second arrangement sequence of the second characters and the repeated characters; and sequencing the first characters, the second characters and the repeated characters according to the first arrangement sequence and the second arrangement sequence to generate modification traces.
Optionally, the displaying the modification trace in the instant messaging interface includes: determining a display mode corresponding to each character in the modification trace, wherein the display modes of the first character, the second character and the repeated character are different; and displaying the modification trace in the instant messaging interface according to a display mode.
Optionally, in response to the first message and the second message being picture messages, generating modification traces based on the first message and the second message includes: carrying out thumbnail processing on the first message to obtain a thumbnail picture; marking the thumbnail to generate a marked picture; and displaying the marked picture and the second message in the instant messaging interface.
Optionally, comparing the first message with the second message to obtain a comparison result includes: acquiring the outline overlapping degree of the first message and the second message; and comparing the contour overlapping degree with a preset threshold value to obtain a comparison result.
Optionally, the obtaining of the contour overlapping degree of the first message and the second message includes: performing black and white processing on the first message and the second message to obtain a first picture and a second picture; respectively extracting pixel points with color values larger than a preset color value in the first picture first message and the second picture second message to obtain target pixel points; determining a first coordinate of a target pixel point in a first message picture and a second coordinate of the target pixel point in a second picture message, wherein the same coordinate system is established in the first message picture and the second picture message; and determining the coincidence degree of the first coordinate and the second coordinate to obtain the contour overlapping degree.
Optionally, in response to the reading status being the read status, the method further comprises: displaying a first operation control in an instant messaging interface; and hiding the modification trace in the instant communication interface in response to the first touch operation executed on the first operation control, and displaying a second message.
Optionally, the method further comprises: and in response to the comparison result that the first message is the same as the second message or the reading state is the unread state and the comparison result that the first message is different from the second message, displaying the second message in the instant messaging interface.
Optionally, in response to the reading status being an unread status and the comparison result being that the first message and the second message are different, the method further includes: displaying a second operation control in the instant messaging interface; and responding to a second touch operation executed on the second operation control, and displaying the modification trace in the instant messaging interface.
According to an aspect of an embodiment of the present invention, there is provided a message display apparatus for providing an instant messaging interface through a terminal device, in which a first message that has been sent is displayed, the apparatus including: the first acquisition module is used for responding to the withdrawal operation of the first message, hiding the first message and acquiring the reading state of the first message; the second obtaining module is used for responding to the editing operation of the first message and obtaining a second message, wherein the second message is obtained by editing the first message; the comparison module is used for comparing the first message with the second message to obtain a comparison result, wherein the comparison result is used for representing whether the first message is the same as the second message or not; the generating module is used for responding to the situation that the reading state is the read state and the comparison result is that the first message is different from the second message, and generating a modification trace based on the first message and the second message; and the display module is used for displaying the modification trace in the instant communication interface.
Optionally, the generating module includes: the first determining unit is used for comparing each character contained in the first message with each character contained in the second message in sequence and determining repeated characters in the first message and the second message; a second determining unit, configured to determine a first character in the first message, except for the repeated character; a third determining unit, configured to determine a second character in the second message, except for the repeated character; and the first generating unit is used for generating a modification trace based on the first character, the second character and the repeated character.
Optionally, the first generating unit includes: the first determining subunit is used for determining a first arrangement sequence of the first characters and the repeated characters; the second determining subunit is used for determining a second arrangement sequence of the second characters and the repeated characters; and the first generating subunit is used for sequencing the first characters, the second characters and the repeated characters according to the first arrangement sequence and the second arrangement sequence to generate modification traces.
Optionally, the display module includes a fourth determining unit, configured to determine a display mode corresponding to each character in the modification trace, where the display modes of the first character, the second character, and the repeated character are different; and the first display unit is used for displaying the modification trace in the instant messaging interface according to the display mode.
Optionally, the generating module further comprises: the obtaining unit is used for carrying out thumbnail processing on the first message to obtain a thumbnail picture; the second generation unit is used for marking the thumbnail to generate a marked picture; and the second display unit is used for displaying the marked picture and the second message in the instant messaging interface.
Optionally, the alignment module comprises: the first acquisition unit is used for acquiring the contour overlapping degree of the first message and the second message; and the first comparison unit is used for comparing the outline overlapping degree with a preset threshold value to obtain a comparison result.
Optionally, the first obtaining unit includes: the processing subunit is used for processing the first message and the second message to obtain a first picture and a second picture; the obtaining subunit is used for extracting pixel points with color values larger than a preset color value in the first picture and the second picture respectively to obtain target pixel points; the third determining subunit is used for determining a first coordinate of the target pixel point in the first picture and a second coordinate of the target pixel point in the second picture, wherein the same coordinate system is established in the first picture and the second picture; and the fourth determining subunit is used for determining the coincidence degree of the first coordinate and the second coordinate to obtain the contour overlapping degree.
Optionally, the apparatus further includes a first control display module, configured to display a first operation control in the instant messaging interface; and the first and second message display modules are used for hiding the modification trace in the instant communication interface and displaying a second message in response to the first touch operation executed on the first operation control.
Optionally, the second message display module is configured to display the second message in the instant messaging interface in response to that the comparison result is that the first message is the same as the second message or that the reading state is the unread state and that the comparison result is that the first message is different from the second message.
Optionally, in response to that the reading status is an unread status and the comparison result is that the first message and the second message are different, the apparatus further includes: the second control display module is used for displaying a second operation control in the instant messaging interface; and the modification trace display module is used for responding to a second touch operation executed on the second operation control and displaying the modification trace in the instant communication interface.
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, where the computer-readable storage medium includes a stored program, and when the program runs, the apparatus where the computer-readable storage medium is located is controlled to execute the message display method in any one of the above embodiments.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including a memory and a processor, the memory storing a computer program therein, the processor being configured to execute the computer program to perform the message display method in any one of the above embodiments.
In the embodiment of the invention, the first message is hidden in the instant communication interface by responding to the withdrawal operation of the first message, and the reading state of the first message is acquired; responding to the editing operation of the first message, and acquiring a second message; comparing the first message with the second message to obtain a comparison result; generating a modification trace based on the first message and the second message in response to the reading state being the read state and the comparison result being that the first message is different from the second message; and displaying the modification trace in the instant messaging interface. It is easy to notice that, by comparing the first message with the second message and displaying the modification trace in the instant messaging interface, the user receiving the message can clearly know the change between the first message and the second message, thereby achieving the technical effects of improving message reading and communication, improving the reading experience of the user, and further solving the technical problem of poor reading experience of the user in the related technology.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention and do not constitute a limitation of the invention. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a mobile terminal of a message display method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a message display method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an instant messaging interface for user B in an alternative embodiment of the present invention;
FIG. 4A is a schematic illustration of an instant messaging interface for user B in an alternative embodiment of the present invention;
FIG. 4B is a diagram of a first message and a second message intent in accordance with an alternate embodiment of the present invention;
FIG. 5 is a schematic diagram of a message display apparatus according to an embodiment of the present invention;
fig. 6 is a schematic diagram of an electronic device according to an embodiment of the invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, 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 only a part of the embodiments of the present invention, and not all of the embodiments. 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.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Where an embodiment of a method of displaying a message is provided according to one of the embodiments of the present invention, it is noted that the steps illustrated in the flowchart of the figure may be performed in a computer system such as a set of computer-executable instructions, and that while a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
The method embodiments may be performed in a mobile terminal, a computer terminal or a similar computing device. Taking the example of the Mobile terminal running on the Mobile terminal, the Mobile terminal may be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet Device (MID), a PAD, a game console, etc. Fig. 1 is a block diagram of a hardware structure of a mobile terminal according to a message display method of an embodiment of the present invention. As shown in fig. 1, the mobile terminal may include one or more (only one shown in fig. 1) processors 102 (the processors 102 may include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a Digital Signal Processing (DSP) chip, a Microprocessor (MCU), a programmable logic device (FPGA), a neural Network Processor (NPU), a Tensor Processor (TPU), an Artificial Intelligence (AI) type processor, etc.) and a memory 104 for storing data. Optionally, the mobile terminal may further include a transmission device 106, an input/output device 108, and a display device 110 for communication functions. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store computer programs, for example, software programs and modules of application software, such as a computer program corresponding to the message display method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, so as to implement the message display method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
The inputs in the input output Device 108 may come from a plurality of Human Interface Devices (HIDs). For example: keyboard and mouse, writing pad, etc. In addition to providing input functionality, some human interface devices may also provide output functionality, such as: audio output of the tablet, etc.
The display device 110 may be, for example, a head-up display (HUD), a touch screen type Liquid Crystal Display (LCD), and a touch display (also referred to as a "touch screen" or "touch display screen"). The liquid crystal display may enable a user to interact with a user interface of the mobile terminal. In some embodiments, the mobile terminal has a Graphical User Interface (GUI) with which a user can interact by touching or by finger contact and/or gestures on a touch-sensitive surface, where the human-machine interaction function optionally includes the following interactions: executable instructions for creating web pages, drawing, word processing, making electronic documents, games, video conferencing, instant messaging, emailing, call interfacing, playing digital video, playing digital music, and/or web browsing, etc., for performing the above-described human-computer interaction functions, are configured/stored in one or more processor-executable computer program products or readable storage media.
In accordance with an embodiment of the present invention, there is provided a message display method, it being noted that the steps illustrated in the flow chart diagrams of the figures may be carried out in a computer system, such as a set of computer-executable instructions, and that, although a logical order is illustrated in the flow chart diagrams, in some cases, the steps illustrated or described may be carried out in an order different than here.
Fig. 2 is a flowchart of a message display method according to an embodiment of the present invention, as shown in fig. 2, the method is applied to a terminal device, an instant messaging interface is provided through the terminal device, and a sent first message is displayed in the instant messaging interface, and the method includes the following steps:
step S201, in response to the withdrawal operation performed on the first message, hiding the first message in the instant messaging interface, and acquiring a reading state of the first message.
Specifically, the terminal device may be a smart phone (including an Android phone and an IOS phone), a tablet computer, a notebook computer, a personal computer, or the like, used by a user for receiving a message, and the device may be installed with instant messaging software, so that an instant messaging interface may be displayed on a display screen of the device. The first message may be a message that the user sends to other users within a certain time, and the message may include but is not limited to: text or pictures. The reading state of the first message is used for indicating whether the first message is read by a user receiving the message before being withdrawn, and can be divided into a read state and an unread state.
In an alternative embodiment, the user a sends the first message to the user B, the first message may be displayed in the instant messaging interface of the user B, and then the user a selects to withdraw the first message, and the instant messaging interface of the user B may hide the first message, so as to withdraw the first message. After the user a sends the first message, the reading state of the first message is an unread state, and after the instant messaging interface is displayed on the terminal device of the user B, the terminal device can record that the reading state of the first message is a read state, so that the terminal device can acquire the reading state of the first message. It should be noted that after the user a performs the revocation operation on the first message, the reading status of the first message is not changed.
Step S202, in response to the editing operation performed on the first message, a second message is obtained, where the second message is obtained by editing the first message.
Specifically, after the user withdraws the first message, the user may edit the first message again to obtain the second message. In an optional embodiment, a control for editing the first message may be provided in the instant messaging interface, for example, after the user a withdraws the first message, a re-editing control may be displayed in the instant messaging interface of the user a, and the user a may modify and edit the first message by performing a touch operation on the control. After the user a performs touch operation on the re-editing control, it is determined to perform editing operation on the first message, at this time, a message input box may be displayed in the instant messaging interface of the user a, and the first message that has been withdrawn is displayed in the input box, and the user a may perform editing on the basis of the first message, so as to obtain a second message.
Step S203, comparing the first message with the second message to obtain a comparison result, where the comparison result is used to represent whether the first message is the same as the second message.
It should be noted that, in the instant messaging scenario, the message sent by the user a to the other user is often a text message or a picture (without any text), and therefore, the types of the first message and the second message may be a text message or a picture message.
In an alternative embodiment, in the case that the first message and the second message are text messages, the words in the first message may be used as a reference template, each word in the second message is sequentially compared, and the repetition degree between the two is determined, and in the case that the repetition degree is greater than or equal to a first threshold (which may be set by a manager, for example, may be 100%), it indicates that the first message and the second message are the same, so that the comparison result of the unmodified first message may be obtained; and in the case that the repetition degree is less than the first threshold value, the first message and the second message are not the same, so that the comparison result of the modified first message can be obtained.
In another optional embodiment, in the case that the first message and the second message are picture messages, it may be determined whether the first message and the second message are identical by performing similarity calculation on the first message and the second message; alternatively, it may be determined whether the first message and the second message are the same by comparing the degree of overlap of the outlines of the picture in the first message and the picture in the second message. Specifically, the contour overlapping degree of the picture in the first message and the picture in the second message may be calculated as follows: the method comprises the steps of firstly processing a first message and a second message to enable the pictures to be changed into black and white pictures or gray pictures, then extracting pixel points with color values above a second threshold value (which can be set by a manager, for example, 70%) from the two processed pictures, placing the two processed pictures on the same coordinate, recording the extracted pixel points, and finally calculating the coordinate coincidence degree of the recorded pixel points. In the case that the coincidence degree is greater than or equal to the third threshold value (which may be set by the administrator at its discretion, for example, may be 90%), it indicates that the first message and the second message are the same, and therefore, the comparison result of the unmodified first message may be obtained; in the case that the coincidence degree is smaller than the third threshold value, it indicates that the first message is different from the second message, and therefore the comparison result of the modified first message can be obtained.
And S204, generating a modification trace based on the first message and the second message in response to the reading state being the read state and the comparison result being that the first message is different from the second message.
Specifically, the modification trace may be a process in which the user a modifies the first message to obtain the second message, for example, taking the first message as a text message as an example, the modification trace may be a process in which the user a deletes part or all of the characters in the first message and adds other characters to obtain the second message. It should be noted that the modification trace may not only include the difference between the first message and the second message, but also include the same content between the two messages.
In an alternative embodiment, after the user B who receives the message has read the first message, that is, the terminal device of the user B records the reading status of the first message as the read status, if it is determined that the first message is different from the second message, in order to avoid the user B reading repeatedly, modification traces may be generated based on the first message and the second message in different ways for different types of messages.
In the case where the first message and the second message are text messages, if it is determined that the first message and the second message are different, a modification trace may be generated based on the difference of the first message and the second message and the same content; in the case where the first message and the second message are picture messages, if it is determined that the first message and the second message are different, the first message and the second message may be directly used as a modification trace.
And S205, displaying the modification trace in the instant messaging interface.
In an alternative embodiment, modification traces may be displayed in the instant messaging interface of the user B, and in order to facilitate the user B to quickly and accurately determine the modification process of the user a, in the case that the first message and the second message are text messages, the modification traces may be displayed as follows: modifying the display mode corresponding to each character in the trace, wherein the display modes of the first character, the second character and the repeated character are different; and displaying the modification trace in the instant messaging interface according to a display mode. Specifically, the first message may be used as a reference template, the newly added part may be displayed according to a first preset display mode, the deleted part may be displayed according to a second preset display mode, and the unchanged part may be displayed according to a third preset display mode. The third preset display mode may be a message default display mode, for example, a default font color, or the like; the first preset display mode and the second preset display mode may be set according to actual requirements, for example, the first preset display mode may display characters as green, and the second preset display mode may display red deletion lines on the deleted characters. In the case that the first message and the second message are picture messages, a thumbnail of the first message can be displayed in the instant messaging interface, a file of 'the picture is withdrawn' is marked, and the second message is displayed at the same time.
It should be noted that, in the instant messaging software, in order to improve the reading experience of the user, two display modes can be provided for the user, which are a reader mode and an unread mode respectively, and in the case that the display mode is the reader mode, a modification trace can be displayed in the instant messaging interface; in case the display message is in unread mode, the second message may be directly displayed. Specifically, the user can switch the display mode of the second message by clicking the mode switching control displayed in the instant messaging interface according to the needs of the user.
Optionally, in response to the comparison result being that the first message is the same as the second message, that is, if the user a does not modify the first message, the second message may be directly displayed in the instant messaging interface of the user B, so that the user B may determine that the user a does not modify the first message. In response to that the reading state is an unread state, and the comparison result is that the first message is different from the second message, that is, if the user B does not read the first message before the first message is withdrawn, there is no problem of repeated reading.
In the embodiment of the invention, the first message is hidden in the instant communication interface by responding to the withdrawal operation of the first message, and the reading state of the first message is acquired; responding to the editing operation of the first message, and acquiring a second message; comparing the first message with the second message to obtain a comparison result; generating a modification trace based on the first message and the second message in response to the reading state being the read state and the comparison result being that the first message is different from the second message; and displaying the modification trace in the instant messaging interface. It is easy to notice that, by comparing the first message with the second message and displaying the modification trace in the instant messaging interface, the user receiving the message can clearly know the change between the first message and the second message, thereby achieving the technical effects of improving message reading and communication, improving the reading experience of the user, and further solving the technical problem of poor reading experience of the user in the related technology.
Optionally, in response to the first message and the second message being text messages, generating the modification trace based on the first message and the second message comprises: sequentially comparing each character contained in the first message with each character contained in the second message to determine repeated characters in the first message and the second message; determining first characters except for the repeated characters in the first message; determining second characters except for the repeated characters in the second message; and generating a modification trace based on the first character, the second character and the repeated character.
Specifically, the first text is text existing in the first message but not existing in the second message, that is, text deleted during the editing operation performed by the user a on the first message. The second text may be text that is not present in the first message but is present in the second message, that is, text added in the process of editing the first message by the user a.
In an alternative embodiment, the first message and the second message may be compared word by word, the text present in both the first message and the second message is determined, the repeated text is obtained, the text present only in the first message is further determined, the first text is obtained, and the text present only in the second message is obtained the second text is obtained. Then, different display modes can be set for the first characters, the second characters and the repeated characters, so that a user can clearly know the difference between the first message and the second message when viewing the second message. As shown in fig. 3, fig. 3 may be the communication interface of user B, the first message may be "want to you eat" sent by user a, the second message may be "want to you eat barbecue in tomorrow and then watch movie" sent by user a, the first message and the second message are compared to determine that the repeated text may be "want to you" and "eat", the first text may be "meal", and the second text may be "tomorrow" and "barbecue and then watch movie".
Optionally, generating the modification trace based on the first word, the second word, and the repeated word comprises: determining a first arrangement sequence of the first characters and the repeated characters; determining a second arrangement sequence of the second characters and the repeated characters; and sequencing the first characters, the second characters and the repeated characters according to the first arrangement sequence and the second arrangement sequence to generate modification traces.
Specifically, after the first text, the second text, and the repeated text are determined, the arrangement order among the first text, the second text, and the repeated text may be determined according to a first arrangement order between the first text and the repeated text in the first message and a second arrangement order between the second text and the repeated text in the second message, and then the first text, the second text, and the repeated text may be sorted according to the arrangement order to obtain the modification trace. As shown in fig. 3, the first arrangement order may be "want you to" + "eat" + "meal", and the second arrangement order may be "want you to" + "tomorrow" + "eat" + "grill, then watch a movie".
Optionally, the displaying the modification trace in the instant messaging interface includes: determining a display mode corresponding to each character in the modification trace, wherein the display modes of the first character, the second character and the repeated character are different; and displaying the modification trace in the instant messaging interface according to a display mode.
Specifically, in the actual display process, the first text, the second text and the repeated text are displayed in different manners, and are used for prompting the user of a place where the first message is different from the second message. In the actual application process, the first characters, the second characters and the repeated characters can be displayed in any different formats. For example, the first, second and repeated text may be displayed in different text colors, e.g., the repeated text is displayed in black, the first text is displayed in red and the second text is displayed in green. Alternatively, the first character is marked out with a strikethrough, the repeated characters remain in the original format, and the second character is underlined.
In practical applications, the format of the first character is not limited to the above-mentioned labeling method, and other methods may be used for labeling, for example, parentheses, red highlighting, etc., the second character is not limited to the above-mentioned labeling method, and other formats such as bold, italic, green highlighting, etc., may be used for labeling, and the present application is not limited to the display method of the above-mentioned first character, second character, and repeated characters.
Specifically, the display order between the first text and the second text may be determined by a user operation, for example, the user a adds or deletes text in the first message, and the arrangement order is determined according to the position of the cursor when the user edits the second message. Optionally, in response to the first message and the second message being picture messages, generating a modification trace based on the first message and the second message includes: carrying out thumbnail processing on the first message to obtain a thumbnail picture; marking the thumbnail to generate a marked picture; and displaying the marked picture and the second message in the instant messaging interface.
Specifically, the above marking of the thumbnail picture may be displaying a "the picture has been withdrawn" file next to the thumbnail picture, and displaying the mark in the instant messaging interface of the user B, so that the user B can see the thumbnail picture of the first message and the second message at the same time, and thus can quickly know the difference between the first message and the second message. For example, as shown in fig. 4A, a diagram B may be a first message, a diagram a may be a second message, and in case that the user a signals an image transmission error, the user a may withdraw the diagram B and retransmit the diagram a, and display a thumbnail of the diagram B and a thumbnail mark on the upper side of the diagram a.
It should be noted that the display positions of the thumbnails and the thumbnail marks are not limited to the upper side of fig. a, and may be located at the lower side or both sides, and the present application is not limited thereto.
Optionally, comparing the first message with the second message to obtain a comparison result includes: acquiring the outline overlapping degree of the first message and the second message; and comparing the contour overlapping degree with a preset threshold value to obtain a comparison result. Specifically, under the condition that the first message and the second message are pictures, the outline overlapping degree of the first message and the second message is calculated, before the outline overlapping degree is calculated, the pictures need to be processed, the first message and the second message are changed into black and white pictures or gray level pictures, then the outline overlapping degree of the first message and the second message is calculated, and compared with a preset threshold value, and a comparison result is obtained.
In an alternative embodiment, the preset threshold may be 90%, where the contour overlap is less than 90%, the comparison result is used to characterize the first message as different from the second message, and where the contour overlap is greater than or equal to 90%, the comparison result is used to characterize the first message as the same as the second message. For example, as shown in fig. 4B, a graph a is a first message, a graph B is a second message, and the patterns of the graphs a and B are used to represent the contours of the specific images in the graphs a and B, respectively, the degree of contour overlap in the graphs a and B can be calculated and compared with a preset threshold value, so as to obtain the comparison result. Optionally, the obtaining of the contour overlapping degree of the first message and the second message includes: performing black-and-white processing on the first message and the second message to obtain a first picture and a second picture; respectively extracting pixel points with color values larger than a preset color value in the first picture first message and the second picture second message to obtain target pixel points; determining a first coordinate of a target pixel point in a first message picture and a second coordinate of the target pixel point in a second picture message, wherein the same coordinate system is established in the first message picture and the second picture message; and determining the coincidence degree of the first coordinate and the second coordinate to obtain the contour overlapping degree.
Specifically, the first picture may be a picture obtained after the first message is subjected to black-and-white processing or grayscale processing, and the second picture may be a picture obtained after the second message is subjected to black-and-white processing or grayscale processing. It should be noted that the same manner is adopted for processing the first message and the second message. Then, pixel points with color values larger than preset color values in the first picture and the second picture are respectively extracted, namely the target pixel points, then the same coordinate systems are established in the first picture and the second picture, a first coordinate system of the target pixel points from the first picture in the coordinate system of the first picture and a second coordinate of the target pixel points from the second picture in the coordinate system of the second picture are obtained, and the coincidence degree of the first coordinate and the second coordinate, namely the contour overlapping degree, is calculated. For example, as shown in fig. 4B, the graph a is a first message, the graph B is a second message, black and white processing or gray processing may be performed on the graph a and the graph B to obtain a first picture corresponding to the graph a and a second image corresponding to the graph B, then pixels with color values larger than a preset color value in the first picture and the second picture, that is, the target pixels, are extracted respectively, then the same coordinate system is established in the first picture and the second picture, a first coordinate system of the target pixels derived from the first picture in the coordinate system of the first picture and a second coordinate of the target pixels derived from the second picture in the coordinate system of the second picture are obtained, and a coincidence degree of the first coordinate and the second coordinate, that is, the contour overlapping degree, is calculated.
In an alternative embodiment, the preset color value may be 70%.
Optionally, in response to the reading status being the read status, the method further comprises: displaying a first operation control in an instant messaging interface; and hiding the modification trace in the instant messaging interface and displaying the second message in response to the first touch operation executed on the first operation control.
Specifically, the first operation control is configured to switch a display mode of the modification trace, that is, switch a display state of the modification trace in the instant messaging interface, for example, the first operation control may be a button displayed below the modification trace, and a file of the button may be switched according to a current display mode, for example, when the current display mode is a reader mode, the file may be a "hidden modification trace"; in the case where the current display mode is the unread mode, the document may be "display modification trace". It should be noted that, when the reading state is the read state, the default display mode is the reader mode, and at this time, the user B may perform the first touch operation on the first operation control, so that the modification trace may be hidden in the instant messaging interface of the user B, and the second message may be directly displayed, that is, the current display mode is switched to the unread mode. The first touch operation herein includes, but is not limited to, clicking, sliding, or long pressing.
Optionally, in response to the reading status being an unread status and the comparison result being that the first message and the second message are different, the method further includes: displaying a second operation control in the instant messaging interface; and responding to a second touch operation executed on the second operation control, and displaying the modification trace in the instant messaging interface.
Specifically, the second operation control may be the same as the first operation control, for example, may be a button displayed below the second message, and the file of the button may also be switched according to the current display mode, which is not described herein. The second touch operation may also include, but is not limited to, a click, a slide, or a long press.
It should be noted that, in the case that the first message and the second message are the same, no additional control needs to be displayed.
In this embodiment, a message display device is further provided, and the message display device is used to implement the foregoing embodiments and preferred embodiments, which have already been described and are not described again. As used below, the terms "unit," "module," "sub-unit" may implement a combination of software and/or hardware for a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 5 is a schematic structural diagram of a message display apparatus according to an embodiment of the present invention, the apparatus is disposed in a terminal device, and an instant messaging interface is provided through the terminal device, and the instant messaging interface displays a sent first message as shown in fig. 5, and the apparatus includes:
the first obtaining module 51 is configured to hide the first message and obtain a reading status of the first message in response to performing a revocation operation on the first message.
The second obtaining module 52 is configured to, in response to the editing operation performed on the first message, obtain a second message, where the second message is obtained by editing the first message.
And a comparing module 55, configured to compare the first message with the second message to obtain a comparison result, where the comparison result is used to represent whether the first message is the same as the second message.
And a generating module 54, configured to generate a modification trace based on the first message and the second message in response to the reading status being the read status and the comparison result being that the first message is different from the second message.
And the display module 55 is used for displaying the modification trace in the instant messaging interface.
In the embodiment of the invention, the first message is hidden in the instant communication interface by responding to the withdrawal operation of the first message, and the reading state of the first message is acquired; responding to the editing operation of the first message, and acquiring a second message; comparing the first message with the second message to obtain a comparison result; generating a modification trace based on the first message and the second message in response to the reading state being the read state and the comparison result being that the first message is different from the second message; and displaying the modification trace in the instant messaging interface. It is easy to notice that, by comparing the first message with the second message and displaying the modification trace in the instant messaging interface, the user receiving the message can clearly know the change between the first message and the second message, thereby achieving the technical effects of improving message reading and communication, improving the reading experience of the user, and further solving the technical problem of poor reading experience of the user in the related technology.
Optionally, the generating module includes: the first determining unit is used for comparing each character contained in the first message with each character contained in the second message in sequence and determining repeated characters in the first message and the second message; a second determining unit, configured to determine a first character in the first message, except for the repeated character; a third determining unit, configured to determine a second character in the second message, except for the repeated character; and the first generating unit is used for generating a modification trace based on the first character, the second character and the repeated character.
Optionally, the first generating unit includes: the first determining subunit is used for determining a first arrangement sequence of the first characters and the repeated characters; the second determining subunit is used for determining a second arrangement sequence of the second characters and the repeated characters; and the first generating subunit is used for sequencing the first characters, the second characters and the repeated characters according to the first arrangement sequence and the second arrangement sequence to generate modification traces.
Optionally, the display module includes a fourth determining unit, configured to determine a display mode corresponding to each character in the modification trace, where the display modes of the first character, the second character, and the repeated character are different; and the first display unit is used for displaying the modification trace in the instant communication interface according to a display mode.
Optionally, the generating module further comprises: the obtaining unit is used for carrying out thumbnail processing on the first message to obtain a thumbnail picture; the second generation unit is used for marking the thumbnail to generate a marked picture; and the second display unit is used for displaying the marked picture and the second message in the instant messaging interface.
Optionally, the alignment module comprises: the first acquisition unit is used for acquiring the outline overlapping degree of the first message and the second message; and the first comparison unit is used for comparing the contour overlapping degree with a preset threshold value to obtain a comparison result.
Optionally, the first obtaining unit includes: the processing subunit is used for processing the first message and the second message to obtain a first picture and a second picture; the obtaining subunit is used for extracting pixel points with color values larger than the preset color value in the first picture and the second picture respectively to obtain target pixel points; the third determining subunit is used for determining a first coordinate of the target pixel point in the first picture and a second coordinate of the target pixel point in the second picture, wherein the same coordinate system is established in the first picture and the second picture; and the fourth determining subunit is used for determining the coincidence degree of the first coordinate and the second coordinate to obtain the contour overlapping degree.
Optionally, the apparatus further includes a first control display module, configured to display a first operation control in the instant messaging interface; and the first and second message display module is used for hiding the modification trace in the instant messaging interface and displaying a second message in response to the first touch operation executed on the first operation control.
Optionally, the second message display module is configured to display the second message in the instant messaging interface in response to that the comparison result is that the first message is the same as the second message or that the reading state is an unread state and that the comparison result is that the first message is different from the second message.
Optionally, in response to that the reading status is an unread status and the comparison result is that the first message and the second message are different, the apparatus further includes: the second control display module is used for displaying a second operation control in the instant messaging interface; and the modification trace display module is used for responding to a second touch operation executed on the second operation control and displaying the modification trace in the instant communication interface.
Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
Optionally, in this embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Optionally, in this embodiment, the computer-readable storage medium may be located in any one of a group of computer terminals in a computer network, or in any one of a group of mobile terminals.
Alternatively, in the present embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for executing the steps of:
s1, responding to the withdrawal operation of the first message, hiding the first message in the instant communication interface and acquiring the reading state of the first message;
s2, responding to the editing operation of the first message, and acquiring a second message, wherein the second message is obtained by editing the first message;
s3, comparing the first message with the second message to obtain a comparison result, wherein the comparison result is used for representing whether the first message is the same as the second message;
s4, generating a modification trace based on the first message and the second message in response to the reading state being the read state and the comparison result being that the first message is different from the second message;
and S5, displaying the modification trace in the instant messaging interface.
Optionally, the computer-readable storage medium is further configured to store program code for performing the following steps: sequentially comparing each character contained in the first message with each character contained in the second message to determine repeated characters in the first message and the second message; determining first characters except for the repeated characters in the first message; determining second characters except for the repeated characters in the second message; and generating a modification trace based on the first character, the second character and the repeated character.
Optionally, the computer-readable storage medium is further configured to store program code for performing the following steps: determining a first arrangement sequence of the first characters and the repeated characters; determining a second arrangement sequence of the second characters and the repeated characters; and sequencing the first characters, the second characters and the repeated characters according to the first arrangement sequence and the second arrangement sequence to generate modification traces.
Optionally, the computer-readable storage medium is further configured to store program code for performing the following steps: carrying out thumbnail processing on the first message to obtain a thumbnail picture; marking the thumbnail to generate a marked picture; and displaying the marked picture and the second message in the instant messaging interface.
Optionally, the computer-readable storage medium is further configured to store program code for performing the following steps: acquiring the contour overlapping degree of the first message and the second message; and comparing the contour overlapping degree with a preset threshold value to obtain a comparison result.
Optionally, the computer-readable storage medium is further configured to store program code for performing the following steps: performing black-and-white processing on the first message and the second message to obtain a first picture and a second picture; respectively extracting pixel points with color values larger than a preset color value in the first picture first message and the second picture second message to obtain target pixel points; determining a first coordinate of a target pixel point in a first message picture and a second coordinate of the target pixel point in a second picture message, wherein the same coordinate system is established in the first message picture and the second picture message; and determining the coincidence degree of the first coordinate and the second coordinate to obtain the contour overlapping degree.
Optionally, the computer-readable storage medium is further configured to store program code for performing the following steps: displaying a first operation control in an instant messaging interface; and hiding the modification trace in the instant messaging interface and displaying the second message in response to the first touch operation executed on the first operation control.
Optionally, the computer-readable storage medium is further configured to store program code for performing the following steps: and responding to the comparison result that the first message is the same as the second message or the reading state is the unread state and the comparison result is that the first message is different from the second message, and displaying the second message in the instant messaging interface.
Optionally, the computer-readable storage medium is further configured to store program code for performing the following steps: responding to the situation that the reading state is an unread state and the comparison result is that the first message is different from the second message, and displaying a second operation control in the instant messaging interface; and responding to a second touch operation executed on the second operation control, and displaying the modification trace in the instant messaging interface.
In the computer-readable storage medium of this embodiment, a technical solution of a message display method is provided, where a first message is hidden in an instant messaging interface by performing a withdrawal operation on the first message, and a reading state of the first message is acquired; responding to the editing operation of the first message, and acquiring a second message; comparing the first message with the second message to obtain a comparison result; generating a modification trace based on the first message and the second message in response to the reading state being the read state and the comparison result being that the first message is different from the second message; and displaying the modification trace in the instant messaging interface. It is easy to notice that by comparing the first message with the second message and displaying the modification trace in the instant messaging interface, a user receiving the message can clearly know the change between the first message and the second message, so that the technical effects of improving message reading and communication and improving user reading experience are achieved, and the technical problem of poor user reading experience in the related technology is solved.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiment of the present invention can be embodied in the form of a software product, which can be stored in a computer-readable storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to make a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) execute the method according to the embodiment of the present invention.
In an exemplary embodiment of the present application, a computer-readable storage medium has stored thereon a program product capable of implementing the above-described method of the present embodiment. In some possible embodiments, the various aspects of the embodiments of the present invention may also be implemented in the form of a program product, which includes program code for causing a terminal device to perform the steps according to various exemplary embodiments of the present invention described in the above section "exemplary method" of this embodiment, when the program product runs on the terminal device.
The program product for implementing the above method according to the embodiment of the present invention may employ a portable compact disc read only memory (CD-ROM) and include program codes, and may be run on a terminal device, such as a personal computer. However, the program product of the embodiments of the invention is not limited thereto, and in the embodiments of the invention, the computer readable storage medium may be any tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product described above may employ any combination of one or more computer-readable media. The computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
It should be noted that the program code embodied on the computer readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, responding to the withdrawal operation of the first message, hiding the first message in the instant communication interface and acquiring the reading state of the first message;
s2, responding to the editing operation of the first message, and acquiring a second message, wherein the second message is obtained by editing the first message;
s3, comparing the first message with the second message to obtain a comparison result, wherein the comparison result is used for representing whether the first message is the same as the second message;
s4, generating a modification trace based on the first message and the second message in response to the reading state being the read state and the comparison result being that the first message is different from the second message;
and S5, displaying the modification trace in the instant messaging interface.
Optionally, the processor may be further configured to execute the following steps by a computer program: sequentially comparing each character contained in the first message with each character contained in the second message to determine repeated characters in the first message and the second message; determining first characters except for the repeated characters in the first message; determining second characters except for the repeated characters in the second message; and generating a modification trace based on the first character, the second character and the repeated character.
Optionally, the processor may be further configured to execute the following steps by a computer program: generating the modification trace based on the first word, the second word, and the repeated word comprises: determining a first arrangement sequence of the first characters and the repeated characters; determining a second arrangement sequence of the second characters and the repeated characters; and sequencing the first characters, the second characters and the repeated characters according to the first arrangement sequence and the second arrangement sequence to generate modification traces.
Optionally, the processor may be further configured to execute the following steps by a computer program: determining a display mode corresponding to each character in the modification trace, wherein the display modes of the first character, the second character and the repeated character are different; and displaying the modification trace in the instant messaging interface according to a display mode.
Optionally, the processor may be further configured to execute the following steps by a computer program: in response to the first message and the second message being picture messages, generating modification traces based on the first message and the second message comprises: carrying out thumbnail processing on the first message to obtain a thumbnail picture; marking the thumbnail to generate a marked picture; and displaying the marked picture and the second message in the instant messaging interface.
Optionally, the processor may be further configured to execute the following steps by a computer program: comparing the first message with the second message to obtain a comparison result, wherein the comparison result comprises: acquiring the outline overlapping degree of the first message and the second message; and comparing the contour overlapping degree with a preset threshold value to obtain a comparison result.
Optionally, the processor may be further configured to execute the following steps by a computer program: the acquiring of the contour overlapping degree of the first message and the second message comprises the following steps: performing black and white processing on the first message and the second message to obtain a first picture and a second picture; respectively extracting pixel points with color values larger than a preset color value in a first picture first message and a second picture second message to obtain target pixel points; determining a first coordinate of a target pixel point in a first message picture and a second coordinate of the target pixel point in a second picture message, wherein the same coordinate system is established in the first message picture and the second picture message; and determining the coincidence degree of the first coordinate and the second coordinate to obtain the contour overlapping degree.
Optionally, the processor may be further configured to execute the following steps by a computer program: in response to the reading status being the read status, the method further comprises: displaying a first operation control in an instant messaging interface; and hiding the modification trace in the instant messaging interface and displaying the second message in response to the first touch operation executed on the first operation control.
Optionally, the processor may be further configured to execute the following steps by a computer program: and responding to the comparison result that the first message is the same as the second message or the reading state is the unread state and the comparison result is that the first message is different from the second message, and displaying the second message in the instant messaging interface.
Optionally, the processor may be further configured to execute the following steps by a computer program: in response to the reading status being an unread status and the comparison result being that the first message and the second message are different, the method further comprises: displaying a second operation control in the instant messaging interface; and responding to a second touch operation executed on the second operation control, and displaying the modification trace in the instant messaging interface.
In the embodiment of the invention, the first message is hidden in the instant messaging interface by responding to the withdrawal operation of the first message, and the reading state of the first message is acquired; responding to the editing operation of the first message, and acquiring a second message; comparing the first message with the second message to obtain a comparison result; generating a modification trace based on the first message and the second message in response to the reading state being the read state and the comparison result being that the first message is different from the second message; and displaying the modification trace in the instant messaging interface. It is easy to notice that, by comparing the first message with the second message and displaying the modification trace in the instant messaging interface, the user receiving the message can clearly know the change between the first message and the second message, thereby achieving the technical effects of improving message reading and communication, improving the reading experience of the user, and further solving the technical problem of poor reading experience of the user in the related technology.
Fig. 6 is a schematic diagram of an electronic device according to an embodiment of the invention. As shown in fig. 6, the electronic device 600 is only an example and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 6, the electronic apparatus 600 is in the form of a general purpose computing device. The components of the electronic device 600 may include, but are not limited to: the at least one processor 610, the at least one memory 620, the bus 630 connecting the various system components (including the memory 620 and the processor 610), and the display 640.
Wherein the above-mentioned memory 620 stores program code which can be executed by the processor 610, causing the processor 610 to perform the steps according to various exemplary embodiments of the present invention described in the above-mentioned method section of the embodiments of the present application.
The memory 620 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)6201 and/or a cache memory unit 6202, may further include a read-only memory unit (ROM)6203, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
In some examples, memory 620 may also include program/utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination thereof may comprise an implementation of a network environment. The memory 620 may further include memory located remotely from the processor 610, which may be connected to the electronic device 600 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Bus 630 may be one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, and processor 610, or a local bus using any of a variety of bus architectures.
Display 640 may, for example, be a touch screen type Liquid Crystal Display (LCD) that may enable a user to interact with a user interface of electronic device 600.
Optionally, the electronic apparatus 600 may also communicate with one or more external devices 1400 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic apparatus 600, and/or with any devices (e.g., router, modem, etc.) that enable the electronic apparatus 600 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 650. Also, the electronic device 600 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) through the network adapter 660. As shown in FIG. 6, the network adapter 660 communicates with the other modules of the electronic device 600 via the bus 630. It should be appreciated that although not shown in FIG. 6, other hardware and/or software modules may be used in conjunction with electronic device 600, which may include, but are not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, to name a few.
The electronic device 600 may further include: a keyboard, a cursor control device (e.g., a mouse), an input/output interface (I/O interface), a network interface, a power source, and/or a camera.
It will be understood by those skilled in the art that the structure shown in fig. 6 is only an illustration and is not intended to limit the structure of the electronic device. For example, electronic device 600 may also include more or fewer components than shown in FIG. 6, or have a different configuration than shown in FIG. 6. The memory 620 may be used for storing computer programs and corresponding data, such as computer programs and corresponding data corresponding to the message display method in the embodiment of the present invention. The processor 610 executes various functional applications and data processing by running a computer program stored in the memory 620, that is, implements the message display method described above.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the description of each embodiment has its own emphasis, and reference may be made to the related description of other embodiments for parts that are not described in detail in a certain embodiment.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may also be implemented in the form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is substantially or partly contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (13)

1. A message display method is characterized in that an instant messaging interface is provided through terminal equipment, and a sent first message is displayed in the instant messaging interface, and the method comprises the following steps:
in response to the first message withdrawal operation, hiding the first message in the instant messaging interface and acquiring the reading state of the first message;
responding to the editing operation of the first message, and acquiring a second message, wherein the second message is obtained by editing the first message;
comparing the first message with the second message to obtain a comparison result, wherein the comparison result is used for representing whether the first message is the same as the second message or not;
in response to the reading state being a read state and the comparison result being that the first message is different from the second message, generating a modification trace based on the first message and the second message;
and displaying the modification trace in the instant messaging interface.
2. The method of claim 1, wherein generating modification impressions based on the first message and the second message in response to the first message and the second message being text messages comprises:
sequentially comparing each character contained in the first message with each character contained in the second message to determine repeated characters in the first message and the second message;
determining first words in the first message other than the repeated words;
determining second words in the second message other than the repeated words;
and generating the modification trace based on the first character, the second character and the repeated character.
3. The method of claim 2, wherein generating the modification trail based on the first word, the second word, and the repeated word comprises:
determining a first arrangement order of the first text and the repeated text;
determining a second arrangement order of the second characters and the repeated characters;
and sequencing the first characters, the second characters and the repeated characters according to the first arrangement sequence and the second arrangement sequence to generate the modification traces.
4. The method of claim 2, wherein displaying the modification trace in the instant messaging interface comprises:
determining a display mode corresponding to each character in the modification trace, wherein the display modes of the first character, the second character and the repeated character are different;
and displaying the modification trace in the instant messaging interface according to the display mode.
5. The method of claim 1, wherein generating modification traces based on the first message and the second message in response to the first message and the second message being picture messages comprises:
carrying out thumbnail processing on the first message to obtain a thumbnail picture;
marking the thumbnail picture to generate a marked picture;
and displaying the marked picture and the second message in the instant messaging interface.
6. The method of claim 5, wherein comparing the first message with the second message to obtain a comparison result comprises:
acquiring the contour overlapping degree of the first message and the second message;
and comparing the contour overlapping degree with a preset threshold value to obtain the comparison result.
7. The method of claim 6, wherein obtaining the degree of contour overlap of the first message and the second message comprises:
processing the first message and the second message to obtain a first picture and a second picture;
respectively extracting pixel points with color values larger than a preset color value in the first picture and the second picture to obtain target pixel points;
determining a first coordinate of the target pixel point in the first picture and a second coordinate of the target pixel point in the second picture, wherein the same coordinate system is established in the first picture and the second picture;
and determining the coincidence degree of the first coordinate and the second coordinate to obtain the contour overlapping degree.
8. The method of claim 1, wherein in response to the reading status being a read status, the method further comprises:
displaying a first operation control in the instant messaging interface;
and in response to a first touch operation executed on the first operation control, hiding the modification trace in the instant messaging interface and displaying the second message.
9. The method of claim 1, further comprising:
and responding to the comparison result that the first message is the same as the second message or the reading state is the unread state and the comparison result is that the first message is different from the second message, and displaying the second message in the instant messaging interface.
10. The method of claim 9, wherein in response to the read status being the unread status and the alignment result being that the first message and the second message are different, the method further comprises:
displaying a second operation control in the instant messaging interface;
and responding to a second touch operation executed on the second operation control, and displaying the modification trace in the instant messaging interface.
11. A message display apparatus for providing an instant messaging interface through a terminal device, the instant messaging interface displaying a first message that has been sent, the apparatus comprising:
the first acquisition module is used for responding to the withdrawal operation of the first message, hiding the first message and acquiring the reading state of the first message;
a second obtaining module, configured to obtain a second message in response to an editing operation performed on the first message, where the second message is obtained by editing the first message;
the comparison module is used for comparing the first message with the second message to obtain a comparison result, wherein the comparison result is used for representing whether the first message is the same as the second message;
a generating module, configured to generate a modification trace based on the first message and the second message in response to that the reading status is a read status and that the comparison result is that the first message is different from the second message;
and the display module is used for displaying the modification trace in the instant messaging interface.
12. A computer-readable storage medium, comprising a stored program, wherein the program, when executed, controls an apparatus in which the computer-readable storage medium is located to perform the message display method according to any one of claims 1 to 10.
13. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the message display method of any of claims 1 to 10.
CN202210648488.3A 2022-06-09 2022-06-09 Message display method, device, storage medium and electronic device Active CN115134317B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210648488.3A CN115134317B (en) 2022-06-09 2022-06-09 Message display method, device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210648488.3A CN115134317B (en) 2022-06-09 2022-06-09 Message display method, device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN115134317A true CN115134317A (en) 2022-09-30
CN115134317B CN115134317B (en) 2023-08-22

Family

ID=83378755

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210648488.3A Active CN115134317B (en) 2022-06-09 2022-06-09 Message display method, device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN115134317B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115665079A (en) * 2022-10-31 2023-01-31 维沃移动通信有限公司 Message display method, message display device, electronic equipment and medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047658A (en) * 2006-03-31 2007-10-03 腾讯科技(深圳)有限公司 Method for amending transmitted message and immediate communication device
CN103617519A (en) * 2013-11-01 2014-03-05 优视科技有限公司 Communication information processing method, device and system
WO2017063443A1 (en) * 2015-10-13 2017-04-20 广东欧珀移动通信有限公司 Message display method and apparatus
CN107248948A (en) * 2017-05-27 2017-10-13 佛山语奥科技有限公司 Send message treatment method and system
CN107770045A (en) * 2017-09-29 2018-03-06 网易乐得科技有限公司 A kind of message editing method, apparatus and medium
US20180302352A1 (en) * 2017-04-14 2018-10-18 Wistron Corporation Instant messaging method and system, and electronic apparatus
CN109302341A (en) * 2018-10-30 2019-02-01 北京达佳互联信息技术有限公司 Instant communicating method, device, electronic equipment and storage medium
CN109309614A (en) * 2018-11-30 2019-02-05 努比亚技术有限公司 A kind of message modification method, mobile terminal, server and storage medium
CN110545236A (en) * 2019-09-04 2019-12-06 网易(杭州)网络有限公司 Instant messaging message modification method and device, storage medium and electronic equipment
US20190379622A1 (en) * 2018-06-06 2019-12-12 T-Mobile Usa, Inc. Systems and methods for editing, recalling, and deleting messages
CN110995919A (en) * 2019-11-08 2020-04-10 维沃移动通信有限公司 Message processing method and electronic equipment
CN111049981A (en) * 2019-12-03 2020-04-21 惠州Tcl移动通信有限公司 Message identification method, device, user equipment and computer readable storage medium
US20200259946A1 (en) * 2017-09-30 2020-08-13 Huawei Technologies Co., Ltd. Message Processing Method and Apparatus

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047658A (en) * 2006-03-31 2007-10-03 腾讯科技(深圳)有限公司 Method for amending transmitted message and immediate communication device
CN103617519A (en) * 2013-11-01 2014-03-05 优视科技有限公司 Communication information processing method, device and system
WO2017063443A1 (en) * 2015-10-13 2017-04-20 广东欧珀移动通信有限公司 Message display method and apparatus
US20180302352A1 (en) * 2017-04-14 2018-10-18 Wistron Corporation Instant messaging method and system, and electronic apparatus
CN107248948A (en) * 2017-05-27 2017-10-13 佛山语奥科技有限公司 Send message treatment method and system
CN107770045A (en) * 2017-09-29 2018-03-06 网易乐得科技有限公司 A kind of message editing method, apparatus and medium
US20200259946A1 (en) * 2017-09-30 2020-08-13 Huawei Technologies Co., Ltd. Message Processing Method and Apparatus
US20190379622A1 (en) * 2018-06-06 2019-12-12 T-Mobile Usa, Inc. Systems and methods for editing, recalling, and deleting messages
CN109302341A (en) * 2018-10-30 2019-02-01 北京达佳互联信息技术有限公司 Instant communicating method, device, electronic equipment and storage medium
CN109309614A (en) * 2018-11-30 2019-02-05 努比亚技术有限公司 A kind of message modification method, mobile terminal, server and storage medium
CN110545236A (en) * 2019-09-04 2019-12-06 网易(杭州)网络有限公司 Instant messaging message modification method and device, storage medium and electronic equipment
CN110995919A (en) * 2019-11-08 2020-04-10 维沃移动通信有限公司 Message processing method and electronic equipment
CN111049981A (en) * 2019-12-03 2020-04-21 惠州Tcl移动通信有限公司 Message identification method, device, user equipment and computer readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李杨;胡腾宇;彭召意;: "一种基于云服务的即时通讯软件的设计与实现", 软件, no. 08 *
陈娅;: "说出去的话等于泼出去的水?――试论微信中的消息撤回", 丝绸之路, no. 01 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115665079A (en) * 2022-10-31 2023-01-31 维沃移动通信有限公司 Message display method, message display device, electronic equipment and medium

Also Published As

Publication number Publication date
CN115134317B (en) 2023-08-22

Similar Documents

Publication Publication Date Title
US20160307351A1 (en) Interactive Method And Apparatus Based On Web Picture
CN107102786B (en) Information processing method and client
CN107357483A (en) Data sharing method and device, computer equipment and computer-readable recording medium
CN107122113A (en) Generate the method and device of picture
CN105335198A (en) Font addition method and device
WO2022063045A1 (en) Message display method and apparatus, and electronic device
CN111464430A (en) Dynamic expression display method, dynamic expression creation method and device
CN113467660A (en) Information sharing method and electronic equipment
CN115134317B (en) Message display method, device, storage medium and electronic device
WO2022068721A1 (en) Screen capture method and apparatus, and electronic device
WO2022068768A1 (en) Permission setting method and apparatus, file playback method and apparatus, and electronic device
CN114237481A (en) Handwriting display processing method, system, device, equipment and storage medium
WO2023284640A1 (en) Picture processing method and electronic device
WO2022228433A1 (en) Information processing method and apparatus, and electronic device
WO2022143337A1 (en) Display control method and apparatus, and electronic device and storage medium
CN113852540B (en) Information transmission method, information transmission device and electronic equipment
CN112558853B (en) Session message processing method and device, electronic device and storage medium
CN104423885A (en) Information processing device and control method
WO2020186816A1 (en) Highlighted display method for page element, device, apparatus, and storage medium
CN111626233A (en) Key point marking method, system, machine readable medium and equipment
CN111752428A (en) Icon arrangement method and device, electronic equipment and medium
CN106502515B (en) Picture input method and mobile terminal
WO2024113679A1 (en) Multimedia resource processing method and apparatus, and device
CN111427498A (en) Interface pushing method and device based on off-screen fingerprint
CN115113773B (en) Information processing method, information processing device, computer readable storage medium, and electronic 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