CN113037609B - Chat message deleting method and device - Google Patents

Chat message deleting method and device Download PDF

Info

Publication number
CN113037609B
CN113037609B CN202110207807.2A CN202110207807A CN113037609B CN 113037609 B CN113037609 B CN 113037609B CN 202110207807 A CN202110207807 A CN 202110207807A CN 113037609 B CN113037609 B CN 113037609B
Authority
CN
China
Prior art keywords
message
chat
chat message
target
preview
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110207807.2A
Other languages
Chinese (zh)
Other versions
CN113037609A (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 CN202110207807.2A priority Critical patent/CN113037609B/en
Publication of CN113037609A publication Critical patent/CN113037609A/en
Application granted granted Critical
Publication of CN113037609B publication Critical patent/CN113037609B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/043Real-time or near real-time messaging, e.g. instant messaging [IM] using or handling presence information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a method and a device for deleting a chat message, wherein the method for deleting the chat message comprises the following steps: receiving a message deletion input of a user, wherein the message deletion input is used for deleting a chat message of a target communication object in a target application program; in response to a message deletion input, displaying a first configuration interface, the first configuration interface including a plurality of message deletion conditions; receiving a first input of a target deleting condition selected by a user from a plurality of message deleting conditions; and in response to the first input, deleting a first chat message meeting the target deletion condition in the chat messages of the target communication object. In the embodiment of the application, the user can delete the unimportant first chat message by configuring the target deletion condition, so that the deletion of the more important message is avoided. And the first chat messages meeting the target deletion condition can be deleted in batches, so that the message deletion efficiency is improved.

Description

Chat message deleting method and device
Technical Field
The application belongs to the field of electronic equipment, and particularly relates to a chat message deleting method and device.
Background
With the development of technologies, applications in electronic devices are more and more abundant, and users can use the applications for social contact, entertainment or work. As the time a user uses an application increases, the application receives more and more messages, and the received messages occupy more and more storage space of the electronic device. When the messages of the application program are accumulated to a certain degree, the electronic equipment has insufficient storage space.
In order to free up the storage space of the electronic device, the user usually deletes some chat messages of the application program. In the related art, the user can delete the chat message with a certain communication object by one-touch, and the user can manually select some unimportant chat messages to delete.
However, the method of deleting messages by one key may cause some important chat messages to be deleted, and for the method of manually selecting chat messages by a user, the user needs to perform multiple operations, resulting in low efficiency of deleting chat messages.
Disclosure of Invention
The embodiment of the application aims to provide a method and a device for deleting a chat message, which can solve the problem of low efficiency of deleting the chat message.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a method for deleting a chat message, including:
receiving a message deletion input of a user, wherein the message deletion input is used for deleting a chat message with a target communication object in a target application program;
in response to the message deletion input, displaying a first configuration interface, the first configuration interface including a plurality of message deletion conditions;
receiving a first input of a user for selecting a target deletion condition in the plurality of message deletion conditions;
and in response to the first input, deleting a first chat message meeting the target deletion condition in the chat messages of the target communication object.
In a second aspect, an embodiment of the present application provides a device for deleting a chat message, including:
the system comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving a message deleting input of a user, and the message deleting input is used for deleting a chat message of a target communication object in a target application program;
a first display module to display a first configuration interface in response to the message deletion input, the first configuration interface including a plurality of message deletion conditions;
the second receiving module is used for receiving a first input that a user selects a target deleting condition in the plurality of message deleting conditions;
and the deleting module is used for responding to the first input and deleting the first chat message meeting the target deleting condition in the chat messages of the target communication object.
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.
In the embodiment of the application, a first configuration interface is displayed under the condition that a message deleting input of a user is received, and the first configuration interface comprises a plurality of message deleting conditions. And deleting the first chat message of the target application program, which meets the target deletion condition, under the condition that the first input of the target deletion condition selected by the user from the plurality of message deletion conditions is received. Since the target deletion condition is configured by the user, the user can delete the unimportant first chat message by configuring the target deletion condition, thereby avoiding deleting the more important message. In addition, the first chat messages meeting the target deletion condition can be deleted in batches, and the messages needing to be deleted are not required to be manually and sequentially selected by a user, so that the message deletion efficiency is improved.
Drawings
Fig. 1 is a flowchart illustrating an embodiment of a chat message deleting method provided in the present application.
Fig. 2 is a schematic diagram of an embodiment of a deletion mode selection interface provided in the present application.
FIG. 3 is a schematic diagram of one embodiment of a first configuration interface provided herein.
FIG. 4 is a schematic diagram of another embodiment of a first configuration interface provided herein.
FIG. 5 is a schematic diagram illustrating one embodiment of a preview prompt interface provided by the present application.
Fig. 6-8 are schematic diagrams of one embodiment of a second configuration interface provided herein.
FIG. 9 is a diagram illustrating one embodiment of a message preview interface provided by the present application.
Fig. 10 is a schematic diagram of another embodiment of a message preview interface provided by the present application.
Fig. 11 is a schematic structural diagram of an embodiment of a chat message deleting device provided in the present application.
Fig. 12 is a schematic hardware structure diagram of an embodiment of an electronic device provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described 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, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
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 is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. 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.
At present, users often use electronic devices such as mobile phones and computers to chat with other people. In addition to telephone and video chat, the chat mode is more by text, pictures, voice, small videos and the like. When texts, pictures, documents, videos and the like in the application program are accumulated to a certain degree, the electronic equipment has the situation that the memory is not enough, some chat contents are considered important by the user, some chat contents are considered unimportant by the user, some chat contents are wanted to be reserved by the user, and some chat contents are unwanted by the user. So how to delete chat messages in a strategic way is a problem that people have to face.
In the related art, all chat messages with a certain communication partner may be deleted, or all chat messages with all communication partners may be deleted.
If a user wants to selectively delete and retain the chat messages with a communication object, the user needs to manually screen the chat contents, delete unimportant messages and retain important messages. Screening in this manner can be particularly time consuming for users in the face of a large number of chat messages.
In addition, the user can select the mode of ' delete by one key ' to delete the chat message, and the user can lose how many important chat messages to the chat object by one key ' to delete the chat message. For example, when the user does not store a contract with a friend who has not seen the chat for many years and does not record the home address provided by the other party, there is a high possibility that the user may mistakenly delete an important chat message when "delete" the chat message by one key.
Therefore, it is an urgent technical problem to avoid deleting some important chat messages and to avoid deleting the chat messages with low efficiency.
In view of the above technical problem, the present application provides a chat message deleting method, in which a message deleting input of a user is received and used to delete a chat message with a target communication object in a target application program, in this case, a first configuration interface is displayed, the first configuration interface includes a plurality of message deleting conditions, and the user may select a target deleting condition from the plurality of message deleting conditions according to a requirement. Then, the first chat message which is in the target application program and is communicated with the target communication object and meets the target deletion condition is deleted.
Since the target deletion condition is configured by the user, the user can delete the first chat message which is not important by configuring the target deletion condition, thereby avoiding deleting the message which is more important. In addition, the first chat messages meeting the target deletion condition can be deleted in batches, and the messages needing to be deleted are not required to be manually and sequentially selected by a user, so that the message deletion efficiency is improved.
The following describes a chat message deletion method provided by the present application with reference to the drawings. Fig. 1 is a flowchart illustrating an embodiment of a chat message deleting method provided in the present application. As shown in fig. 1, the chat message deletion method 100 includes:
s102, receiving a message deletion input of a user, wherein the message deletion input is used for deleting a chat message of a target communication object in a target application program;
as an example, before S102, the chat message deletion method 100 may further include: in the case of displaying a chat interface of the target application with the target communication object, an input to the chat interface is received, and then a message deletion control is displayed. In this case, S102 may specifically include: input to a message delete control is received.
As another example, prior to S102, the chat message deletion method 100 may further include: and displaying a communication object list in the target application program for the user to select a target communication object in the communication object list. If the target communication object is a communication object in the communication object list, the chat message with the communication object is screened for deletion in the subsequent chat message. If the target communication object is all communication objects in the communication object list, the chat message with all communication objects is screened and deleted in the subsequent process.
After a list of communication objects in the target application program is displayed and an input that a user selects a target communication object in the list of communication objects is received, an interface including a plurality of deletion modes is displayed. In this case, S102 may specifically include: a selection input of a predetermined deletion mode of the plurality of deletion modes is received. The subscribed deleting mode is a mode of deleting according to the message deleting condition configured by the user.
The target application may be any application having a chat function, for example, the target application may be an office application or a social application.
The chat message deletion method 100 further includes:
and S104, responding to the message deleting input, and displaying a first configuration interface, wherein the first configuration interface comprises a plurality of message deleting conditions.
In S104, the plurality of message deletion conditions include at least one of: a plurality of chat message types, a plurality of options related to message retention periods, and a plurality of chat messaging time periods.
Wherein the plurality of chat message types may include at least two of: text, picture, expression, voice, video, music, and file types. The user may select a chat message that needs to be deleted based on a plurality of chat message types. For example, the user may select at least one of deleting a picture generated with the target communication object while chatting, deleting a picture voice generated with the target communication object while chatting, and deleting a video generated with the target communication object while chatting.
The plurality of options related to message retention period may include at least two of: chat messages without a set retention period, chat messages within a retention period, chat messages not within a retention period. The chat messages within the retention period can be specifically divided into chat messages within a limited retention period and chat messages within an unlimited retention period. A chat message within a limited retention period means that the retention period of the chat message will expire, while a chat message within an unlimited retention period means that the retention period of the chat message will not expire, i.e. the retention period of the chat message is permanent.
The plurality of chat messaging periods may include: the last half year period, the half to one year period, and the one year prior period. If the user selects a time period one year ago, chat messages received in the time period one year ago may be deleted.
The number of the first configuration interfaces can be one or more, if the number of the first configuration interfaces is more than one, the plurality of first configuration interfaces are sequentially displayed, and different first configuration interfaces comprise different message deleting conditions. For example, S104 may specifically include: the method comprises the steps of firstly displaying a first configuration interface comprising a plurality of chat message types, and after receiving the selection operation that a user completes the chat message types, displaying the first configuration interface comprising a plurality of options related to message retention period.
In one example, prior to displaying the first configuration interface, the chat message deletion method 100 can further include:
displaying a deletion mode selection interface, wherein the deletion mode selection interface comprises a plurality of message deletion modes;
displaying the first configuration interface may specifically include:
and displaying a first configuration interface when a condition that a user selects a subscribed message deleting mode from a plurality of message deleting modes is received, wherein the subscribed message deleting mode is a mode of deleting the message according to a message deleting condition configured by the user.
The following describes embodiments of the present application by way of examples in fig. 2 and 3.
The deletion mode selection interface shown in fig. 2 includes two message deletion modes, which are an advanced deletion mode and a normal deletion mode, and displays the first configuration interface when the electronic device receives a user selection of the advanced deletion mode.
For the deletion mode selection interface shown in fig. 2, in the case that the user selects the normal deletion mode on the deletion mode selection interface, the chat message can be deleted by using a one-key deletion mode or by using a manual message mode. Before deleting a chat message, a message preview interface may be displayed to allow the user to confirm whether to delete an important chat message.
After the user selects the advanced deletion mode, a first configuration interface as shown in fig. 3 may be displayed, where the first configuration interface as shown in fig. 3 includes a plurality of chat message types, and the user may perform relevant configuration of the chat message types on the first configuration interface. The user can select the message type to be deleted from text, pictures, animation expressions, voice, video, music, files and the like, can be a single type or a combination of a plurality of message types, and can also directly click 'all' to select to delete all types of chat messages.
Alternatively, after the user selects the advanced deletion mode, a first configuration interface as shown in fig. 4 may be displayed, the first configuration interface shown in fig. 4 including a plurality of options related to the retention period of the message, respectively, a retention period unset item, a retention period not-passed item, a retention period passed item, a permanent retention item, and all. The user can select from a plurality of options according to the requirement, can select a single option, and also can be a combination of a plurality of options. If the user selects "all," a message indicating that the user selected to delete all items.
It should be noted that the first configuration interface may be one of the configuration interface shown in fig. 3 and the configuration interface shown in fig. 4, or may be two of them. Specifically, the configuration interface shown in fig. 3 may be displayed first, and then the configuration interface shown in fig. 4 may be displayed.
If the user is preparing to delete a chat message of a text type and without setting a retention period, the user may first select "text" on the configuration interface as shown in fig. 3, and then select "retention period unset item" on the configuration interface as shown in fig. 4, so that a chat message of a text type and without setting a retention period may be selected among the chat messages.
If the user is ready to delete a video in a chat message, the user may first select "video" on the configuration interface shown in FIG. 3 and then "all" on the configuration interface shown in FIG. 4, thus selecting a video in the chat message.
The chat message deletion method 100 further includes:
s106, receiving a first input of a target deleting condition selected by a user from a plurality of message deleting conditions;
and S108, in response to the first input, deleting the first chat message meeting the target deleting condition in the chat messages of the target communication object.
For example, upon receiving a user selection of text from a plurality of chat message types and a selection of a chat message not within a retention period from a plurality of options associated with a message retention period, the chat message in text format and not within the retention period is deleted.
In the embodiment of the application, because the target deletion condition is configured by the user, the user can delete the unimportant first chat message by configuring the target deletion condition, so that the deletion of the more important message is avoided. In addition, the first chat messages meeting the target deletion condition can be deleted in batches, and the messages needing to be deleted are not required to be manually and sequentially selected by a user, so that the message deletion efficiency is improved.
In one or more embodiments of the present application, before deleting a first chat message that satisfies a target deletion condition among chat messages with a target communication object, the chat message deletion method 100 may further include:
and displaying a message preview interface comprising a target chat message according to the first chat message and the second chat message, wherein the target chat message is one of the first chat message and the second chat message, and the second chat message is a chat message except the first chat message in the chat messages of the target communication object.
In an embodiment of the present application, a message preview interface may be displayed prior to deleting the first chat message. The message preview interface can include a first chat message that satisfies the target deletion condition, such that the user can preview the first chat message to be deleted on the message preview interface. If the important chat messages are included in the first chat messages on the message preview interface, the user can reconfigure the first chat messages needing to be deleted, so that the important chat messages are prevented from being deleted.
Or the message preview interface can comprise a second chat message except the first chat message in the chat messages of the target communication object, wherein the second chat message is a chat message which is not deleted. In this way, the user can preview the chat messages which are not deleted on the message preview interface, and if the second chat messages on the message preview interface include the chat messages which need to be deleted, the user can reconfigure the chat messages which need to be deleted, so that the chat messages which the user wants to delete are prevented from not being deleted.
In one or more embodiments of the application, displaying a message preview interface including a target chat message according to a first chat message and a second chat message may include:
displaying a second configuration interface, wherein the second configuration interface is used for configuring a message preview strategy;
receiving a second input of a target preview strategy selected by a user on a second configuration interface, wherein the target preview strategy is used for previewing a target chat message in the first chat message and the second chat message;
and responding to the second input, and displaying a message preview interface according to the target preview strategy.
In the embodiment of the application, the user can select the target preview policy on the second configuration interface, so that the electronic device can display a message preview interface according to the target preview policy, and the chat message displayed on the message preview interface is matched with the target preview policy, so that the chat message displayed on the message preview interface is displayed in a mode desired by the user.
In one or more embodiments of the present application, the second configuration interface includes a plurality of message preview conditions, and the target preview policy is further configured to instruct to preview a chat message satisfying the second target condition in the target chat message.
The plurality of message preview conditions may include at least one of: a plurality of chat message types, a plurality of chat message options associated with a message retention period, and a plurality of chat messaging time periods.
Because the content corresponding to the plurality of message deletion conditions has already been described due to the plurality of chat message types, the plurality of chat message options related to the message retention period, and the plurality of chat messaging time periods, it is not repeated here.
The following describes embodiments of the present application by way of examples in fig. 5 to 8.
After receiving the first input of the target deletion condition selected by the user among the plurality of message deletion conditions and before deleting the first chat message satisfying the target deletion condition among the chat messages with the target communication object, the chat message deletion method 100 may further include:
a preview prompting interface can be displayed, wherein the preview prompting interface comprises preview prompting information, and the preview prompting information is used for prompting a user whether to preview the chat information to be deleted or the chat information not to be deleted.
The preview prompt interface may be an interface as shown in fig. 5, and the user may select to preview the message or not to preview the message on the preview prompt interface.
In the case that the user selects to preview the message on the preview prompting interface, the electronic device may sequentially display a second configuration interface as shown in fig. 6, a second configuration interface as shown in fig. 7, and a second configuration interface as shown in fig. 8.
The user can select to preview the first chat message to be deleted or the second chat message not to be deleted on the second configuration interface shown in fig. 6, the user can select the type of the chat message to be previewed on the second configuration interface shown in fig. 7, and the user can select the retention period of the message to be previewed on the second configuration interface shown in fig. 8.
If the user wants to confirm whether there is a permanently reserved file in the file to be deleted or verify the permanently reserved file to be deleted, the user may select "preview the chat message to be deleted" on the second configuration interface shown in fig. 6, "select" file "on the second configuration interface shown in fig. 7, and" permanently reserve item "on the second configuration interface shown in fig. 8, so as to preview whether there is a permanently reserved item in the file to be deleted.
The user can select all contents under the interface by one key by selecting "all", and if the user wants to confirm a permanently reserved chat message in the non-deleted chat message at this time, the user can select "preview the non-deleted chat message" on the second configuration interface shown in fig. 6, "all" on the second configuration interface shown in fig. 7, and "permanently reserve" on the second configuration interface shown in fig. 8, so that the permanently reserved chat message in the non-deleted chat message can be previewed.
In one or more embodiments of the present application, displaying a message preview interface including a target chat message according to a first chat message and a second chat message may include:
displaying a message preview interface including the second chat message in case that the number of the first chat messages is greater than the number of the second chat messages;
in the event that the number of first chat messages is less than or equal to the number of second chat messages, a message preview interface is displayed that includes the first chat messages.
In the embodiment of the application, the chat messages with a small number in the first chat message and the second chat message are displayed on the message preview interface, so that a user can conveniently and quickly know the chat messages needing to be deleted and the chat messages not needing to be deleted.
In one or more embodiments of the present application, in a case where the target chat messages are pictures, each target chat message is displayed on the message preview interface in a thumbnail image form, or each target chat message is displayed on the message preview interface in a slide show form.
For example, as shown in fig. 9, the pictures in the preview message are displayed in the form of thumbnails on the message preview interface, and the user may slide the display screen of the electronic device up and down to view each picture.
Therefore, the previewed chat messages are presented to the user in a user-friendly layout mode, and the user can conveniently preview the chat messages.
In addition, in the process of message preview by the user, the user can click on the interested content, namely, the content carried by the user can be obtained, for example, the chat content can be automatically played by clicking voice, video and the like, and the chat content can be displayed to the user by clicking expressions and pictures.
In one or more embodiments of the present application, after displaying a message preview interface including a target chat message according to a first chat message and a second chat message, the chat message deleting method may further include:
receiving a third input to a third chat message on the message preview interface, the third input may be a touch input (such as a slide input or a long press input) to the third chat message on the message preview interface, or the third input may be a voice input indicating that the third chat message is removed from the message preview interface;
in response to a third input, moving a third chat message from the first list to a second list, the first list being one of the list of first chat messages and the list of second chat messages, the second list being the other of the list of first chat messages and the list of second chat messages.
Specifically, if the third chat message is in the list of the first chat message, the third chat message is moved from the list of the first chat message to the list of the second chat message; if the third chat message is in the list of second chat messages, the third chat message is moved from the list of second chat messages to the list of first chat messages.
Therefore, in the process that the user previews the chat messages through the message preview interface, if the chat messages on the message preview interface are messages to be deleted, and the user finds that the third chat messages on the message preview interface are important and are not to be deleted, the user can operate the third chat messages, so that the electronic device removes the third chat messages from the list of the first chat messages, and deletion of the important chat messages is avoided.
Or, if the chat message on the message preview interface is a message that does not need to be deleted, and the user finds that the third chat message on the message preview interface actually needs to be deleted, the user can operate the third chat message, so that the electronic device removes the third chat message from the list of the second chat message, and avoids missing some chat messages that are not deleted.
Therefore, through the embodiment of the application, before the chat message is deleted, the user can adjust the chat message needing to be deleted or the chat message not needing to be deleted.
As shown in fig. 10, in the process of previewing the chat message to be deleted by the user, if the user finds that the text 8 does not need to be deleted, the user may perform a sliding operation to the right on the text 8, and then the electronic device puts the text 8 into the list of the chat messages that do not need to be deleted, and displays the message preview interface shown in fig. 10 (b), where the text 8 is not displayed on the message preview interface shown in fig. 10 (b).
If the user puts a certain chat message to be deleted into a list of chat messages which do not need to be deleted and the chat message previously belongs to the chat message with the expired retention time or the retention period is not set, the user is required to reset the retention period of the chat message.
Corresponding to the chat message deleting method provided by the application, the application provides a chat message deleting device. Fig. 11 is a schematic structural diagram of an embodiment of a chat message deleting apparatus provided in the present application. As shown in fig. 11, the chat message deletion apparatus 200 includes:
a first receiving module 202, configured to receive a message deletion input of a user, where the message deletion input is used to delete a chat message with a target communication object in a target application;
a first display module 204, configured to display a first configuration interface in response to a message deletion input, where the first configuration interface includes a plurality of message deletion conditions;
a second receiving module 206, configured to receive a first input of a target deletion condition selected by a user from a plurality of message deletion conditions;
and the deleting module 208 is used for responding to the first input and deleting the first chat message meeting the target deleting condition in the chat messages of the target communication object.
In the embodiment of the application, because the target deletion condition is configured by the user, the user can delete the unimportant first chat message by configuring the target deletion condition, so that the deletion of the more important message is avoided. In addition, the first chat messages meeting the target deletion condition can be deleted in batches, and the messages needing to be deleted are not required to be manually and sequentially selected by a user, so that the message deletion efficiency is improved.
In one or more embodiments of the present application, the plurality of message deletion conditions includes at least one of: a plurality of chat message types, a plurality of options related to message retention periods, and a plurality of chat messaging time periods.
In one or more embodiments of the present application, the chat message deleting device 200 may further include:
and the second display module is used for displaying a message preview interface comprising a target chat message according to the first chat message and the second chat message, wherein the target chat message is one of the first chat message and the second chat message, and the second chat message is a chat message except the first chat message in the chat messages of the target communication object.
In an embodiment of the present application, a message preview interface may be displayed prior to deleting the first chat message. The message preview interface can include a first chat message that satisfies the target deletion condition, such that the user can preview the first chat message to be deleted on the message preview interface. If the important chat messages are included in the first chat messages on the message preview interface, the user can reconfigure the first chat messages needing to be deleted, so that the important chat messages are prevented from being deleted.
Or the message preview interface can comprise a second chat message except the first chat message in the chat messages of the target communication object, wherein the second chat message is a chat message which is not deleted. Therefore, the user can preview the chat messages which are not deleted on the message preview interface, and if the second chat messages on the message preview interface comprise the chat messages which need to be deleted, the user can reconfigure the chat messages which need to be deleted, so that the chat messages which the user wants to be deleted are prevented from being deleted.
In one or more embodiments of the present application, the second display module may include:
the first display unit is used for displaying a second configuration interface, and the second configuration interface is used for configuring a message preview strategy;
the receiving unit is used for receiving a second input that the user selects a target preview strategy on a second configuration interface, wherein the target preview strategy is used for indicating that the target chat messages in the first chat messages and the second chat messages are previewed;
and the second display unit is used for responding to a second input and displaying the message preview interface according to the target preview strategy.
In the embodiment of the application, the user can select the target preview policy on the second configuration interface, so that the electronic device can display a message preview interface according to the target preview policy, and the chat message displayed on the message preview interface is matched with the target preview policy, so that the chat message displayed on the message preview interface is displayed in a mode desired by the user.
In one or more embodiments of the present application, the second configuration interface includes a plurality of message preview conditions, and the target preview policy can be further used to indicate that a preview of a chat message satisfying the second target condition is performed in the target chat message.
In one or more embodiments of the present application, the second display module may include:
a third display unit, configured to display a message preview interface including the second chat message when the number of the first chat messages is greater than the number of the second chat messages;
and a fourth display unit for displaying a message preview interface including the first chat message in case that the number of the first chat messages is less than or equal to the number of the second chat messages.
In the embodiment of the application, the chat messages with a small number in the first chat message and the second chat message are displayed on the message preview interface, so that a user can conveniently and quickly know the chat messages needing to be deleted and the chat messages not needing to be deleted.
In one or more embodiments of the present application, the chat message deleting apparatus 200 may further include:
a third receiving module, configured to receive a third input of a third chat message on the message preview interface;
and the message moving module is used for responding to a third input and moving the third chat message from the first list to the second list, wherein the first list is one of the list of the first chat message and the list of the second chat message, and the second list is the other one of the list of the first chat message and the list of the second chat message.
Therefore, through the embodiment of the application, before the chat message is deleted, the user can adjust the chat message which needs to be deleted or the chat message which does not need to be deleted.
In one or more embodiments of the present application, in a case where the target chat message is a picture, each target chat message is displayed on the message preview interface in a thumbnail view, or each target chat message is displayed on the message preview interface in a slide show view.
Therefore, the previewed chat messages are presented to the user in a user-friendly layout mode, and the user can conveniently preview the chat messages.
It should be noted that, in the above-mentioned embodiment, the execution subject is taken as an example of the chat message deleting device to describe the method for executing the chat message deletion. However, the main execution body of the chat message deleting method provided in the embodiment of the present application is not limited to the chat message deleting device, and may also be a control module in the chat message deleting device for executing the loaded chat message deleting method.
The chat message deleting device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in the device. 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 Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The chat message deleting device in the embodiment of the present application may be a device 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 chat message deleting device provided in the embodiment of the present application can implement each process of the chat message deleting method embodiment of any one of the above embodiments, and is not described here again to avoid repetition.
The embodiment of the present application further provides an electronic device, which includes a processor 310, a memory 309, and a program or an instruction stored in the memory 309 and executable on the processor 310, where the program or the instruction is executed by the processor 310 to implement each process of the above chat message deleting method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 12 is a schematic hardware structure diagram of an embodiment of an electronic device provided in the present application.
As shown in fig. 12, electronic device 300 includes, but is not limited to: radio frequency unit 301, network module 302, audio output unit 303, input unit 304, sensor 305, display unit 306, user input unit 307, interface unit 308, memory 309, and processor 310.
Among other things, the input unit 304 may include a graphics processor 3041 and a microphone 3042. The display unit 306 includes a display panel 3061. The user input unit 307 may include a touch panel 3071 and other input devices 3072. Memory 309 may include applications and an operating system.
Those skilled in the art will appreciate that the electronic device 300 may further include a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 310 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. 12 does not constitute a limitation to 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.
A user input unit 307 for receiving a message deletion input of a user for deleting a chat message with a target communication object in a target application;
the display unit 306 is configured to display a first configuration interface in response to a message deletion input, where the first configuration interface includes a plurality of message deletion conditions;
the user input unit 307 is further configured to receive a first input of a target deletion condition selected by the user among the plurality of message deletion conditions;
the processor 310 is configured to delete a first chat message satisfying the target deletion condition among chat messages with the target communication object in response to the first input.
In the embodiment of the application, because the target deleting condition is configured by the user, the user can delete the unimportant first chat message by configuring the target deleting condition, so that the deletion of the more important message is avoided. In addition, the first chat messages meeting the target deletion condition can be deleted in batches, and the messages needing to be deleted are not required to be manually and sequentially selected by a user, so that the message deletion efficiency is improved.
In one or more embodiments of the present application, the display unit 306 may further be configured to:
and displaying a message preview interface comprising a target chat message according to the first chat message and the second chat message, wherein the target chat message is one of the first chat message and the second chat message, and the second chat message is a chat message except the first chat message in the chat messages of the target communication object.
In an embodiment of the present application, a message preview interface may be displayed prior to deleting the first chat message. The message preview interface can include the first chat message that satisfies the target deletion condition, such that the user can preview the first chat message to be deleted on the message preview interface. If the important chat messages are included in the first chat messages on the message preview interface, the user can reconfigure the first chat messages needing to be deleted, so that the important chat messages are prevented from being deleted.
Or the message preview interface can comprise a second chat message except the first chat message in the chat messages of the target communication object, wherein the second chat message is a chat message which is not deleted. Therefore, the user can preview the chat messages which are not deleted on the message preview interface, and if the second chat messages on the message preview interface comprise the chat messages which need to be deleted, the user can reconfigure the chat messages which need to be deleted, so that the chat messages which the user wants to be deleted are prevented from being deleted.
In one or more embodiments of the present application, the display unit 306 may be further configured to display a second configuration interface, where the second configuration interface is used to configure a message preview policy;
the user input unit 307 may be further configured to receive a second input that the user selects a target preview policy on the second configuration interface, where the target preview policy is used to indicate that a preview is performed on a target chat message in the first chat message and the second chat message;
the display unit 306 may be further operative to display a message preview interface according to the target preview policy in response to the second input.
In the embodiment of the application, the user can select the target preview policy on the second configuration interface, so that the electronic device can display a message preview interface according to the target preview policy, and the chat message displayed on the message preview interface is matched with the target preview policy, so that the chat message displayed on the message preview interface is displayed in a mode desired by the user.
In one or more embodiments of the present application, the display unit 306 may be specifically configured to:
displaying a message preview interface including the second chat message in case that the number of the first chat messages is greater than the number of the second chat messages;
in the event that the number of first chat messages is less than or equal to the number of second chat messages, a message preview interface is displayed that includes the first chat messages.
In the embodiment of the application, the chat messages with a small number in the first chat message and the second chat message are displayed on the message preview interface, so that a user can conveniently and quickly know the chat messages needing to be deleted and the chat messages not needing to be deleted.
In one or more embodiments of the present application, the user input unit 307 may further be configured to: receiving a third input for a third chat message on the message preview interface;
the processor 310 may also be configured to: in response to the third input, moving the third chat message from the first list into a second list, the first list being one of the list of the first chat message and the list of the second chat message, the second list being the other of the list of the first chat message and the list of the second chat message.
Therefore, through the embodiment of the application, before the chat message is deleted, the user can adjust the chat message needing to be deleted or the chat message not needing to be deleted.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored in the readable storage medium, and when the program or the instruction is executed by the processor, the program or the instruction implements each process of the chat message deleting method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The processor is the processor in the electronic device in the above embodiment. Readable storage media, including computer-readable storage media, examples of which include non-transitory computer-readable storage media, such as computer-Read-Only Memory (ROM), random Access Memory (RAM), magnetic or optical disks, and so forth.
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 chat message deleting method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.
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 a … …" does not exclude the presence of another identical element 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 description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solutions of the present application may be embodied in the form of a 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, an air conditioner, or a network device) to execute the methods of the embodiments of the present application.
Aspects of the present disclosure are described above with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, implement the functions/acts specified in the flowchart and/or block diagram block or blocks. Such a processor may be, but is not limited to, a general purpose processor, a special purpose processor, an application specific processor, or a field programmable logic circuit. It will also be understood that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware for performing the specified functions or acts, or combinations of special purpose hardware and computer instructions.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the present embodiments are not limited to those precise embodiments, which are intended to be illustrative rather than restrictive, and that various changes and modifications may be effected therein by one skilled in the art without departing from the scope of the appended claims.

Claims (4)

1. A chat message deletion method is characterized by comprising the following steps:
receiving a message deletion input of a user, wherein the message deletion input is used for deleting a chat message with a target communication object in a target application program;
in response to the message deletion input, displaying a first configuration interface, the first configuration interface including a plurality of message deletion conditions;
receiving a first input that a user selects a target deletion condition from the plurality of message deletion conditions;
responding to the first input, and displaying a message preview interface comprising a target chat message according to a first chat message and a second chat message, wherein the target chat message is one of the first chat message and the second chat message, the first chat message is a chat message meeting the target deletion condition in the chat messages of the target communication object, and the second chat message is a chat message except the first chat message in the chat messages of the target communication object; wherein, in the case that the number of the first chat messages is greater than the number of the second chat messages, a message preview interface including the second chat messages is displayed; displaying a message preview interface including the first chat message if the number of the first chat messages is less than or equal to the number of the second chat messages;
receiving a third input for a third chat message on the message preview interface;
in response to the third input, moving the third chat message from a first list into a second list, the first list being one of the list of the first chat message and the list of the second chat message, the second list being the other of the list of the first chat message and the list of the second chat message;
deleting chat messages in the list of first chat messages.
2. The method of claim 1, wherein displaying a message preview interface including the target chat message based on the first chat message and the second chat message comprises:
displaying a second configuration interface, wherein the second configuration interface is used for configuring a message preview strategy;
receiving a second input that a user selects a target preview policy on the second configuration interface, the target preview policy being used to indicate that a preview of the target chat message of the first chat message and the second chat message is performed;
and responding to the second input, and displaying the message preview interface according to the target preview strategy.
3. A chat message deletion apparatus, comprising:
the system comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving a message deleting input of a user, and the message deleting input is used for deleting a chat message of a target communication object in a target application program;
a first display module to display a first configuration interface in response to the message deletion input, the first configuration interface including a plurality of message deletion conditions;
the second receiving module is used for receiving a first input that a user selects a target deleting condition from the plurality of message deleting conditions;
a second display module, configured to respond to the first input, and display a message preview interface including a target chat message according to a first chat message and a second chat message, where the target chat message is one of the first chat message and the second chat message, the first chat message is a chat message that satisfies the target deletion condition in the chat message of the target communication object, and the second chat message is a chat message other than the first chat message in the chat message of the target communication object; wherein, in the case that the number of the first chat messages is greater than the number of the second chat messages, a message preview interface including the second chat messages is displayed; displaying a message preview interface including the first chat message if the number of the first chat messages is less than or equal to the number of the second chat messages;
a third receiving module, configured to receive a third input of a third chat message on the message preview interface;
a message moving module, configured to move the third chat message from a first list to a second list in response to the third input, where the first list is one of the first chat message list and the second chat message list, and the second list is the other of the first chat message list and the second chat message list;
and the deleting module is used for deleting the chat messages in the list of the first chat messages.
4. The apparatus of claim 3, wherein the second display module comprises:
the first display unit is used for displaying a second configuration interface, and the second configuration interface is used for configuring a message preview strategy;
a receiving unit, configured to receive a second input that a user selects a target preview policy on the second configuration interface, where the target preview policy is used to instruct to preview the target chat message in the first chat message and the second chat message;
and the second display unit is used for responding to the second input and displaying the message preview interface according to the target preview strategy.
CN202110207807.2A 2021-02-25 2021-02-25 Chat message deleting method and device Active CN113037609B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110207807.2A CN113037609B (en) 2021-02-25 2021-02-25 Chat message deleting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110207807.2A CN113037609B (en) 2021-02-25 2021-02-25 Chat message deleting method and device

Publications (2)

Publication Number Publication Date
CN113037609A CN113037609A (en) 2021-06-25
CN113037609B true CN113037609B (en) 2023-04-18

Family

ID=76461082

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110207807.2A Active CN113037609B (en) 2021-02-25 2021-02-25 Chat message deleting method and device

Country Status (1)

Country Link
CN (1) CN113037609B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114051012B (en) * 2021-11-02 2023-03-28 珠海读书郎软件科技有限公司 Chat record cleaning system and method based on double-screen telephone watch

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050007742A (en) * 2003-07-11 2005-01-21 엘지전자 주식회사 A method for managing message of mobile communication terminal
KR20050054235A (en) * 2003-12-04 2005-06-10 주식회사 팬택앤큐리텔 Message management method in the mobile communication terminal
CN101090543A (en) * 2006-06-12 2007-12-19 三星电子株式会社 Apparatus and method for managing messages in mobile communication terminal
KR20090107169A (en) * 2008-04-08 2009-10-13 주식회사 케이티테크 Method and device for deleting messages automatically
CN107861688A (en) * 2017-10-30 2018-03-30 努比亚技术有限公司 A kind of data-erasure method, terminal and readable storage medium storing program for executing

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002132547A (en) * 2000-10-27 2002-05-10 Fuji Xerox Co Ltd Server for electronics information control, client therefor, method therefor and readable record medium recording program therefor
KR101137077B1 (en) * 2005-05-06 2012-04-19 주식회사 팬택 Method for deleting messages saved on personal portable device and the personal portable device for enabling the method
CN101212736A (en) * 2006-12-30 2008-07-02 英华达(上海)电子有限公司 Method and device for clearing mobile telephone data entries
CN103019589B (en) * 2012-11-26 2015-07-08 广东欧珀移动通信有限公司 Method for deleting list items in sliding manner
CN104679851B (en) * 2015-02-12 2019-02-05 Oppo广东移动通信有限公司 A kind of data-erasure method and terminal
CN107766549A (en) * 2017-10-31 2018-03-06 珠海市魅族科技有限公司 Text delet method and device, terminal installation and readable storage medium storing program for executing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050007742A (en) * 2003-07-11 2005-01-21 엘지전자 주식회사 A method for managing message of mobile communication terminal
KR20050054235A (en) * 2003-12-04 2005-06-10 주식회사 팬택앤큐리텔 Message management method in the mobile communication terminal
CN101090543A (en) * 2006-06-12 2007-12-19 三星电子株式会社 Apparatus and method for managing messages in mobile communication terminal
KR20090107169A (en) * 2008-04-08 2009-10-13 주식회사 케이티테크 Method and device for deleting messages automatically
CN107861688A (en) * 2017-10-30 2018-03-30 努比亚技术有限公司 A kind of data-erasure method, terminal and readable storage medium storing program for executing

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
曲红伟 ; 姚思远 ; .基于QT的企业内部通讯.中国新通信.2017,(第18期),全文. *

Also Published As

Publication number Publication date
CN113037609A (en) 2021-06-25

Similar Documents

Publication Publication Date Title
US10860179B2 (en) Aggregated, interactive communication timeline
CN111913629A (en) Information sending method and device and electronic equipment
CN113300938B (en) Message sending method and device and electronic equipment
US8219932B2 (en) Terminal and method for displaying contents information as icons and thumbnail images in a life-diary
CN112286887A (en) File sharing method and device and electronic equipment
CN106231435A (en) The method of electronics present, device and terminal unit is given in network direct broadcasting
EP3074858A1 (en) Terminal device, screen sharing method, and screen sharing system
WO2023016536A1 (en) Interaction method, apparatus and device, and storage medium
WO2023040845A1 (en) Message transmission method and apparatus, and electronic device
CN112286416A (en) Information display method and device and electronic equipment
CN112947807A (en) Display method and device and electronic equipment
CN112783592A (en) Information issuing method, device, equipment and storage medium
CN111831181A (en) Application switching display method and device and electronic equipment
CN113037609B (en) Chat message deleting method and device
CN112291414B (en) Message display method and device and electronic equipment
WO2024093815A1 (en) Data sharing method and apparatus, electronic device, and medium
US20150149586A1 (en) Information processing apparatus, information processing method, and information processing system
CN112187626A (en) File processing method and device and electronic equipment
CN110166619B (en) Picture downloading method and client
CN110737371A (en) information display method, device and computer readable medium
CN113076288A (en) File processing method and device, electronic equipment and storage medium
CN112035026B (en) Information display method and device, electronic equipment and storage medium
CN113672135A (en) Object control method and device and electronic equipment
CN112612395A (en) Message processing method and device
CN112783407B (en) Screenshot 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