CN113179207A - Message processing method and electronic equipment - Google Patents

Message processing method and electronic equipment Download PDF

Info

Publication number
CN113179207A
CN113179207A CN202110461110.8A CN202110461110A CN113179207A CN 113179207 A CN113179207 A CN 113179207A CN 202110461110 A CN202110461110 A CN 202110461110A CN 113179207 A CN113179207 A CN 113179207A
Authority
CN
China
Prior art keywords
message
target
content
historical
information corresponding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110461110.8A
Other languages
Chinese (zh)
Other versions
CN113179207B (en
Inventor
殷海光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202110461110.8A priority Critical patent/CN113179207B/en
Publication of CN113179207A publication Critical patent/CN113179207A/en
Application granted granted Critical
Publication of CN113179207B publication Critical patent/CN113179207B/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/21Monitoring or handling of messages
    • H04L51/216Handling conversation history, e.g. grouping of messages in sessions or threads
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • 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)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a message processing method and electronic equipment, and belongs to the technical field of electronics. The message processing method comprises the following steps: under the condition that a target message is deleted on a target social interface, acquiring target identification information corresponding to the target message; matching the content of the target message with the content of the historical message; associating the target identification information with target historical message content if the content of the target message matches the target historical message content; the target identification information comprises first social object information corresponding to the target social interface, second social object information corresponding to the target message, index position information corresponding to the target message and position information corresponding to the content of the target message.

Description

Message processing method and electronic equipment
Technical Field
The application belongs to the technical field of electronics, and particularly relates to a message processing method and electronic equipment.
Background
Electronic devices have become an important communication tool. The electronic equipment comprises various social software, and a user chats and communicates with friends anytime and anywhere through the social software, so that the distance between people is greatly shortened.
With the endless evolution of various social software in the electronic device, the social data stored in the electronic device is also large, and for example, a large number of chat records are stored in the electronic device, so that the performance of the electronic device is reduced due to the fact that the chat records occupy the storage space of the electronic device. Therefore, the user needs to delete some chat records periodically to optimize the performance of the electronic device.
In the prior art, once a user performs an operation of deleting a chat record, a system can completely delete the chat record, and if the user performs a misoperation or the user needs to check the deleted chat record again, no trace can be found.
Disclosure of Invention
The embodiment of the application aims to provide a message processing method, which can solve the problem that in the prior art, a user needs to check deleted chat records again, so that the user can find the chat records without traces.
In a first aspect, an embodiment of the present application provides a message processing method, where the method includes: under the condition that a target message is deleted on a target social interface, acquiring target identification information corresponding to the target message; matching the content of the target message with the content of the historical message; associating the target identification information with target historical message content if the content of the target message matches the target historical message content; the target identification information comprises first social object information corresponding to the target social interface, second social object information corresponding to the target message, index position information corresponding to the target message and position information corresponding to the content of the target message.
In a second aspect, an embodiment of the present application provides a message processing apparatus, including: the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring target identification information corresponding to a target message under the condition that the target message is deleted on a target social interface; the matching module is used for matching the content of the target message with the content of the historical message; the association module is used for associating the target identification information with the target historical message content under the condition that the content of the target message is matched with the target historical message content; the target identification information comprises first social object information corresponding to the target social interface, second social object information corresponding to the target message, index position information corresponding to the target message and position information corresponding to the content of the target message.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
Thus, in the embodiment of the application, when a user deletes a target message on a target social interface, target identification information corresponding to the target message is obtained, wherein the target identification information includes first social object information corresponding to the target social interface, and if the target message is deleted on a chat interface of a friend a, the first social object information is account information of the friend a; the target identification information also comprises second social object information corresponding to the target message, and if the target message is sent by the friend A, the second social object is account information of the friend A; the target identification information also comprises index position information corresponding to the target message, and the index position information is the only information which is distributed to the target message by the system and can play a positioning role; and also includes the position information corresponding to the content of the target message, i.e. the ordering of the content in the target message in the whole target message. After the target identification information is acquired, the history message content consistent with the content of the target message is matched in all the existing history message contents, and when the content of the target message is matched with the content of the target history message, the previously acquired target identification information is associated with the content of the target history message, such as association modes such as binding, marking and the like, so that the backup of the target message is completed. Therefore, in the embodiment of the application, before the target message is deleted, the target message is backed up in a manner of associating the target identification information with the content of the historical message, so that inconvenience brought to the user due to unscented searching when the user performs misoperation or needs to check the deleted chat record again is avoided.
Drawings
Fig. 1 is a flowchart of a message processing method according to an embodiment of the present application;
FIG. 2 is a block diagram of a message processing apparatus according to an embodiment of the present application;
fig. 3 is one of the hardware configuration diagrams of the electronic device according to the embodiment of the present application;
fig. 4 is a second schematic diagram of a hardware structure of the electronic device according to the embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The message processing method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Referring to fig. 1, a flowchart of a message processing method according to an embodiment of the present application is shown, where the method is applied to an electronic device, and includes:
step S1: when the target message is deleted by the target social interface, target identification information corresponding to the target message is acquired.
The target identification information comprises first social object information corresponding to a target social interface, second social object information corresponding to a target message, index position information corresponding to the target message and position information corresponding to the content of the target message.
Optionally, the target social interface is a chat interface of a friend or a chat interface of a group in any social software.
Optionally, the target message is a chat message in the target social interface.
For example, in the chat window of friend a, the user selects a chat message as the target message, and clicks the "delete" option, so that in this step, the chat message is deleted.
In this step, the target identification information corresponding to the target message is acquired while the target message is deleted.
In a first aspect, the target identification information includes first social object information corresponding to a target social interface.
The social object information is information representing the identity of the social object, such as account information and name information of the social object in a specified social software.
Correspondingly, the first social object information corresponding to the target social interface is user identity information corresponding to the chat interface. For example, the account information and name information of friend a are described above.
In a second aspect, the target identification information further includes second social object information corresponding to the target message.
And the second social object information corresponding to the target message is the user identity information of the target message. For example, the account information of the friend a or the account information of the user himself/herself.
In a third aspect, the target identification information further includes index location information corresponding to the target message.
When the user chats, the system preferentially allocates an index position information to each chat message, the index position information is distributed in sequence on the same date, for example, the index position information of the first chat message at 07 o' clock 30 of 3/11/2021 is "20210311073000001". In the character order in the index position information, "20210311" indicates 3/11/2021, "0730" indicates 07 o 30, and "000001" indicates the first chat message. Therefore, each chat message corresponds to unique index position information, and the index position information cannot be changed no matter how the user operates the chat message.
Therefore, in the embodiment, when the target message is deleted, the target message can be backed up, and the index position information corresponding to the target message is used for performing a unique positioning function during backup.
In a fourth aspect, the target identification information further includes location information corresponding to the content of the target message.
The target message comprises characters such as characters, punctuation marks and the like, all the characters are combined to form the content of the target message, and all the characters are arranged according to a certain sequence. Thus, for a target message, each character in the target message corresponds to a position rank. And the position information corresponding to the content of the target message, i.e. the position sorting sequence number of the content of the target message in the target message.
For example, the target message is: "how good you are today's weather", for the character content of "you", the corresponding position information is: (0) (ii) a For the contents of the two characters of "hello", the corresponding position information is as follows: (0, 1); for the character contents of "how much the weather is today", the corresponding position information is: (3,9).
It should be noted that the target message in this embodiment may also be a voice message, and in the processing process, the voice message may be first converted into a text message, and then the converted text message is backed up.
Step S2: and matching the content of the target message with the content of the historical message.
In this step, the history message content is the history message content that is not deleted in the social software, that is, the un-deleted chat log.
Optionally, the target message and the historical message content belong to the same social software.
The matching method comprises the following steps: and searching the content consistent with the content of the target message in the historical message content.
For example, look for "hello, what weather is today" in a large amount of historical message content.
The historical message content can be the historical message content related to the first social object, or the historical message content related to other social objects, and the system searches the historical message content, so that the searching matching efficiency is higher.
Step S3: in the event that the content of the target message matches the target historical message content, target identification information is associated with the target historical message content.
In this step, in the case where the content of the target message matches the target history message content, i.e., the content of the target message matches the target history message content.
Optionally, the association manner in this step is: and adding a field, namely target identification information, in the target history message content.
Optionally, the association manner in this step is: and binding the target historical message content and the target identification information together.
Optionally, the association manner in this step is: and marking the target historical message content with the target identification information.
Thus, after associating the target identification information with the target historical message content, the backup of the target message is completed.
Thus, in the embodiment of the application, when a user deletes a target message on a target social interface, target identification information corresponding to the target message is obtained, wherein the target identification information includes first social object information corresponding to the target social interface, and if the target message is deleted on a chat interface of a friend a, the first social object information is account information of the friend a; the target identification information also comprises second social object information corresponding to the target message, and if the target message is sent by the friend A, the second social object is account information of the friend A; the target identification information also comprises index position information corresponding to the target message, and the index position information is the only information which is distributed to the target message by the system and can play a positioning role; and also includes the position information corresponding to the content of the target message, i.e. the ordering of the content in the target message in the whole target message. After the target identification information is acquired, the history message content consistent with the content of the target message is matched in all the existing history message contents, and when the content of the target message is matched with the content of the target history message, the previously acquired target identification information is associated with the content of the target history message, such as association modes such as binding, marking and the like, so that the backup of the target message is completed. Therefore, in the embodiment of the application, before the target message is deleted, the target message is backed up in a manner of associating the target identification information with the content of the historical message, so that inconvenience brought to a user due to unscented searching when the user performs misoperation or needs to check the deleted chat record again is avoided.
In addition, compared with the method of directly backing up the content of the target message, the embodiment of the application realizes the backing up by associating the target identification information of the target message with the existing historical message content, namely recording the target identification information.
In the flow of the message processing method according to another embodiment of the present application, before step S1, the user may also start the message backup function through manual operation, so that the embodiment of the present application is implemented.
Further, after the user closes the message backup function through manual operation, all data backed up by the embodiment of the application can be deleted, so as to further optimize the performance of the device.
Furthermore, the backed-up data can be automatically deleted after being retained in the equipment for a certain time, so as to further optimize the performance of the equipment.
In the flow of the message processing method according to another embodiment of the present application, step S3 includes:
substep A1: in the event that the entire content of the target message matches the target historical message content in one of the historical messages, target identification information is associated with the target historical message content.
And the position information corresponding to the content of the target message is the position information of all the content.
In this embodiment, the content of the target message is: the entire contents of the target message.
For example, the target message is: "how good you are today's weather", the content of the target message is: "you are good, how much the weather is today".
In the present embodiment, in the history message, there is one history message including content identical to all the content of the target message.
For example, the target message is: "how good you are today's weather" and in a history message, the content of "how good you are today's weather" is included.
Correspondingly, the location information included in the target identification information, i.e. the location information of the entire content of the entire target message.
For example, the target message is: "how good you are today's weather", the position information in the target identification information is (0, 9).
Optionally, in the matching process of step S2, matching may be preferentially performed in the history message contents with a matching degree of 100%, and if the matching degree of the content in one history message and the target message is 100%, it indicates that the content in the history message is completely consistent with the target message, so as to directly associate the target identification information with the matched target history message content, and further complete the backup of the target message at one time.
By reference, the target message is: "how good you are today's weather", if the same chat message is matched, the marking is performed, and the backup is completed.
In the present embodiment, a case is explained. In this case, if all the contents in the target message completely match the contents in one history message, the target identification information is directly associated with the contents in the history message. Therefore, in the historical message content, the whole content of the target message is concentrated at one position, and the subsequent searching is convenient.
In the flow of the message processing method according to another embodiment of the present application, step S3 includes:
substep B1: in the event that a portion of the content of the target message matches the target historical message content in a historical message, target identification information is associated with the target historical message content.
And the position information corresponding to the content of the target message is the position information corresponding to part of the content in the target message.
And under the condition that partial content of the target message is matched with the content of the target historical message in one historical message, repeatedly matching the content of the target message with the content of the historical message until the whole content of the target message is matched with the content of the target historical message in a plurality of historical messages.
In this embodiment, the content of the target message is: part of the content of the target message.
For example, the target message is: "how good you are today's weather", the content of the target message is: "hello".
In the present embodiment, in the history message, there is a history message including content identical to a part of the content of the target message.
For example, the target message is: "how good you are today's weather", and in a history message, the content of "hello" is included.
Correspondingly, the position information included in the target identification information is the position information of the part of the content in the target message.
For example, the target message is: "how good you are today's weather", the content of the matching target message is: "hello", the position information in the target identification information is (0, 1).
Alternatively, in the matching process of step S2, the matching degree of 100% may be preferentially used to perform matching in the contents of the history messages, and if the matching degree of 100% is less than the matching degree of the contents in any one of the history messages and the target message, the matching degree is decreased, and the matching is continued. If the matching degree of the content matched in one of the history messages and the target message is 90%, the content in the history message is consistent with the partial content of the target message, so that the matched position information corresponding to the partial content is associated with the matched content of the target history message in combination with other identification information, and further the backup of the partial content of the target message is completed.
Further, according to the matching mode, the backup of the whole content of the target message is completed for multiple times.
Therefore, in the present embodiment, step S2 and sub-step B1 are repeated until the backup of the entire content of the target message is completed.
By reference, the target message is: "how good you are and how good today's weather, if the matched chat message cannot be found accurately, only" good you are and weather today "can be found, and the chat message can also be marked with the position information of (0, 6); after "what is" is found again, the chat message found is marked with the position information of (7, 9), and the backup is completed.
In the present embodiment, still another case is explained. In this case, all contents in the target message are unmatched so as to be successfully matched with contents in the plurality of history messages, and the target identification information is associated with the plurality of history messages, wherein the associated position information of each history message is different. Therefore, in the historical message content, the whole content of the target message is dispersed at different positions, and the target message can be restored through splicing in the subsequent searching process.
In a flow of the message processing method according to another embodiment of the present application, the index position information corresponding to the target message includes timestamp sub-information for generating the target message.
Correspondingly, step S2 includes:
substep C1: the content of the target message is matched with the historical message content associated with the timestamp sub-information.
And sequentially acquiring corresponding historical message contents according to the sequence of the correlation degree from strong to weak for matching until the content of the target message is matched with the content of the target historical message.
In the present embodiment, time stamp sub-information of the target message, i.e., time information of transmitting or receiving the target message, is generated. Optionally, the time information specifies a day's date.
Optionally, in a scheme provided by this embodiment, a correlation degree of a date before the time stamp sub information is stronger than a date after the time stamp sub information; dates closer to the time stamp sub information are more relevant than dates farther from the time stamp sub information.
The target message is, as a reference, a 19 th transmitted or received message.
First, if there is one history message that completely matches the target message in the history message of the 19 th, the target identification information is directly added to the history message that matches the same date.
Further, if there is no history message that completely matches the target message in the history message of number 19, matching is performed with a matching degree of more than 50% and a matching degree of less than 100%, and corresponding target identification information is associated in the matched history message; matching the whole content of the target message for multiple times with the matching degree exceeding 50%; wherein the matched plurality of history messages are history messages of the same date as much as possible.
Further, the content of the history message with the number 19 cannot match the entire content of the target message, and the matching is continued in the content of the history message with the previous date (number 18).
Further, if the history message of the previous date can not complete the matching of the whole content of the target message, the matching is continued in the history message content of the next date (20 th).
And performing recursive matching until the matching of the whole content of the target message is completed.
In this embodiment, in the case of deleting the target message, the history message content on the same date is first matched according to the date of the target message, and then the history message content on the similar date is matched, so that the matching range is gradually increased, and the matching efficiency can be improved.
In the flow of the message processing method according to another embodiment of the present application, after step S3, the method further includes:
step D1: a first input is received from a user.
Wherein the first input is for searching for a target message.
The first input comprises touch input performed by a user on a screen, and is not limited to input of clicking, sliding, dragging and the like; the first input may also be a first operation, where the first operation includes a blank operation of the user, and is not limited to a gesture action operation, a face action operation, and the like, and the first operation also includes an operation of a physical key on the device, and is not limited to a press operation and the like. Furthermore, the first input includes one or more inputs, wherein the plurality of inputs may be continuous or intermittent.
In this embodiment, after the deletion message is backed up, an entry may be provided for the user to view the deleted message.
For example, in the chat interface of the first social object, click the "more" function to find the control of "recently deleted chat log", and click the control of "recently deleted chat log" by the user to complete the first input.
The last deleted chat log includes the target message in this embodiment.
Step D2: in response to the first input, target historical message content associated with the target identification information is determined among the historical message content based on the target identification information.
Step D3: and outputting the content of the target historical message as the content of the target message according to the position information corresponding to the content of the target message.
In the step, firstly, all historical message contents associated with any identification information are found in the historical message contents, namely all backup messages are found; secondly, extracting historical message content of which the associated information comprises the first social object information based on the first social object information, namely, finding all messages deleted from a target social interface (such as a chat interface) corresponding to the first social object information; then, extracting all contents in the target message according to the associated index position information in the historical message contents; and finally, sequencing the extracted historical message contents according to the associated position information in the extracted historical message contents, wherein if the 'hello and today weather' occupy the sequencing positions of (0, 7) and the 'how' occupies the sequencing positions of (7, 9), the complete target message 'hello and today weather' can be spelled.
In the present embodiment, when the content of the target message includes a part of the content, step D2 and step D3 are repeated until the output of the entire content is completed.
Step D4: and displaying the target message in the target social interface according to the index position information and the second social object information corresponding to the target message.
The index position information corresponding to the target message comprises timestamp sub-information for generating the target message.
In this step, according to the timestamp information of the generated target message, the position of the target message before deletion can be found in the target social interface, and the target message can be restored and displayed in the target social interface in combination with the second social object information of the target message.
Wherein, in the process of restoring and displaying the target message in the target social interface, the following information included in the index position information can be combined: and the target message is restored to form an ordered chat record in the message sequence of the current day, so that the accurate restoration of the chat message is realized.
In addition, the index position information also includes the type of the target message. For example, when the target message is a text message, a "1" character is added to a specified position (e.g., the end) of the index position information; when the target message is a voice-type message, a "2" character is added at the end of the index position information. For example, the index position information of the first chat message (the chat message is a voice message) divided by 07 o 30 at 11 o 3/11 in 2021 is "202103110730000012". In the character order in the index position information, "20210311" indicates 3/11/2021, "0730" indicates 07 o 30, and "000001" indicates the first chat message, and "2" indicates the voice-like message.
Therefore, when the target message is restored and displayed on the target social interface, whether the target message is a voice message before being deleted can be identified according to the index position information, if the target message is the voice message, the target message is displayed, and simultaneously the prompt content is displayed so as to prompt the user that the original form of the message is the voice form.
In this embodiment, based on the function of backing up the deleted message according to the present application, when the user performs a deletion error operation or wants to view the deleted message, the chat record can be restored for the user, so as to meet the user requirement.
In the embodiment of the application, if a user deletes a plurality of messages, even the whole chat record, only a single message needs to be searched and matched for each message, and backup is completed.
In the embodiment of the application, the backed-up data is stored in the local database, and the later-stage user can select the single-day chat data or the single chat record which is desired to be restored in the corresponding friend record deletion detail page, and both the single-day chat data and the single chat record can be restored according to the number of backups.
In the embodiment of the application, the method and the device are also suitable for protecting important data such as user privacy. For example, the chat records relate to user privacy, the user can delete the chat records, and the deleted chat records are merged with undeleted chat messages, so that privacy hiding is realized, and the user privacy is better protected.
In summary, the present application mainly provides a message backup function, when a user deletes a message, the system automatically backs up a piece of data, but the data is not listed separately, but is stored in a binding manner with other chat messages; meanwhile, a message retrieving function is provided, when a user wants to recover the message, the user directly reads other chat message acquisition marks and then recovers the deleted chat message. Therefore, the method and the device can solve the problem that the user cannot recover when deleting the message by mistake, and protect the chat records of the user better. Meanwhile, the method for backing up the deleted message does not influence the use of other functions, and improves the user experience.
It should be noted that, in the message processing method provided in the embodiment of the present application, the execution main body may be a message processing apparatus, or a control module in the message processing apparatus for executing the message processing method. The message processing apparatus provided in the embodiment of the present application is described with an example in which a message processing apparatus executes a message processing method.
Fig. 2 shows a block diagram of a message processing apparatus according to another embodiment of the present application, the apparatus including:
the acquisition module 10 is used for acquiring target identification information corresponding to the target message under the condition that the target message is deleted on the target social interface;
a matching module 20, configured to match the content of the target message with the content of the historical message;
an association module 30 for associating the target identification information with the target history message content if the content of the target message matches the target history message content;
the target identification information comprises first social object information corresponding to a target social interface, second social object information corresponding to a target message, index position information corresponding to the target message and position information corresponding to the content of the target message.
Thus, in the embodiment of the application, when a user deletes a target message on a target social interface, target identification information corresponding to the target message is obtained, wherein the target identification information includes first social object information corresponding to the target social interface, and if the target message is deleted on a chat interface of a friend a, the first social object information is account information of the friend a; the target identification information also comprises second social object information corresponding to the target message, and if the target message is sent by the friend A, the second social object is account information of the friend A; the target identification information also comprises index position information corresponding to the target message, and the index position information is the only information which is distributed to the target message by the system and can play a positioning role; and also includes the position information corresponding to the content of the target message, i.e. the ordering of the content in the target message in the whole target message. After the target identification information is acquired, the history message content consistent with the content of the target message is matched in all the existing history message contents, and when the content of the target message is matched with the content of the target history message, the previously acquired target identification information is associated with the content of the target history message, such as association modes such as binding, marking and the like, so that the backup of the target message is completed. Therefore, in the embodiment of the application, before the target message is deleted, the target message is backed up in a manner of associating the target identification information with the content of the historical message, so that inconvenience brought to the user due to unscented searching when the user performs misoperation or needs to check the deleted chat record again is avoided.
Optionally, the association module 30 includes:
a first associating unit configured to associate the target identification information with a target history message content in a history message in a case where all contents of the target message match with the target history message content in the history message;
and the position information corresponding to the content of the target message is the position information of all the content.
Optionally, the association module 30 includes:
a second associating unit for associating the target identification information with the target history message content in a case where a part of the content of the target message matches the target history message content in one of the history messages; the position information corresponding to the content of the target message is the position information corresponding to part of the content in the target message;
under the condition that partial content of the target message is matched with the content of the target historical message in one historical message, the content of the target message is repeatedly matched with the content of the historical message until all content of the target message is matched with the content of the target historical message in a plurality of historical messages.
Optionally, the index position information corresponding to the target message includes timestamp sub-information for generating the target message;
a matching module 20 comprising:
a first matching unit for matching the content of the target message with the historical message content associated with the timestamp sub-information;
and sequentially acquiring corresponding historical message contents according to the sequence of the correlation degree from strong to weak for matching until the content of the target message is matched with the content of the target historical message.
Optionally, the apparatus further comprises:
the first input receiving module is used for receiving a first input of a user; the first input is used for searching a target message;
the first input response module is used for responding to the first input and determining target historical message content related to the target identification information in the historical message content according to the target identification information;
the output module is used for outputting the content of the target historical message as the content of the target message according to the position information corresponding to the content of the target message;
the display module is used for displaying the target message in a target social interface according to the index position information and the second social object information corresponding to the target message;
the index position information corresponding to the target message comprises timestamp sub-information for generating the target message.
The message processing apparatus in the embodiment of the present application may be an apparatus, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The message processing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The message processing apparatus provided in the embodiment of the present application can implement each process implemented by the foregoing method embodiment, and is not described here again to avoid repetition.
Optionally, as shown in fig. 3, an electronic device 100 is further provided in this embodiment of the present application, and includes a processor 101, a memory 102, and a program or an instruction stored in the memory 102 and executable on the processor 101, where the program or the instruction is executed by the processor 101 to implement each process of the foregoing message processing method embodiment, and can achieve the same technical effect, and no further description is provided here to avoid repetition.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 4 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010.
Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 4 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 1010 is configured to acquire target identification information corresponding to a target message when the target message is deleted on a target social interface; matching the content of the target message with the content of the historical message; associating the target identification information with target historical message content if the content of the target message matches the target historical message content; the target identification information comprises first social object information corresponding to the target social interface, second social object information corresponding to the target message, index position information corresponding to the target message and position information corresponding to the content of the target message.
Thus, in the embodiment of the application, when a user deletes a target message on a target social interface, target identification information corresponding to the target message is obtained, wherein the target identification information includes first social object information corresponding to the target social interface, and if the target message is deleted on a chat interface of a friend a, the first social object information is account information of the friend a; the target identification information also comprises second social object information corresponding to the target message, and if the target message is sent by the friend A, the second social object is account information of the friend A; the target identification information also comprises index position information corresponding to the target message, and the index position information is the only information which is distributed to the target message by the system and can play a positioning role; and also includes the position information corresponding to the content of the target message, i.e. the ordering of the content in the target message in the whole target message. After the target identification information is acquired, the history message content consistent with the content of the target message is matched in all the existing history message contents, and when the content of the target message is matched with the content of the target history message, the previously acquired target identification information is associated with the content of the target history message, such as association modes such as binding, marking and the like, so that the backup of the target message is completed. Therefore, in the embodiment of the application, before the target message is deleted, the target message is backed up in a manner of associating the target identification information with the content of the historical message, so that inconvenience brought to the user due to unscented searching when the user performs misoperation or needs to check the deleted chat record again is avoided.
Optionally, the processor 1010 is further configured to associate the target identification information with a target historical message content in a historical message if the entire content of the target message matches the target historical message content; and the position information corresponding to the content of the target message is the position information of all the content.
Optionally, the processor 1010 is further configured to associate the target identification information with a target historical message content in a historical message if a partial content of the target message matches the target historical message content; the position information corresponding to the content of the target message is the position information corresponding to the part of the content in the target message; and under the condition that partial content of the target message is matched with the target historical message content in one historical message, repeatedly matching the content of the target message with the historical message content until all the content of the target message is matched with the target historical message content in a plurality of historical messages.
Optionally, the index position information corresponding to the target message includes timestamp sub-information for generating the target message; a processor 1010 further configured to match the content of the target message with historical message content associated with the timestamp sub-information; and sequentially acquiring corresponding historical message contents according to the sequence of the correlation degree from strong to weak for matching until the content of the target message is matched with the content of the target historical message.
Optionally, a user input unit 1007 for receiving a first input by a user; the first input is used for searching the target message; a processor 1010 further configured to determine, in response to the first input, a target historical message content associated with the target identification information from among historical message contents, based on the target identification information; outputting the content of the target historical message as the content of the target message according to the position information corresponding to the content of the target message; a display unit 1006, configured to display the target message in the target social interface according to the index position information corresponding to the target message and the second social object information; wherein the index position information corresponding to the target message includes timestamp sub-information for generating the target message.
In summary, the present application mainly provides a message backup function, when a user deletes a message, the system automatically backs up a piece of data, but the data is not listed separately, but is stored in a binding manner with other chat messages; meanwhile, a message retrieving function is provided, when a user wants to recover the message, the user directly reads other chat message acquisition marks and then recovers the deleted chat message. Therefore, the method and the device can solve the problem that the user cannot recover when deleting the message by mistake, and protect the chat records of the user better. Meanwhile, the method for backing up the deleted message does not influence the use of other functions, and improves the user experience.
It should be understood that in the embodiment of the present application, the input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, and the Graphics Processing Unit 10041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 may include two parts, a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 1009 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. Processor 1010 may integrate an application processor that handles primarily operating systems, user interfaces, applications, etc. and a modem processor that handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above-mentioned message processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the above-mentioned message processing method embodiment, and can achieve the same technical effect, and is not described here again to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method of message processing, the method comprising:
under the condition that a target message is deleted on a target social interface, acquiring target identification information corresponding to the target message;
matching the content of the target message with the content of the historical message;
associating the target identification information with target historical message content if the content of the target message matches the target historical message content;
the target identification information comprises first social object information corresponding to the target social interface, second social object information corresponding to the target message, index position information corresponding to the target message and position information corresponding to the content of the target message.
2. The method of claim 1, wherein associating the target identification information with the target historical message content if the content of the target message matches the target historical message content comprises:
associating the target identification information with a target historical message content in a historical message if the entire content of the target message matches the target historical message content;
and the position information corresponding to the content of the target message is the position information of all the content.
3. The method of claim 1, wherein associating the target identification information with the target historical message content if the content of the target message matches the target historical message content comprises:
in the case that part of the content of the target message matches the content of a target historical message in a historical message, associating the target identification information with the content of the target historical message; the position information corresponding to the content of the target message is the position information corresponding to the part of the content in the target message;
and under the condition that partial content of the target message is matched with the target historical message content in one historical message, repeatedly matching the content of the target message with the historical message content until all the content of the target message is matched with the target historical message content in a plurality of historical messages.
4. The method of claim 1, wherein the index position information corresponding to the target message comprises timestamp sub-information for generating the target message;
the matching the content of the target message with the content of the historical message comprises:
matching the content of the target message with the historical message content related to the timestamp sub-information;
and sequentially acquiring corresponding historical message contents according to the sequence of the correlation degree from strong to weak for matching until the content of the target message is matched with the content of the target historical message.
5. The method of claim 1, wherein after associating the target identification information with the target historical message content, further comprising:
receiving a first input of a user; the first input is used for searching the target message;
in response to the first input, determining target historical message content associated with the target identification information in historical message content according to the target identification information;
outputting the content of the target historical message as the content of the target message according to the position information corresponding to the content of the target message;
displaying the target message in the target social interface according to the index position information corresponding to the target message and the second social object information;
wherein the index position information corresponding to the target message includes timestamp sub-information for generating the target message.
6. A message processing apparatus, characterized in that the apparatus comprises:
the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring target identification information corresponding to a target message under the condition that the target message is deleted on a target social interface;
the matching module is used for matching the content of the target message with the content of the historical message;
the association module is used for associating the target identification information with the target historical message content under the condition that the content of the target message is matched with the target historical message content;
the target identification information comprises first social object information corresponding to the target social interface, second social object information corresponding to the target message, index position information corresponding to the target message and position information corresponding to the content of the target message.
7. The apparatus of claim 6, wherein the associating module comprises:
a first associating unit configured to associate the target identification information with a target history message content in one history message, in a case where all contents of the target message match with the target history message content;
and the position information corresponding to the content of the target message is the position information of all the content.
8. The apparatus of claim 6, wherein the associating module comprises:
a second associating unit, configured to associate the target identification information with a target history message content in a history message if a partial content of the target message matches the target history message content; the position information corresponding to the content of the target message is the position information corresponding to the part of the content in the target message;
and under the condition that partial content of the target message is matched with the target historical message content in one historical message, repeatedly matching the content of the target message with the historical message content until all the content of the target message is matched with the target historical message content in a plurality of historical messages.
9. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the message processing method as claimed in any one of claims 1-5.
10. A readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the message processing method according to any one of claims 1-5.
CN202110461110.8A 2021-04-27 2021-04-27 Message processing method and electronic equipment Active CN113179207B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110461110.8A CN113179207B (en) 2021-04-27 2021-04-27 Message processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110461110.8A CN113179207B (en) 2021-04-27 2021-04-27 Message processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN113179207A true CN113179207A (en) 2021-07-27
CN113179207B CN113179207B (en) 2022-08-02

Family

ID=76927034

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110461110.8A Active CN113179207B (en) 2021-04-27 2021-04-27 Message processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN113179207B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090064735A (en) * 2007-12-17 2009-06-22 삼성전자주식회사 Deleting method of communication information
US20130159405A1 (en) * 2011-12-19 2013-06-20 Microsoft Corporation Restoring deleted items with context
CN105072279A (en) * 2015-08-25 2015-11-18 努比亚技术有限公司 Backup device and method based on mobile terminal
CN109286560A (en) * 2018-11-19 2019-01-29 北京达佳互联信息技术有限公司 A kind of method and device obtaining instant communication information
CN110768894A (en) * 2019-09-02 2020-02-07 上海掌门科技有限公司 Method and equipment for deleting session message
CN112311660A (en) * 2020-10-30 2021-02-02 维沃移动通信有限公司 Message deleting method and device and electronic equipment
CN112306748A (en) * 2020-10-21 2021-02-02 深圳万兴软件有限公司 Data recovery method, device and storage medium
CN112540712A (en) * 2020-12-07 2021-03-23 维沃移动通信有限公司 Message processing method and device, electronic equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090064735A (en) * 2007-12-17 2009-06-22 삼성전자주식회사 Deleting method of communication information
US20090163178A1 (en) * 2007-12-17 2009-06-25 Samsung Electronics Co., Ltd. Method and apparatus for deleting communication information in a portable terminal
US20130159405A1 (en) * 2011-12-19 2013-06-20 Microsoft Corporation Restoring deleted items with context
CN103246429A (en) * 2011-12-19 2013-08-14 微软公司 Restoring deleted items with context
CN105072279A (en) * 2015-08-25 2015-11-18 努比亚技术有限公司 Backup device and method based on mobile terminal
CN109286560A (en) * 2018-11-19 2019-01-29 北京达佳互联信息技术有限公司 A kind of method and device obtaining instant communication information
CN110768894A (en) * 2019-09-02 2020-02-07 上海掌门科技有限公司 Method and equipment for deleting session message
CN112306748A (en) * 2020-10-21 2021-02-02 深圳万兴软件有限公司 Data recovery method, device and storage medium
CN112311660A (en) * 2020-10-30 2021-02-02 维沃移动通信有限公司 Message deleting method and device and electronic equipment
CN112540712A (en) * 2020-12-07 2021-03-23 维沃移动通信有限公司 Message processing method and device, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈瑞君: "《Android手机数据取证应用研究》", 《中国优秀博硕士学位论文全文数据库(硕士)社会科学Ⅰ辑》 *

Also Published As

Publication number Publication date
CN113179207B (en) 2022-08-02

Similar Documents

Publication Publication Date Title
CN113518026B (en) Message processing method and device and electronic equipment
CN113014476B (en) Group creation method and device
US20170278069A1 (en) Method and electronic device for extracting data of newly-created calendar events
WO2021254251A1 (en) Input display method and apparatus, and electronic device
CN111859900A (en) Message display method and device and electronic equipment
CN112416212B (en) Program access method, apparatus, electronic device and readable storage medium
CN112887488B (en) Caller identification method and device and electronic equipment
CN112134987A (en) Information processing method and device and electronic equipment
CN113179207B (en) Message processing method and electronic equipment
CN113709300B (en) Display method and device
CN112765946B (en) Chart display method and device and electronic equipment
CN113138702B (en) Information processing method, device, electronic equipment and storage medium
CN113271379B (en) Image processing method and device and electronic equipment
CN113312662B (en) Message processing method and device and electronic equipment
CN112256179B (en) Text processing method and device
CN113127653A (en) Information display method and device
CN112099703B (en) Desktop pendant display method and device and electronic equipment
CN114490754A (en) Document auditing method and device and electronic equipment
CN114491218A (en) Information updating method, information updating device, electronic device, and medium
CN112307273A (en) Information query method and device and electronic equipment
CN113962316A (en) Model training method and device and electronic equipment
CN113163256A (en) Method and device for generating operation flow file based on video
CN112311660A (en) Message deleting method and device and electronic equipment
CN107733779B (en) Function expansion method and device based on contact persons
CN113347076B (en) Session information deleting method and device

Legal Events

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