CN106789597B - Instant messaging message forwarding method and device and instant messaging message display method and device - Google Patents

Instant messaging message forwarding method and device and instant messaging message display method and device Download PDF

Info

Publication number
CN106789597B
CN106789597B CN201710035795.3A CN201710035795A CN106789597B CN 106789597 B CN106789597 B CN 106789597B CN 201710035795 A CN201710035795 A CN 201710035795A CN 106789597 B CN106789597 B CN 106789597B
Authority
CN
China
Prior art keywords
instant messaging
record
message
messaging message
history
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710035795.3A
Other languages
Chinese (zh)
Other versions
CN106789597A (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.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online Technology 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 Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN201710035795.3A priority Critical patent/CN106789597B/en
Publication of CN106789597A publication Critical patent/CN106789597A/en
Application granted granted Critical
Publication of CN106789597B publication Critical patent/CN106789597B/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/21Monitoring or handling of messages
    • H04L51/216Handling conversation history, e.g. grouping of messages in sessions or threads
    • 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/21Monitoring or handling of messages
    • H04L51/234Monitoring or handling of messages for tracking messages
    • 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/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides an instant communication message forwarding method and device and a display method and device, wherein the forwarding method comprises the following steps: firstly, receiving an instant messaging message sent by a first client; then, obtaining the history tracing record of the instant communication message; and finally, sending the history tracing record and the instant messaging message to the second client. According to the embodiment of the invention, the corresponding history tracing record is formed by counting the creation record, the modification record and the forwarding record of the instant messaging message, and the instant messaging message and the history tracing record are forwarded together, so that a user can accurately and clearly know all the history tracing records of the instant messaging message in the circulation process, and the traceability of the instant messaging message is improved.

Description

Instant messaging message forwarding method and device and instant messaging message display method and device
Technical Field
The invention relates to the technical field of instant messaging, in particular to an instant messaging message forwarding method and device and an instant messaging message display method and device.
Background
At present, because the sender carries out instant messaging with the receiver through instant messaging software, the instant messaging system has the advantages of low cost, convenience, reliability and strong real-time performance, the sender and the receiver can exchange and interact information through characters, voice, video and files, the time and the economic cost of the two parties for communication are effectively saved, the instant messaging system not only becomes a communication tool of people, but also becomes a platform for people to exchange the information such as electronic commerce, work, study and the like, the application of the instant messaging in daily life and work of people is more and more extensive, the convenience is brought to the exchange among people, the work of people becomes more efficient, the information transfer speed is greatly improved, and when the instant messaging is required to be carried out among multiple people, the instant messaging system can be realized through a group establishment mode.
Currently, related technologies provide an instant messaging message transfer method, which mainly includes: the sender of the instant communication message uploads the instant communication message to the instant communication server through the instant communication client, and the instant communication server forwards the instant communication message to the corresponding receiver according to the receiver identification carried in the instant communication request, so that instant communication, such as QQ chat, WeChat chat, nailed chat and the like, is realized between the sender and the receiver of the instant communication message.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the related art: the instant messaging message circulation method in the related art only forwards the instant messaging message, so that the problem of poor traceability exists in the circulation process of the instant messaging message.
Disclosure of Invention
In view of the above, an object of the embodiments of the present invention is to provide an instant messaging message forwarding method and apparatus, and a display method and apparatus, so that a user can accurately and clearly know all history tracing records of an instant messaging message in a circulation process, thereby improving traceability of the instant messaging message.
In a first aspect, an embodiment of the present invention provides an instant messaging message forwarding method, where the method includes:
receiving an instant messaging message sent by a first client; acquiring a history tracing record of the instant messaging message; and sending the history tracing record and the instant messaging message to a second client.
In a second aspect, an embodiment of the present invention further provides an instant messaging message display method, where the method includes:
receiving instant messaging messages forwarded by a server and history tracing records of the instant messaging messages; and displaying the instant messaging message and the history tracing record at an instant messaging client.
In a third aspect, an embodiment of the present invention further provides an instant messaging message forwarding apparatus, where the apparatus includes:
the message receiving module is used for receiving the instant messaging message sent by the first client;
the record acquisition module is used for acquiring the historical retrospective record of the instant messaging message;
and the message and record sending module is used for sending the history tracing record and the instant messaging message to a second client side.
In a fourth aspect, an embodiment of the present invention further provides an instant messaging message display apparatus, where the apparatus includes:
the message and record receiving module is used for receiving the instant messaging message forwarded by the server and the history tracing record of the instant messaging message;
and the message and record display module is used for displaying the instant messaging message and the history tracing record on an instant messaging client.
In a fifth aspect, an embodiment of the present invention further provides an instant messaging message flow system, where the system includes: an instant messaging server comprising the apparatus of the third aspect and a plurality of instant messaging clients comprising the apparatus of the fourth aspect.
In a sixth aspect, an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method according to the first aspect when executing the computer program.
In a seventh aspect, an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method according to the second aspect when executing the computer program.
In an eighth aspect, the embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program performs the steps of the method in the first aspect.
In a ninth aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps of the method in the second aspect.
The embodiment of the invention provides an instant communication message forwarding method and device and a display method and device, wherein the forwarding method comprises the following steps: firstly, receiving an instant messaging message sent by a first client; then, obtaining the history tracing record of the instant communication message; and finally, sending the history tracing record and the instant messaging message to the second client. According to the embodiment of the invention, the corresponding history tracing record is formed by counting the creation record, the modification record and the forwarding record of the instant messaging message, and the instant messaging message and the history tracing record are forwarded together, so that a user can accurately and clearly know all the history tracing records of the instant messaging message in the circulation process, and the traceability of the instant messaging message is improved.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic flowchart illustrating an instant messaging message forwarding method according to a first embodiment of the present invention;
FIG. 2 is a diagram illustrating an effect of a database having a directory tree structure according to a first embodiment of the present invention;
fig. 3 is a schematic structural diagram illustrating an instant messaging message forwarding apparatus according to a first embodiment of the present invention;
FIG. 4 is a block diagram of a computer device according to a first embodiment of the present invention;
fig. 5 is a flowchart illustrating an instant messaging message display method according to a second embodiment of the present invention;
fig. 6a is a schematic diagram illustrating the display effect of the history retroactive record before the control is triggered according to the second embodiment of the present invention;
FIG. 6b is a schematic diagram illustrating the display effect of the history retroactive record after the control is triggered according to the second embodiment of the present invention;
fig. 7 is a schematic structural diagram illustrating an instant messaging message display apparatus according to a second embodiment of the present invention;
FIG. 8 is a block diagram of a computer device according to a second embodiment of the present invention;
fig. 9 is a schematic structural diagram illustrating an instant messaging message flow system according to a third embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
The instant messaging message circulation method in the related art only forwards the instant messaging message, so that the problem of poor traceability exists in the circulation process of the instant messaging message. Based on this, embodiments of the present invention provide an instant messaging message forwarding method and apparatus, and a display method and apparatus, which are described below with reference to embodiments.
The first embodiment is as follows:
as shown in fig. 1, a first embodiment of the present invention provides an instant messaging message forwarding method, where an execution subject of the method is an instant messaging server, and the method includes steps S102 to S106, which are specifically as follows:
step S102: receiving an instant messaging message sent by a first client, wherein the first client is arranged at an originator side, and the instant messaging message comprises: at least one of a plain text message, an image-text file or an image file, wherein the image-text file can be an office file such as PPT, word, excel and the like;
specifically, considering that information between the client and the server is transmitted in a form of bit stream, after receiving the bit stream carrying the instant messaging message, the instant messaging server decodes the bit stream to obtain at least one of a plain text message, an image file or an image file;
step S104: obtaining a history tracing record of the instant messaging message, wherein the history tracing record comprises: one or more of creating a record, modifying a record or forwarding a record of the instant messaging message;
step S106: and sending the history tracing record and the instant messaging message to a second client side, wherein the second client side is arranged at the receiver side.
Specifically, each instant messaging message corresponds to a history tracing record, which may be a word document, where the word document records at least one of a creation record, a modification record, a forwarding record, and message contents of a history version corresponding to the instant messaging message, at least one record exists in the history tracing record, and each record may include an operator type (including a creator, a modifier, and a forwarder), an operator name (including a creator name, a modifier name, and a forwarder name), a sending date, a sending time, specific details, and the like;
for example, creating a record may be: the creator Zhang 201611128: 30 creates an instant messaging message in the form of a teletext with the name XXX;
the modification record may be: modifier lie 2016112814: 20 replaces part of the file content XX with YY, adds YY after XX, deletes XX (i.e. has the modified content recorded in the specific details of the modified record);
the forwarding record may be: the forwarder Wang Wu 201612029: 50 forwards the instant messaging message with the name XXX in the form of an image-text file to a certain group;
in the embodiment provided by the invention, the corresponding history tracing record is formed by counting the creation record, the modification record and the forwarding record of the instant messaging message, each operation record of a certain instant messaging message is added into the history tracing record of the instant messaging message, the history tracing record of the instant messaging message is continuously updated, and then the instant messaging message and the history tracing record are forwarded to the corresponding instant messaging client side together, so that all users receiving the instant messaging message can accurately and clearly know each operation record of the instant messaging message in the circulation process, thereby improving the traceability of the instant messaging message and facilitating the users to trace the creation record, the modification record and the forwarding record of the instant messaging message in the circulation process.
Further, consider that if there is a regular communication between the first client (i.e., the sender) and the second client (i.e., the receiver), e.g., the instant messaging message is "do you ok? "," is there? And on the basis of the fact that the information processing amount of the server is reduced without recording history tracing records of the common phrases, if the instant messaging message is a plain text message, after the instant messaging message sent by the first client is received, the method further comprises the following steps:
determining whether the word number of the instant messaging message exceeds a first threshold;
if the number of words of the instant messaging message exceeds the first threshold, continuing to execute step S104;
and if the word number of the instant messaging message does not exceed the first threshold, stopping executing the step S104 and the step 106, and directly sending the instant messaging message to the second client.
Although the determination of whether the instant messaging message belongs to the commonly used phrases is the determination of the number of words, the present invention is not limited thereto, and the instant messaging message may also be collected and sorted in advance, stored in the server, and compared with the commonly used phrases library to determine whether the instant messaging message belongs to the commonly used phrases.
Further, it is considered that for receiving an instant messenger message, the instant messenger message is divided into two types: one is instant messaging information which is created for the first time, the other is instant messaging information which is not created for the first time, if the instant messaging information is not created for the first time, the corresponding history traceability record exists in the database, correspondingly, if the instant messaging information is created for the first time, the corresponding history traceability record does not exist in the database, and based on the history traceability record of the instant messaging information, the history traceability record of the instant messaging information is obtained, which comprises the following steps:
determining whether a historical retroactive record of the instant messaging message exists in a database, wherein the determination result comprises the following two conditions:
one situation is: if the historical retroactive record corresponding to the instant communication message does not exist in the database, determining that the instant communication message is established for the first time, and generating the historical retroactive record of the instant communication message;
that is, it is described that the sender corresponding to the first client is the creator of the instant messaging message, and at this time, a new history trace record needs to be created for the instant messaging message, specifically: and generating a history tracing record of the instant communication message according to the sender, the sending time and the message content of the instant communication message.
Specifically, for each instant messaging message created for the first time, when the instant messaging message is received, a history tracing record is created for the instant messaging message, and the created record is added to the history tracing record corresponding to the instant messaging message; meanwhile, the message content of the instant messaging message is added into the corresponding history tracing record as the message content of the latest history version, and then the history tracing record is stored into the corresponding database; forwarding the instant messaging message and the created history tracing record to an instant messaging client used by a receiver;
the other situation is that: if the historical retroactive record corresponding to the instant communication message exists in the database, determining that the instant communication message is not established for the first time, and updating the historical retroactive record of the instant communication message;
that is, it is described that the sender corresponding to the first client is a non-creator (e.g., a modifier or a forwarder) of the instant messaging message, and at this time, the history trace-back record of the instant messaging message needs to be searched from the database, and then the history trace-back record is updated;
specifically, for each instant messaging message which is not created for the first time, when the instant messaging message is received, a history trace-back record of the instant messaging message stored in a database needs to be found, and a currently determined forwarding record or modification record is added to a corresponding history trace-back record so as to update the history trace-back record corresponding to the instant messaging message; then, the updated history tracing record is stored in a corresponding database as the history tracing record corresponding to the instant messaging message; and forwarding the instant messaging message and the updated history tracing record to an instant messaging client used by the receiver.
Further, considering that if the history trace-back record of the instant messaging message is searched in the database according to the message content or the name of the instant messaging message, the problems of low searching efficiency, long searching time consumption and low query accuracy exist, which results in a large information processing amount of the instant messaging server, based on this, after the history trace-back record of the instant messaging message is generated, the method further includes: marking a unique identification code for both the instant messaging message and the history tracing record, wherein the unique identification code is kept unchanged in the circulation process of the instant messaging message;
that is to say, for each instant messaging message created for the first time, a unique identification code needs to be marked for the instant messaging message and the history tracing record corresponding to the instant messaging message, so that whether the history tracing record of the received instant messaging message exists in the database can be quickly and accurately determined according to the unique identification code in the follow-up process, and meanwhile, the history tracing record of the instant messaging message can be quickly and accurately found;
in the embodiment of the present invention, preferably, the same unique identification codes are marked for the instant messaging message and the history record, and at this time, the history retroactive record of the instant messaging message, that is, the retroactive record, is directly retrieved from the database according to the unique identification code of the instant messaging message And the efficiency of calling the historical retroactive records is improved.
Specifically, marking unique identification codes for both the instant messaging message and the history tracing record specifically includes:
naming the history tracing record according to the unique identification code corresponding to the history tracing record, wherein the specific naming mode is convenient for finding the history tracing record according to the unique identification code in the following;
if the instant messaging message is an image-text file or an image file, embedding a unique identification code at a preset position of the instant messaging message, wherein the unique identification code can be a one-dimensional code or a two-dimensional code;
in addition, in order to ensure that the unique identification code of the instant messaging message remains unchanged in the circulation process, the instant messaging message needs to be packaged and encapsulated by using the same message packet head in the circulation process of a certain instant messaging message.
In order to facilitate the subsequent instant messaging message receiving and then quickly identifying whether the unique identification code exists in the instant messaging message, the preset position of the unique identification code embedded in the instant messaging message is a fixed position.
Further, considering that the instant messaging message and the corresponding history trace-back record are marked simultaneously, it can be determined whether the instant messaging message has a corresponding history trace-back record by determining whether the instant messaging message has a unique identification code, and based on this, determining whether the history trace-back record of the instant messaging message exists in the database includes:
determining whether the instant messaging message has the unique identification code;
if the instant communication message has no unique identification code, determining that the historical retroactive record of the instant communication message does not exist in the database;
and if the instant communication message has the unique identification code, determining that the historical retroactive record of the instant communication message exists in the database.
In the embodiment provided by the invention, the mode of marking the unique identification codes for the instant messaging message and the history tracing record is adopted, so that whether the history tracing record of the received instant messaging message exists in the database or not can be conveniently and quickly and accurately determined in the follow-up process, the transfer time of the instant messaging server to the instant messaging message is greatly reduced, the information processing amount of the instant messaging server is reduced, and the efficiency and the accuracy of creating and updating the history tracing record of the instant messaging message are greatly improved.
Wherein, the history tracing record updating specifically includes:
determining whether the instant messaging message is modified according to the message content of the instant messaging message and a history tracing record corresponding to the instant messaging message;
if the instant communication message is modified, determining the modified content of the instant communication message at the current time, and generating a corresponding flow record, wherein the flow record comprises a modified record or a modified record and a forwarding record;
if the instant communication message is not modified, generating a corresponding circulation record, wherein the circulation record comprises a forwarding record;
and updating the history tracing record according to the flow record.
Further, considering that the history trace-back record of the instant messaging message can be quickly and accurately searched according to the unique identifier of the instant messaging message, and whether the instant messaging message is modified is further determined, based on this, determining whether the instant messaging message is modified according to the message content of the instant messaging message and the history trace-back record specifically includes:
calling a history tracing record of the instant messaging message from the database according to the unique identification code of the instant messaging message, wherein the history tracing record also comprises the message content of the history version of the instant messaging message;
and comparing the message content of the instant messaging message with the message content of the latest historical version, determining whether the instant messaging message is modified, if the message content of the instant messaging message is consistent with the message content of the latest historical version, determining that the instant messaging message is not modified, and if the message content of the instant messaging message is not consistent with the message content of the latest historical version, determining that the instant messaging message is modified.
Considering that there may be multiple history versions for each instant messaging message, in order to reduce the memory space occupied by the word document and facilitate to quickly find the message content of the latest history version subsequently, the message content of the history version in the history trace-back record may only include the message content of the latest history version of the instant messaging message, and based on this, after the history trace-back record is updated according to the flow record, the method further includes: taking the message content of the instant messaging message received currently as the message content of the latest historical version of the instant messaging message;
in the embodiment provided by the invention, by adopting a mode of marking the unique identification codes for both the instant messaging message and the history tracing record, the history tracing record corresponding to the instant messaging message can be quickly and accurately searched, the time consumed by the instant messaging server for transferring the instant messaging message is greatly reduced, the information processing amount of the instant messaging server is reduced, and the efficiency and the accuracy for creating and updating the history tracing record of the instant messaging message are greatly improved.
Specifically, considering that the unique identification codes of the instant messaging message and the history tracing record corresponding to the instant messaging message may be the same or different, based on this, the history tracing record of the instant messaging message is called from the database according to the unique identification code of the instant messaging message, which specifically includes two cases:
(1) if the unique identification code of the instant messaging message is the same as the unique identification code of the historical retroactive record corresponding to the instant messaging message, directly calling the historical retroactive record with the unique identification code from a database according to the unique identification code of the instant messaging message;
(2) if the uniqueness identification codes of the instant messaging message and the historical retroactive record corresponding to the instant messaging message are different, determining a record uniqueness identification code corresponding to the historical retroactive record corresponding to the instant messaging message according to the message uniqueness identification code of the instant messaging message, wherein the mapping relation between the message uniqueness identification code and the record uniqueness identification code is stored in advance;
calling a historical retroactive record with the record unique identification code in a database according to the record unique identification code;
in the embodiment provided by the invention, preferably, the same unique identification code is marked for both the instant messaging message and the history tracing record, namely, the message unique identification code is the same as the record unique identification code, and at this time, the history tracing record with the unique identification code is called in the database directly according to the unique identification code of the instant messaging message, so that the efficiency of calling the history tracing record is improved, and the information processing amount of the server is reduced.
The determining of the modified content of the instant messaging message and the generating of the corresponding flow record specifically include: comparing the message content in the instant messaging message with the message content of the latest historical version corresponding to the message content, and determining the modified content of the instant messaging message according to the comparison result; and generating a modification record by taking the modification content as specific details, wherein the modification content can be obtained by replacing XX with YY, adding YY after XX, deleting XX, and recording the modification content as the specific details of the modification record in the circulation process into the history tracing record corresponding to the instant messaging message so as to update the history tracing record corresponding to the instant messaging message.
Further, considering that although there is no history trace record of the instant messaging message in the database, the instant messaging message may not be created for the first time, but is uploaded to the network by someone else who sends the instant messaging message directly, and there is a phenomenon of theft or infringement, based on which, if there is no history trace record of the instant messaging message in the database, it is determined that the instant messaging message is created for the first time, and a history trace record of the instant messaging message is generated, including:
if the historical retroactive record of the instant messaging message does not exist in the database, respectively determining the similarity between the instant messaging message and a plurality of network information prestored in a network resource library;
if the similarity between the instant messaging message and each piece of network information is smaller than a second threshold value, taking the creating record of the instant messaging message as the history tracing record; at this time, it is indicated that the instant messaging message is not from the network resource library, the instant messaging message is created for the first time, and since the history trace-back record of the instant messaging message does not exist in the database, a new history trace-back record needs to be generated for the instant messaging message, and the creation record of the instant messaging message is added to the history trace-back record;
if the similarity between the instant messaging message and any one of the network information is not smaller than a second threshold, taking the creation record of the network information with the similarity between the instant messaging message and the instant messaging message larger than or equal to the second threshold as the history tracing record; at this time, it is explained that the instant messaging message is from a network resource library, the instant messaging message is not created for the first time, although the instant messaging message is not created for the first time, a history trace record of the instant messaging message does not exist in a database, a new history trace record needs to be generated for the instant messaging message, and the creation record of the network information is added to the history trace record, wherein the creation record of the network information is a creator, creation time, brief introduction and the like of the network information obtained from the network resource library.
Considering that the instant messaging message may not be directly a duplicated version of the network information, and there may be a certain difference between the instant messaging message and the network information, based on this, taking the creation record of the network information as the history tracing record includes:
acquiring a creation record of network information with the similarity of the instant messaging message larger than or equal to a second threshold;
determining whether there is a difference between the instant messaging message and the network information;
if the difference exists between the instant messaging message and the network information, determining the content of the difference between the instant messaging message and the network information, and generating a corresponding circulation record, wherein the circulation record comprises a modification record and a forwarding record;
if the instant communication message and the network information do not have difference, generating a corresponding circulation record, wherein the circulation record comprises a forwarding record;
and taking the created record of the acquired network information and the generated flow record as the history tracing record of the instant messaging message.
In the embodiment provided by the invention, after the historical retroactive record of the instant messaging message does not exist in the database, the instant messaging message is compared with the network information in the network resource library, when the similarity with any one network information is greater than a preset threshold value, the instant messaging message is determined to be not established for the first time, the network information is used as the last historical version of the instant messaging message, the difference content between the two is compared, and the historical retroactive record of the instant messaging message is generated, so that the phenomenon that a sender steals a picture or infringes the picture from the network can be effectively avoided and identified.
Further, considering that the sender may need to specify an instant messaging message and add corresponding remark information, before sending the history trace-back record and the instant messaging message to the second client, the method further includes: receiving remark information which is sent by the first client and added to the instant messaging message;
and adding the remark information into the history tracing record of the instant messaging message.
Further, in order to further improve the efficiency of searching the historical trace-back records in a plurality of files according to the unique identification codes, based on this, the method further comprises:
a database with a directory tree structure is constructed in advance, and a plurality of historical retroactive records are stored in the database.
Specifically, constructing a database with a directory tree structure for the history tracing record of each instant messaging message according to the unique identification code specifically comprises:
the unique identification code of the history tracing record is subjected to bit-by-bit segmentation processing, for example, the unique identification code is processed according to the 1 st bit/2 nd bit/3 rd bit. . . . . . . Mode segmentation;
creating a database with a multilevel directory according to the bit number of the segmented unique identification code;
and storing the history tracing record to a corresponding hierarchy in a database with a multilevel directory structure according to the segmented unique identification code.
Taking a database storing history tracing records as an example, as shown in fig. 2, taking an example that each unique identification code has a 5-bit number, the unique identification code is divided into "1 st/2 nd/3 rd/4 th/5 th/", and a history tracing record corresponding to the unique identification code of 1/2/3/4/5/is shown in fig. 2. Similarly, in the subsequent history tracing record searching process, the step-by-step screening is carried out according to the 1 st bit/2 nd bit/3 rd bit/4 th bit/5 th bit/mode, in the embodiment provided by the invention, the mode of adopting the hierarchical directory tree is mainly characterized in that the query data size range is narrowed to be 1/N every time a branch directory is selected, and the classification of the unique identification code according to the directory is to quickly narrow the range, namely to quickly filter out the non-conforming results.
In the embodiment provided by the invention, a large amount of history tracing records are classified and stored by using the directory tree, and the history tracing records are stored by adopting a hierarchical directory mode, so that the number of files under each directory can be greatly reduced, and the query data range is reduced by multiple when one branch directory is locked, so that the files irrelevant to the record to be queried are quickly filtered, and the searching efficiency of searching the history tracing records of the instant messaging message according to the unique identification code in a plurality of files is further improved.
In the instant messaging message forwarding method provided by the embodiment of the invention, the corresponding history tracing record is formed by counting the creation record, the modification record and the forwarding record of the instant messaging message, each operation record of a certain instant messaging message is added into the history tracing record of the instant messaging message, the history tracing record of the instant messaging message is continuously updated, then, the instant communication message and the history tracing record are forwarded to the corresponding instant communication client, therefore, all users receiving the instant communication message can accurately and clearly know the operation record of each time in the circulation process of the instant communication message, thereby improving the traceability of the instant communication message and facilitating the user to trace the creation record, the modification record and the forwarding record of the instant communication message in the circulation process; furthermore, a mode of marking unique identification codes for both the instant messaging message and the history tracing record is adopted, so that whether the history tracing record of the received instant messaging message exists in the database or not can be conveniently and quickly and accurately determined subsequently, meanwhile, the history tracing record of the instant messaging message can be quickly and accurately found, the transfer time of the instant messaging message by the instant messaging server is greatly reduced, the information processing amount of the instant messaging server is reduced, and the efficiency and the accuracy of creating and updating the history tracing record of the instant messaging message are greatly improved; furthermore, after the history tracing record of the instant messaging message does not exist in the database, the instant messaging message is compared with the network information in the network resource library, when the similarity of the instant messaging message and any one network information is larger than a preset threshold value, the instant messaging message is determined to be not established for the first time, the network information is used as the last history version of the instant messaging message, the difference content between the two is compared, and the history tracing record of the instant messaging message is generated, so that the phenomenon that a sender steals pictures or infringes from the network can be effectively avoided and identified.
Corresponding to the method in fig. 1, as shown in fig. 3, a first embodiment of the present invention further provides an instant messaging message forwarding apparatus, which is disposed in an instant messaging server, and includes:
a message receiving module 302, configured to receive an instant messaging message sent by a first client, where the first client is disposed at an originator side, and the instant messaging message includes: at least one of a plain text message, an image-text file or an image file, wherein the image-text file can be an office file such as PPT, word, excel and the like;
a record obtaining module 304, configured to obtain a history trace-back record of the instant messaging message, where the history trace-back record includes: one or more of creating a record, modifying a record or forwarding a record of the instant messaging message;
the message and record sending module 306 is configured to send the history trace record and the instant messaging message to a second client, where the second client is disposed at the recipient side.
In the embodiment provided by the invention, the corresponding history tracing record is formed by counting the creation record, the modification record and the forwarding record of the instant messaging message, each operation record of a certain instant messaging message is added into the history tracing record of the instant messaging message, the history tracing record of the instant messaging message is continuously updated, and then the instant messaging message and the history tracing record are forwarded to the corresponding instant messaging client side together, so that all users receiving the instant messaging message can accurately and clearly know each operation record of the instant messaging message in the circulation process, thereby improving the traceability of the instant messaging message and facilitating the users to trace the creation record, the modification record and the forwarding record of the instant messaging message in the circulation process.
Further, consider that if there is a regular communication between the first client (i.e., the sender) and the second client (i.e., the receiver), e.g., the instant messaging message is "do you ok? "," is there? And if the instant messaging message is a plain text message, the device further comprises:
the word number judging module is used for determining whether the word number of the instant messaging message exceeds a first threshold value; if the number of words of the instant messaging message exceeds the first threshold, continuing to execute step S104; and if the word number of the instant messaging message does not exceed the first threshold, stopping executing the step S104 and the step 106, and directly sending the instant messaging message to the second client.
Further, it is considered that for receiving an instant messenger message, the instant messenger message is divided into two types: one is an instant messaging message created for the first time, and the other is an instant messaging message not created for the first time, if the instant messaging message is not created for the first time, the corresponding history traceability record already exists in the database, and correspondingly, if the instant messaging message is created for the first time, the corresponding history traceability record does not exist in the database, based on which the record obtaining module 304 includes:
a record judging submodule for determining whether the history retroactive record of the instant communication message exists in the database;
a first record obtaining sub-module, configured to determine that the instant messaging message is created for the first time if a history trace-back record corresponding to the instant messaging message does not exist in the database, and generate a history trace-back record of the instant messaging message;
and the second record obtaining sub-module is used for determining that the instant messaging message is not created for the first time and updating the history retroactive record of the instant messaging message if the history retroactive record corresponding to the instant messaging message exists in the database.
Further, considering that if the history trace record of the instant messaging message is searched in the database according to the message content or the name of the instant messaging message, the problems of low searching efficiency, long searching time consumption and low searching accuracy exist, which results in a large information processing amount of the instant messaging server, based on this, the apparatus further comprises:
and the identification code marking module is used for marking a unique identification code for both the instant messaging message and the history tracing record, and the unique identification code is kept unchanged in the circulation process of the instant messaging message.
Furthermore, considering that the instant messaging message and the corresponding history tracing record are marked simultaneously, whether the instant messaging message has the corresponding history tracing record can be judged by determining whether the instant messaging message has the unique identification code, and based on the fact that the record judgment submodule is specifically used for determining whether the instant messaging message has the unique identification code; if the instant communication message has no unique identification code, determining that the historical retroactive record of the instant communication message does not exist in the database; and if the instant communication message has the unique identification code, determining that the historical retroactive record of the instant communication message exists in the database.
In the embodiment provided by the invention, the mode of marking the unique identification codes for the instant messaging message and the history tracing record is adopted, so that whether the history tracing record of the received instant messaging message exists in the database or not can be conveniently and quickly and accurately determined in the follow-up process, the transfer time of the instant messaging server to the instant messaging message is greatly reduced, the information processing amount of the instant messaging server is reduced, and the efficiency and the accuracy of creating and updating the history tracing record of the instant messaging message are greatly improved.
The second record obtaining sub-module is specifically configured to determine whether the instant messaging message is modified according to the message content of the instant messaging message and a history trace-back record corresponding to the instant messaging message; if the instant communication message is modified, determining the modified content of the instant communication message at the current time, and generating a corresponding flow record, wherein the flow record comprises a modified record or a modified record and a forwarding record; if the instant communication message is not modified, generating a corresponding circulation record, wherein the circulation record comprises a forwarding record; and updating the history tracing record according to the flow record.
Further, considering that the history trace-back record of the instant messaging message can be quickly and accurately searched according to the unique identification code of the instant messaging message, and then whether the instant messaging message is modified is determined, based on this, the second record obtaining sub-module is further specifically configured to retrieve the history trace-back record of the instant messaging message in the database according to the unique identification code of the instant messaging message, where the history trace-back record further includes the message content of the history version of the instant messaging message; and comparing the message content of the instant messaging message with the message content of the latest historical version to determine whether the instant messaging message is modified.
In the embodiment provided by the invention, by adopting a mode of marking the unique identification codes for both the instant messaging message and the history tracing record, the history tracing record corresponding to the instant messaging message can be quickly and accurately searched, the time consumed by the instant messaging server for transferring the instant messaging message is greatly reduced, the information processing amount of the instant messaging server is reduced, and the efficiency and the accuracy for creating and updating the history tracing record of the instant messaging message are greatly improved.
Further, considering that although there is no history trace-back record of the instant messaging message in the database, the instant messaging message may not be created for the first time, but is directly sent to the network by another person, and there is a phenomenon of stealing a picture or infringement, based on this, the first record obtaining sub-module is specifically configured to determine the similarity between the instant messaging message and a plurality of pieces of network information prestored in the network resource library, respectively, if there is no history trace-back record of the instant messaging message in the database; if the similarity between the instant messaging message and each piece of network information is smaller than a second threshold value, storing the creating record of the instant messaging message as the history tracing record; and if the similarity between the instant messaging message and any one of the network information is not less than a second threshold value, saving the created record of the network information as the history tracing record.
In the embodiment provided by the invention, after the historical retroactive record of the instant messaging message does not exist in the database, the instant messaging message is compared with the network information in the network resource library, when the similarity with any one network information is greater than a preset threshold value, the instant messaging message is determined to be not established for the first time, the network information is used as the last historical version of the instant messaging message, the difference content between the two is compared, and the historical retroactive record of the instant messaging message is generated, so that the phenomenon that a sender steals a picture or infringes the picture from the network can be effectively avoided and identified.
Further, considering that the sender may need to specify an instant messaging message, and add corresponding remark information, the apparatus further includes: a remark information receiving module, configured to receive remark information added to the instant messaging message and sent by the first client;
and the remark information adding module is used for adding the remark information into the history tracing record of the instant messaging message.
Further, in order to further improve the efficiency of searching the latest historical version and the historical retroactive record of the instant messaging message in a plurality of files according to the unique identification code, the device further comprises:
and the database construction module is used for constructing a database with a directory tree structure in advance, and a plurality of historical retroactive records are stored in the database.
In the embodiment provided by the invention, a large amount of history tracing records are classified and stored by using the directory tree, and the history tracing records are stored by adopting a hierarchical directory mode, so that the number of files under each directory can be greatly reduced, and the query data range is reduced by multiple when one branch directory is locked, so that the files irrelevant to the record to be queried are quickly filtered, and the searching efficiency of searching the history tracing records of the instant messaging message according to the unique identification code in a plurality of files is further improved.
In the instant messaging message forwarding device provided by the embodiment of the invention, the corresponding history tracing record is formed by counting the creating record, the modifying record and the forwarding record of the instant messaging message, each operation record of a certain instant messaging message is added into the history tracing record of the instant messaging message, the history tracing record of the instant messaging message is continuously updated, then, the instant communication message and the history tracing record are forwarded to the corresponding instant communication client, therefore, all users receiving the instant communication message can accurately and clearly know the operation record of each time in the circulation process of the instant communication message, therefore, the traceability of the instant messaging message is improved, and the user can conveniently trace the creating record, the modifying record and the forwarding record of the instant messaging message in the circulation process.
Corresponding to the method in fig. 1, as shown in fig. 4, the first embodiment of the present invention further provides a computer device, which includes a memory 1000 and a processor 2000, where the memory 1000 stores a computer program operable on the processor 2000, and when the processor 2000 executes the computer program, the instant messaging message forwarding method described above is performed.
Specifically, the memory 1000 and the processor 2000 can be general memories and processors, which are not specifically limited herein, and when the processor 2000 runs a computer program stored in the memory 1000, the instant messaging message forwarding method can be executed, so as to solve the problem that the instant messaging message forwarding method in the related art only forwards an instant messaging message, which results in poor traceability in the process of forwarding the instant messaging message, thereby improving traceability of the instant messaging message, and facilitating a user to trace creation records, modification records and forwarding records of the instant messaging message in the process of forwarding the instant messaging message.
Corresponding to the method in fig. 1, the first embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program performs the instant messaging message forwarding method described above.
Specifically, the storage medium can be a general storage medium, such as a mobile disk, a hard disk, and the like, and when a computer program on the storage medium is run, the instant messaging message forwarding method can be executed, so that the problem that the instant messaging message forwarding method in the related art only forwards the instant messaging message, which causes poor traceability in the process of forwarding the instant messaging message is solved, traceability of the instant messaging message is further improved, and a user can conveniently trace creation records, modification records, and forwarding records of the instant messaging message in the process of forwarding the instant messaging message.
Example two:
as shown in fig. 5, a second embodiment of the present invention provides an instant messaging message display method, where an execution subject of the method is an instant messaging client, and the instant messaging client includes: a first client used by an originator and a second client used by a recipient, the method comprising steps S502-S504 as follows:
step S502: receiving an instant messaging message forwarded by a server and a history tracing record of the instant messaging message, wherein the instant messaging message comprises: at least one of a plain text message, an image-text file or an image file, wherein the image-text file can be an office file such as PPT, word, excel and the like;
specifically, the information between the client and the server is also considered to be transmitted in a form of bit stream, and the instant messaging client decodes the bit stream carrying the instant messaging message and the history tracing record after receiving the bit stream to obtain the instant messaging message containing at least one of a plain text message, an image file or an image file and the history tracing record of the instant messaging message;
step S504: and displaying the instant messaging message and the history tracing record at the instant messaging client, wherein the history tracing record is determined according to the step of obtaining the history tracing record in the instant messaging message forwarding method of the embodiment.
After receiving an instant messaging message sent by an instant messaging server and a history retroactive record corresponding to the instant messaging message, displaying the instant messaging message and the history retroactive record in a chat window of an instant messaging client, wherein the display modes are divided into two modes, namely synchronous display, namely simultaneously displaying all contents of the instant messaging message and the history retroactive record; the other method is asynchronous display, which can display all the content of the instant messaging message, hide part of the content of the history tracing record, display the history tracing record corresponding to the control after receiving the trigger of the corresponding control by the user, hide the history tracing record corresponding to the control after receiving the trigger of the user again, so that the user can selectively view the required history tracing record, and hide the history tracing record which is not needed to be viewed currently.
In the embodiment provided by the invention, the instant messaging client receives and displays the instant messaging message forwarded by the instant messaging server and the historical retrospective record of the instant messaging message, so that a user using the instant messaging client can conveniently and accurately know each operation record of the instant messaging message in the circulation process, the traceability of the instant messaging message is improved, and the user can conveniently perform retrospective record of creation record, modification record and forwarding record of the instant messaging message in the circulation process.
Specifically, the displaying the instant messaging message and the history trace record at the instant messaging client in a synchronous display manner includes:
synchronously displaying all contents of the instant messaging message and the historical retroactive record;
specifically, for an asynchronous display mode, the displaying the instant messaging message and the history tracing record at the instant messaging client includes:
displaying the instant communication message in a chat window of the instant communication client;
displaying a control for expanding the history tracing record at the adjacent position of the display position of the instant messaging message;
and if the trigger operation on the control is received, displaying the history tracing record.
Specifically, in order to enable a user at a client to clearly know that the control is a control for displaying the history tracing record and visually know main information of the history tracing record, corresponding summary information may be displayed on the control, and based on this, the display of the control for expanding the history tracing record at the adjacent position of the display position of the instant messaging message specifically includes:
generating an abstract representing the main information of the historical tracing record;
and displaying a control which is displayed with the abstract and used for expanding the history tracing record after triggering at the adjacent position of the display position of the instant messaging message.
Further, in order to enable a user of the client to more intuitively view the modified content of the instant messaging message of the modifier, based on this, if it is determined that the history tracing record includes the modified record, the displaying the history tracing record includes:
if the instant communication message is a plain text message or an image-text file, marking the instant communication message in a revision form according to the modification record;
if the instant communication message is an image file, marking the instant communication message in a commenting mode according to the modification record at the corresponding modification position of the image file;
and displaying the marked instant communication message as the modification content in the modification record.
Specifically, taking the display effect before and after the trigger control for modifying the specific details (modification content) in the record as an example, as shown in fig. 6a, the display interface includes: an instant messaging message display area 11 and a history tracing record display area 22, wherein the history tracing record display area 22 comprises a control 221 for displaying specific details in a modification record, an instant messaging message type selection control function area 33 and an instant messaging message input area 44; the controls on the instant messaging message type selection control functional area 33 are a control for inputting text-form instant messaging messages, a control for inputting voice-form instant messaging messages, a control for inputting picture-form instant messaging messages and a control for inputting evening-form instant messaging messages from left to right in sequence;
if the instant messaging client receives the trigger operation on the control 221 for displaying the specific details, the modified content under the specific details is displayed, as shown in fig. 6b, the modified content in the modified record is displayed in a revised form, and the specific modified content is as follows: replace "this time" with "now", add "ok" after "message", delete "none", add "do" after "undo".
In the embodiment provided by the invention, the modified content in the modified record is marked and displayed in a revision form or an annotation form, so that a user of the client can more intuitively check the modified content and the modified position of the modifier on the instant messaging message.
Further, in order to make the user at the client more intuitively distinguish the modified contents of different modifiers, based on this, the displaying the marked instant messaging message as the modified contents in the modified record includes:
and displaying the marked instant messaging message as the modified content in the modified record by using different colors according to different modifiers.
Specifically, for example, for the modification record in the history trace record, the modified content of the first modifier is marked and displayed with red, and the modified content of the second modifier is marked and displayed with blue.
In the embodiment provided by the invention, the modified contents of different modifiers are marked and displayed by adopting different colors, so that the user of the client can distinguish the modified contents of different modifiers more intuitively.
In addition, the instant messaging client can also generate and display a control for selecting a modifier to modify the content; if the trigger operation of the control is received, the modified content corresponding to the modifier is displayed in a revised form according to the modifier selected by the receiver, so that the flexibility and the convenience for a user to view the modified content of a certain modifier are increased.
The instant messaging server is used for determining whether a history retroactive record of a received instant messaging message exists in a database or not, and simultaneously, quickly and accurately finding the history retroactive record of the instant messaging message.
Specifically, for plain text messages, the unique identifier is embedded in the header of the message, and in order to keep the unique identifier of the instant messaging message unchanged during the process of transferring the instant messaging message, the client also needs to keep the header of the received instant messaging message unchanged during the process of transferring the instant messaging message, that is, the original packet header is used to package and encapsulate the instant messaging message no matter after any operation (such as copying operation, modifying operation, etc.) is performed on the received instant messaging message.
In the instant messaging message display method provided by the embodiment of the invention, the instant messaging client receives and displays the instant messaging message forwarded by the instant messaging server and the historical retrospective record of the instant messaging message, so that a user using the instant messaging client can accurately and clearly know each operation record of the instant messaging message in the circulation process, thereby improving the traceability of the instant messaging message and facilitating the user to perform retrospective record, modification record and forwarding record of the instant messaging message in the circulation process; furthermore, the modification content in the modification record is marked and displayed in a revision form or an annotation form, so that a user of the client can more intuitively check the modification content and the modification position of the modifier on the instant messaging message; furthermore, the modified contents of different modifiers are marked and displayed by different colors, so that the modified contents of different modifiers can be distinguished more intuitively by a user of the client.
Corresponding to the method in fig. 5, as shown in fig. 7, a second embodiment of the present invention further provides an instant messaging message display apparatus, which is disposed in an instant messaging client, and includes:
a message and record receiving module 702, configured to receive an instant messaging message forwarded by a server and a history trace record of the instant messaging message, where the instant messaging message includes: at least one of a plain text message, an image-text file or an image file, wherein the image-text file can be an office file such as PPT, word, excel and the like;
a message and record display module 704, configured to display the instant messaging message and the history trace back record at the instant messaging client, where the history trace back record is determined according to the step of obtaining the history trace back record in the instant messaging message forwarding method according to the embodiment.
In the embodiment provided by the invention, the instant messaging client receives and displays the instant messaging message forwarded by the instant messaging server and the historical retrospective record of the instant messaging message, so that a user using the instant messaging client can conveniently and accurately know each operation record of the instant messaging message in the circulation process, the traceability of the instant messaging message is improved, and the user can conveniently perform retrospective record of creation record, modification record and forwarding record of the instant messaging message in the circulation process.
The message and record display module 704 specifically includes:
a message display sub-module for displaying the instant communication message in the chat window of the instant communication client;
a control display sub-module, configured to display a control for expanding the history tracing record at a position adjacent to a display position of the instant messaging message;
and the record display sub-module is used for displaying the history tracing record if the trigger operation on the control is received.
Specifically, in order to enable a user at a client to clearly know that the control is the control for displaying the history tracing record and visually know main information of the history tracing record, corresponding summary information can be displayed on the control, and based on the summary information, the control display sub-module is specifically used for generating a summary for representing the main information of the history tracing record; and displaying a control which is displayed with the abstract and used for expanding the history tracing record after triggering at the adjacent position of the display position of the instant messaging message.
Further, in order to enable a user at the client to more intuitively view the modified content of the instant messaging message by a modifier, based on this, if it is determined that the history trace-back record includes a modification record, the record display sub-module is specifically configured to mark the instant messaging message in a revised form according to the modification record if the instant messaging message is a plain text message or an image-text file;
if the instant communication message is an image file, marking the instant communication message in a commenting mode according to the modification record at the corresponding modification position of the image file;
and displaying the marked instant communication message as the modification content in the modification record.
In the embodiment provided by the invention, the modified content in the modified record is marked and displayed in a revision form or an annotation form, so that a user of the client can more intuitively check the modified content and the modified position of the modifier on the instant messaging message.
Further, in order to enable the user of the client to distinguish the modified contents of different modifiers more intuitively, based on this, the record display sub-module is further specifically configured to display the marked instant messaging message as the modified content in the modified record according to different colors used by different modifiers.
In the embodiment provided by the invention, the modified contents of different modifiers are marked and displayed by adopting different colors, so that the user of the client can distinguish the modified contents of different modifiers more intuitively.
The instant messaging server is used for determining whether a history retroactive record of a received instant messaging message exists in a database or not, and simultaneously, quickly and accurately finding the history retroactive record of the instant messaging message.
In the instant messaging message display device provided by the embodiment of the invention, the instant messaging client receives and displays the instant messaging message forwarded by the instant messaging server and the historical retrospective record of the instant messaging message, so that a user using the instant messaging client can accurately and clearly know each operation record of the instant messaging message in the circulation process, the traceability of the instant messaging message is improved, and the user can conveniently trace the creation record, the modification record and the forwarding record of the instant messaging message in the circulation process; furthermore, the modification content in the modification record is marked and displayed in a revision form or an annotation form, so that a user of the client can more intuitively check the modification content and the modification position of the modifier on the instant messaging message; furthermore, the modified contents of different modifiers are marked and displayed by different colors, so that the modified contents of different modifiers can be distinguished more intuitively by a user of the client.
Corresponding to the method in fig. 5, as shown in fig. 8, the second embodiment of the present invention further provides a computer device, the device includes a memory 3000 and a processor 4000, the memory 3000 stores a computer program operable on the processor 4000, and the processor 4000 executes the above-mentioned instant messaging message display method when executing the computer program.
Specifically, the memory 3000 and the processor 4000 can be general memories and general processors, which are not specifically limited herein, and when the processor 4000 runs a computer program stored in the memory 3000, the instant messaging message display method can be executed, so that the problem that the instant messaging message circulation method in the related art only forwards the instant messaging message, which causes poor traceability in the circulation process of the instant messaging message, is solved, traceability of the instant messaging message is improved, and a user can conveniently trace creation records, modification records and forwarding records of the instant messaging message in the circulation process.
Corresponding to the method in fig. 5, the second embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, performs the instant messaging message display method described above.
Specifically, the storage medium can be a general storage medium, such as a mobile disk, a hard disk, and the like, and when a computer program on the storage medium is run, the instant messaging message display method can be executed, so that the problem that the traceability is poor in the circulation process of the instant messaging message due to the fact that the instant messaging message circulation method in the related art only forwards the instant messaging message is solved, the traceability of the instant messaging message is further improved, and a user can conveniently trace the creation record, the modification record and the forwarding record of the instant messaging message in the circulation process.
Example three:
as shown in fig. 9, a third embodiment of the present invention provides an instant messaging message flow system, which includes: an instant messaging server 10 and a plurality of instant messaging clients 20, wherein the instant messaging server 10 comprises an instant messaging message forwarding device described in the first embodiment, the instant messaging clients 20 comprise an instant messaging message display device described in the second embodiment, and the instant messaging clients 20 are divided into two types, one type is a first client used by a sender and the other type is a second client used by a receiver.
Specifically, a first client used by an originator sends an instant messaging request to an instant messaging server 10, where the instant messaging request carries an instant messaging message to be sent and a recipient identifier of the instant messaging message;
the instant messaging server 10 receives the instant messaging message sent by the sender through the first client and the receiver identifier of the instant messaging message;
the instant messaging server 10 obtains a history tracing record of the instant messaging message, wherein the history tracing record comprises: one or more of creating a record, modifying a record or forwarding a record of the instant messaging message;
the instant messaging server 10 sends the instant messaging message and the history tracing record corresponding to the instant messaging message to a second client used by the receiver corresponding to the receiver identifier;
and the second client used by the receiver receives and displays the instant messaging message and the history tracing record corresponding to the instant messaging message.
In the instant messaging message circulation system provided by the embodiment of the invention, the corresponding history tracing record is formed by counting the creation record, the modification record and the forwarding record of the instant messaging message, each operation record of a certain instant messaging message is added into the history tracing record of the instant messaging message, the history tracing record of the instant messaging message is continuously updated, the instant messaging message and the history tracing record are forwarded to the corresponding instant messaging client 20, finally, the instant messaging client 20 receives and displays the instant messaging message forwarded by the server and the history tracing record of the instant messaging message, so that all users receiving the instant messaging message can accurately and clearly know each operation record of the instant messaging message in the circulation process, thereby improving the traceability of the instant messaging message, the method is convenient for the user to trace the creation record, the modification record and the forwarding record of the instant messaging message in the circulation process.
The instant messaging message forwarding device and the display device provided by the embodiment of the invention can be specific hardware on equipment or software or firmware installed on the equipment and the like. The device provided by the embodiment of the present invention has the same implementation principle and technical effect as the method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the method embodiments without reference to the device embodiments. It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the foregoing systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of 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 of devices or units through some communication interfaces, and may be in an electrical, mechanical 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 network 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 provided by 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 functions, if implemented in the form of software functional units 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 may be embodied in the form of 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 execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus once an item is defined in one figure, it need not be further defined and explained in subsequent figures, and moreover, the terms "first", "second", "third", etc. are used merely to distinguish one description from another and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the present invention in its spirit and scope. Are intended to be covered by the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (22)

1. An instant messaging message forwarding method, the method comprising:
receiving an instant messaging message sent by a first client;
obtaining a history tracing record of the instant messaging message, wherein the history tracing record comprises: forwarding records of the instant messaging messages; creating a record and forwarding the record; modifying the record and forwarding the record; or creating a record, modifying a record, and forwarding a record;
and sending the history tracing record and the instant messaging message to a second client.
2. The method of claim 1, wherein if the instant messaging message is a plain text message, after receiving the instant messaging message sent by the first client, further comprising:
determining whether the word count of the instant messaging message exceeds a first threshold;
if the word number of the instant communication message exceeds the first threshold value, continuously executing the step of obtaining the history tracing record of the instant communication message;
and if the word number of the instant messaging message does not exceed the first threshold value, stopping executing the step of obtaining the history tracing record of the instant messaging message, and sending the instant messaging message to a second client.
3. The method of claim 1, wherein obtaining the historical retroactive record of the instant messaging message comprises:
determining whether a historical retroactive record of the instant messaging message exists in a database;
if the historical retroactive record of the instant messaging message does not exist in the database, determining that the instant messaging message is established for the first time, and generating the historical retroactive record of the instant messaging message;
and if the historical retroactive record of the instant messaging message exists in the database, determining that the instant messaging message is not created for the first time, and updating the historical retroactive record.
4. The method of claim 3, wherein after generating the historical retroactive record of the instant messaging message, further comprising:
and marking unique identification codes for the instant messaging message and the history tracing record, wherein the identification codes are kept unchanged in the circulation process of the instant messaging message.
5. The method of claim 4, wherein determining whether a historical retroactive record of the instant messaging message exists in the database comprises:
determining whether the instant messaging message has a unique identification code;
if the instant messaging message does not have the unique identification code, determining that no history retroactive record of the instant messaging message exists in the database;
and if the instant messaging message has the unique identification code, determining that the historical retroactive record of the instant messaging message exists in the database.
6. The method of claim 4, wherein said updating said historical retroactive record comprises:
determining whether the instant messaging message is modified or not according to the message content of the instant messaging message and the history tracing record;
if the instant communication message is modified, determining the modified content of the instant communication message at the current time, and generating a corresponding circulation record;
if the instant communication message is not modified, generating a corresponding circulation record;
and updating the history tracing record according to the flow transfer record.
7. The method of claim 6, wherein determining whether the instant messaging message is modified based on the message content of the instant messaging message and the historical backlog comprises:
calling a history tracing record of the instant messaging message from the database according to the unique identification code of the instant messaging message, wherein the history tracing record comprises the message content of the history version of the instant messaging message;
and comparing the message content of the instant communication message with the message content of the latest historical version to determine whether the instant communication message is modified.
8. The method of claim 3, wherein determining that the instant messaging message was created for the first time and generating the historical retroactive record of the instant messaging message if the historical retroactive record of the instant messaging message does not exist in the database comprises:
if the historical retrospective record of the instant messaging message does not exist in the database, respectively determining the similarity between the instant messaging message and a plurality of network information prestored in a network resource library;
if the similarity between the instant messaging message and each piece of network information is smaller than a second threshold value, storing the creating record of the instant messaging message as a historical retroactive record of the instant messaging message;
and if the similarity between the instant messaging message and any one of the network information is not smaller than a second threshold value, saving the created record of the network information as a history tracing record of the instant messaging message.
9. The method according to any one of claims 1 to 8, wherein before sending the history trace back record and the instant messaging message to the second client, the method further comprises:
receiving remark information which is sent by the first client and added to the instant messaging message;
and adding the remark information into the history tracing record of the instant messaging message.
10. An instant messaging message display method, the method comprising:
receiving an instant messaging message forwarded by a server and a history tracing record of the instant messaging message, wherein the history tracing record comprises: forwarding records of the instant messaging messages; creating a record and forwarding the record; modifying the record and forwarding the record; or creating a record, modifying a record, and forwarding a record;
and displaying the instant messaging message and the history tracing record at an instant messaging client.
11. The method of claim 10, wherein displaying the instant messaging message and the historical backlog at an instant messaging client comprises:
displaying the instant messaging message in a chat window of the instant messaging client;
displaying a control for expanding the history tracing record at the position adjacent to the display position of the instant messaging message;
and if the trigger operation of the control is received, displaying the history tracing record.
12. The method of claim 11, wherein displaying a control for expanding a historical retroactive record adjacent to a display location of the instant messaging message comprises:
generating an abstract representing main information of the historical retroactive record;
and displaying a control which is displayed with the abstract and used for expanding the history tracing record after triggering at the adjacent position of the display position of the instant messaging message.
13. The method of claim 11, wherein if it is determined that the historical retroactive record comprises a modified record, the displaying the historical retroactive record comprises:
if the instant communication message is a plain text message or an image-text file, marking the instant communication message in a revision form according to the modification record;
if the instant communication message is an image file, marking the instant communication message in an annotation form at a corresponding modification position of the image file according to the modification record;
and displaying the marked instant communication message as the modification content in the modification record.
14. The method of claim 13, wherein displaying the marked instant messaging message as modified content in the modification record comprises:
and displaying the marked instant messaging message as modified content in the modified record by using different colors according to different modifiers.
15. A method according to any one of claims 10 to 14, wherein the instant messaging message and the history record are each marked with a unique identifier which remains unchanged during the circulation of the instant messaging message.
16. An instant messaging message forwarding device, the device comprising:
the message receiving module is used for receiving the instant messaging message sent by the first client;
a record obtaining module, configured to obtain a history trace-back record of the instant messaging message, where the history trace-back record includes: forwarding records of the instant messaging messages; creating a record and forwarding the record; modifying the record and forwarding the record; or create, modify and forward records
And the message and record sending module is used for sending the history tracing record and the instant messaging message to a second client side.
17. An instant messaging message display apparatus, the apparatus comprising:
the message and record receiving module is used for receiving the instant messaging message forwarded by the server and the history tracing record of the instant messaging message, wherein the history tracing record comprises: forwarding records of the instant messaging messages; creating a record and forwarding the record; modifying the record and forwarding the record; or creating a record, modifying a record, and forwarding a record;
and the message and record display module is used for displaying the instant messaging message and the history tracing record on an instant messaging client.
18. An instant messaging message flow system, the system comprising: an instant messaging server comprising apparatus according to claim 16 and a plurality of instant messaging clients comprising apparatus according to claim 17.
19. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of the preceding claims 1 to 9 are implemented by the processor when executing the computer program.
20. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of the preceding claims 10 to 15 are implemented by the processor when executing the computer program.
21. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of the preceding claims 1 to 9.
22. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of the preceding claims 10 to 15.
CN201710035795.3A 2017-01-17 2017-01-17 Instant messaging message forwarding method and device and instant messaging message display method and device Active CN106789597B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710035795.3A CN106789597B (en) 2017-01-17 2017-01-17 Instant messaging message forwarding method and device and instant messaging message display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710035795.3A CN106789597B (en) 2017-01-17 2017-01-17 Instant messaging message forwarding method and device and instant messaging message display method and device

Publications (2)

Publication Number Publication Date
CN106789597A CN106789597A (en) 2017-05-31
CN106789597B true CN106789597B (en) 2021-06-11

Family

ID=58944369

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710035795.3A Active CN106789597B (en) 2017-01-17 2017-01-17 Instant messaging message forwarding method and device and instant messaging message display method and device

Country Status (1)

Country Link
CN (1) CN106789597B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108564250A (en) * 2018-03-07 2018-09-21 中国平安人寿保险股份有限公司 Forwarding record real time inspection system, method, computer equipment and storage medium
CN110719220B (en) * 2018-07-11 2022-08-26 钉钉控股(开曼)有限公司 Message withdrawing method and device
CN109597934B (en) * 2018-11-23 2020-12-29 北京字节跳动网络技术有限公司 Method and device for determining click recommendation words, storage medium and electronic equipment
CN112422402A (en) * 2020-09-30 2021-02-26 宇龙计算机通信科技(深圳)有限公司 Message forwarding tracing method and device, storage medium and terminal
CN113315869B (en) * 2021-05-19 2022-09-30 北京达佳互联信息技术有限公司 Content display method, content display device, electronic equipment, content display system and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011038639A1 (en) * 2009-09-30 2011-04-07 中兴通讯股份有限公司 Realizing method for end-to-end instant messaging, terminal and system for end-to-end instant messaging
CN105227444A (en) * 2015-10-23 2016-01-06 阿里巴巴集团控股有限公司 Based on message informing method and the device of instant messaging

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100570603C (en) * 2006-10-10 2009-12-16 北京书生国际信息技术有限公司 The method and system that saves electric document history recording
CN102541825B (en) * 2010-12-23 2014-11-12 北京大学 Method and device for recording trace information of electronic file
CN102404251A (en) * 2011-12-18 2012-04-04 上海量明科技发展有限公司 Realization method, client and system for instant messaging with remarking function
CN106302097A (en) * 2015-06-05 2017-01-04 协宝电子商务有限公司 A kind of edit methods of instant communication information
CN105049336A (en) * 2015-08-12 2015-11-11 深圳前海珩昌科技有限公司 Method and system for processing instant communication messages, server and client

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011038639A1 (en) * 2009-09-30 2011-04-07 中兴通讯股份有限公司 Realizing method for end-to-end instant messaging, terminal and system for end-to-end instant messaging
CN105227444A (en) * 2015-10-23 2016-01-06 阿里巴巴集团控股有限公司 Based on message informing method and the device of instant messaging

Also Published As

Publication number Publication date
CN106789597A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN106789597B (en) Instant messaging message forwarding method and device and instant messaging message display method and device
US11196784B2 (en) Method, apparatus and system for creating discussion group based on instant messaging
TW201830987A (en) Group message read-status display method, instant messaging client, and server
EP1494411A1 (en) Instant messaging object store
CN105701096A (en) Index generation method, data inquiry method, index generation device, data inquiry device and system
CN107408242B (en) Providing interactive previews of content within communications
CN105243060A (en) Picture retrieval method and apparatus
TW201701229A (en) E-mail processing
CN107533693B (en) Rich attachment regeneration
CN109241003B (en) File management method and device
CN108768835B (en) Mail analysis method, device, server and storage medium
US20160366077A1 (en) E-mail processing
US11343114B2 (en) Group management in a messaging service
CN109698814B (en) Botnet discovery method and botnet discovery device
US11290409B2 (en) User device messaging application for interacting with a messaging service
US9391929B2 (en) Method, device and email system for providing public email
CN108140173B (en) Classifying attachments parsed from a communication
JP6763256B2 (en) FAX reception data management device, FAX reception data management system and program
CN115514759B (en) File forwarding method, electronic device and storage medium
CN109697129A (en) A kind of information sharing method, equipment and computer readable storage medium
CN113114557B (en) Message sending method and device, electronic equipment and storage medium
JP2010079674A (en) File association device, method, and program
US11349800B2 (en) Integration of an email, service and a messaging service
US11645466B2 (en) Categorizing conversations for a messaging service
CN104079469A (en) Information processing method and electronic equipment

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