CN114610682A - Chat record processing method, device, terminal and storage medium - Google Patents

Chat record processing method, device, terminal and storage medium Download PDF

Info

Publication number
CN114610682A
CN114610682A CN202210146549.6A CN202210146549A CN114610682A CN 114610682 A CN114610682 A CN 114610682A CN 202210146549 A CN202210146549 A CN 202210146549A CN 114610682 A CN114610682 A CN 114610682A
Authority
CN
China
Prior art keywords
chat
deleting
classification information
instruction
processing method
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.)
Pending
Application number
CN202210146549.6A
Other languages
Chinese (zh)
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.)
Umeox Innovations Co ltd
Original Assignee
Umeox Innovations 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 Umeox Innovations Co ltd filed Critical Umeox Innovations Co ltd
Priority to CN202210146549.6A priority Critical patent/CN114610682A/en
Publication of CN114610682A publication Critical patent/CN114610682A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems

Abstract

The application discloses a chat record processing method, a device, a terminal and a storage medium, wherein the chat record processing method comprises the steps of firstly obtaining a deletion instruction, wherein the deletion instruction comprises classification information, and the classification information comprises large files; and then deleting the chat records corresponding to the classification information according to the deletion instruction. Therefore, the chat records corresponding to the classification information can be deleted, and the classification information comprises the large file class, so that the chat records classified into the large file class can be deleted, and the memory occupation of the user terminal is reduced.

Description

Chat record processing method, device, terminal and storage medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method, an apparatus, a terminal, and a storage medium for processing a chat log.
Background
With the development of mobile communication technology, especially the popularization and application of mobile networks and intelligent terminals, the field of mobile internet is rapidly developed, the use of instant messaging applications is more and more extensive, and users can utilize the instant messaging applications to carry out social chat, share pictures and videos and the like. Among them, using an instant messaging application for chatting is the most common function. However, as the variety of instant messaging applications increases and the number of people installing the instant messaging applications increases, more and more files are generated by the instant messaging applications, wherein the picture files and the video files in the chat records occupy a lot of storage space of the terminal. Although these instant messaging applications also provide some ways to clear chat records, these ways either delete all chat records with one key and clear some important information; or the user is required to manually select deletion one by one, and the operation is complicated.
Disclosure of Invention
The present application is directed to solving at least one of the problems in the prior art. Therefore, the application provides a chat record processing method, a chat record processing device, a terminal and a storage medium, which can delete the chat records corresponding to the classification information.
An embodiment of a first aspect of the present application provides a chat record processing method, including:
acquiring a deleting instruction; the deleting instruction comprises classification information, and the classification information comprises a large file class;
and deleting the chat records corresponding to the classified information according to the deleting instruction.
The chat record processing method according to the embodiment of the first aspect of the present application has at least the following beneficial effects: according to the chat record processing method, a deleting instruction is obtained firstly, wherein the deleting instruction comprises classification information, and the classification information comprises large files; and then deleting the chat records corresponding to the classification information according to the deletion instruction. Therefore, the chat records corresponding to the classification information can be deleted, and the classification information comprises the large file class, so that the chat records classified into the large file class can be deleted, and the memory occupation of the user terminal is reduced.
According to some embodiments of the first aspect of the present application, the delete instruction comprises a specified contact; the deleting the chat records corresponding to the classification information according to the deleting instruction comprises the following steps:
and deleting the chat records corresponding to the classification information of the designated contact.
According to some embodiments of the first aspect of the present application, before the obtaining the deletion instruction, the method further includes:
and classifying the chat records according to the attribute information of the chat records.
According to some embodiments of the first aspect of the present application, the classifying the chat logs according to the attribute information of the chat logs includes:
if the file type of the chat record is a first type, classifying the chat record into the large file type;
the first type includes one of: pictures and videos.
According to some embodiments of the first aspect of the present application, the classifying the chat logs according to the attribute information of the chat logs includes:
and if the occupied memory of the chat records is larger than a preset threshold value, classifying the chat records into the large file class.
According to some embodiments of the first aspect of the present application, after deleting the chat records corresponding to the classification information according to the deletion instruction, the method further includes:
the chat logs below the deleted chat log are shifted up.
According to some embodiments of the first aspect of the present application, after deleting the chat records corresponding to the classification information according to the deletion instruction, the method further includes:
and outputting information for prompting that the chat records corresponding to the classification information are deleted.
An embodiment of a second aspect of the present application provides a chat history processing apparatus, including:
the acquisition module is used for acquiring a deletion instruction; the deleting instruction comprises classification information, and the classification information comprises a large file class;
and the deleting module is used for deleting the chat records corresponding to the classified information according to the deleting instruction.
An embodiment of a third aspect of the present application provides a terminal, including:
at least one memory;
at least one processor;
at least one program;
the programs are stored in the memory, and the processor executes at least one of the programs to implement:
the chat log processing method according to the embodiment of the first aspect of the present application.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium having stored thereon computer-executable signals for performing:
the chat log processing method according to the embodiment of the first aspect of the present application.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The present application is further described with reference to the following figures and examples, in which:
fig. 1 is a flowchart illustrating steps of a chat log processing method according to an embodiment of the present application;
fig. 2 is a schematic interface diagram of an instant messaging application in the embodiment of the present application when a delete instruction is obtained;
fig. 3 is a schematic diagram illustrating an instant messaging application outputting a popup indicating that a popup is successfully deleted according to an embodiment of the present application;
fig. 4 is a block diagram of a chat log processing apparatus according to an embodiment of the present application;
fig. 5 is a block diagram of a terminal according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application.
In the description of the present application, it is to be understood that the positional descriptions, such as the directions of up, down, front, rear, left, right, etc., referred to herein are based on the directions or positional relationships shown in the drawings, and are only for convenience of description and simplification of description, and do not indicate or imply that the referred device or element must have a specific direction, be constructed and operated in a specific direction, and thus, should not be construed as limiting the present application.
It should be noted that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different from that in the flowcharts. The terms etc. in the description and claims and the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
In the description of the present application, the meaning of a plurality is one or more, the meaning of a plurality is two or more, and the above, below, exceeding, etc. are understood as excluding the present number, and the above, below, within, etc. are understood as including the present number. If the first and second are described for the purpose of distinguishing technical features, they are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
In the description of the present application, unless otherwise expressly limited, terms such as set, mounted, connected and the like should be construed broadly, and those skilled in the art can reasonably determine the specific meaning of the terms in the present application by combining the detailed contents of the technical solutions.
In the description of the present application, reference to the description of the terms "one embodiment," "some embodiments," "an illustrative embodiment," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Referring to fig. 1, an embodiment of the present application provides a chat log processing method, including but not limited to step S110 and step S120.
Step S110, acquiring a deleting instruction; the deleting instruction comprises classification information which comprises a large file class;
and step S120, deleting the chat records corresponding to the classification information according to the deletion instruction.
The chat record processing method in the embodiment of the first aspect of the application can be applied to instant messaging application in a terminal, and a deleting instruction is obtained first, wherein the deleting instruction comprises classification information, and the classification information comprises large files; and then deleting the chat records corresponding to the classification information according to the deletion instruction. Therefore, the chat records corresponding to the classification information can be deleted, and the classification information comprises the large file class, so that the chat records classified into the large file class can be deleted, and the memory occupation of the user terminal is reduced. All chat records classified into large files can be deleted, and the user does not need to manually select deletion one by one, so that the method is convenient and quick; and when deleting, only delete the chat record classified as the large-scale file class, keep the chat record of other classifications, can keep the chat record that users want to keep.
It is to be understood that the delete instruction includes the designated contact; step S120, deleting the chat records corresponding to the classification information according to the deletion instruction, including:
and deleting the chat records corresponding to the classification information of the specified contact.
It can be understood that the user may trigger the deletion instruction by operating the instant messaging application in the terminal, so that the deletion instruction may be obtained. For example, when the terminal is a touch screen mobile phone, a user may open a contact of the instant messaging application, select a contact needing to delete a chat record, and then select to delete a large-sized file chat record, so as to trigger a deletion instruction, and enable the deletion instruction to include a designated contact and classification information, where the classification information is a large-sized file class. Therefore, the terminal can execute the chat record processing method of the embodiment of the application, so that all the chat records corresponding to the classified information between the terminal and the appointed contact are deleted, the user does not need to manually select and delete the chat records one by one, and the method is convenient and quick; and when deleting, only delete the chat record classified as the large-scale file class, keep the chat record of other classifications, can keep the chat record that users want to keep. It should be noted that the above-described obtaining of the deletion instruction is only an example, and is not to be construed as a limitation to the embodiments of the present application, and a person skilled in the art may set how to obtain the deletion instruction according to actual situations. For another example, referring to fig. 2, fig. 2 is an interface of some instant messaging applications when a delete instruction is obtained, and is an instant messaging application logged in a touch screen mobile phone, and fig. 2 shows a contact address list of some users, which includes 4 contacts, that is, contact 1, contact 2, contact 3, and contact 4, where if a user needs to delete a large file of a chat record with contact 4, the user presses contact 4 through the touch screen mobile phone, and then slides right, a button for deleting the large file in the chat record appears beside contact 4, and when the user clicks the button, the delete instruction is triggered, so that the instant messaging application can obtain the delete instruction.
It should be noted that the terminal may be a touch-screen mobile phone, a push-button mobile phone, a notebook computer, a desktop computer, a smart watch, or other internet devices, which is not specifically limited in this application.
It is to be understood that, before acquiring the deletion instruction in step S110, the method further includes:
and classifying the chat records according to the attribute information of the chat records. The chat records are obtained from a server in the instant messaging application, the obtained chat records are stored in a local database of the terminal, the database can establish a record table for the chat records, each chat record is stored in the record table, each chat record comprises related attribute information, and the attribute information comprises but is not limited to sending time, contacts, file types, occupied memory, local resource paths and chat record numbers. The chat logs are classified according to the attribute information of the chat logs, so that the chat logs corresponding to the classification information are deleted from the log table and the rest of the chat logs are reserved when step S120 is executed.
It is understood that the chat records are classified according to the attribute information of the chat records, including:
if the file type of the chat records is the first type, classifying the chat records into a large file type; wherein the first type comprises one of: pictures and videos. If the file type in the attribute information of the chat records is the picture or the video, the chat records are classified into a large file type, so that the chat records with the file type of the picture or the video between the user and the appointed contact can be deleted when the chat records are deleted, and the occupation of the memory of the terminal is reduced. It should be noted that the first type may also include audio, CAD, ZIP, etc., and those skilled in the art may set the first file type according to actual needs.
It is understood that the chat records are classified according to the attribute information of the chat records, including:
and if the memory occupied by the chat records is larger than the preset threshold value, classifying the chat records into a large file class. For example, the preset threshold is 3MB, and if the occupied memory of the attribute information of the chat record is greater than 3MB, the chat record is classified into a large file class. Therefore, when the chat records are deleted, the chat records occupying the memory larger than 3MB between the user and the designated contact person can be deleted, so that the occupation of the memory of the terminal is reduced. It should be noted that the preset threshold of 3MB is only an example, and is not to be understood as a limitation to the embodiment of the present application, and a person skilled in the art may set a specific value of the preset threshold according to actual needs.
It is understood that, after deleting the chat records corresponding to the classification information according to the deletion instruction at step S120, the method further includes:
the chat logs below the deleted chat log are shifted up. So that the remaining chat log can be filled in with the location of the deleted chat log.
It is understood that, after deleting the chat records corresponding to the classification information according to the deletion instruction at step S120, the method further includes:
and outputting information for prompting that the chat records corresponding to the classification information are deleted. It is convenient to remind the user that the deletion is successful. For example, after deleting the chat log corresponding to the classification information according to the deletion instruction, a popup for prompting the success of the deletion pops up. For example, referring to fig. 3, fig. 3 is a schematic diagram of the instant messaging application outputting a popup for prompting that deletion is successful, and after the user selects a large file of a chat record with the contact 4 to be deleted and the deletion is successful, the instant messaging application pops up the popup for prompting the user that the deletion is successful.
In a second aspect, referring to fig. 4, an embodiment of the present application provides a chat log processing apparatus, including:
the obtaining module 100, wherein the obtaining module 100 is configured to obtain a deletion instruction; the deleting instruction comprises classification information which comprises a large file class;
and a deleting module 200, wherein the deleting module 200 is used for deleting the chat records corresponding to the classification information according to the deleting instruction.
In the chat record processing apparatus according to the embodiment of the second aspect of the present application, the obtaining module 100 first obtains a deletion instruction, where the deletion instruction includes classification information, and the classification information includes a large file class; the chat history corresponding to the classification information is then deleted by the deletion module 200 according to the deletion instruction. Therefore, the chat records corresponding to the classification information can be deleted, and the classification information comprises the large file class, so that the chat records classified into the large file class can be deleted, and the memory occupation of the user terminal is reduced. All chat records classified into large files can be deleted, and the user does not need to manually select deletion one by one, so that the method is convenient and quick; and when deleting, only delete the chat record classified as the large-scale file class, keep the chat record of other classifications, can keep the chat record that users want to keep.
It should be noted that the chat history processing apparatus in the above-mentioned embodiment is based on the same inventive concept as the chat history processing method in the above-mentioned embodiment, and therefore, the corresponding content of the chat history processing method in the above-mentioned embodiment is also applicable to the chat history processing apparatus in the above-mentioned embodiment, and has the same implementation principle and technical effect, and in order to avoid the redundancy of the description content, the detailed description is omitted here.
In a third aspect, referring to fig. 4, an embodiment of the present application provides a terminal, including:
at least one memory 400;
at least one processor 300;
at least one program;
the programs are stored in the memory 400 and the processor 300 executes at least one program to implement:
a chat log processing method as in the embodiment of the first aspect of the present application.
The processor 300 and the memory 400 may be connected by a bus or other means.
The memory 400 serves as a non-transitory readable storage medium that can be used to store non-transitory software signals as well as non-transitory signals. Further, the memory 400 may include high speed random access memory 400, and may also include non-transitory memory 400, such as at least one piece of disk memory 400, flash memory device, or other non-transitory solid state memory 400. It will be appreciated that the memory 400 may alternatively comprise memory 400 located remotely with respect to the processor 300, and that such remote memory 400 may be coupled to the processor 300 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The processor 300 implements the inter-satellite link switching method of the first aspect embodiment or the second aspect embodiment by executing the non-transitory software instructions, instructions and signals stored in the memory 400, thereby implementing various functional applications and data processing.
The non-transitory software instructions and instructions required to implement the chat log processing method of the first aspect of the present application are stored in the memory 400, and when executed by the processor 300, perform the chat log processing method of the first aspect of the present application, for example, perform the above-described method steps S110 to S120 in fig. 1.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and the 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 a fourth aspect, embodiments of the present application provide a computer-readable storage medium storing computer-executable signals for performing:
a chat log processing method as in the embodiment of the first aspect of the present application. For example, the method steps S110 to S120 in fig. 1 described above are performed.
From the above description of embodiments, those of ordinary skill in the art will appreciate that all or some of the steps, systems, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor 100, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as integrated circuits, such as application specific integrated circuits. Such software may be distributed on readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of signals such as computer readable signals, data structures, instruction modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory 200 technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired signals and which can be accessed by a computer. In addition, communication media typically embodies computer-readable signals, data structures, instruction modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any signal delivery media as is known to those of ordinary skill in the art.
The embodiments of the present application have been described in detail with reference to the drawings, but the present application is not limited to the embodiments, and various changes can be made within the knowledge of those skilled in the art without departing from the gist of the present application. Furthermore, the embodiments and features of the embodiments of the present application may be combined with each other without conflict.

Claims (10)

1. A method for processing chat logs, comprising:
acquiring a deleting instruction; the deleting instruction comprises classification information, and the classification information comprises a large file class;
and deleting the chat records corresponding to the classified information according to the deleting instruction.
2. The chat log processing method of claim 1, wherein the delete instruction includes a designated contact; the deleting the chat records corresponding to the classification information according to the deleting instruction comprises the following steps:
and deleting the chat records corresponding to the classification information of the designated contact.
3. The chat log processing method according to claim 1, further comprising, before the obtaining the deletion instruction:
and classifying the chat records according to the attribute information of the chat records.
4. The method of claim 3, wherein the classifying the chat logs according to the attribute information of the chat logs comprises:
if the file type of the chat record is a first type, classifying the chat record into the large file type;
the first type includes one of: pictures and videos.
5. The method of claim 3, wherein the classifying the chat logs according to the attribute information of the chat logs comprises:
and if the occupied memory of the chat records is larger than a preset threshold value, classifying the chat records into the large file class.
6. The method for processing chat logs according to claim 1, further comprising, after deleting the chat logs corresponding to the classification information according to the deletion instruction:
the chat logs below the deleted chat log are shifted up.
7. The chat log processing method according to claim 1, further comprising, after deleting the chat log corresponding to the classification information according to the deletion instruction:
and outputting information for prompting that the chat records corresponding to the classification information are deleted.
8. A chat log processing apparatus, comprising:
the acquisition module is used for acquiring a deletion instruction; the deleting instruction comprises classification information, and the classification information comprises a large file class;
and the deleting module is used for deleting the chat records corresponding to the classified information according to the deleting instruction.
9. A terminal, comprising:
at least one memory;
at least one processor;
at least one program;
the programs are stored in the memory, and the processor executes at least one of the programs to implement:
a chat log processing method according to any one of claims 1 to 7.
10. A computer-readable storage medium having computer-executable signals stored thereon for performing:
a chat log processing method according to any one of claims 1 to 7.
CN202210146549.6A 2022-02-17 2022-02-17 Chat record processing method, device, terminal and storage medium Pending CN114610682A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210146549.6A CN114610682A (en) 2022-02-17 2022-02-17 Chat record processing method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210146549.6A CN114610682A (en) 2022-02-17 2022-02-17 Chat record processing method, device, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN114610682A true CN114610682A (en) 2022-06-10

Family

ID=81859662

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210146549.6A Pending CN114610682A (en) 2022-02-17 2022-02-17 Chat record processing method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN114610682A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116450635A (en) * 2023-06-15 2023-07-18 成都豪杰特科技有限公司 Data cleaning method and system based on artificial intelligence

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116450635A (en) * 2023-06-15 2023-07-18 成都豪杰特科技有限公司 Data cleaning method and system based on artificial intelligence
CN116450635B (en) * 2023-06-15 2024-01-09 中免日上互联网科技有限公司 Data cleaning method and system based on artificial intelligence
CN116450635B8 (en) * 2023-06-15 2024-03-22 中免日上互联科技有限公司 Data cleaning method and system based on artificial intelligence

Similar Documents

Publication Publication Date Title
US9594496B2 (en) Method and apparatus for playing IM message
US9369669B2 (en) Video communication method and system in instant communication
CN108809812B (en) Communication method and device and electronic equipment
CN109799938B (en) Control display management method, terminal device and computer readable storage medium
EP3567476A1 (en) Application data processing method and apparatus, and storage medium
CN105871690B (en) Method and device for realizing instant messaging
US10664443B2 (en) Method and apparatus for presenting to-be-cleaned data, and electronic device
CN103440247A (en) Method and device for sending photos
CN105577772A (en) Material receiving method, material uploading method and device
CN103327182A (en) Method for rapidly sending pictures and mobile terminal thereof
WO2023016536A1 (en) Interaction method, apparatus and device, and storage medium
US20190007359A1 (en) Mail information management method and associated apparatus
CN105227444A (en) Based on message informing method and the device of instant messaging
US20160246460A1 (en) Method and apparatus for arranging instant messaging widows
US20160205183A1 (en) Method and aparatus for backing up data and electronic device
CN112947807A (en) Display method and device and electronic equipment
WO2016205234A1 (en) E-mail processing
CN114610682A (en) Chat record processing method, device, terminal and storage medium
CN109697129A (en) A kind of information sharing method, equipment and computer readable storage medium
US11163827B2 (en) Video processing method, device, terminal and storage medium
CN105991683A (en) Data transmission method and device
CN107168648B (en) File storage method and device and terminal
CN113037609B (en) Chat message deleting method and device
CN108647197B (en) Information processing method, device and storage medium
CN105704007A (en) Multimedia message sending method and system of terminal

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