CN107733781B - Instant messaging processing method, equipment and computer storage medium - Google Patents
Instant messaging processing method, equipment and computer storage medium Download PDFInfo
- Publication number
- CN107733781B CN107733781B CN201710847620.2A CN201710847620A CN107733781B CN 107733781 B CN107733781 B CN 107733781B CN 201710847620 A CN201710847620 A CN 201710847620A CN 107733781 B CN107733781 B CN 107733781B
- Authority
- CN
- China
- Prior art keywords
- user
- equipment
- version number
- communication record
- instruction
- 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
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 12
- 238000004891 communication Methods 0.000 claims abstract description 153
- 238000000034 method Methods 0.000 claims abstract description 60
- 230000008569 process Effects 0.000 claims description 10
- 238000012217 deletion Methods 0.000 abstract description 2
- 230000037430 deletion Effects 0.000 abstract description 2
- 230000003287 optical effect Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 238000004590 computer program Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 230000001960 triggered effect Effects 0.000 description 3
- 230000003190 augmentative effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000004883 computer application Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000004984 smart glass Substances 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
- H04L51/043—Real-time or near real-time messaging, e.g. instant messaging [IM] using or handling presence information
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention provides a processing method, equipment and a computer storage medium for instant messaging, wherein the method comprises the following steps: receiving a message sent by first user side equipment, wherein the message is used for deleting a friend second user by a first user; updating the recorded states of the first user and the second user into non-friends; and sending the updated states of the first user and the second user and an instruction for deleting or hiding the communication record between the first user and the second user to the second user side equipment. According to the method and the device, when the first user deletes the second user of the friend, the deletion or hiding of the communication record between the first user and the second user in the second user side equipment can be realized, so that the privacy of the user is effectively protected, and the use experience is improved.
Description
[ technical field ] A method for producing a semiconductor device
The present invention relates to the field of computer application technologies, and in particular, to a method and an apparatus for processing instant messaging, and a computer storage medium.
[ background of the invention ]
Instant Message (IM) refers to a service capable of sending and receiving internet messages instantly, and people can communicate in various ways such as text, pictures, voice, video and the like conveniently and quickly through Instant communication tools such as QQ, wechat and the like, so that the IM is widely used.
When a user uses an instant messaging tool through terminal equipment, only "instant messaging friends" (hereinafter, referred to as "friends") added to each other can communicate, but if a friend is deleted, a communication record of the friend, generated by the user through the instant messaging tool, of the user in the terminal equipment is also deleted, but the communication record of the friend and the user is still kept in the terminal equipment of the friend, so that the privacy of the user cannot be well protected, and the use experience is poor.
[ summary of the invention ]
In view of this, the present invention provides a processing method, device and computer storage medium for instant messaging, so as to protect user privacy and improve user experience.
The specific technical scheme is as follows:
the invention provides a processing method of instant messaging, which is executed by a server and comprises the following steps:
receiving a message sent by first user side equipment, wherein the message is used for deleting a friend second user by a first user;
updating the recorded states of the first user and the second user into non-friends;
and sending the updated states of the first user and the second user and an instruction for deleting or hiding the communication record between the first user and the second user to the second user side equipment.
According to an embodiment of the present invention, sending the instruction to delete or hide the communication record between the first user and the second user includes:
and determining whether to send an instruction for deleting or hiding the communication record between the first user and the second user according to the setting operation of the first user when the friend second user is deleted.
According to a specific embodiment of the present invention, the method further comprises:
and determining whether the first user side equipment deletes or hides the communication record between the first user and the second user according to the setting operation of the first user when the friend second user is deleted.
According to a specific embodiment of the present invention, the message of the first user deleting the friend second user includes the information of the setting operation; or,
and receiving a message containing the information of the setting operation from the first user terminal equipment.
According to a specific embodiment of the present invention, the method further comprises:
and if the states of the first user and the second user are determined to be recovered to be friends, sending a concealment releasing instruction to equipment hiding the communication record between the first user and the second user.
According to a specific embodiment of the present invention, after the recorded states of the first user and the second user are updated to be non-friends, the method further includes: updating the version number corresponding to the second user which is maintained locally;
and binding the instruction with the updated version number, and carrying the updated version number in the sent instruction.
According to a specific embodiment of the present invention, the method further comprises:
and after receiving the version number of the second user sent by the second user side equipment, if the received version number is inconsistent with the version number of the second user maintained locally, sending an instruction bound with the latest version number of the second user maintained locally to the second user side equipment.
The invention also provides a processing method of instant messaging, which is executed by a client or a browser arranged in second client equipment, and the method comprises the following steps:
receiving a state that a first user and a second user are updated to be not good friends and an instruction for indicating to delete or hide a communication record between the first user and the second user, wherein the state is sent by a server;
setting the states of the first user and the second user as non-friends;
and deleting or hiding the communication record between the first user and the second user in the equipment according to the instruction.
According to an embodiment of the present invention, hiding the communication record between the first user and the second user in the device includes:
only displaying the communication records of mutual friends in the equipment; or,
and setting the communication record between the first user and the second user in the equipment to be in a hidden state.
According to an embodiment of the present invention, when deleting or hiding the communication record between the first user and the second user, any one of the following is performed for the communication record of the group:
deleting or hiding only the contents sent by the first user and the second user in the group; or,
and if the active users in the group are only the first user and the second user, deleting or hiding the communication records of the group.
According to a specific embodiment of the present invention, the method further comprises:
and according to the instruction for releasing the hiding sent by the server side, releasing the hiding of the communication record between the first user and the second user.
The invention also provides a processing method of instant messaging, which is executed by a client or a browser arranged in second client equipment, and the method comprises the following steps:
sending the version number of the second user maintained by the equipment to a server;
and deleting or hiding the communication record between the first user and the second user in the equipment after receiving an instruction for deleting or hiding the communication record between the first user and the second user, which is sent by the server, and updating the version number of the second user maintained by the equipment by using the version number of the second user carried by the instruction.
According to a specific embodiment of the present invention, the sending, by the server, the version number of the second user maintained by the device includes:
and sending the version number of the second user maintained by the equipment to the server in the process of logging in the instant messaging service.
The invention also provides a processing method of instant messaging, which is executed by a client or a browser arranged in the first user terminal device, and the method comprises the following steps:
acquiring an operation event of a friend deleting second user of a first user, and acquiring a setting operation of the first user when the friend deleting second user;
setting the states of the first user and the second user as non-friends, and deleting or hiding the communication record between the first user and the second user in the equipment;
sending a message of the first user deleting the second user of the friend and information of the setting operation to a server, wherein the setting operation comprises the following steps: and the second user end equipment is set to delete or hide the communication record between the first user and the second user.
According to a specific embodiment of the present invention, the setting operation further includes: deleting or hiding the communication record between the first user and the second user in the equipment;
and the step of deleting or hiding the communication record between the first user and the second user in the equipment is executed according to the setting operation.
According to a specific embodiment of the present invention, the method further comprises:
and after the first user and the second user recover to be friends, the hiding of the communication record between the first user and the second user is removed according to a hiding removal instruction sent by a server.
According to an embodiment of the present invention, hiding the communication record between the first user and the second user in the device includes:
only displaying the communication records of mutual friends in the equipment; or,
and setting the communication record between the first user and the second user in the equipment to be in a hidden state.
According to an embodiment of the present invention, when deleting or hiding the communication record between the first user and the second user, any one of the following is performed for the communication record of the group:
deleting or hiding only the contents sent by the first user and the second user in the group; or,
and if the active users in the group are only the first user and the second user, deleting or hiding the communication records of the group.
The present invention also provides an apparatus, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement any of the methods described above.
The present invention also provides a storage medium containing computer-executable instructions for performing any of the methods described above when executed by a computer processor.
According to the technical scheme, the method and the device are applied to the instant messaging tool, and when the first user deletes the friend second user, the deletion or hiding of the communication record between the first user and the second user in the second user side equipment can be realized, so that the privacy of the user is effectively protected, and the use experience is improved.
[ description of the drawings ]
FIG. 1 is a schematic diagram of a system architecture in which the present invention is applied;
FIG. 2 is a flowchart of a method provided in accordance with an embodiment of the present invention;
FIG. 3 is a flowchart of a method provided in a second embodiment of the present invention;
FIG. 4 is a diagram of an exemplary setup interface according to an embodiment of the present invention;
fig. 5 is a flowchart of a method performed by a first ue according to a third embodiment of the present invention;
fig. 6 is a flowchart of a method executed by a server according to a fourth embodiment of the present invention;
fig. 7 is a flowchart of a method performed by a second ue according to a fifth embodiment of the present invention;
FIG. 8 is a block diagram of an exemplary computer system/server used to implement embodiments of the present invention.
[ detailed description ] embodiments
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in detail with reference to the accompanying drawings and specific embodiments.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention 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.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
For ease of understanding, the system architecture employed by the present invention is first briefly described. The system applied by the present invention at least includes a first user end device, a second user end device and a server, as shown in fig. 1, users corresponding to the first user end device and the second user end device are respectively called a first user and a second user. The first user can interact with the server through a client or a browser installed and operated in the first user side equipment, the second user can interact with the server through a client or a browser installed and operated in the second user side equipment, and instant communication between the first user and the second user can be achieved through the server.
For example, a first user may communicate with a second user using an IM class APP in a second user device through the IM class APP in the first user device. For another example, the first user may communicate with the second user using the web page version IM class service in the second user device through the web page version IM class service in the first user device. For another example, the first user may communicate with the second user using the IM APP in the second user device through the web page IM service in the first user device. Other scene combinations are not described in detail.
The customer premise equipment related in the embodiment of the present invention may include but is not limited to: smart mobile terminals, wearable devices, PCs (personal computers), and the like. Wherein the smart mobile device may include devices such as a cell phone, a tablet computer, a notebook computer, a PDA (personal digital assistant), an internet automobile, etc. Wearable devices may include devices such as smart watches, smart glasses, smart bracelets, virtual reality devices, augmented reality devices, mixed reality devices (i.e., devices that can support virtual reality and augmented reality), and so forth.
The server related in the embodiment of the present invention may be a network device providing an IM service, and may be regarded as an IM platform. The server may be one server or a cluster including a plurality of servers.
The following describes the processing method of instant messaging according to the present invention in detail through various embodiments. In the following embodiments, the operation performed by the first client device may be specifically performed by a client or a browser in the first client device, the operation performed by the second client device may be specifically performed by a client or a browser in the second client device, and the operation performed by the server may be specifically performed by a server-side program.
The first embodiment is as follows:
fig. 2 is a flowchart of a method according to an embodiment of the present invention, and as shown in fig. 2, the method may include the following steps:
in 201, a first user end device obtains an operation event of a first user deleting a friend second user.
And after the first user logs in the IM service through the client/browser, deleting the second user from the friend. The deleting process can be triggered by clicking a button on the interface, clicking a function item in a menu, dragging a certain component, and other specific operations, so that after capturing the specific operations, a client/browser of the first user equipment determines to acquire an operation event of the first user deleting the friend second user.
In 202, the states of the first user and the second user are set as non-friends, and the communication record between the first user and the second user in the device is deleted or hidden.
When the first user equipment sets the states of the first user and the second user as non-friends, the following methods may be adopted, but are not limited to: deleting the second user from the contact of the first user, deleting the second user from the friend list of the first user, identifying the second user as a non-friend in the contact, and the like.
The communication record between the first user and the second user in the device is deleted, and the communication record between the first user and the second user in the device is hidden, and these two modes may be one of them according to the system setting and may also be one of them according to the user setting (this mode will be described in detail in the following embodiments).
In the embodiment of the present invention, the communication record between the first user and the second user may include, but is not limited to: a text communication record, a video communication record, a voice communication record, a picture communication record, etc. between the first user and the second user.
If the communication record is only between the first user and the second user, the communication record can be directly deleted or hidden. If the communication record is a group that includes other users in addition to the first user and the second user, this can be handled in a variety of ways, including but not limited to:
deleting or hiding only the contents sent by the first user and the second user; or,
and if the active users in the group are only the first user and the second user, deleting or hiding the communication records of the group.
The active users may be users who send messages in a group, for example, only a first user and a second user in a group send messages, and then the communication records of the group may be deleted or hidden. Of course, the definition of "active users" may also adopt other manners, for example, the proportion of messages sent in a group reaches a preset threshold, for example, if 95% of messages in the group are sent by the first user and the second user, the first user and the second user may be considered as active users in the group, and the communication record of the group is deleted or hidden.
In 203, the first user device sends a message that the first user deletes the second user of the friend to the server.
In this embodiment, the specific form of the message is not limited, and the message may be a request message, a notification message, or a message in other forms.
In addition, it should be noted that the execution sequence of the steps 202 and 203 is only the sequence provided in this embodiment, and actually, the two steps may be executed simultaneously, or may be executed sequentially in any sequence, which is not limited by the present invention.
In 204, after receiving the message, the server updates the recorded states of the first user and the second user to be non-friends.
The states among the users are maintained at the server, so that after receiving the message, the states of the first user and the second user can be updated from friends to non-friends in time, for example, the first user and the second user can be set as strangers.
In 205, the server sends the updated states of the first user and the second user, and an instruction to delete or hide the communication record between the first user and the second user to the second client device.
The updated status information and the instruction may be sent separately, or the updated status information may be carried in the instruction and sent together, for example, the information that a specific flag bit identifies the first user and another specific flag bit identifies the statuses of the first user and the second user in the instruction.
In 206, after receiving the state and the instruction, the second user device sets the states of the first user and the second user as non-friends, and deletes or hides the communication record between the first user and the second user in the device according to the instruction.
And the second user end equipment sets the state between the users maintained by the equipment according to the received state, namely the set states of the users and the second user are friends. Similarly to the first user end device, when the states of the first user and the second user are set as non-friends, the following methods may be adopted, but are not limited to: deleting the second user from the contact of the first user, deleting the second user from the friend list of the first user, identifying the second user as a non-friend in the contact, and the like.
And if the received instruction indicates that the communication records of the first user and the second user are deleted, the second user end equipment deletes the communication records of the first user and the second user in the equipment. And if the received instruction indicates that the communication records of the first user and the second user are hidden, the second user end equipment hides the communication records of the first user and the second user in the equipment.
Similar to the first user-side device, the first user and second user communication record may include, but is not limited to: a text communication record, a video communication record, a voice communication record, a picture communication record, etc. between the first user and the second user.
If the communication record is only between the first user and the second user, the communication record can be directly deleted or hidden. If the communication record is a group that includes other users in addition to the first user and the second user, this can be handled in a variety of ways, including but not limited to:
deleting or hiding only the contents sent by the first user and the second user; or,
and if the active users in the group are only the first user and the second user, deleting or hiding the communication records of the group.
The active users may be users who send messages in a group, for example, only a first user and a second user in a group send messages, and then the communication records of the group may be deleted or hidden. Of course, the definition of "active users" may also adopt other manners, for example, the proportion of messages sent in a group reaches a preset threshold, for example, if 95% of messages in the group are sent by the first user and the second user, the first user and the second user may be considered as active users in the group, and the communication record of the group is deleted or hidden.
Example two:
fig. 3 is a flowchart of a method provided in the second embodiment of the present invention, which is different from the first embodiment in that: in this embodiment, whether to delete or hide the communication record between the first user and the second user in the second user-side device may be selectively set by the first user. As shown in fig. 3, the method may specifically comprise the steps of:
in 301, the first user end device obtains an operation event of the first user deleting the friend second user, and obtains a setting operation of the first user when deleting the friend second user.
And after the first user logs in the IM service through the client/browser, deleting the second user from the friend. The deleting process can be triggered by clicking a button on the interface or dragging a certain component and other specific operations, so that after capturing the specific operations, the client/browser of the first user equipment determines to acquire the operation event of the second user of the first user friend deleting.
Wherein the setting operation may include at least one of:
1) setting whether to delete the communication record between the first user and the second user in the equipment;
2) whether a communication record between a first user and a second user in the equipment is hidden or not is set;
3) setting whether to delete the communication record between the first user and the second user in the second user terminal equipment;
4) and setting whether to hide the communication record between the first user and the second user in the second user terminal equipment.
And on a setting interface provided for the first user to delete the friend, options of the setting operation can be provided for the user to select. Or after the first user performs the friend deleting operation on the friend deleting setting interface, a new interface can be popped up, and options of the setting operation are provided on the popped-up interface for the user to select. The setting operation may also be obtained in other manners, which are not described herein again.
For example, suppose that when a first user deletes a friend second user, an interface shown in fig. 4 pops up, and on the interface, in addition to prompting the user to delete the friend second user, the user is prompted to select whether to delete a local communication record and an opposite-end communication record simultaneously.
In 302, the states of the first user and the second user are set as non-friends.
This step is the same as the processing in step 202 in the first embodiment, and is not described herein again.
In 303, according to the setting operation of the first user, the communication record between the first user and the second user in the device is deleted or hidden.
And if the first user sets to delete or hide the communication record between the first user and the second user in the equipment, executing the corresponding operation according to the setting operation. If the first user does not delete or hide the communication record between the first user and the second user in the device, the step is not executed.
In 304, the first user device sends a message that the first user deletes the friend second user and the information of the setting operation to the server.
On one hand, the first user end device sends a message that the first user deletes the second user of the friend to the server, and the message may be a request message, a notification message, or other forms of messages.
On the other hand, the first user-side device sends information of the setting operation to the server, so that the server can acquire and record the setting operation of the user. The setting operation may be a separate message transmission, or may be included in a message from the first user to delete the second user.
The execution sequence of the steps 303 and 304 is only the sequence provided in this embodiment, and actually, the two steps may be executed simultaneously, or may be executed sequentially in any sequence, which is not limited in the present invention.
Step 305 is the same as step 204 in the first embodiment, and is not described again.
In 306, the server sends the updated states of the first user and the second user to the second user device, and determines to send an instruction for deleting or hiding the communication record between the first user and the second user to the second user device according to the setting operation.
If the setting operation of the first user is as follows: and if the communication record between the first user and the second user in the second user end equipment is not deleted or hidden, the server only sends the updated states of the first user and the second user to the second user end equipment, and does not send instructions.
If the setting operation of the first user is as follows: and deleting the communication record between the first user and the second user in the second user end equipment, and sending an instruction for deleting the communication record between the first user and the second user by the server besides sending the updated state to the second user end equipment.
If the setting operation of the first user is as follows: and hiding the communication record between the first user and the second user in the second user end equipment, and sending an instruction for hiding the communication record between the first user and the second user by the server besides sending the updated state to the second user end equipment.
Step 307 is the same as step 206 in the first embodiment. If the second user terminal device does not receive the instruction, the operation of deleting or hiding the communication record between the first user and the second user in the device is not executed.
For the two embodiments, if the states of the first user and the second user are restored to be friends, the restoration of the friends may be initiated by the first user or initiated by the second user, and since the server determines and records the device (the first user device and/or the second user device) hiding the communication record between the first user and the second user, the server may send a command for releasing the hiding to the device hiding the communication record between the first user and the second user. And after the first user end equipment and/or the second user end equipment receive the instruction, the hiding of the communication record between the first user and the second user in the equipment is released.
For the two embodiments, after the state between the first user and the second user is updated, the server updates the version number of the first user and the version number of the second user. The version number can be arranged according to a certain rule or generated according to a time stamp. The server may respectively maintain version numbers for each user, and as long as the state between the user and another user is updated, the version number of the user is updated, for example, the current version number of the first user is 11011, the version number of the second user is 21101, after the first user deletes the friend of the second user, the version number of the first user is updated to 11012, the version number of the second user is updated to 21102, and meanwhile, the version number of the user itself is also maintained in each user end device, and the version number is synchronized with the version number of the server. In the first and second embodiments, when the server sends the instruction to the second user device, the server may bind the instruction with the updated version number of the second user, and the sent instruction carries the updated version number of the second user. And after receiving the instruction, the second user equipment updates the version number of the second user maintained by the equipment according to the version number carried in the instruction.
If the second user replaces another device to log in, the version number of the second user maintained by the device is sent to the server in the login process, and if the server determines that the received version number is inconsistent with the version number of the second user maintained locally, the server sends an instruction bound with the latest version number of the second user maintained locally to the device. Therefore, the device used by the second user can delete or hide the communication record between the first user and the second user, so that the security of the privacy of the user is further improved.
Example III,
Fig. 5 is a flowchart of a method executed by a first user equipment according to a third embodiment of the present invention, and as shown in fig. 5, the method may include the following steps:
in 501, an operation event that a first user deletes a friend second user is obtained.
And after the first user logs in the IM service through the client/browser, deleting the second user from the friend. The deleting process can be triggered by clicking a button on the interface, clicking a function item in a menu, dragging a certain component, and other specific operations, so that after capturing the specific operations, a client/browser of the first user equipment determines to acquire an operation event of the first user deleting the friend second user.
In 502, a setting operation of the first user when deleting the friend second user is obtained.
This step is an optional step.
Wherein the setting operation may include at least one of:
1) setting whether to delete the communication record between the first user and the second user in the equipment;
2) whether a communication record between a first user and a second user in the equipment is hidden or not is set;
3) setting whether to delete the communication record between the first user and the second user in the second user terminal equipment;
4) and setting whether to hide the communication record between the first user and the second user in the second user terminal equipment.
And on a setting interface provided for the first user to delete the friend, options of the setting operation can be provided for the user to select. Or after the first user performs the friend deleting operation on the friend deleting setting interface, a new interface can be popped up, and options of the setting operation are provided on the popped-up interface for the user to select. The setting operation may also be obtained in other manners, which are not described herein again.
In 503, the states of the first user and the second user are set as non-friends, and the communication record between the first user and the second user in the device is deleted or hidden.
When the first user equipment sets the states of the first user and the second user as non-friends, the following methods may be adopted, but are not limited to: deleting the second user from the contact of the first user, deleting the second user from the friend list of the first user, identifying the second user as a non-friend in the contact, and the like.
The communication record between the first user and the second user in the device is deleted, and the communication record between the first user and the second user in the device is hidden, wherein the two modes can be one of the modes according to system setting and the other mode according to user setting.
In the embodiment of the present invention, the communication record between the first user and the second user may include, but is not limited to: a text communication record, a video communication record, a voice communication record, a picture communication record, etc. between the first user and the second user.
If the communication record is only between the first user and the second user, the communication record can be directly deleted or hidden. If the communication record is a group that includes other users in addition to the first user and the second user, this can be handled in a variety of ways, including but not limited to:
deleting or hiding only the contents sent by the first user and the second user; or,
and if the active users in the group are only the first user and the second user, deleting or hiding the communication records of the group.
The active users may be users who send messages in a group, for example, only a first user and a second user in a group send messages, and then the communication records of the group may be deleted or hidden. Of course, the definition of "active users" may also adopt other manners, for example, the proportion of messages sent in a group reaches a preset threshold, for example, if 95% of messages in the group are sent by the first user and the second user, the first user and the second user may be considered as active users in the group, and the communication record of the group is deleted or hidden.
In 504, a message that the first user deletes the friend second user and information of setting operation are sent to the server.
The message may be a request message, a notification message, or other forms of messages.
If the first client device performs the setting operation in step 502, the information of the setting operation is also sent to the server. The setting operation may be a separate message transmission, or may be included in a message from the first user to delete the second user.
The execution sequence of the steps 503 and 504 is only the sequence provided in this embodiment, and actually, the two steps may be executed simultaneously, or may be executed sequentially in any sequence, which is not limited in the present invention.
Example four,
Fig. 6 is a flowchart of a method executed by a server according to a fourth embodiment of the present invention, and as shown in fig. 6, the method may include the following steps:
in 601, a message sent by a first user equipment that a first user deletes a second user of a friend is received.
If the first user side equipment sends the information of the setting operation of the first user, the server also receives the information of the setting operation.
In 602, the recorded statuses of the first user and the second user are updated to be non-friends.
The states among the users are maintained at the server, so that after receiving the message, the states of the first user and the second user can be updated from friends to non-friends in time, for example, the first user and the second user can be set as strangers.
In 603, the updated states of the first user and the second user and an instruction for deleting or hiding the communication record between the first user and the second user are sent to the second user end device.
The updated status information and the instruction may be sent separately, or the updated status information may be carried in the instruction and sent together, for example, the information that a specific flag bit identifies the first user and another specific flag bit identifies the statuses of the first user and the second user in the instruction.
The instruction for deleting the communication record between the first user and the second user or the instruction for hiding the communication record between the first user and the second user is sent, and either instruction can be sent according to the system setting. And if the server receives the information of the setting operation, sending an instruction for deleting the communication record between the first user and the second user or an instruction for hiding the communication record between the first user and the second user according to the information of the setting operation.
In addition, if the states of the first user and the second user are restored to be friends, the restoration of the friends can be initiated by the first user or the second user, and since the server determines and records the device (the first user device and/or the second user device) hiding the communication record between the first user and the second user, the server can send a command for releasing the hiding to the device hiding the communication record between the first user and the second user. And after the first user end equipment and/or the second user end equipment receive the instruction, the hiding of the communication record between the first user and the second user in the equipment is released.
As a preferred embodiment, after updating the state between the first user and the second user, the server updates the version number of the first user and the version number of the second user. The server can respectively maintain the version number for each user, the version number of the user can be updated as long as the state between the user and other users is updated, and the version number of the user is also maintained in each user terminal device. When the server sends the instruction to the second user device, the server may bind the instruction with the updated version number of the second user, and the sent instruction carries the updated version number of the second user. And after receiving the instruction, the second user equipment updates the version number of the second user maintained by the equipment according to the version number carried in the instruction.
If the second user replaces another device to log in, the version number of the second user maintained by the device is sent to the server in the login process, and if the server determines that the received version number is inconsistent with the version number of the second user maintained locally, the server sends an instruction bound with the latest version number of the second user maintained locally to the device. Therefore, the device used by the second user can delete or hide the communication record between the first user and the second user, so that the security of the privacy of the user is further improved.
Example V,
Fig. 7 is a flowchart of a method performed by a second user equipment according to a fifth embodiment of the present invention, and as shown in fig. 7, the method may include the following steps:
in 701, a state that the first user and the second user are updated to be non-friends and an instruction indicating to delete or hide a communication record between the first user and the second user, which are sent by a server, are received.
In 702, the states of the first user and the second user are set as non-friends.
And the second user end equipment sets the state between the users maintained by the equipment according to the received state, namely the set states of the users and the second user are friends. Similarly to the first user end device, when the states of the first user and the second user are set as non-friends, the following methods may be adopted, but are not limited to: deleting the second user from the contact of the first user, deleting the second user from the friend list of the first user, identifying the second user as a non-friend in the contact, and the like.
In 703, according to the above instruction, deleting and hiding the communication record between the first user and the second user in the device.
And if the received instruction indicates that the communication records of the first user and the second user are deleted, the second user end equipment deletes the communication records of the first user and the second user in the equipment. And if the received instruction indicates that the communication records of the first user and the second user are hidden, the second user end equipment hides the communication records of the first user and the second user in the equipment.
The first user and second user communication record may include, but is not limited to: a text communication record, a video communication record, a voice communication record, a picture communication record, etc. between the first user and the second user.
The method comprises the steps that communication records between a first user and a second user in the equipment are hidden, and only the communication records of mutual friends in the equipment can be displayed; or, the communication record between the first user and the second user in the device is set to be in a hidden state.
If the communication record is only between the first user and the second user, the communication record can be directly deleted or hidden. If the communication record is a group that includes other users in addition to the first user and the second user, this can be handled in a variety of ways, including but not limited to:
deleting or hiding only the contents sent by the first user and the second user; or,
and if the active users in the group are only the first user and the second user, deleting or hiding the communication records of the group.
The active users may be users who send messages in a group, for example, only a first user and a second user in a group send messages, and then the communication records of the group may be deleted or hidden. Of course, the definition of "active users" may also adopt other manners, for example, the proportion of messages sent in a group reaches a preset threshold, for example, if 95% of messages in the group are sent by the first user and the second user, the first user and the second user may be considered as active users in the group, and the communication record of the group is deleted or hidden.
In addition, if the second user equipment receives a command of releasing the hiding sent by the server, the hiding of the communication record between the first user and the second user is released.
As an improved implementation manner, if the instruction received by the second user-side device carries the version number of the second user, the version number of the second user maintained by the device is updated by using the version number of the second user carried by the instruction.
And if the second user changes one device to log in the IM service, sending the version number of the second user maintained by the device to the server in the login process.
Fig. 8 illustrates a block diagram of an exemplary computer system/server 012 suitable for use in implementing embodiments of the invention. The computer system/server 012 shown in fig. 8 is only an example, and should not bring any limitation to the function and the scope of use of the embodiment of the present invention.
As shown in fig. 8, the computer system/server 012 is in the form of a general purpose computing device. The components of computer system/server 012 may include, but are not limited to: one or more processors or processing units 016, a system memory 028, and a bus 018 that couples various system components including the system memory 028 and the processing unit 016.
Computer system/server 012 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer system/server 012 and includes both volatile and nonvolatile media, removable and non-removable media.
Program/utility 040 having a set (at least one) of program modules 042 can be stored, for example, in memory 028, such program modules 042 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof might include an implementation of a network environment. Program modules 042 generally perform the functions and/or methodologies of embodiments of the present invention as described herein.
The computer system/server 012 may also communicate with one or more external devices 014 (e.g., keyboard, pointing device, display 024, etc.), hi the present invention, the computer system/server 012 communicates with an external radar device, and may also communicate with one or more devices that enable a user to interact with the computer system/server 012, and/or with any device (e.g., network card, modem, etc.) that enables the computer system/server 012 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 022. Also, the computer system/server 012 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the internet) via the network adapter 020. As shown, the network adapter 020 communicates with the other modules of the computer system/server 012 via bus 018. It should be appreciated that although not shown in fig. 8, other hardware and/or software modules may be used in conjunction with the computer system/server 012, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 016 executes the processes executed by the respective subjects in the embodiment of the present invention by running the program stored in the system memory 028.
The computer program described above may be provided in a computer storage medium encoded with a computer program that, when executed by one or more computers, causes the one or more computers to perform the method flows and/or apparatus operations shown in the above-described embodiments of the invention. For example, the processes performed by the respective subjects in the embodiments of the present invention are respectively performed by the one or more processors described above.
With the development of time and technology, the meaning of media is more and more extensive, and the propagation path of computer programs is not limited to tangible media any more, and can also be downloaded from a network directly and the like. Any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.
Claims (13)
1. A processing method for instant messaging is characterized by comprising the following steps:
receiving a message sent by first user side equipment, wherein the message is used for deleting a friend second user by a first user;
updating the recorded states of the first user and the second user into non-friends;
updating the version number of the second user maintained locally, sending the updated states of the first user and the second user to second user equipment, and deleting or hiding a command of a communication record between the first user and the second user, wherein the command carries the updated version number of the second user, and binding the command with the updated version number; the version number is maintained by the server end aiming at each user;
the method further comprises the following steps:
if the version number of the second user sent by the second user side equipment is not consistent with the version number of the second user maintained locally, sending an instruction bound with the latest version number of the second user maintained locally to the second user side equipment;
and respectively sending the updated state information and the instruction or carrying the updated state information and the instruction to be sent together.
2. The method of claim 1, wherein sending the instruction to delete or hide the communication record between the first user and the second user comprises:
and determining whether to send an instruction for deleting or hiding the communication record between the first user and the second user according to the setting operation of the first user when the friend second user is deleted.
3. The method of claim 1, further comprising:
and determining whether the first user side equipment deletes or hides the communication record between the first user and the second user according to the setting operation of the first user when the friend second user is deleted.
4. The method according to claim 2 or 3, wherein the message of the first user deleting the friend second user contains the information of the setting operation; or receiving a message containing the information of the setting operation from the first user terminal equipment.
5. A method according to claim 1, 2 or 3, characterized in that the method further comprises: and if the states of the first user and the second user are determined to be recovered to be friends, sending a concealment releasing instruction to equipment hiding the communication record between the first user and the second user.
6. A processing method for instant messaging is characterized by comprising the following steps:
the second user end equipment receives a state that the first user and the second user are updated to be not good friends and an instruction for indicating to delete or hide the communication record between the first user and the second user, wherein the instruction carries the updated version number of the second user; the version number is maintained by the server end aiming at each user;
setting the states of the first user and the second user as non-friends;
deleting or hiding the communication record between the first user and the second user in the equipment according to the instruction; and
updating the version number of the second user maintained by the equipment;
the method further comprises the following steps: the second user end equipment sends the version number of the second user maintained by the equipment to the server, so that when the server end receives that the version number of the second user is inconsistent with the version number of the second user maintained locally, the server end sends an instruction which is bound with the latest version number of the second user maintained locally and indicates to delete or hide the communication record between the first user and the second user to the second user end equipment;
and respectively sending the updated state information and the instruction or carrying the updated state information and the instruction to be sent together.
7. The method of claim 6, wherein hiding the communication record between the first user and the second user in the device comprises:
only displaying the communication records of mutual friends in the equipment; or,
and setting the communication record between the first user and the second user in the equipment to be in a hidden state.
8. The method according to claim 6, wherein when deleting or hiding the communication record between the first user and the second user, any of the following is performed for the communication record of the group:
deleting or hiding only the contents sent by the first user and the second user in the group; or,
and if the active users in the group are only the first user and the second user, deleting or hiding the communication records of the group.
9. The method of claim 6, further comprising:
and according to the instruction for releasing the hiding sent by the server side, releasing the hiding of the communication record between the first user and the second user.
10. A processing method for instant messaging is characterized by comprising the following steps:
the second user end equipment sends the version number of the second user maintained by the equipment to the server, so that when the server end receives that the version number of the second user is inconsistent with the version number of the second user maintained locally, the server end sends an instruction which is bound with the latest version number of the second user maintained locally and indicates to delete or hide the communication record between the first user and the second user to the second user end equipment;
after receiving an instruction sent by the server for deleting or hiding the communication record between the first user and the second user, deleting or hiding the communication record between the first user and the second user in the equipment, and updating the version number of the second user maintained by the equipment by using the version number of the second user carried by the instruction;
and respectively sending the updated state information and the instruction or carrying the updated state information and the instruction to be sent together.
11. The method of claim 10, wherein the server sending the version number of the second user maintained by the device comprises:
and sending the version number of the second user maintained by the equipment to the server in the process of logging in the instant messaging service.
12. An apparatus, characterized in that the apparatus comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-11.
13. A storage medium containing computer-executable instructions for performing the method of any one of claims 1-11 when executed by a computer processor.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710847620.2A CN107733781B (en) | 2017-09-19 | 2017-09-19 | Instant messaging processing method, equipment and computer storage medium |
PCT/CN2018/100409 WO2019056889A1 (en) | 2017-09-19 | 2018-08-14 | Instant messaging processing method and device, and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710847620.2A CN107733781B (en) | 2017-09-19 | 2017-09-19 | Instant messaging processing method, equipment and computer storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107733781A CN107733781A (en) | 2018-02-23 |
CN107733781B true CN107733781B (en) | 2021-06-22 |
Family
ID=61206532
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710847620.2A Active CN107733781B (en) | 2017-09-19 | 2017-09-19 | Instant messaging processing method, equipment and computer storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107733781B (en) |
WO (1) | WO2019056889A1 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107733781B (en) * | 2017-09-19 | 2021-06-22 | 上海掌门科技有限公司 | Instant messaging processing method, equipment and computer storage medium |
CN110535755B (en) * | 2019-08-30 | 2021-10-22 | 上海掌门科技有限公司 | Method and equipment for deleting session message |
CN114666175B (en) * | 2022-03-09 | 2024-01-02 | 北京达佳互联信息技术有限公司 | Message processing method, device, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103368827A (en) * | 2013-07-01 | 2013-10-23 | 中国农业大学 | VC++-based local area network instant messaging system and method |
CN104182252A (en) * | 2014-08-13 | 2014-12-03 | 墨仕(厦门)电子商务有限公司 | App version incremental updating method |
CN104598324A (en) * | 2014-10-13 | 2015-05-06 | 腾讯科技(深圳)有限公司 | Method and device for recovering deleted information |
CN106331275A (en) * | 2016-08-23 | 2017-01-11 | 广东欧珀移动通信有限公司 | Method and device for deleting contact person, operator server and mobile terminal |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101193073A (en) * | 2007-03-29 | 2008-06-04 | 腾讯科技(深圳)有限公司 | Friend management method and system in instant communication platform |
US20100178944A1 (en) * | 2009-01-15 | 2010-07-15 | Nicolas Philippe Fodor | Automatic Email Account Creation |
CN102882762B (en) * | 2011-07-11 | 2016-09-07 | 腾讯科技(深圳)有限公司 | A kind of method and system synchronizing chat status information between multi-page |
CN103136027B (en) * | 2013-03-01 | 2016-08-24 | 畅捷通信息技术股份有限公司 | Immediate updating device and immediate updating method |
CN103179247B (en) * | 2013-03-12 | 2016-09-21 | 广东欧珀移动通信有限公司 | A kind of method deleting information of mobile terminal and mobile intelligent terminal |
CN103441922A (en) * | 2013-08-26 | 2013-12-11 | 广州网易计算机系统有限公司 | Method and device for adding friends |
CN105099863A (en) * | 2014-05-22 | 2015-11-25 | 中兴通讯股份有限公司 | Method and device for performing effective instant communication by user terminal |
CN106817294A (en) * | 2015-11-30 | 2017-06-09 | 北京北信源软件股份有限公司 | A kind of enterprise-level instantaneous communication system for supporting cross-system to communicate and method |
CN107733781B (en) * | 2017-09-19 | 2021-06-22 | 上海掌门科技有限公司 | Instant messaging processing method, equipment and computer storage medium |
-
2017
- 2017-09-19 CN CN201710847620.2A patent/CN107733781B/en active Active
-
2018
- 2018-08-14 WO PCT/CN2018/100409 patent/WO2019056889A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103368827A (en) * | 2013-07-01 | 2013-10-23 | 中国农业大学 | VC++-based local area network instant messaging system and method |
CN104182252A (en) * | 2014-08-13 | 2014-12-03 | 墨仕(厦门)电子商务有限公司 | App version incremental updating method |
CN104598324A (en) * | 2014-10-13 | 2015-05-06 | 腾讯科技(深圳)有限公司 | Method and device for recovering deleted information |
CN106331275A (en) * | 2016-08-23 | 2017-01-11 | 广东欧珀移动通信有限公司 | Method and device for deleting contact person, operator server and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
WO2019056889A1 (en) | 2019-03-28 |
CN107733781A (en) | 2018-02-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10613717B2 (en) | Reproducing state of source environment when image was screen captured on a different computing device using resource location, resource navigation and positional metadata embedded in image | |
CN110113252B (en) | Method and device for processing applet notification message and computer storage medium | |
CN109491567B (en) | Message reply method, device, terminal and storage medium | |
US20200301648A1 (en) | Method of operating a shared object in a video call | |
CN109359091B (en) | File management method, device, terminal and computer readable storage medium | |
US10461934B2 (en) | Authentication-based message display method and communication terminal thereof | |
CN110113246B (en) | Method for protecting conversation privacy | |
CN109947408B (en) | Message pushing method and device, storage medium and electronic equipment | |
CN107733781B (en) | Instant messaging processing method, equipment and computer storage medium | |
CN110287146B (en) | Method, device and computer storage medium for downloading application | |
CN110633033A (en) | Method, apparatus, and computer storage medium for task display | |
EP3286665A1 (en) | Rich attachment regeneration | |
US20240364556A1 (en) | Method, apparatus, device and medium for adding group members | |
US9633090B2 (en) | Dynamic visualization of big data | |
CN110083467B (en) | Method and device for processing applet message and computer storage medium | |
CN106455128B (en) | WIFI point-to-point data transmission method and device | |
CN112003712A (en) | Service processing method, electronic device and computer readable storage medium | |
CN107862035B (en) | Network reading method and device for conference record, intelligent tablet and storage medium | |
CN113656193A (en) | Application communication method, system, electronic equipment and storage medium | |
CN111581664B (en) | Information protection method and device | |
CN107888478B (en) | Voice information forwarding method, device and storage medium in instant messaging process | |
CN110708238A (en) | Method and apparatus for processing information | |
CN112965647B (en) | Message processing method and device, electronic equipment and storage medium | |
CN115563134A (en) | Interaction method, interaction device, electronic equipment and computer readable medium | |
WO2019038590A2 (en) | Apparatuses, methods and systems for persisting values in a computing environment |
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 |