CN115065651B - Management method and device of dialogue message, electronic equipment and storage medium - Google Patents

Management method and device of dialogue message, electronic equipment and storage medium Download PDF

Info

Publication number
CN115065651B
CN115065651B CN202210799723.7A CN202210799723A CN115065651B CN 115065651 B CN115065651 B CN 115065651B CN 202210799723 A CN202210799723 A CN 202210799723A CN 115065651 B CN115065651 B CN 115065651B
Authority
CN
China
Prior art keywords
target
message
terminal
dialogue message
group
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
CN202210799723.7A
Other languages
Chinese (zh)
Other versions
CN115065651A (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.)
Spreadtrum Communications Tianjin Co Ltd
Original Assignee
Spreadtrum Communications Tianjin 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 Spreadtrum Communications Tianjin Co Ltd filed Critical Spreadtrum Communications Tianjin Co Ltd
Priority to CN202210799723.7A priority Critical patent/CN115065651B/en
Publication of CN115065651A publication Critical patent/CN115065651A/en
Application granted granted Critical
Publication of CN115065651B publication Critical patent/CN115065651B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1813Arrangements for providing special services to substations for broadcast or conference, e.g. multicast for computer conferences, e.g. chat rooms
    • 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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a method, a device, electronic equipment and a storage medium for managing dialogue messages, which can prevent excessive occupation of storage space of a terminal by chat messages in the terminal and can also protect privacy of a user. The management method of the dialogue message comprises the following steps: determining that a target conversation message is received; if the time length of the received target dialogue message reaches the set threshold value, or the length of the moving path of the target dialogue message in the preset moving direction based on the preset moving speed reaches the first target size corresponding to the display screen, deleting the target dialogue message.

Description

Management method and device of dialogue message, electronic equipment and storage medium
[ field of technology ]
The embodiment of the application relates to the technical field of communication, in particular to a method and a device for managing dialogue messages, electronic equipment and a storage medium.
[ background Art ]
Currently, most chat applications have a history dialogue message caching function, resulting in the following two problems: firstly, the cached historical dialogue message occupies more memory in the terminal; second, cached historical conversation messages may cause leakage of user privacy.
[ application ]
The embodiment of the application provides a method, a device, electronic equipment and a storage medium for managing dialogue messages, which can prevent excessive occupation of storage space of a terminal by chat messages in the terminal and can also protect privacy of users.
In a first aspect, an embodiment of the present application provides a method for managing a session message, where the method includes:
determining that a target dialogue message is received in a target group;
and deleting the target dialogue message if the interval duration of the received target dialogue message reaches a set threshold value.
In the embodiment of the application, the target dialogue message can be considered to have corresponding reserved time length, and if the interval time length reaches the reserved time length from the time when the terminal receives the target dialogue message or the length of the moving path of the target dialogue message in the preset moving direction reaches the size of the display screen, the target dialogue message can be deleted, so that the memory space of the terminal is saved, and meanwhile, the leakage of the privacy of the user can be avoided to a certain extent.
Optionally, if it is determined that the duration of receiving the target session message reaches the set threshold, deleting the target session message includes:
Determining a target moving speed of the target dialogue message according to the set threshold and a second target size of the target dialogue message display screen in a preset moving direction;
controlling the target dialogue message to move in the preset moving direction based on the target moving speed;
and deleting the target dialogue message when the length of the moving path of the target dialogue message reaches the second target size.
In the embodiment of the application, the moving speed of the target dialogue message in the preset moving direction can be determined according to the corresponding retention time of the target dialogue message and the size of the display screen of the target dialogue message in the preset moving direction, then the target dialogue message is controlled to move based on the moving speed, and when the length of the moving path of the target dialogue message reaches the size of the display screen in the preset moving direction, the target dialogue message can be controlled to be deleted. That is, it is ensured that the target dialogue message is deleted after the corresponding retention time is reached, and it is determined that the target dialogue message can be seen by the user within the retention time, thereby improving the user experience.
Optionally, when determining that the length of the moving path of the target session message reaches the second target size, deleting the target session message includes:
suspending the target dialogue message from moving along the preset moving direction in response to a first preset operation for the target dialogue message, and determining a suspension position of the target dialogue message;
determining a first length of a path that the target conversation message has moved based on an initial starting point position of the target conversation message and a pause position of the target conversation message;
controlling the target dialogue message to take the pause position as a starting point in response to a second preset operation for the target dialogue message, continuously moving along the preset moving direction based on the target moving speed, and recording a second length of a path moving by taking the pause position as the starting point;
and deleting the target dialogue message when the sum of the second length and the first length reaches the second target size.
In the embodiment of the application, in the process that the target dialogue message moves along the preset moving direction, the target dialogue message can be controlled to pause moving, so that the situation that the target dialogue message cannot be read completely due to more contents is avoided, and the experience of a user is improved.
Optionally, if it is determined that the duration of receiving the target session message reaches the set threshold, deleting the target session message includes:
sending a response message representing that the target dialogue message is received to a server, wherein the response message carries a target dialogue message identifier, and the target dialogue message identifier is the identifier of the target dialogue message;
receiving a deleting instruction from the server, wherein the deleting instruction is sent by the server when the time length for which the target dialogue message is received is determined to reach the set threshold value, and the deleting instruction comprises the target dialogue message identifier;
and deleting the target dialogue message in response to the deleting instruction.
In the embodiment of the application, after the terminal determines that the target dialogue message is received, the server can be informed, then the server starts timing, and when the server determines that the time length of the received target dialogue message reaches the reserved time length, the terminal can be informed, so that the terminal can delete the target dialogue message, namely the server uniformly judges whether the message in the terminal reaches the corresponding reserved time length, thereby saving the computing resource of the terminal.
Optionally, determining that the target dialog message is received includes:
determining that the target dialogue message is received in a target group;
before determining that the interval duration of receiving the target session message reaches a set threshold, the method further comprises:
receiving a deletion instruction aiming at the target group, wherein the deletion instruction comprises a group identifier of the target group;
and deleting the target group and the target dialogue message in response to the deleting instruction.
In the embodiment of the application, before the target dialogue message does not reach the corresponding retention time, if the target group is disassembled, the target group and the target dialogue message in the terminal are deleted in advance.
Optionally, determining that the target dialog message is received includes:
determining that the target dialogue message is received in a target group;
before determining that the interval duration of receiving the target session message reaches a set threshold, the method further comprises:
detecting a third preset operation for exiting the target group;
and deleting the target group and the target dialogue message in response to the third preset operation.
In the embodiment of the application, before the target dialogue message does not reach the corresponding retention time, if the user of the current terminal actively exits the target group, the target group and the target dialogue message in the terminal are deleted in advance.
Optionally, determining that the target dialog message is received includes:
determining a download link corresponding to a received target file and a custom duration corresponding to the download link;
if it is determined that the duration of receiving the target dialogue message reaches the set threshold, deleting the target dialogue message includes:
and if the received time length of the download link reaches the self-defined time length, deleting the download link.
In the embodiment of the application, when the user uploads the file, the reservation time of the download link corresponding to the user-defined file is supported, the download link and the corresponding reservation time are both sent to the terminal, and the terminal can delete the download link after the download link reaches the corresponding reservation time, so that the memory space of the terminal is saved, and the privacy of the user is protected.
Optionally, after determining that the download link corresponding to the target file and the custom duration corresponding to the download link are received, the method further includes:
and displaying the download link and the corresponding custom time length.
In the embodiment of the application, the download links corresponding to the target files are displayed and the retention time corresponding to the download links is displayed, so that a user needing the target files can download the target group files based on the download links as soon as possible before the download links are deleted, and the user experience is improved.
In a second aspect, an embodiment of the present application provides a method for managing a dialogue message, where the method includes:
receiving a response message which is sent by a terminal and characterizes that a target dialogue message is received, wherein the response message carries a target dialogue message identifier, and the target dialogue message identifier is the identifier of the target dialogue message;
and when the time length of the received target dialogue message reaches a set threshold, sending a deleting instruction to a terminal, wherein the deleting instruction comprises the target dialogue message identification, so that the terminal deletes the target dialogue message based on the target dialogue message identification.
In a third aspect, an embodiment of the present application provides a device for managing a dialogue message, where the device includes:
a determining unit, configured to determine that a target dialogue message is received;
and the deleting unit is used for deleting the target dialogue message if the time length for receiving the target dialogue message reaches a set threshold value or the length of the moving path of the target dialogue message in the preset moving direction reaches a first target size corresponding to the display screen based on the preset moving speed.
Optionally, the deleting unit includes:
A moving speed determining subunit, configured to determine a target moving speed of the target session message according to the set threshold and a second target size of the target session message display screen in a preset moving direction;
a moving subunit, configured to control the target dialogue message to move in the preset moving direction based on the target moving speed;
and the message deleting subunit is used for deleting the target dialogue message when determining that the length of the moving path of the target dialogue message reaches the target size.
Optionally, the message deleting subunit is specifically configured to:
suspending the target dialogue message from moving along the preset moving direction in response to a first preset operation for the target dialogue message, and determining a suspension position of the target dialogue message;
determining a first length of a path that the target conversation message has moved based on an initial starting point position of the target conversation message and a pause position of the target conversation message;
controlling the target dialogue message to move in the target moving direction based on the target moving speed by taking the pause position as a starting point in response to a second preset operation for the target dialogue message, and recording a second length of a path moved by taking the pause position as the starting point;
And deleting the target dialogue message when the sum of the second length and the first length reaches the second target size.
Optionally, the deleting unit is specifically configured to:
sending a response message representing that the target dialogue message is received to a server, wherein the response message carries a target dialogue message identifier, and the target dialogue message identifier is the identifier of the target dialogue message;
receiving a deleting instruction from the server, wherein the deleting instruction is sent by the server when the time length for which the target dialogue message is received is determined to reach the set threshold value, and the deleting instruction comprises the target dialogue message identifier;
and deleting the target dialogue message in response to the deleting instruction.
Optionally, the determining unit is specifically configured to:
determining that the target dialogue message is received in a target group;
the apparatus further comprises:
a receiving unit, configured to receive a deletion instruction for the target group, where the deletion instruction includes a group identifier of the target group;
the deletion unit is further configured to:
and deleting the target group and the target dialogue message in response to the deleting instruction.
Optionally, the determining unit is specifically configured to:
determining that the target dialogue message is received in a target group;
the apparatus further comprises:
a detection unit for detecting a third preset operation for exiting the target group;
the deletion unit is further configured to:
and deleting the target group and the target dialogue message in response to the third preset operation.
Optionally, the determining unit is specifically configured to:
determining a download link corresponding to a received target file and a custom duration corresponding to the download link;
the deleting unit is specifically configured to:
and if the received time length of the download link reaches the self-defined time length, deleting the download link.
Optionally, the apparatus further includes:
and the display unit is used for displaying the download link and the corresponding custom time length.
In a fourth aspect, an embodiment of the present application provides a device for managing a dialogue message, where the device includes:
the receiving unit is used for receiving a response message which is sent by the terminal and characterizes that the target dialogue message is received, wherein the response message carries a target dialogue message identifier, and the target dialogue message identifier is the identifier of the target dialogue message;
And the sending unit is used for sending a deleting instruction to the terminal when the time length for which the target dialogue message is received reaches a set threshold value, wherein the deleting instruction comprises the target dialogue message identifier so that the terminal deletes the target dialogue message based on the target dialogue message identifier.
In a fifth aspect, an embodiment of the present application provides an electronic device, the electronic device comprising a processor and a memory, the processor being configured to implement the steps of the method according to any one of the embodiments of the first or second aspects when executing a computer program stored in the memory.
In a sixth aspect, embodiments of the present application provide a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the method according to any of the embodiments of the first or second aspects.
It should be understood that, the second to sixth aspects of the embodiment of the present application are consistent with the technical solutions of the first aspect of the embodiment of the present application, and the beneficial effects obtained by each aspect and the corresponding possible implementation manner are similar, and are not repeated.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present specification, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for managing dialogue messages according to an embodiment of the present application;
fig. 2 is a schematic diagram of a target dialogue message moving along a preset moving direction according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a target dialogue message moving-suspending-continuing moving along a preset moving direction according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a displayed download link and a corresponding reservation duration according to an embodiment of the present application;
fig. 5 is a schematic diagram of implementing group chat based on a terminal-server architecture according to an embodiment of the present application;
fig. 6 is a schematic diagram of implementing group chat based on a terminal-terminal architecture according to an embodiment of the present application;
FIG. 7 is a flowchart of a method for managing dialogue messages according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a device for managing dialogue messages according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a device for managing dialogue messages according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
[ detailed description ] of the application
For a better understanding of the technical solutions of the present specification, the following detailed description of the embodiments of the present application refers to the accompanying drawings.
It should be understood that the described embodiments are only some, but not all, of the embodiments of the present description. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present disclosure.
The terminology used in the embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the description. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
The inventor researches and discovers that users can chat through chat application, for example, chat based on WeChat/QQ or chat based on communication connection established by Bluetooth/WIFI, and in general, chat messages comprise a large number of text messages, voice messages, video files, text files and the like, and the chat application has a history message caching function, so that the chat messages occupy a large amount of memory of a terminal, and meanwhile, privacy of the users is not protected.
In view of this, an embodiment of the present application provides a method for managing a session message, where a target session message may be considered to have a corresponding reserved time length, and if the time length reaches the reserved time length from the time when the terminal receives the target session message, the target session message may be deleted, so as to save a memory space of the terminal, and meanwhile, leakage of user privacy may also be avoided to a certain extent.
The technical scheme provided by the embodiment of the application is described below with reference to the accompanying drawings. Referring to fig. 1, an embodiment of the present application provides a method for managing session messages, where the method is applied to a terminal, and the flow of the method is described as follows:
step 101: it is determined that the targeted dialog message was received.
In the embodiment of the application, the chat application in the terminal can be considered to have no history message recording function, namely, the dialogue messages among users are only temporarily reserved and then are thoroughly deleted, and before deleting a certain message, the terminal needs to determine whether the terminal receives the message or not.
As a possible implementation, the terminal may determine that the target dialog message is received. For example, the target dialogue message herein may be a text message, a voice message, a picture, or the like, and the type of the target dialogue message is not particularly limited herein.
It should be understood that the target session message herein may be considered as a private session message between a single user and a single user, or may be a session message disclosed between a plurality of users in a group, and is not particularly limited herein.
Step 102: and deleting the target dialogue message if the time length for receiving the target dialogue message reaches the set threshold value.
In the embodiment of the application, the target dialogue message can be considered to have the corresponding reserved time length, and the target dialogue message can be deleted after the received time length of the target dialogue message reaches the reserved time length, so that the memory space of the terminal is saved, and the privacy of a user is protected to a certain extent.
As a possible implementation manner, after determining that the target dialogue message is received, the terminal deletes the target dialogue message if it is determined that the duration of receiving the target dialogue message reaches the set threshold. I.e. the target dialog message is completely deleted from the terminal.
It should be appreciated that the above procedure is based on whether the terminal has deleted the target session message, that is, whether the user has viewed the target session message or not, the target session message is deleted once the received time is eligible.
As another possible implementation manner, after determining that the target session message is received, the terminal may control the target session message to move in a preset moving direction on the display screen at a preset moving speed, and if it is determined that the length of the moving path of the target session message in the preset moving direction reaches the first target size corresponding to the display screen, the target session message is deleted. The predetermined moving direction may be from top to bottom, from bottom to top, from left to right, or from right to left, and is not particularly limited herein.
It should be understood that, in the above process, whether the length of the moving path of the target message reaches the first target size corresponding to the display screen is taken as a reference for whether the terminal deletes the target session message, so that when the terminal moves based on the same preset moving speed, the same target message is considered to be deleted at different times in different types of terminals, for example, the size of the display screen of the tablet is generally larger than the size of the display screen of the smartphone, and when the tablet and the smartphone are respectively used for displaying the target session message, the time when the target session message on the tablet is deleted may be considered to be later than the time when the target session message on the smartphone is deleted.
In consideration of the above-described process of taking the time as a reference of whether the terminal deletes the target session message, the process of judging whether the duration of the target session message received reaches the set threshold may be performed by the terminal itself or by the server. Therefore, a detailed description will be given below of how the terminal/server determines whether the duration of receiving the target session message reaches the set threshold, and how the terminal actively/passively deletes the target session message, respectively.
Case 1: the terminal judges whether the duration of the received target dialogue message reaches a set threshold value, and actively deletes the target dialogue message when the duration reaches the set threshold value.
Considering that different types of terminals can consider that their display screens have different sizes, in the embodiment of the present application, when a target session message is deleted may be determined based on the size of the display screen, while the set threshold corresponding to the retention period of the target session message is kept unchanged.
As a possible implementation manner, the terminal may determine the target moving speed of the target dialogue message according to the set threshold value of the retention time length and the second target size of the target dialogue message display screen in the preset moving direction. For example, the second target size is divided by the set threshold value, so as to obtain the target moving speed of the target dialogue message when the target dialogue message moves at a uniform speed in the preset moving direction. It should be appreciated that the predetermined direction of movement may be from top to bottom, from bottom to top, from left to right, or from right to left, without limitation.
Then, the terminal may control the target session message to move along the preset moving direction at the target moving speed. For example, the targeted dialog message may be presented in the form of a bullet screen. When the length of the moving path of the target dialogue message reaches the second target size, the target dialogue message is triggered to be deleted.
Referring to fig. 2, a display interface of a target group according to an embodiment of the present application is shown. When the target group member "Summer" sends a target dialogue message "happy and happy to prompt that the conference will formally start after 10 minutes" in the target group, the target dialogue message will move at a constant speed along the preset moving direction (from bottom to top) based on the target moving speed (the second target size/set threshold of the display screen of the terminal in the preset moving direction). When the target dialogue message moves to the top of the display screen (i.e. the target dialogue message is the position of the dotted line box), the target dialogue message is automatically deleted by the terminal.
In some embodiments, considering that when the target dialogue message is a text message, the user cannot read the text message within the set threshold due to too many words of the single text message, or when the target dialogue message is a voice message, the user cannot hear the text message within the set threshold due to too long single voice, in this embodiment of the present application, the timing of the target dialogue message may be temporarily interrupted, and the user may wait for viewing the target dialogue message, thereby improving the user experience.
As a possible embodiment, the user may apply a first preset operation to the target session message during the terminal controlling the target session message to move at the target moving speed in the preset moving direction, where the first preset operation may be a double-click operation, a press operation, etc. to the target session message, and there is no particular limitation herein. Then, the terminal can respond to the first preset operation to pause the target dialogue message to move along the preset moving direction, and the current pause position of the target dialogue message is determined. On this basis, the first length of the path the target session message has moved can be determined in combination with the initial starting point position of the target session message and the current pause position of the target session message.
When the user looks up the longer text message or language message, a second preset operation may be applied to the target dialogue message, where the second preset operation may be the same as the first preset operation or may be different from the first preset operation, and the second preset operation is not particularly limited herein. Then, the terminal can respond to the second preset operation, control the target dialogue message to take the pause position as a starting point, continuously move at uniform speed along the target preset moving direction based on the target moving speed, and record the second length of the path moving by taking the pause position as the starting point.
And deleting the target dialogue message when the sum of the first length and the second length reaches the second target size.
Referring to fig. 3, when the target group member "sum" sends a target dialogue message "good for a meeting" in the target group, and the meeting is formally started after 10 minutes, the target dialogue message will move at a constant speed along a preset moving direction (from bottom to top) based on a target moving speed (the target size/the set threshold of the display screen of the terminal in the preset moving direction). In the moving process of the target dialogue message, if the user feels that the target dialogue message cannot be checked in a limited time or is checked in a busy and temporary and flawless way, the user applies a first preset operation to the target dialogue message, so that the target dialogue message is ' good enough, a warm prompt conference is formally started after 10 minutes, the movement is stopped, and then the target dialogue message stays at a ' pause position ', at this time, the target dialogue message can be considered to perform a first moving stage, namely, the target dialogue message takes an initial position as a starting point, takes the pause position as an end point, and the moving path length is a first length; when the user finishes looking up the target dialogue message "good and graceful prompting meeting is formally started after 10 minutes," the second preset operation is applied to the target dialogue message "good and graceful prompting meeting is formally started after 10 minutes," the second moving stage is started after the target dialogue message "good and graceful prompting meeting is formally started after 10 minutes, namely, the moving is continued by taking the pause position as a starting point, and the second length of the real-time moving path is recorded. When the sum of the first length and the second length reaches the target size of the display screen of the terminal in the preset moving direction, the target dialogue message is' good, the warm prompt meeting is formally deleted after 10 minutes.
Case 2: the server judges whether the received time length of the target dialogue message reaches a set threshold value, and when the time length reaches the set threshold value, the server controls the terminal to delete the target dialogue message, namely the terminal passively deletes the target dialogue message
In the embodiment of the application, after the terminal receives the target dialogue message in the target group, the terminal can inform the server, then the server starts timing, and when the server determines that the received time length of the target dialogue message reaches the reserved time length, the terminal can be informed, so that the terminal can delete the target dialogue message.
As a possible implementation manner, after determining that the target session message is received, the terminal may send a response message to the server, where the response message characterizes that the target session message has been received, and the response message carries a target session message identifier, where the target session message identifier may be considered as an identifier of the target session message. After receiving the response information, the server knows that the terminal has received the target dialogue message, and then starts timing. When the server determines that the duration of the received target dialogue message reaches the set threshold, the server can send a deleting instruction to the terminal, wherein the deleting instruction carries the target dialogue message identifier. After receiving the deleting instruction, the terminal knows that the retention time of the target dialogue message reaches the set threshold value, executes the deleting instruction and deletes the target dialogue message.
In some embodiments, considering that the target dialogue message may exist in the target group, and before the duration of the target dialogue message received reaches the set threshold, the target group may be prematurely broken, or a person exits the target group, in embodiments of the present application, when any of the foregoing occurs, the terminal may prematurely delete the target group and the target dialogue message.
As a possible implementation manner, after the terminal determines that the target session message is received in the target group, if the terminal receives a deletion instruction for the target group, and the deletion instruction carries a group identifier of the target group, this means that the group owner in the target group actively breaks up the target group, and at this time, the terminal may delete the target group and the target session message locally in response to the deletion instruction.
As another possible implementation manner, after the terminal determines that the target session message is received in the target group, when the terminal detects a third preset operation for exiting the target group, for example, an "exit option" is set in the target group, and when a selection operation for "exit option" is detected, this means that the current user in the target group actively exits the target group, at this time, the terminal may delete the target group and the target session message locally in response to the third preset operation.
In some embodiments, it is contemplated that in chat applications similar to WeChat/QQ, instead of directly displaying the target file itself in the display interface, a download link corresponding to the target file is displayed, based on which the user may download the target group file locally. In the embodiment of the application, when the user uploads the file in the chat process, the reservation time of the download link corresponding to the user-defined file is supported, the download link and the corresponding reservation time are both sent to the terminal, and the terminal can delete the download link after the download link reaches the corresponding reservation time, thereby saving the memory space of the terminal and protecting the privacy of the user.
As a possible implementation manner, the terminal determines that the download link corresponding to the target file is received, and the custom duration corresponding to the download link. The custom time period may be considered herein as the time period since the download link was received, allowing the download link to remain. And deleting the download link when the terminal determines that the time length for receiving the download link reaches the user-defined time length of the user. For example, the target file may be a file transmitted to the other party when the individual users are private chat, or may be a group file transmitted by a user in the target group, and is not particularly limited herein.
In some embodiments, considering that the download link corresponding to the target file has a time limitation, that is, the download link is deleted after reaching the custom time, after the download link is received, a user who needs the target file may fail to make a time-based download based on the download link due to busy, which results in a situation that the download link cannot download the target group file due to exceeding the time limitation of the download link.
In view of this, in the embodiment of the present application, the download link corresponding to the target group file and the retention period corresponding to the download link may be displayed at the same time, so that a user who needs the target file may download the target group file based on the download link as soon as possible before the download link is deleted, thereby improving user experience.
As a possible implementation manner, the terminal may control the display of the download link corresponding to the target file and the custom duration corresponding to the download link on the chat interface of the target group or the chat interface between the individual users. It should be understood that, in addition to displaying the above-described custom time period, the remaining time period corresponding to the download link may also be displayed. Or in the initial state, displaying the self-defined time length, and then displaying the residual time length corresponding to the download link in a countdown mode.
Referring to fig. 4, after the group member "Jack" in the target group sends "meeting data and PDF" in the target group, a download link corresponding to the "meeting data and PDF" is displayed in the display interface of the target group, and the download link corresponds to the custom duration, that is, the retention duration is 30min. For other members in the target group, the meeting data PDF can be obtained through downloading the corresponding downloading link of the meeting data PDF within 30 minutes. However, once the retention period exceeds 30 minutes, the download link corresponding to "conference materials. PDF" is deleted.
In the following, a detailed description will be given of how to delete the target dialogue message in the target group in the chat application scenario of different system architecture, taking the chat among users in the target group as an example.
First system architecture: group chat is implemented based on interactions between the terminal and the server, and deletion of messages in the group.
Fig. 5 is a schematic diagram of implementing group chat based on a terminal-server architecture according to an embodiment of the present application. Fig. 5 includes a server 201 and a plurality of terminals 202. For example, the plurality of terminals 202 includes terminal 1, terminal 2, terminal 3, … terminal N, N being a positive integer not less than 2. It should be appreciated that the QQ or Wechat that is commonly used is based on the architecture shown in figure 5 to implement group chat.
The following describes in detail a procedure of creating a target group, taking a procedure of creating a group by the user 1 corresponding to the terminal 1 as an example.
When user 1 needs to create a target group, terminal 1 may send a creation request for the target group to server 201, the creation request carrying a target group type identification, a member identification of user 1 (i.e., what may be considered as a QQ or WeChat account of user 1), and a member identification of the invited user (e.g., a member identification of user 2, a member identification of user 3, …, a member identification of user N). After receiving the creation request, the server 201 may create a target group corresponding to the target group type identifier in response to the creation request, and generate a group identifier corresponding to the target group. And then binding the group identifier corresponding to the target group with the member identifiers of all the users, and giving the member identifier administrator authority to the user 1 and the member identifier common authority to the invited user. It should be appreciated that the administrator authority herein may at least proactively unbundle the target group as compared to the normal authority. And finally, the binding relation is sent to the terminal corresponding to the member identification of each user. The created target group may be displayed in each of the terminals corresponding to user 1, user 2, …, and user N. Of course, the invited user may be informed of the agreement before joining the target group, and the invited user may join the target group only after the invited user agrees, or may not join the target group.
After the target group is created, any member in the target group can send a message in the target group and also see itself and other members. The following will describe in detail the process of transmitting a message in a target group, taking user 1 as an example.
Dialog message type 1: when the group user uploads any one of the text, the voice and the picture in the group.
When the user 1 needs to send text/voice/picture in the target group, the terminal 1 may send an upload instruction to the server 201, where the upload instruction carries a text/voice/picture identifier, a group identifier of the target group, and text/voice/picture, and after receiving the upload instruction, the server 201 may determine all member identifiers corresponding to the group identifier of the target group according to a correspondence between the group identifier and the member identifiers, and send the text/voice/picture to the terminal corresponding to each member identifier in all the member identifiers.
Dialog message type 2: when a group user uploads any one of the text file/video file in the group.
When the user 1 needs to send the text file/video file in the target group, the terminal 1 may send an upload instruction to the server 201, where the upload instruction carries the text file/video file identifier, the group identifier of the target group, the text file/video file, the size of the text file/video file, and the custom storage duration, and after receiving the upload instruction, the server 201 generates a download link for the text file/video file, where the download link carries the text file/video file identifier, the size of the text file/video file, and the storage address of the text file/video file. Then, according to the corresponding relation between the group identification and the member identification, all the member identifications corresponding to the group identification of the target group can be determined, and the download links corresponding to the text files/video files and the custom time periods corresponding to the download links are sent to the terminals corresponding to the member identifications in all the member identifications.
After any group member sends the target dialogue message in the target group, the target dialogue message needs to be deleted in order to save the memory space of the terminal and ensure the privacy of the user. The deletion of the target session messages in the target group is described in detail below.
Deletion mechanism 1: the terminal itself judges whether the target dialogue message reaches the set threshold value, and the terminal executes the deletion operation.
When the target dialogue message is text/voice/picture, the terminal starts timing from the moment when the text/voice/picture is received, and if the target dialogue message reaches a set threshold value, the text/voice/picture is deleted.
When the target dialogue message is the download link and the corresponding custom time length, the terminal starts timing from the time when the download link is received, and if the custom time length is reached, the download link is deleted.
Deletion mechanism 2: the server judges whether the duration of the received target dialogue message reaches a set threshold value or not, and controls the terminal to execute deleting operation.
When the target dialogue message is text/voice/picture, if the terminal determines that the text/voice/picture is received in the target group, response information representing that the text/voice/picture is received can be sent to the server, and the response information carries text/voice/picture identification. After receiving the response information, the server starts timing. When the server determines that the received time length of the text/voice/picture reaches the set threshold, a deleting instruction can be sent to the terminal, wherein the deleting instruction carries the text/voice/picture identification. After receiving the deleting instruction, the terminal deletes the text/voice/picture.
When the target dialogue message is a text file/video file, if the terminal determines that a download link corresponding to the text file/video file is received in the target group, response information representing that the download link is received can be sent to the server, and the response information carries a text file/video file identifier. After receiving the response information, the server starts timing. When the server determines that the interval time after the download link is received reaches the user-defined time, a deleting instruction can be sent to the terminal, wherein the deleting instruction carries the text file/video file identification. And after receiving the deleting instruction, the terminal deletes the downloading link.
In the above scheme, the target session message is deleted after the set threshold is reached, but in some cases, the target session message in the target group may be deleted in advance.
Early delete case 1: the group owner of the target group actively breaks up the target group.
Taking the user 1 as the group owner of the target group as an example, when the user 1 wants to break up the target group, the terminal 1 corresponding to the member identifier of the user 1 may send a break-up request for breaking up the target group to the server 201, where the break-up request carries the member identifier of the user 1 and the group identifier of the target group. After receiving the above-mentioned detach request, the server 201 may verify whether it has authority to detach the target group according to the member identification of the user 1. And after passing the verification, sending a deleting instruction to the terminal corresponding to each member identifier in all member identifiers corresponding to the group identifiers of the target group, wherein the deleting instruction carries the group identifier of the target group. After receiving the deleting instruction, the terminal deletes the target group and the target dialogue message.
Early delete case 2: common members in the target group actively exit the target group.
Taking the user 2 as a common member of the target group as an example, when the user 2 wants to log out of the target group, the terminal 2 corresponding to the member identifier of the user 2 may send a log-out request for logging out of the target group to the server 201, where the log-out request carries the member identifier of the user 2 and the group identifier of the target group. After receiving the exit request, the server 201 may send a deletion instruction to the terminal corresponding to the member identifier of the user 2, where the deletion instruction carries the group identifier of the target group. After receiving the deleting instruction, the terminal corresponding to the member identifier of the user 2 deletes the target group and the target dialogue message. It should be understood that, when the target session message is sent to the target group by the user 2, for the terminal corresponding to the other member identifier in the target group, it also receives a deletion instruction, where the deletion instruction carries the group identifier of the target group and the target session message identifier, so that the terminal corresponding to the other member identifier in the target group can delete the target session message sent by the user 2.
A second system architecture: group chat is realized based on interaction between terminals, and deletion of messages in the group is realized.
Fig. 6 is a schematic diagram of implementing group chat based on a terminal-terminal architecture according to an embodiment of the present application. Fig. 6 includes terminals 1 (301), 2 (302), 3 (303), …, and N (30N), where N is a positive integer not less than 2. It should be appreciated that the commonly used web bluetooth group chat application implements group chat based on the architecture shown in fig. 6.
The following describes in detail a procedure of creating a target group, taking a procedure of creating a group by the user 1 corresponding to the terminal 1 as an example.
First, bluetooth connections are established between terminals 1 (301), 2 (302), 3 (303), …, and N (30N) in advance. When the user 1 needs to create the target group, the terminal 1 may send a creation request for the target group to other terminals [ terminal 2 (302), terminal 3 (303), …, terminal N (30N) ], where the creation request carries a target group type identifier, a group identifier, and a terminal identifier of the terminal 1 corresponding to the user 1. After receiving the creation request, if other users corresponding to the other terminals agree to join the target group, the other terminals send an approval instruction to the terminal 1, where the approval instruction carries the terminal identifier of the other terminals. For example, if the user of the terminal 2 (302) agrees to join the target group, the terminal 2 (302) may send an agreement instruction to the terminal 1, where the agreement instruction carries the terminal identifier of the terminal 2.
After receiving the approval instruction of other terminals, the terminal 1 binds the group identifier of the target group with the terminal identifiers of other terminals, and gives the terminal identifier manager authority of the terminal 1 and the terminal identifier ordinary authority of other terminals. It should be appreciated that the administrator authority herein may at least proactively unbundle the target group as compared to the normal authority. Finally, if the binding relationship is sent to other terminals, the terminals 1 (301), 2 (302), 3 (303), … and N (30N) can display the created target group.
After the target group is created, any member in the target group can send a message in the target group and also see itself and other members. The following will describe in detail a procedure of transmitting a message in a target group, taking the terminal 1 as an example.
When the user 1 needs to send text/voice/picture in the target group, the terminal 1 will display text/voice/picture in its own target group, and at the same time, the terminal 1 will synchronize the text/voice/picture and the terminal identification of the terminal 1 to the terminal 2 (302), the terminal 3 (303), the terminal …, and the terminal N (30N). After receiving the text/voice/picture and the terminal identification of the terminal 1, the terminal 2 (302), the terminal 3 (303), the terminal … and the terminal N (30N) can display the text/voice/picture corresponding to the terminal identification of the terminal 1 in their own target group.
When the user 1 needs to send the text file/video file in the target group, the terminal 1 prompts the user 1 to input the custom retention time of the text file/video file, and the terminal 1 displays the text file/video file in the target group. Meanwhile, the terminal 1 synchronizes the text file/video file, the custom reserved time period and the terminal identification of the terminal 1 to the terminal 2 (302), the terminal 3 (303), the terminal … and the terminal N (30N). After receiving the text file/video file, the custom reserved time length and the terminal identifier of the terminal 1, the terminal 2 (302), the terminal 3 (303), the … and the terminal N (30N) can display the text file/video file corresponding to the terminal identifier of the terminal 1 in the own target group.
After any group member sends the target dialogue message in the target group, the target dialogue message needs to be deleted in order to save the memory space of the terminal and ensure the privacy of the user. The deletion of the target session messages in the target group is described in detail below.
When the target dialogue message is text/voice/picture, the terminals 1 (301), 2 (302), 3 (303), … and N (30N) start timing from the time when the text/voice/picture is received, and when the target dialogue message reaches the set threshold, the text/voice/picture is deleted.
When the target dialogue message is a text file/video file, the terminal 1 (301), the terminal 2 (302), the terminal 3 (303), the terminal … and the terminal N (30N) start timing from the moment when the text file/video file is received, and if the self-defined retention time length is reached, the text file/video file is deleted.
In the above scheme, the target session message is deleted after reaching the set threshold (custom retention period), but in some cases, the target session message in the target group may be deleted in advance.
Early delete target dialog message case 1: the group owner of the target group actively breaks up the target group.
Taking the user 1 as the group owner of the target group as an example, when the user 1 wants to break up the target group, the terminal 1 corresponding to the user 1 may send a breaking request for breaking up the target group to the terminal 2 (302), the terminal 3 (303), the terminal … and the terminal N (30N), where the breaking request carries the terminal identifier of the terminal 1 and the group identifier of the target group. After receiving the above-mentioned detach request, the terminals 2 (302), 3 (303), …, and N (30N) can each verify whether they have the authority to detach the target group according to the terminal identifier of the terminal 1. After passing the verification, the target group and the target dialogue message are deleted respectively.
Early delete target dialogue message case 2: common members in the target group actively exit the target group.
Taking the user 2 as a common member of the target group as an example, when the user 2 wants to log out of the target group, the terminal 2 (302) corresponding to the user 2 can send a log-out request for logging out of the target group by the terminal 1 (301), the terminal 3 (303), the terminal … and the terminal N (30N), wherein the log-out request carries the terminal identifier of the terminal 2 and the group identifier of the target group. After the terminal 1 (301), the terminal 3 (303), the terminal … and the terminal N (30N) respectively receive the exit requests, the binding relationship between the group identifier of the target group and the terminal identifier of the terminal 2 is released, that is, the terminal identifier of the terminal 2 is no longer displayed in the target group of the terminal 1 (301), the terminal 3 (303), the terminal … and the terminal N (30N). While the target group and target session messages in the terminal 2 are also deleted. It should be understood that, when the target session message is sent to the target group by the terminal 2, the terminal 1 (301), the terminal 3 (303), the terminal …, and the terminal N (30N) also delete the target session message corresponding to the device identifier of the terminal 2 when receiving the above-mentioned exit request.
Early delete target dialogue message case 3: any terminal in the target group is disconnected from the communication connection of the other terminals.
Taking the example of the user 2, if the distance between the user 2 and other users exceeds the effective distance of bluetooth connection, the terminal 2 (302) corresponding to the user 2 is disconnected from the terminal 1 (301), the terminal 3 (303), the terminal … and the terminal N (30N), and the terminal 2 deletes the target group and the target session message. The terminal 1 (301), the terminal 3 (303), the terminal … and the terminal N (30N) will respectively release the binding relationship between the group identifier of the target group and the terminal identifier of the terminal 2, i.e. the terminal identifier of the terminal 2 is no longer displayed in the target group of the terminal 1 (301), the terminal 3 (303), the terminal … and the terminal N (30N). It should be understood that, when the target session message is sent to the target group by the terminal 2, the target session message corresponding to the device identifier of the terminal 2 is deleted after determining that the terminal 2 is disconnected from the bluetooth connection for the terminal 1 (301), the terminal 3 (303), the terminal … and the terminal N (30N).
Referring to fig. 7, based on the same inventive concept, the embodiment of the application further provides a method for managing dialogue messages, the method is applied to a server, and the flow of the method is described as follows:
step 401: and receiving a response message which is sent by the terminal and characterizes that the target dialogue message is received, wherein the response message carries a target dialogue message identifier, and the target dialogue message identifier is the identifier of the target dialogue message.
Step 402: and when the time length for which the target dialogue message is received reaches the set threshold, sending a deleting instruction to the terminal, wherein the deleting instruction comprises the target dialogue message identification, so that the terminal deletes the target dialogue message based on the target dialogue message identification.
The specific embodiments of steps 401 to 402 may refer to the specific contents of the terminal side, and will not be described herein.
Referring to fig. 8, based on the same inventive concept, an embodiment of the present application further provides a device for managing a dialogue message, where the device includes: a determining unit 501 and a deleting unit 502.
A determining unit 501, configured to determine that a target dialogue message is received;
and the deleting unit 502 is configured to delete the target dialogue message if it is determined that the duration of receiving the target dialogue message reaches the set threshold, or it is determined that the length of the moving path of the target dialogue message in the preset moving direction reaches the first target size corresponding to the display screen based on the preset moving speed.
Optionally, the deleting unit 502 includes:
a movement speed determining subunit, configured to determine a target movement speed of the target dialogue message according to the set threshold and a second target size of the target dialogue message display screen in the preset movement direction;
A moving subunit, configured to control the target dialogue message to move in a preset moving direction based on the target moving speed;
and a message deleting subunit configured to delete the target session message when it is determined that the length of the movement path of the target session message reaches the target size.
Optionally, the message deleting subunit is specifically configured to:
in response to a first preset operation for the target dialogue message, pausing the target dialogue message to move along a preset moving direction, and determining a pause position of the target dialogue message;
determining a first length of a path that the target conversation message has moved based on an initial starting point position of the target conversation message and a pause position of the target conversation message;
in response to a second preset operation for the target dialogue message, controlling the target dialogue message to move in the target moving direction based on the target moving speed continuously with the pause position as a starting point, and recording a second length of a path moved with the pause position as the starting point;
and deleting the target dialogue message when the sum of the second length and the first length reaches the second target size.
Optionally, the deleting unit 502 is specifically configured to:
transmitting a response message representing that the target dialogue message is received to the server, wherein the response message carries a target dialogue message identifier, and the target dialogue message identifier is the identifier of the target dialogue message;
Receiving a deleting instruction from a server, wherein the deleting instruction is sent by the server when the time length for determining that the target dialogue message is received reaches a set threshold value, and the deleting instruction comprises a target dialogue message identifier;
and deleting the target dialogue message in response to the deleting instruction.
Optionally, the determining unit 501 is specifically configured to:
determining that a target dialogue message is received in a target group;
the apparatus further comprises:
the receiving unit is used for receiving a deleting instruction aiming at the target group, wherein the deleting instruction comprises a group identifier of the target group;
the deletion unit 502 is further configured to:
and deleting the target group and the target dialogue message in response to the deleting instruction.
Optionally, the determining unit 501 is specifically configured to:
determining that the target dialogue message is received in a target group;
the apparatus further comprises:
a detection unit for detecting a third preset operation for exiting the target group;
the deletion unit 502 is further configured to:
and deleting the target group and the target dialogue message in response to the third preset operation.
Optionally, the determining unit 501 is specifically configured to:
determining a download link corresponding to the received target group file and a custom time length corresponding to the download link;
the deleting unit 502 is specifically configured to:
And if the received time length of the download link reaches the self-defined time length, deleting the download link.
Optionally, the apparatus further comprises:
and the display unit is used for displaying the download link and the corresponding custom time length.
Referring to fig. 9, based on the same inventive concept, an embodiment of the present application further provides a device for managing a dialogue message, where the device includes: a receiving unit 601 and a transmitting unit 602.
A receiving unit 601, configured to receive a response message sent by a terminal and representing that a target session message has been received, where the response message carries a target session message identifier, and the target session message identifier is an identifier of the target session message;
and a sending unit 602, configured to send a deletion instruction to the terminal when it is determined that the duration of the received target session message reaches the set threshold, where the deletion instruction includes the target session message identifier, so that the terminal deletes the target session message based on the target session message identifier.
Referring to fig. 10, based on the same inventive concept, an electronic device 100 is further provided in an embodiment of the present application, where the electronic device 100 may include at least one processor, and the at least one processor is configured to execute a computer program stored in a memory, to implement the steps of the method for managing conversation messages shown in fig. 1 according to the embodiment of the present application.
In the alternative, the processor may be a central processing unit, a specific ASIC, or one or more integrated circuits for controlling the execution of the program.
Optionally, the electronic device 100 may further include a memory coupled to the at least one processor, the memory may include ROM, RAM, and disk memory. The memory is used for storing data required by the processor when running, i.e. instructions are stored which are executable by at least one processor, which by executing the instructions stored by the memory performs the method as shown in fig. 1. Wherein the number of memories is one or more.
The entity devices corresponding to the determining unit 501 and the deleting unit 502 may be the aforementioned processors. The electronic device may be used to perform the method provided by the embodiment shown in fig. 1. Therefore, for the functions that can be implemented by each functional module in the electronic device, reference may be made to the corresponding description in the embodiment shown in fig. 1, which is not repeated.
The electronic device 100 may be an intelligent electronic device such as a smart phone or a tablet computer, and the form of the electronic device is not limited in this embodiment.
For example, fig. 10 illustrates a schematic structure of the electronic device 100 using a smart phone as an example, and as shown in fig. 10, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195.
It should be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The charge management module 140 is configured to receive a charge input from a charger.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110.
In some embodiments, antenna 1 and mobile communication module 150 of electronic device 100 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that electronic device 100 may communicate with a network and other devices through wireless communication techniques. The wireless communication techniques may include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel.
The ISP is used to process data fed back by the camera 193.
The camera 193 is used to capture still images or video.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer executable program code including instructions. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 100 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like. The processor 110 performs various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal.
The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals.
A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal.
Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals.
The earphone interface 170D is used to connect a wired earphone. The headset interface 170D may be a USB interface 130 or a 3.5mm open mobile electronic device platform (open mobile terminal platform, OMTP) standard interface, a american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The keys 190 include a power-on key, a volume key, etc.
The motor 191 may generate a vibration cue.
The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card may be inserted into the SIM card interface 195, or removed from the SIM card interface 195 to enable contact and separation with the electronic device 100. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support Nano SIM cards, micro SIM cards, and the like. The same SIM card interface 195 may be used to insert multiple cards simultaneously. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to realize functions such as communication and data communication. In some embodiments, the electronic device 100 employs esims, i.e.: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
Embodiments of the present application also provide a computer storage medium storing computer instructions that, when executed on a computer, cause the computer to perform a method as described in fig. 1.
Referring to fig. 11, based on the same inventive concept, an electronic device 200 is provided in an embodiment of the present application, where the electronic device 200 may be a server, and the electronic device includes at least one processor 210, where the processor 210 is configured to execute a computer program stored in a memory, to implement the steps of the method for managing conversation messages as shown in fig. 7 provided in the embodiment of the present application.
Alternatively, the processor 210 may be a central processing unit, a specific ASIC, or one or more integrated circuits for controlling the execution of programs.
Optionally, the electronic device may further comprise a memory 211 coupled to the at least one processor 210, the memory 211 may include ROM, RAM, and disk memory. The memory 211 is used for storing data required by the processor 210 when running, i.e. instructions executable by at least one processor 210 are stored, and at least one processor 210 performs the method shown in fig. 7 by executing the instructions stored by the memory 211. Wherein the number of memories 211 is one or more. Although the memory 211 is shown in fig. 11, it should be noted that the memory 211 is not an essential functional block, and is therefore shown in fig. 11 by a broken line.
The physical devices corresponding to the receiving unit 601 and the sending unit 602 may be the aforementioned processor 210. The electronic device may be used to perform the method provided by the embodiment shown in fig. 7. Therefore, for the functions that can be implemented by each functional module in the electronic device, reference may be made to the corresponding description in the embodiment shown in fig. 7, which is not repeated.
Embodiments of the present application also provide a computer storage medium storing computer instructions that, when executed on a computer, cause the computer to perform a method as described in fig. 7.
The foregoing description of the preferred embodiments is provided for the purpose of illustration only, and is not intended to limit the scope of the disclosure, since any modifications, equivalents, improvements, etc. that fall within the spirit and principles of the disclosure are intended to be included within the scope of the disclosure.

Claims (9)

1. A method for managing conversation messages, the method comprising:
determining that a target conversation message is received;
if the time length for receiving the target dialogue message reaches a set threshold value, deleting the target dialogue message;
if it is determined that the duration of receiving the target session message reaches the set threshold, deleting the target session message includes:
Determining a target moving speed of the target dialogue message according to the set threshold and a second target size corresponding to the target dialogue message display screen in a preset moving direction;
controlling the target dialogue message to move in the preset moving direction based on the target moving speed;
and deleting the target dialogue message when the length of the moving path of the target dialogue message reaches the second target size.
2. The method of claim 1, wherein deleting the target session message when it is determined that the length of the movement path of the target session message reaches the second target size comprises:
suspending the target dialogue message from moving along the preset moving direction in response to a first preset operation for the target dialogue message, and determining a suspension position of the target dialogue message;
determining a first length of a path that the target conversation message has moved based on an initial starting point position of the target conversation message and a pause position of the target conversation message;
controlling the target dialogue message to take the pause position as a starting point in response to a second preset operation for the target dialogue message, continuously moving along the preset moving direction based on the target moving speed, and recording a second length of a path moving by taking the pause position as the starting point;
And deleting the target dialogue message when the sum of the second length and the first length reaches the second target size.
3. The method of claim 1, wherein determining that the targeted dialog message is received comprises:
determining that the target dialogue message is received in a target group;
before determining that the duration of receiving the target session message reaches a set threshold, the method further comprises:
receiving a deletion instruction aiming at the target group, wherein the deletion instruction comprises a group identifier of the target group;
and deleting the target group and the target dialogue message in response to the deleting instruction.
4. The method of claim 1, wherein determining that the targeted dialog message is received comprises:
determining that the target dialogue message is received in a target group;
before determining that the duration of receiving the target session message reaches a set threshold, the method further comprises:
detecting a third preset operation for exiting the target group;
and deleting the target group and the target dialogue message in response to the third preset operation.
5. The method of claim 1, wherein determining that the targeted dialog message is received comprises:
Determining a download link corresponding to a received target file and a custom duration corresponding to the download link;
if it is determined that the duration of receiving the target dialogue message reaches the set threshold, deleting the target dialogue message includes:
and if the received time length of the download link reaches the self-defined time length, deleting the download link.
6. The method of claim 5, wherein after determining that the download link corresponding to the target file and the custom duration corresponding to the download link are received, the method further comprises:
and displaying the download link and the corresponding custom time length.
7. A device for managing conversation messages, the device comprising:
a determining unit, configured to determine that a target dialogue message is received;
a deleting unit, configured to delete the target dialogue message if it is determined that the duration of receiving the target dialogue message reaches a set threshold;
the deletion unit includes:
a moving speed determining subunit, configured to determine a target moving speed of the target session message according to the set threshold and a second target size of the target session message display screen in a preset moving direction;
A moving subunit, configured to control the target dialogue message to move in the preset moving direction based on the target moving speed;
and the message deleting subunit is used for deleting the target dialogue message when determining that the length of the moving path of the target dialogue message reaches the target size.
8. An electronic device comprising at least one processor and a memory coupled to the at least one processor, the at least one processor being configured to implement the steps of the method of any of claims 1-6 when executing a computer program stored in the memory.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any of claims 1-6.
CN202210799723.7A 2022-07-06 2022-07-06 Management method and device of dialogue message, electronic equipment and storage medium Active CN115065651B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210799723.7A CN115065651B (en) 2022-07-06 2022-07-06 Management method and device of dialogue message, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210799723.7A CN115065651B (en) 2022-07-06 2022-07-06 Management method and device of dialogue message, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115065651A CN115065651A (en) 2022-09-16
CN115065651B true CN115065651B (en) 2023-09-29

Family

ID=83204813

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210799723.7A Active CN115065651B (en) 2022-07-06 2022-07-06 Management method and device of dialogue message, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115065651B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104077007A (en) * 2013-03-25 2014-10-01 腾讯科技(深圳)有限公司 Information entry collation method and system
CN106953790A (en) * 2016-01-07 2017-07-14 阿里巴巴集团控股有限公司 Many people's information exchange methods and device
CN107295173A (en) * 2017-06-21 2017-10-24 广东欧珀移动通信有限公司 Delete the method and Related product of chat messages
CN107483605A (en) * 2017-08-29 2017-12-15 北京小米移动软件有限公司 Document down loading method and device, storage medium
CN108900407A (en) * 2017-05-11 2018-11-27 腾讯科技(深圳)有限公司 Management method, device and the storage medium of conversation recording
CN109542287A (en) * 2018-11-29 2019-03-29 努比亚技术有限公司 Message prompt method, device, mobile terminal and storage medium
CN109976599A (en) * 2017-12-27 2019-07-05 中移(杭州)信息技术有限公司 A kind of unread message processing method, device and the equipment of application program
CN112073301A (en) * 2020-08-31 2020-12-11 上海连尚网络科技有限公司 Method, device and computer readable medium for deleting chat group members
CN114257562A (en) * 2021-12-16 2022-03-29 北京天融信网络安全技术有限公司 Instant messaging method, instant messaging device, electronic equipment and computer readable storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104077007A (en) * 2013-03-25 2014-10-01 腾讯科技(深圳)有限公司 Information entry collation method and system
CN106953790A (en) * 2016-01-07 2017-07-14 阿里巴巴集团控股有限公司 Many people's information exchange methods and device
CN108900407A (en) * 2017-05-11 2018-11-27 腾讯科技(深圳)有限公司 Management method, device and the storage medium of conversation recording
CN107295173A (en) * 2017-06-21 2017-10-24 广东欧珀移动通信有限公司 Delete the method and Related product of chat messages
CN107483605A (en) * 2017-08-29 2017-12-15 北京小米移动软件有限公司 Document down loading method and device, storage medium
CN109976599A (en) * 2017-12-27 2019-07-05 中移(杭州)信息技术有限公司 A kind of unread message processing method, device and the equipment of application program
CN109542287A (en) * 2018-11-29 2019-03-29 努比亚技术有限公司 Message prompt method, device, mobile terminal and storage medium
CN112073301A (en) * 2020-08-31 2020-12-11 上海连尚网络科技有限公司 Method, device and computer readable medium for deleting chat group members
CN114257562A (en) * 2021-12-16 2022-03-29 北京天融信网络安全技术有限公司 Instant messaging method, instant messaging device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN115065651A (en) 2022-09-16

Similar Documents

Publication Publication Date Title
WO2020034074A1 (en) Wake-up method, wake-up apparatus, electronic device and computer-readable storage medium
JP2023520478A (en) Configuration information transmission method and device, communication device and storage medium
US8379073B2 (en) Method for storing data of video telephony call in mobile terminal and system thereof
CN109314913B (en) Access control limiting method and device
CN104616652A (en) Voice transmission method and device
CN106713127B (en) Method and device for acquiring and processing instant chat records
CN105263182A (en) Equipment control method, device and terminal
CN114466324B (en) Calling method and related device
CN114996168A (en) Multi-device cooperative test method, test device and readable storage medium
CN113661742B (en) Channel monitoring method and device and storage medium
WO2022077188A1 (en) Paging method and apparatus and storage medium
CN113645689A (en) Network access registration method, device, equipment and storage medium
RU2663355C1 (en) Method and device for installing connection for service
CN115065651B (en) Management method and device of dialogue message, electronic equipment and storage medium
CN111699724A (en) Method and device for controlling terminal and storage medium
CN116909945A (en) Memory management method, memory management device, chip module, electronic equipment and storage medium
CN115103304B (en) Position information calling method and device
CN107295493B (en) Information reporting method, device, terminal and computer readable storage medium
CN113837338A (en) Detection method, terminal, user identification card, electronic equipment and storage medium
WO2022104512A1 (en) Method and apparatus for determining paging reason, and storage medium
EP4021078A1 (en) Method for increasing paging response speed of terminal and terminal
CN111432502B (en) Random access method, base station and terminal equipment
CN113490284A (en) Scheduling request method and device, electronic equipment and storage medium
CN107295698B (en) Call connection establishing method, device and system
CN115065967B (en) Terminal control method and device, electronic equipment and storage medium

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