CN109302341B - Instant messaging method, instant messaging device, electronic equipment and storage medium - Google Patents
Instant messaging method, instant messaging device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN109302341B CN109302341B CN201811275950.XA CN201811275950A CN109302341B CN 109302341 B CN109302341 B CN 109302341B CN 201811275950 A CN201811275950 A CN 201811275950A CN 109302341 B CN109302341 B CN 109302341B
- Authority
- CN
- China
- Prior art keywords
- message
- instant messaging
- field
- terminal
- deduplication
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/07—User-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/18—Commands or executable codes
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application relates to an instant messaging method, an instant messaging device, an electronic device and a non-transitory computer readable storage medium. The instant messaging method comprises the following steps: receiving a first message, wherein the first message comprises a deduplication field; comparing the deduplication field of the first message with the deduplication field of a second message to be revoked; and displaying the text content of the latest received message corresponding to the duplication eliminating field according to the comparison result. The instant messaging client displays the text content of the latest received message corresponding to the same duplication eliminating field without deleting the locally stored message to be withdrawn, so that the user experience is improved.
Description
Technical Field
The application belongs to the field of computer software application, and particularly relates to an instant messaging method, an instant messaging device, electronic equipment and a storage medium.
Background
Instant Messaging (IM) refers to a service capable of sending and receiving internet information instantly, and includes communication tools such as email, short message, QQ, wechat, and the like. Through years of development, the basic functions of various communication tools tend to be stable at present, but competition among various manufacturers is far from ending, and research and development personnel put improvement points on user experience at present and improve the user experience through detail improvement so as to maintain the existing users and attract more users.
In the process, the inventor finds that one way of existing communication tools to withdraw messages is that an instant communication client of a sender terminal inputs a request to withdraw a message 1, then a server receives the request and sends a notification to the instant communication client of a receiver terminal to withdraw the message 1, the instant communication client of the receiver terminal deletes the message 1 stored locally by the receiver after receiving the notification to withdraw the message 1, and finally the server pushes a message 2 to the instant communication client of the receiver terminal, wherein the content is similar to that of 'a user withdraws a message'. However, in the process that the instant messaging client of the sender terminal requests the instant messaging client of the receiver terminal to withdraw the message 1, if the instant messaging client of the receiver terminal has received the message 1 sent by the instant messaging client of the sender terminal but the instant messaging client of the receiver terminal is in an offline state, the server cannot issue a notification of withdrawing the message 1 to the instant messaging client of the receiver terminal, and when the instant messaging client of the receiver terminal is online again, the message 1 cannot be deleted normally. This obviously causes a user to be confused, thereby degrading the user experience.
Another way for existing communication tools to withdraw messages is that the instant communication client of the sender terminal inputs a request to withdraw message 3, then the server receives and sends a message 4 containing an action to delete message 3 to the instant communication client of the receiver terminal, and after receiving message 4, the instant communication client of the receiver terminal deletes message 3 locally stored by the instant communication client of the receiver terminal and synchronously displays a message with content similar to that of "the user withdraws a message". If the server is in an off-line state when sending the message 4 to the instant messaging client of the receiver terminal, the message 4 is pulled back when the instant messaging client of the receiver terminal is on-line again, then the message 3 locally stored in the instant messaging client of the receiver terminal is deleted, and a message with similar content to 'the user withdraws a message' is synchronously displayed. The old version of instant messaging client does not support the message type containing the execution action, and the message cannot be withdrawn, thereby reducing the user experience.
Disclosure of Invention
To overcome the problems in the related art, the present application discloses an instant messaging method, which receives a first message, wherein the first message includes a deduplication field; comparing the deduplication field of the first message with the deduplication field of a message to be revoked; and displaying the text content of the latest received message corresponding to the duplication eliminating field according to the comparison result. The instant messaging client displays the text content of the latest received message corresponding to the same duplication eliminating field without deleting the locally stored message to be withdrawn, so that the user experience is improved.
According to an aspect of the present application, there is provided an instant messaging method, including:
receiving a first message, wherein the first message comprises a deduplication field;
comparing the deduplication field of the first message with the deduplication field of a second message to be revoked; and
and displaying the text content of the latest received message corresponding to the duplication removing field according to the comparison result.
Optionally, the displaying the text content of the latest received message corresponding to the duplication removal field according to the comparison result includes: concealing the text content of the second message according to the same deduplication field of the first message and the second message.
Optionally, the displaying the text content of the latest received message corresponding to the duplication removal field according to the comparison result further includes: and displaying the text content of the first message according to the same deduplication field of the first message and the second message.
Optionally, the deduplication field of the first message is the same as the deduplication field of the second message.
Optionally, if the received messages include the same deduplication field, displaying the text content of the latest received message corresponding to the deduplication field.
Optionally, the instant messaging method further includes: if the first message is in the off-line state, the first message is received again after the first message is on-line again;
comparing the deduplication field of the first message with the deduplication field of the second message to be revoked; and
and displaying the text content of the latest received message corresponding to the duplication removing field according to the comparison result.
Optionally, the text content of the first message prompts withdrawal of a message.
According to a second aspect of the present invention, there is provided an instant messaging method, comprising:
generating a message revocation request in response to user behavior on a second message to be revoked, wherein the second message includes a deduplication field;
sending the message revocation request.
Optionally, the instant messaging method further includes: receiving the back packet information which is returned by the server and requested to be successful by the message revocation request;
deleting the second message stored locally.
Optionally, the text content of the latest message including the same deduplication field is displayed according to the deduplication field.
According to a third aspect of the present invention, there is provided an instant messaging device comprising:
a first receiving unit, configured to receive a first message, where the first message includes a deduplication field;
a presentation unit for comparing the deduplication field of the first message with the deduplication field of a second message to be revoked; and displaying the text content of the latest received message corresponding to the duplication eliminating field according to the comparison result.
Optionally, the instant messaging device further includes:
a generating unit, configured to generate a message revocation request in response to a user behavior on a second message to be revoked, where the second message includes a deduplication field;
a first sending unit, configured to send the message revocation request.
Optionally, the instant messaging device further includes: the second receiving unit is used for receiving the packet returning information which is returned by the server and has the request success of the message revocation request; and deleting the second message stored locally.
Optionally, the first receiving unit is further configured to, if the first message is in an offline state, receive the first message again after the first message is online again;
the display unit is further configured to compare the duplication removal field of the first message with the duplication removal field of the second message to be withdrawn after the first message is online again if the display unit is in an offline state; and displaying the text content of the latest received message corresponding to the duplication eliminating field according to the comparison result.
According to a fourth aspect of the present invention, there is provided an electronic apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the instant messaging method described above.
According to a fifth aspect of the present invention, there is provided a non-transitory computer readable storage medium storing computer instructions which, when executed, implement the instant messaging method as described above.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
1) according to the comparison result of the duplication-removing field of the first message and the duplication-removing field of the second message to be withdrawn, the text content of the latest received message corresponding to the duplication-removing field is displayed, so that the text content of the latest received message corresponding to the same duplication-removing field is displayed by the instant messaging client, the locally stored message to be withdrawn does not need to be deleted, and the user experience is improved.
2) And after the instant messaging client in the offline state is online again, re-receiving the first message sent by the server, wherein the first message comprises a deduplication field. And then, comparing the duplication eliminating field of the first message with the duplication eliminating field of the second message to be withdrawn, and finally displaying the text content of the latest received message corresponding to the duplication eliminating field according to the comparison result, so that the text content of the latest received message corresponding to the same duplication eliminating field is displayed when the instant messaging client in the off-line state is on-line again, thereby realizing normal withdrawal of the message and improving the user experience.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
FIGS. 1a and 1b are a flow chart illustrating a method of instant messaging according to an exemplary embodiment;
FIG. 2 is a block diagram illustrating an instant messaging system in accordance with an exemplary embodiment;
FIG. 3 is a flow diagram illustrating an instant messaging method in accordance with an exemplary embodiment;
FIG. 4 is a block diagram of an instant messaging device, shown in accordance with an exemplary embodiment;
FIG. 5 is a block diagram illustrating an apparatus for performing an instant messaging method in accordance with an exemplary embodiment;
fig. 6 is a block diagram illustrating an apparatus for performing an instant messaging method in accordance with an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
Fig. 1a and 1b are flow diagrams illustrating an instant messaging method according to an exemplary embodiment.
This method is exemplified below as applied to an instant messaging system. The instant communication system comprises a plurality of terminals, wherein each terminal runs an instant communication client, and the terminals can communicate with a server through the Internet. Specifically, referring to fig. 2, fig. 2 is a schematic structural diagram of an instant messaging system according to an exemplary embodiment, where the instant messaging system includes a first terminal 210, a server 220, and a second terminal 230, the first terminal 210 is a terminal that sends a message, and the second terminal 230 is a terminal that receives a message, an embodiment of the instant messaging method shown in fig. 1a describes steps of sending a message, which is applied to the first terminal 210, and an embodiment of the instant messaging method shown in fig. 1b describes steps of receiving a message, which is applied to the second terminal 230. The instant messaging method of fig. 1a includes:
s111, responding to a user behavior on a second message to be revoked, and generating a message revocation request, wherein the second message comprises a deduplication field.
And S112, sending the message revocation request.
And S113, receiving the packet returning information which is returned by the server and has the request success of the message revocation request.
S114, deleting the second message stored locally.
In one embodiment of the present application, first, the first terminal 210 generates a message revocation request in response to a user action on a second message to be revoked, wherein the second message includes a deduplication field. Then, the first terminal 210 transmits the message revocation request to the server 220. Secondly, the first terminal 210 receives the response packet information of the message revocation request returned by the server. Finally, the first terminal 210 deletes the second message stored locally. In one embodiment, the first terminal 210 may display a contact list through its operating instant messaging client, the user selects a contact with which to communicate, and the first terminal 210 displays a "session interface" corresponding to the contact through its operating instant messaging client. The user of the instant messaging client of the first terminal 210 clicks and long-presses the second message on the "session interface", and when the option button for withdrawing messages appears on the "session interface", the option button is clicked, and a message withdrawal request is generated.
In an embodiment of the present application, the second message to be revoked sent by the first terminal 210 includes a deduplication field therein. When the second terminal 230 receives a plurality of messages including the same deduplication field in sequence, the second terminal 230 displays the text content of the latest received message corresponding to the deduplication field. The instant messaging client of the receiver terminal does not need to delete the locally stored message to be withdrawn, so that the time for executing the action of the deletion instruction by the instant messaging client of the receiver terminal is saved, and the user experience is improved.
The instant messaging method of fig. 1b includes:
s121, receiving a first message, wherein the first message comprises a deduplication field.
S122, comparing the deduplication field of the first message with the deduplication field of a second message to be revoked.
And S123, displaying the text content of the latest received message corresponding to the duplication eliminating field according to the comparison result.
In one embodiment of the present application, first, the second terminal 230 receives a first message sent by the server 220, wherein the first message includes a deduplication field. The second terminal 230 then compares the deduplication field of the first message with the deduplication field of the second message to be revoked. Finally, the second terminal 230 displays the text content of the latest received message corresponding to the duplication removal field according to the comparison result.
According to the embodiment of the present application, the second terminal 230 displays the text content of the latest received message corresponding to the deduplication field according to the comparison result of the deduplication field of the first message and the deduplication field of the second message to be revoked. The instant messaging client of the second terminal 230 displays the text content of the latest received message corresponding to the same deduplication field without deleting the locally stored message to be revoked, thereby improving the user experience.
Fig. 3 is a flow chart illustrating an instant messaging method in accordance with an exemplary embodiment. This method is exemplified below as applied to an instant messaging system. The instant communication system comprises a plurality of terminals, wherein each terminal runs an instant communication client, and the terminals can communicate with a server through the Internet. Specifically, referring to fig. 2, fig. 2 is a schematic structural diagram of an instant messaging system according to an exemplary embodiment, where the instant messaging system includes a first terminal 210, a server 220, and a second terminal 230, the first terminal 210 is a terminal that sends a message, and the second terminal 230 is a terminal that receives a message. The instant messaging method comprises the following basic steps:
s301, responding to a user behavior on a second message to be revoked, and generating a message revocation request, wherein the second message comprises a deduplication field.
S302, the message revocation request is sent.
And S303, receiving the packet returning information which is returned by the server and has the request success of the message revocation request.
S304, deleting the second message stored locally.
S305, receiving a first message, wherein the first message comprises a deduplication field.
S306, comparing the deduplication field of the first message with the deduplication field of a second message to be revoked.
S307, displaying the text content of the latest received message corresponding to the duplication eliminating field according to the comparison result.
In one embodiment of the present application, first, the first terminal 210 generates a message revocation request in response to a user action on a second message to be revoked, wherein the second message includes a deduplication field. Then, the first terminal 210 transmits the message revocation request to the server 220. Secondly, the first terminal 210 receives the response packet information of the message revocation request returned by the server. Again, the first terminal 210 deletes the second message stored locally. Again, server 220 deletes the second message stored locally. Again, the second terminal 230 receives the first message sent by the server 220, wherein the first message includes the deduplication field. Again, the second terminal 230 compares the deduplication field of the first message with the deduplication field of the second message to be revoked. Finally, the second terminal 230 displays the text content of the latest received message corresponding to the duplication removal field according to the comparison result. The displaying the text content of the latest received message corresponding to the duplication-removing field according to the comparison result comprises: concealing the text content of the second message according to the same deduplication field of the first message and the second message. The displaying the text content of the latest received message corresponding to the duplication-removing field according to the comparison result further includes: and displaying the text content of the first message according to the same deduplication field of the first message and the second message.
According to an embodiment of the application, the text content of the second message is hidden according to the same deduplication field of the first message and the second message to be revoked. Displaying text content of the first message according to the same deduplication field of the first message and the second message to be revoked. The instant messaging client of the receiver terminal does not need to delete the locally stored message to be withdrawn, so that the time for executing the action of the deletion instruction by the instant messaging client of the receiver terminal is saved, and the user experience is further improved.
In an optional embodiment of the present application, the instant messaging method further includes: if the first message is in the off-line state, the first message is received again after the first message is on-line again; comparing the deduplication field of the first message with the deduplication field of the second message to be revoked; and displaying the text content of the latest received message corresponding to the duplication eliminating field according to the comparison result. In one embodiment, first, the first terminal 210 generates a message revoke request in response to a user action on a second message to be revoked, wherein the second message includes a deduplication field. Then, the first terminal 210 transmits the message revocation request to the server 220. Secondly, the first terminal 210 receives the response packet information of the message revocation request returned by the server. Again, the first terminal 210 deletes the second message stored locally. Again, server 220 deletes the second message stored locally. If the server 220 sends the first message to the second terminal 230, the second terminal 230 is in an offline state. After the second terminal 230 comes back online, the second terminal 230 first re-receives the first message sent by the server 220, wherein the first message includes the deduplication field. The second terminal 230 then compares the deduplication field of the first message with the deduplication field of the second message to be revoked. Finally, the second terminal 230 displays the text content of the latest received message corresponding to the duplication removal field according to the comparison result. The displaying the text content of the latest received message corresponding to the duplication-removing field according to the comparison result comprises: concealing the text content of the second message according to the same deduplication field of the first message and the second message. The displaying the text content of the latest received message corresponding to the duplication-removing field according to the comparison result further includes: and displaying the text content of the first message according to the same deduplication field of the first message and the second message.
According to the embodiment of the present application, after the second terminal 230 in the offline state comes online again, the first message sent by the server 220 is received again, where the first message includes the deduplication field. The second terminal 230 then compares the deduplication field of the first message with the deduplication field of the second message to be revoked. Finally, the second terminal 230 displays the text content of the latest received message corresponding to the duplication removal field according to the comparison result. When the instant messaging client of the receiving terminal in the off-line state is on-line again, the text content of the latest received message corresponding to the same de-duplication field is displayed, so that the message can be normally withdrawn, and the user experience is improved.
In an alternative embodiment of the present application, the deduplication field of the first message is the same as the deduplication field of the second message.
In an optional embodiment of the present application, if a plurality of received messages include the same deduplication field, text content of the latest received message corresponding to the deduplication field is displayed.
In an alternative embodiment of the application, the text content of the first message prompts withdrawal of a message. In one embodiment, the text content of the first message is "user XXX withdrawn a message".
Fig. 4 is a block diagram of an instant messaging device, shown in accordance with an exemplary embodiment. The method comprises the following steps: a terminal 410, a server 420 and a terminal 430. Wherein, the terminal 410 includes: a generating unit 411, a first transmitting unit 412 and a second receiving unit 413. The terminal 430 includes: a first receiving unit 431 and a presentation unit 432.
A generating unit 411, configured to generate a message revocation request in response to a user behavior on a second message to be revoked, where the second message includes a deduplication field.
A first sending unit 412, configured to send the message revocation request.
A second receiving unit 413, configured to receive the packet returning information of the message revocation request returned by the server 420, where the request is successful; and deleting the second message stored locally.
A first receiving unit 431, configured to receive a first message, where the first message includes a deduplication field.
A presentation unit 432 for comparing the deduplication field of the first message with the deduplication field of a second message to be revoked; and displaying the text content of the latest received message corresponding to the duplication eliminating field according to the comparison result.
In an optional embodiment of the present application, the first receiving unit 431 is further configured to, if the first message is in an offline state, receive the first message again after the first message is on-line again;
the presentation unit 432 is further configured to compare the deduplication field of the first message with the deduplication field of the second message to be revoked after the first message is on-line again if the first message is in an off-line state; and displaying the text content of the latest received message corresponding to the duplication eliminating field according to the comparison result.
Fig. 5 is a block diagram illustrating an instant messaging device 1200 for use in the instant messaging method described above, according to an exemplary embodiment. For example, the interaction apparatus 1200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 5, apparatus 1200 may include one or more of the following components: a processing component 1202, a memory 1204, a power component 1206, a multimedia component 1208, an audio component 1210, an input/output (I/O) interface 1212, a sensor component 1214, and a communications component 1216.
The processing component 1202 generally controls overall operation of the apparatus 1200, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 1202 may include one or more processors 1220 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 1202 can include one or more modules that facilitate interaction between the processing component 1202 and other components. For example, the processing component 1202 can include a multimedia module to facilitate interaction between the multimedia component 1208 and the processing component 1202.
The memory 1204 is configured to store various types of data to support operation at the device 1200. Examples of such data include instructions for any application or method operating on the device 1200, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1204 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
A power supply component 1206 provides power to the various components of the device 1200. Power components 1206 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for apparatus 1200.
The multimedia components 1208 include a screen that provides an output interface between the device 1200 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1208 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 1200 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
Audio component 1210 is configured to output and/or input audio signals. For example, audio component 1210 includes a Microphone (MIC) configured to receive external audio signals when apparatus 1200 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 1204 or transmitted via the communication component 1216. In some embodiments, audio assembly 1210 further includes a speaker for outputting audio signals.
The I/O interface 1212 provides an interface between the processing component 1202 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, an enable button, and a lock button.
The sensor assembly 1214 includes one or more sensors for providing various aspects of state assessment for the apparatus 1200. For example, the sensor assembly 1214 may detect an open/closed state of the device 1200, the relative positioning of the components, such as a display and keypad of the apparatus 1200, the sensor assembly 1214 may also detect a change in the position of the apparatus 1200 or a component of the apparatus 1200, the presence or absence of user contact with the apparatus 1200, an orientation or acceleration/deceleration of the apparatus 1200, and a change in the temperature of the apparatus 1200. The sensor assembly 1214 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 1214 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1214 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communications component 1216 is configured to facilitate communications between the apparatus 1200 and other devices in a wired or wireless manner. The apparatus 1200 may access a wireless network based on a communication standard, such as WiFi, an operator network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 1216 receives the broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 1216 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 1200 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as memory 1204 comprising instructions, executable by processor 1220 of apparatus 1200 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Fig. 6 is a block diagram illustrating an instant messaging device 1400 for use in the instant messaging method described above, according to an exemplary embodiment. For example, the apparatus 1400 may be provided as a server. Referring to fig. 6, apparatus 1400 includes a processing component 1322, which further includes one or more processors, as well as memory resources, represented by memory 1332, for storing instructions, such as application programs, that may be executed by processing component 1322. The application programs stored in memory 1332 may include one or more modules that each correspond to a set of instructions. In addition, processing component 1322 is configured to execute instructions to perform the above-described information list display method.
The device 1400 may also include a power component 1326 configured to perform power management of the device 1400, a wired or wireless network interface 1350 configured to connect the device 1400 to a network, and an input-output (I/O) interface 1358. The device 1400 may operate based on an operating system stored in the memory 1332, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.
Claims (13)
1. An instant messaging method, comprising:
if the mobile terminal is in an online state, receiving a first message, and if the mobile terminal is in an offline state, receiving the first message after the mobile terminal is online, wherein the first message comprises a duplicate removal field;
comparing the deduplication field of the first message with the deduplication field of a second message to be revoked; and
displaying the text content of the latest received message corresponding to the duplication eliminating field according to the comparison result;
wherein the instant messaging method is applied to a second terminal, and the first message is sent by a server in response to a message revocation request; the message withdraw request is generated by the first terminal in response to a user action on a second message to be withdrawn, the second message comprising a deduplication field; and after receiving the packet returning information which is returned by the server and has the request success of the message revocation request, the first terminal deletes the second message which is locally stored.
2. The instant messaging method of claim 1, wherein the displaying the text content of the latest received message corresponding to the de-duplication field according to the comparison result comprises: concealing the text content of the second message according to the same deduplication field of the first message and the second message.
3. The instant messaging method of claim 2, wherein the displaying the text content of the latest received message corresponding to the de-duplication field according to the comparison result further comprises: and displaying the text content of the first message according to the same deduplication field of the first message and the second message.
4. The instant messaging method of claim 3, wherein the deduplication field of the first message is the same as the deduplication field of the second message.
5. The instant messaging method according to claim 4, wherein if the plurality of received messages include the same deduplication field, the text content of the latest received message corresponding to the deduplication field is displayed.
6. The instant messaging method of claim 5, wherein the text content of the first message is used to prompt the second terminal that the first terminal withdrawn the second message.
7. An instant messaging method, comprising:
generating a message revocation request in response to user behavior on a second message to be revoked, wherein the second message includes a deduplication field;
sending the message revocation request;
after receiving the packet returning information which is returned by the server and requested by the message revocation request successfully, deleting the second message which is stored locally;
the instant messaging method is applied to a first terminal, and a server sends a first message to a second terminal in response to the message revocation request, wherein the first message comprises a deduplication field; if the second terminal is in an online state, receiving a first message, and if the second terminal is in an offline state, receiving the first message after the second terminal is online; and the second terminal compares the duplication eliminating field of the first message with the duplication eliminating field of the second message and displays the text content of the latest received message corresponding to the duplication eliminating field according to the comparison result.
8. The instant messaging method of claim 7, wherein the text content of the latest message comprising the same deduplication field is presented according to the deduplication field.
9. An instant messaging device, comprising:
a first receiving unit, configured to receive a first message if the first receiving unit is in an online state, and receive the first message after the first receiving unit is online if the first receiving unit is in an offline state, where the first message includes a deduplication field;
a presentation unit for comparing the deduplication field of the first message with the deduplication field of a second message to be revoked; displaying the text content of the latest received message corresponding to the duplication eliminating field according to the comparison result;
wherein the first receiving unit and the presenting unit are applied to a second terminal, and the first message is sent by a server in response to a message revocation request; the message withdraw request is generated by the first terminal in response to a user action on the second message to be withdrawn, the second message comprising a deduplication field; and after receiving the packet returning information which is returned by the server and has the request success of the message revocation request, the first terminal deletes the second message which is locally stored.
10. The instant messaging device of claim 9, further comprising:
a generating unit, configured to generate the message revocation request in response to a user behavior on the second message to be revoked, where the second message includes a deduplication field;
a first transmitting unit for transmitting the message revocation request,
wherein the generating unit and the first transmitting unit are applied to the first terminal.
11. The instant messaging device of claim 10, further comprising: the second receiving unit is used for receiving the packet returning information which is returned by the server and has a successful request of the message revocation request; and deleting the second message stored locally,
wherein the second receiving unit is applied to the first terminal.
12. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the instant messaging method of any of the preceding claims 1-8.
13. A non-transitory computer-readable storage medium storing computer instructions which, when executed, implement the instant messaging method of any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811275950.XA CN109302341B (en) | 2018-10-30 | 2018-10-30 | Instant messaging method, instant messaging device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811275950.XA CN109302341B (en) | 2018-10-30 | 2018-10-30 | Instant messaging method, instant messaging device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109302341A CN109302341A (en) | 2019-02-01 |
CN109302341B true CN109302341B (en) | 2021-02-02 |
Family
ID=65145397
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811275950.XA Active CN109302341B (en) | 2018-10-30 | 2018-10-30 | Instant messaging method, instant messaging device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109302341B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110290050A (en) * | 2019-05-23 | 2019-09-27 | 北京达佳互联信息技术有限公司 | Message treatment method, device, electronic equipment and storage medium |
CN111641554B (en) * | 2020-06-02 | 2022-03-04 | Oppo广东移动通信有限公司 | Message processing method and device and computer readable storage medium |
CN115174507B (en) * | 2021-04-02 | 2023-10-27 | 北京字跳网络技术有限公司 | Instant messaging offline message processing method, client and server |
CN115134317B (en) * | 2022-06-09 | 2023-08-22 | 网易(杭州)网络有限公司 | Message display method, device, storage medium and electronic device |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1988511A (en) * | 2005-12-23 | 2007-06-27 | 腾讯科技(深圳)有限公司 | Method for withdrawing instant communication news and instant communication system |
CN102904880A (en) * | 2012-09-18 | 2013-01-30 | 金果创新(北京)科技有限公司 | Information filtering method, system and device in social networks |
CN104821978A (en) * | 2015-04-09 | 2015-08-05 | 北京羽乐创新科技有限公司 | Number identification display method and device thereof |
CN105260423A (en) * | 2015-09-28 | 2016-01-20 | 北京橙鑫数据科技有限公司 | Duplicate removal method and apparatus for electronic cards |
CN105659222A (en) * | 2013-11-27 | 2016-06-08 | 英特尔公司 | System and method for computing message digests |
US9443216B2 (en) * | 2009-06-19 | 2016-09-13 | Verizon Patent And Licensing Inc. | System and method for providing managed instant communication (or chat)-based helpdesk services |
CN106878152A (en) * | 2016-02-29 | 2017-06-20 | 艾威梯科技(北京)有限公司 | A kind of message cancelling method and module for instant messaging |
CN106921579A (en) * | 2015-12-28 | 2017-07-04 | 华为技术有限公司 | Communication means and device based on business function chain SFC |
CN108416006A (en) * | 2018-02-28 | 2018-08-17 | 百度在线网络技术(北京)有限公司 | Information off-line recommends method, apparatus, client, server and storage medium |
CN108519994A (en) * | 2018-03-04 | 2018-09-11 | 天津大学 | Distributed origin based on Pregel ensures canonical path query algorithm |
CN108924041A (en) * | 2018-08-03 | 2018-11-30 | 北京捷易迅信息技术有限公司 | A kind of message efficient reliable diffusion method in instant messaging |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10432677B2 (en) * | 2013-01-11 | 2019-10-01 | International Business Machines Corporation | Personalizing a social networking profile page |
-
2018
- 2018-10-30 CN CN201811275950.XA patent/CN109302341B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1988511A (en) * | 2005-12-23 | 2007-06-27 | 腾讯科技(深圳)有限公司 | Method for withdrawing instant communication news and instant communication system |
US9443216B2 (en) * | 2009-06-19 | 2016-09-13 | Verizon Patent And Licensing Inc. | System and method for providing managed instant communication (or chat)-based helpdesk services |
CN102904880A (en) * | 2012-09-18 | 2013-01-30 | 金果创新(北京)科技有限公司 | Information filtering method, system and device in social networks |
CN105659222A (en) * | 2013-11-27 | 2016-06-08 | 英特尔公司 | System and method for computing message digests |
CN104821978A (en) * | 2015-04-09 | 2015-08-05 | 北京羽乐创新科技有限公司 | Number identification display method and device thereof |
CN105260423A (en) * | 2015-09-28 | 2016-01-20 | 北京橙鑫数据科技有限公司 | Duplicate removal method and apparatus for electronic cards |
CN106921579A (en) * | 2015-12-28 | 2017-07-04 | 华为技术有限公司 | Communication means and device based on business function chain SFC |
CN106878152A (en) * | 2016-02-29 | 2017-06-20 | 艾威梯科技(北京)有限公司 | A kind of message cancelling method and module for instant messaging |
CN108416006A (en) * | 2018-02-28 | 2018-08-17 | 百度在线网络技术(北京)有限公司 | Information off-line recommends method, apparatus, client, server and storage medium |
CN108519994A (en) * | 2018-03-04 | 2018-09-11 | 天津大学 | Distributed origin based on Pregel ensures canonical path query algorithm |
CN108924041A (en) * | 2018-08-03 | 2018-11-30 | 北京捷易迅信息技术有限公司 | A kind of message efficient reliable diffusion method in instant messaging |
Also Published As
Publication number | Publication date |
---|---|
CN109302341A (en) | 2019-02-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10728196B2 (en) | Method and storage medium for voice communication | |
CN105843615B (en) | Notification message processing method and device | |
CN109302341B (en) | Instant messaging method, instant messaging device, electronic equipment and storage medium | |
EP3113466A1 (en) | Method and device for warning | |
CN109274510B (en) | Message processing method, device, client, server and storage medium | |
CN109521918B (en) | Information sharing method and device, electronic equipment and storage medium | |
CN106790043B (en) | Method and device for sending message in live broadcast application | |
CN108495168B (en) | Bullet screen information display method and device | |
US11176192B2 (en) | Method and apparatus for recalling image file, control method and apparatus for recalling image file, and mobile terminal | |
US10079787B2 (en) | Method and apparatus for creating group and exiting group | |
CN110636318A (en) | Message display method, message display device, client device, server and storage medium | |
CN109842543B (en) | Instant messaging method and device and instant messaging message storage method and device | |
CN105376318A (en) | File transmission method, device and system | |
CN105101121A (en) | Information transmitting method and device | |
CN110162366B (en) | Information display method and device, electronic equipment and storage medium | |
CN109787890B (en) | Instant messaging method, device and storage medium | |
CN109245992B (en) | Request processing method and device, electronic equipment and storage medium | |
CN107241432B (en) | Message receiving method and device, electronic equipment and computer storage medium | |
CN111211963A (en) | Chat group joining method and device, electronic equipment and storage medium | |
CN114025047B (en) | Message processing method, device, system, electronic equipment and storage medium | |
CN107172199B (en) | State updating method and device of mobile terminal | |
EP3001660B1 (en) | Method, device and system for telephone interaction | |
CN112217714B (en) | Method, device, server, client, terminal and storage medium for deleting information in two directions in instant communication session | |
CN112291581B (en) | Server, terminal equipment, information processing method and device | |
CN105607958B (en) | Information input method and 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 |