CN106209608B - Method and device for distinguishing and synchronizing chat information - Google Patents

Method and device for distinguishing and synchronizing chat information Download PDF

Info

Publication number
CN106209608B
CN106209608B CN201610826837.0A CN201610826837A CN106209608B CN 106209608 B CN106209608 B CN 106209608B CN 201610826837 A CN201610826837 A CN 201610826837A CN 106209608 B CN106209608 B CN 106209608B
Authority
CN
China
Prior art keywords
synchronized
chat information
terminal equipment
chat
target
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
CN201610826837.0A
Other languages
Chinese (zh)
Other versions
CN106209608A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610826837.0A priority Critical patent/CN106209608B/en
Publication of CN106209608A publication Critical patent/CN106209608A/en
Application granted granted Critical
Publication of CN106209608B publication Critical patent/CN106209608B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/214Monitoring or handling of messages using selective forwarding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements

Abstract

The embodiment of the invention discloses a method and a device for distinguishing and synchronizing chat information, wherein the method can comprise the following steps: monitoring whether a target social account has chat information to be synchronized or not under the condition that the target social account logs in on a plurality of terminal devices; when the chat information to be synchronized of the target social account is monitored, judging the terminal equipment which recently sends the chat information before the current moment in the plurality of terminal equipment as the target terminal equipment; and controlling not to synchronize the chat information to be synchronized to the terminal equipment except the target terminal equipment in the plurality of terminal equipment. By adopting the method and the device, the problem that in the prior art, the chat information of the same social account is not displayed on different terminal devices in a different and synchronous manner, so that inconvenience is brought under certain application scenes is solved, and user experience is improved.

Description

Method and device for distinguishing and synchronizing chat information
Technical Field
The invention relates to the technical field of electronics, in particular to a method and a device for distinguishing and synchronizing chat information.
Background
With the development of internet technology and the continuous improvement of living standard of people, the use of various network applications is more and more popular, and the network chat has become an indispensable communication entertainment tool in people's life. In social applications, particularly in mobile social network applications, most social tools, such as QQ, WeChat, strange and the like, are virtual characters corresponding to one account, and a user logs in with one account, and relevant information corresponding to the account can be obtained regardless of which terminal logs in with the account.
For example, with the continuous improvement and progress of QQ applications, the QQ is newly added with a message synchronization function, which means that a user can see his/her chat records, such as online chatting, transmitting video files, voice files, and other chat records, by logging in his/her same account on various intelligent devices (mobile phones, computers, pads, etc.). That is, all chat messages generated by the account can be synchronized on each terminal logging in the account. However, in some special cases, the user may not want all messages to be synchronized on all terminals, for example, the user may not need to synchronize messages on some terminals if the user logs in the account but does not use the account for a long time or if the user is not nearby, so as not to waste power consumption or be stolen by others. Therefore, it is desirable to provide a method for differentiated display of chat information areas to meet and improve the diversity requirements and experience of users.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide a method and an apparatus for differentiated synchronization of chat information, which can solve the problem in the prior art that chat information of the same social account is displayed on different terminal devices in a non-differentiated and synchronous manner, which causes inconvenience in some application scenarios.
In a first aspect, an embodiment of the present invention provides a method for differentiated synchronization of chat messages, where the method may include:
monitoring whether a target social account has chat information to be synchronized or not under the condition that the target social account logs in on a plurality of terminal devices;
when the chat information to be synchronized of the target social account is monitored, judging the terminal equipment which recently sends the chat information before the current moment in the plurality of terminal equipment as the target terminal equipment;
and controlling not to synchronize the chat information to be synchronized to the terminal equipment except the target terminal equipment in the plurality of terminal equipment.
In a second aspect, an embodiment of the present invention provides a device for differentiated synchronization of chat messages, which may include:
the system comprises a monitoring module, a synchronization module and a synchronization module, wherein the monitoring module is used for monitoring whether a target social account has chat information to be synchronized or not under the condition that the target social account logs in a plurality of terminal devices;
the judging module is used for judging the terminal equipment which recently sends the chat information before the current time in the plurality of terminal equipment as the target terminal equipment when the chat information to be synchronized of the target social account is monitored;
and the synchronization module is used for controlling not to synchronize the chat information to be synchronized to the terminal equipment except the target terminal equipment in the plurality of terminal equipment.
In a third aspect, an embodiment of the present invention provides a terminal device, which may include:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to perform some or all of the steps described in any of the methods of the first aspect of the embodiments of the present invention.
In a fourth aspect, the present invention provides a computer storage medium for storing computer software instructions for an apparatus for differentiated synchronization of chat messages according to the second aspect of the present invention, which includes a program designed to execute the above aspects.
The embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, whether the target social account has chat information to be synchronized or not is monitored under the condition that the target social account logs in a plurality of terminal devices; when the chat information to be synchronized of the target social account is monitored, judging the terminal equipment which recently sends the chat information before the current moment in the plurality of terminal equipment as the target terminal equipment; and controlling not to synchronize the chat information to be synchronized to the terminal equipment except the target terminal equipment in the plurality of terminal equipment. That is, when the same account of the user logs in a plurality of terminal devices, whether to synchronize the chat information to be received is determined according to whether each terminal device of the plurality of terminal devices recently sends the chat information, so that the user can receive the chat information to be received only through the terminal device in use, waste of network resources caused by unnecessary information synchronization is saved, and meanwhile, the information is prevented from being illegally acquired by other people.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a system architecture diagram for chat message synchronization provided by embodiments of the present invention;
fig. 2 is a flowchart illustrating a method for differentiated synchronization of chat messages according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating another method for differentiated synchronization of chat messages according to an embodiment of the present invention;
fig. 4a is a schematic diagram of a specific application scenario of the method for differentiated synchronization of chat messages according to the embodiment of the present invention;
fig. 4b is a schematic diagram of another specific application scenario of the method for chat message differential synchronization according to the embodiment of the present invention;
fig. 5 is a schematic structural diagram of an apparatus for differentiated synchronization of chat messages according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an apparatus for differentiated synchronization of chat messages according to another embodiment of the present invention;
fig. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of another embodiment of the terminal device provided by the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The following are detailed below.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of the invention and in the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Hereinafter, some terms in the present application are explained to facilitate understanding by those skilled in the art.
1) A terminal device, also called a User Equipment (UE), is a device providing voice and/or data connectivity to a User, such as a handheld device with a wireless connection function, a vehicle-mounted device, and so on. Common terminal devices include, for example: a Mobile phone, a tablet computer, a notebook computer, a palm computer, a Mobile Internet Device (MID), a wearable device, an intelligent bracelet, a pedometer, an MP3 player (Moving Picture Experts group Audio Layer III, motion Picture Experts compression standard Audio Layer 3), an MP4 player (Moving Picture expert Audio Layer IV, motion Picture Experts compression standard Audio Layer 3), a Personal Digital Assistant (PDA), a laptop computer, and the like.
2) The Application, which may be Application software (APP), refers to a computer program for completing one or more specific tasks, that is, various programming languages that a user can use, and a set of Application programs compiled by using various programming languages, and is divided into an Application software package and a user program, for example, Application software under various operating systems on a mobile phone or a computer; or may refer to an executable application program having some functions in the operating system itself of the terminal device.
3) "plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
In order to facilitate understanding of the embodiments of the present invention, a system architecture provided by the embodiments of the present invention is described below. Referring to fig. 1, fig. 1 is a schematic diagram of a system architecture for synchronizing chat messages according to an embodiment of the present invention. As shown in fig. 1, a system architecture provided in an embodiment of the present invention is an architecture for providing a communication service based on a client-server architecture, and the system architecture may include a social application server and a plurality of terminal devices, where both a sender terminal device and a receiver terminal device log in to the social application server through an Internet network to log in a related social account, that is, the sender terminal device sends chat information to be sent to the social application server first, and then the social application server sends the chat information to the receiver terminal device (or vice versa), so as to complete interaction of the chat information (such as text messages, voice messages, animation messages, video messages, transmission files, and the like) from the sender terminal device to the receiver terminal device. Specifically, when a user logs in on different terminal devices (such as a mobile phone, a computer, a pad, and the like) by using the same social account (for example, various social applications such as QQ, WeChat, strange, and the like) (which may be the same or different after the existence of the same), the social application server synchronizes chat messages (which may be a certain period of time or all periods of time) corresponding to the social account to all the terminal devices that log in the social account, that is, all the chat messages generated by the account can be synchronized on each terminal that logs in the account. The embodiments of the present invention are based on the above system architecture and technical background, and in some special cases, a user may not want all messages to be synchronized on all terminals, so as to improve the user experience.
It should also be understood that the system architecture in fig. 1 is only a preferred implementation manner in the embodiment of the present invention, and the system architecture in the embodiment of the present invention includes, but is not limited to, the above system architecture, as long as the system architecture can implement the differentiated synchronization of chat information in the present invention, and all of the system architectures are within the scope protected and covered by the present invention.
Fig. 2 is a flowchart illustrating a method for differentiated synchronization of chat messages according to an embodiment of the present invention, and the method for differentiated synchronization of chat messages according to an embodiment of the present invention is described in detail below with reference to fig. 2 from a controller or a processor of a social application server or a terminal device, where the method includes the following steps S201 to S203.
Step S201: monitoring whether the target social account has chat information to be synchronized or not under the condition that the target social account logs in on a plurality of terminal devices.
Specifically, in each embodiment of the present invention, when a target social account logs in to multiple terminal devices, the target social account can be divided into two cases, one case is: a user logs in own social account number on a plurality of terminal devices at the same time, for example, the user logs in own QQ number on a mobile phone and a tablet personal computer respectively; the other method is to use different terminal devices to log in the same account in different time periods, for example, a user logs in the own QQ number on a mobile phone at 9 am, and logs in the own QQ number on a tablet computer at 11 am after quitting at 10 am. In both cases, synchronous chat information is needed, the former can be understood as mutual synchronization between the mobile phone and the tablet computer, that is, the mobile phone synchronizes the chat information on the tablet computer, and the tablet computer also synchronizes the chat information on the mobile phone, at this time, the synchronization is mutual for the mobile phone and the tablet computer; the latter can be understood that the user uses the mobile phone to receive the chat information in the morning first, and then the user uses the tablet computer to log in later, the chat information received in the morning on the mobile phone is synchronized, and at the moment, the tablet computer is equivalent to the chat information on the synchronous mobile phone.
That is, it can be simply understood that, for the same chat message (sent or received), the terminal device which logs in to obtain the chat message always sends or receives the chat message on the terminal device of the chat message first (or within a period of time, or all) in synchronization, specifically, the authority (such as a common identity or a member identity) of the target social account is to be watched; if there are two or more terminal devices that acquire the chat information at the same time for the same chat message (sent or received), it can be considered that the two or more terminal devices synchronize the chat information on any one of the terminal devices. For example, not all of the plurality of terminal devices need to synchronize chat information, for example, the terminal device 1 has displayed at 9 o' clock 9: and 00 to 9:30, if the terminal device 9:30 logs in at this time, although both the terminal device 1 and the terminal device 2 log in the target social account, only the terminal device 2 needs to synchronize 9: chat messages of 00 to 9:30 (chat messages to be synchronized). Therefore, not all terminal devices logging in the target social account need to synchronize the information to be chatted. To sum up, in the embodiment of the present invention, for the same chat message (if it is the current time), when a plurality of terminal devices all have logged in the target social account currently, the plurality of terminal devices all need to be synchronized with each other; for the same chat message (if the current time is the current time), the plurality of terminal devices log in before the current time, and also log in after the current time, the later log-in needs to be synchronized, and the earlier log-in does not need to be synchronized.
Based on the above, under the condition that the target social account logs in the plurality of terminal devices, monitoring whether the target social account has chat information to be synchronized, including monitoring whether the later logged terminal device needs to synchronize the chat information (chat records) received or sent by the terminal device logged in before when the plurality of terminals log in the target social account successively; when a plurality of terminal devices log in the target social account at the same time, all instant chat information which is required to be synchronized currently by the terminal devices to log in at the same time is also included.
It should be noted that, in each embodiment of the present invention, if the execution of the action is performed from the controller or the processor side of the terminal device, it may be considered that each terminal device actively participates in the control through the controller or the processor, and as for the control of the action other than itself, it may be understood that a control instruction or a signal is uploaded to the social application server and then transferred to the corresponding other terminal devices by the social application server; if the chat application server side is understood to execute the chat message, the social application server may be understood as a control-oriented action execution subject in the chat message synchronization system. The present invention is not particularly limited in this regard.
Step S202: when the chat information to be synchronized in the target social account is monitored, the terminal equipment which recently sends the chat information before the current time in the plurality of terminal equipment is determined as the target terminal equipment.
Specifically, when it is monitored that the target social account has chat information to be synchronized (which specific cases are chat information with synchronization as described in step S201), the terminal device that has recently sent chat information before the current time among the plurality of terminal devices is determined as the target terminal device. That is, the terminal device that has sent the chat message at the latest time before receiving the chat message to be synchronized is regarded as the terminal device being used by the user.
Step S203: and controlling not to synchronize the chat information to be synchronized to the terminal equipment except the target terminal equipment in the plurality of terminal equipment.
Specifically, if the synchronization of the chat information to be synchronized is performed on all terminals that need to perform the synchronization of the chat information at this time, it is likely that the synchronization is unnecessary because the user is likely to use only one terminal device at the same time, and if the chat information to be synchronized is sent to all terminals that need to perform the synchronization of the chat information, not only the operation flow is cumbersome, but also if the user only checks through the terminal device that has sent the chat information recently, the waste of network resources for other terminal devices is attributed, that is, the synchronization is performed again on the terminal device that has no need of the same chat information. Obviously, from the perspective of improving user experience and improving network resource utilization rate, the synchronization of the chat information to be synchronized is performed on all terminals that need to perform chat information synchronization, which is a waste. Therefore, in the embodiment of the present invention, the chat information to be synchronized is not synchronized to the terminal devices other than the target terminal device (the terminal device determined to be currently used by the user) in the plurality of terminal devices, so that the network burden and the memory occupation burden on the terminal devices are reduced.
In the embodiment of the invention, whether the target social account has chat information to be synchronized or not is monitored under the condition that the target social account logs in a plurality of terminal devices; when the chat information to be synchronized of the target social account is monitored, judging the terminal equipment which recently sends the chat information before the current moment in the plurality of terminal equipment as the target terminal equipment; and controlling not to synchronize the chat information to be synchronized to the terminal equipment except the target terminal equipment in the plurality of terminal equipment. That is, when the same account of the user logs in a plurality of terminal devices, whether to synchronize the chat information to be received is determined according to whether each terminal device of the plurality of terminal devices recently sends the chat information, so that the user can receive the chat information to be received only through the terminal device in use, waste of network resources caused by unnecessary information synchronization is saved, and meanwhile, the information is prevented from being illegally acquired by other people.
Fig. 3 is a flowchart illustrating another method for differentiated synchronization of chat messages according to an embodiment of the present invention, and the following detailed description will be made on a controller or a processor side of a social application server or a terminal device with reference to fig. 3, where the method may include the following steps S301 to S305 as shown in fig. 3.
Step S301: monitoring whether the target social account has chat information to be synchronized or not under the condition that the target social account logs in on a plurality of terminal devices.
Specifically, step S301 may refer to step S201 in the embodiment of fig. 1, which is not described herein again.
Step S302: when the chat information to be synchronized of the target social account is monitored, whether the time interval between the current time and the time corresponding to the chat information which is sent recently before the current time in the plurality of terminal devices is within a preset time length is judged.
Specifically, when monitoring that the chat information of the target social account needs to be synchronized, in addition to acquiring and judging the time corresponding to the chat information recently sent by the plurality of terminal devices before the current time, it is also required to judge whether the time interval between the corresponding time and the current time is within a preset time length. That is, it is further determined whether the terminal device that has recently sent the chat message is sending the chat message within a certain range (e.g., 30 minutes) from the current time, if so, it is more likely that the user is still using the terminal device, and if not, for example, the difference between the terminal that has recently sent the chat message and the current time at which the chat message needs to be synchronized is too long (e.g., 2 hours), it is more likely that the user is not using the terminal device, and therefore, the user cannot be taken as a basis for synchronizing the chat message to be synchronized to the terminal device.
Step S303: and if so, determining the terminal equipment which has recently sent the chat information before the current time in the plurality of terminal equipment as the target terminal equipment.
Specifically, if it is further determined that the difference between the terminal device that has recently sent the chat message and the current time is within a certain range (preset duration), the terminal device that has recently sent the chat message before the current time among the plurality of terminal devices is determined as the target terminal device.
Step S304: and controlling not to synchronize the chat information to be synchronized to the terminal equipment except the target terminal equipment in the plurality of terminal equipment.
Specifically, step S304 may refer to step S203 in the embodiment of fig. 1, which is not described herein again.
Step S305: and sending prompt information to terminal equipment except the target terminal equipment in the plurality of terminal equipment, wherein the prompt information is used for prompting that the chat information to be synchronized is synchronized to the target terminal equipment.
Specifically, as shown in fig. 4a, fig. 4a is a schematic view of a specific application scenario of the method for differentiating and synchronizing chat information according to an embodiment of the present invention, and in fig. 4a, for example, a user does not currently send chat information through a device of type a at the latest moment in a chat process; as shown in fig. 4B, fig. 4B is a schematic view of another specific application scenario of the method for differentiated synchronization of chat information according to the embodiment of the present invention, in fig. 4B, a user logs in a target social account through a type B device, and "thank you too" is sent at a latest moment on the type B device, so that at this time, the type a device receives prompt information, the content is to prompt that the user currently has 2 pieces of chat information displayed on the type B device, and an option is provided for the user to click to check, and at this time, the user can determine whether to check the 2 pieces of chat information on the type a device according to the use condition of the user.
In a possible implementation manner, the prompt message includes the specific number of the chat messages to be synchronized and the model of the target terminal device. Correspondingly, as shown in fig. 4a, a specific number of 2 is shown, and the target terminal device is a B-model device.
In a possible implementation manner, the prompt information includes selection information prompting whether to view the chat information to be synchronized on the current terminal device. Correspondingly, as shown in fig. 4b, the user further selects whether to perform detailed viewing on the terminal device currently in use without the synchronous chat information.
In the embodiment of the invention, whether the target social account has chat information to be synchronized or not is monitored under the condition that the target social account logs in a plurality of terminal devices; when the chat information to be synchronized of the target social account is monitored, judging the terminal equipment which recently sends the chat information before the current moment in the plurality of terminal equipment as the target terminal equipment; and controlling not to synchronize the chat information to be synchronized to the terminal equipment except the target terminal equipment in the plurality of terminal equipment. That is, when the same account of the user logs in a plurality of terminal devices, whether to synchronize the chat information to be received is determined according to whether each terminal device of the plurality of terminal devices recently sends the chat information, so that the user can receive the chat information to be received only through the terminal device in use, waste of network resources caused by unnecessary information synchronization is saved, and meanwhile, the information is prevented from being illegally acquired by other people.
An embodiment of the present invention further provides a device 10 for differentiating and synchronizing chat messages, as shown in fig. 5, fig. 5 is a schematic structural diagram of the device for differentiating and synchronizing chat messages in the embodiment of the present invention, and the structure of the device 10 for differentiating and synchronizing chat messages will be described in detail below with reference to fig. 5. The apparatus 10 may include: a monitoring module 101, a decision module 102 and a synchronization module 103, wherein
The system comprises a monitoring module 101, a chat module and a chat module, wherein the monitoring module is used for monitoring whether a target social account has chat information to be synchronized or not under the condition that the target social account logs in a plurality of terminal devices;
the determining module 102 is configured to determine, when it is monitored that the target social account has chat information to be synchronized, a terminal device that has recently sent the chat information before the current time among the plurality of terminal devices as a target terminal device;
a synchronization module 103, configured to control not to synchronize the chat information to be synchronized to terminal devices other than the target terminal device in the plurality of terminal devices.
Specifically, as shown in fig. 6, which is a schematic structural diagram of another embodiment of the apparatus for differentiating and synchronizing chat messages provided in the present invention, the determining module 102 may include:
the judging unit is used for judging whether a time interval between a moment corresponding to the chat information which is sent recently before the current moment in the plurality of terminal devices and the current moment is within a preset time length or not when the chat information to be synchronized of the target social contact account is monitored;
and a determination unit configured to determine, if the determination result is yes, a terminal device that has most recently transmitted chat information before the current time among the plurality of terminal devices as a target terminal device.
Further, as shown in fig. 6, the apparatus may further include:
a prompt module 104, configured to send prompt information to a terminal device other than the target terminal device in the plurality of terminal devices, where the prompt information is used to prompt that the chat information to be synchronized is synchronized to the target terminal device.
Still further, the prompt message includes the specific number of the chat messages to be synchronized and the model of the target terminal device.
Still further, the prompt message includes selection information prompting whether to view the chat message to be synchronized on the current terminal device.
It is understood that, the functions of the modules in the device 10 for differentiating and synchronizing chat messages may refer to the specific implementation manners in the embodiments of the methods in fig. 1 to fig. 4, and are not described herein again.
In the present embodiment, the device 10 for chat message differential synchronization is presented in the form of a module. A "module" herein may refer to an application-specific integrated circuit (ASIC), a processor and memory that execute one or more software or firmware programs, an integrated logic circuit, and/or other devices that may provide the described functionality. In addition, the monitoring module 101, the determination module 102, and the synchronization module 103 may be implemented by the processor 201 of the terminal device shown in fig. 7, and the like.
An embodiment of the present invention further provides a terminal device 20, as shown in fig. 7, fig. 7 is a schematic structural diagram of the terminal device in the embodiment of the present invention, and the structure of the terminal device 20 will be described in detail below with reference to fig. 7. The terminal device 20 comprises at least one processor 201, at least one memory 202, at least one communication interface 203. The processor 201, the memory 202 and the communication interface 203 are connected through the communication bus and complete communication with each other.
The processor 201 may be a general purpose Central Processing Unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of programs according to the above schemes.
Communication interface 203 for communicating with other devices or communication Networks, such as ethernet, Radio Access Network (RAN), Wireless Local Area Networks (WLAN), etc.
The Memory 202 may be a Read-Only Memory (ROM) or other type of static storage device that can store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable Programmable Read-Only Memory (EEPROM), a Compact Disc Read-Only Memory (CD-ROM) or other optical Disc storage, optical Disc storage (including Compact Disc, laser Disc, optical Disc, digital versatile Disc, blu-ray Disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to these. The memory may be self-contained and coupled to the processor via a bus. The memory may also be integral to the processor.
The memory 202 is used for storing application program codes for executing the above scheme, and is controlled by the processor 201 to execute. The processor 201 is configured to execute application program code stored in the memory 202.
The memory 202 stores code that can perform the above-provided method for differentiated synchronization of chat messages of fig. 1-4, performed by a terminal device, such as monitoring whether a target social account has chat messages to be synchronized in a case where the target social account logs in on multiple terminal devices; when the chat information to be synchronized of the target social account is monitored, judging the terminal equipment which recently sends the chat information before the current moment in the plurality of terminal equipment as the target terminal equipment; and controlling not to synchronize the chat information to be synchronized to the terminal equipment except the target terminal equipment in the plurality of terminal equipment.
It can be understood that, when the execution subject in each method embodiment of the present invention is a social application server, the structure diagram of the server is the same as the structure diagram of the terminal device, and details are not repeated here.
Referring to fig. 8, fig. 8 is a schematic structural diagram of another embodiment of a terminal device according to an embodiment of the present invention. The terminal device 30 may be an intelligent mobile terminal (e.g. a mobile phone), and the terminal device 30 includes: radio Frequency (RF) circuitry 301, memory 302 storing one or more computer programs, input devices 303, output devices 304, sensors 305, audio circuitry 306, wireless fidelity (WiFi) module 307, processor 308 including one or more processing cores, and power supply 303. Those skilled in the art will appreciate that the terminal device configuration shown in fig. 8 does not constitute a limitation of the terminal device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 301 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, for receiving downlink information of a base station and then processing the received downlink information by the one or more processors 308; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuit 301 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 301 may also communicate with a network or other terminal device through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to global system for mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), etc.
The memory 302 may be used to store computer programs and modules, and the processor 308 executes various functional applications and data processing by executing the computer programs and modules stored in the memory 302. The memory 302 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to the use of the terminal device 30 (such as a photographed photograph, audio data, video data, etc.), and the like. Further, the memory 302 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 302 may also include a memory controller to provide the processor 308 and the input device 303 access to the memory 302.
The input device 303 may be used to receive entered numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input means 303 may comprise a touch sensitive surface 3031 as well as other input devices 3032. Touch-sensitive surface 3031, also referred to as a touch display panel or touchpad, may collect touch operations by a user on or near touch-sensitive surface 3031 (e.g., operations by a user on or near touch-sensitive surface 3031 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, touch sensitive surface 3031 may include both touch sensing devices and touch controllers. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 308, and can receive and execute commands sent by the processor 308. Additionally, touch sensitive surface 3031 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input means 303 may comprise other input devices 3032 in addition to the touch-sensitive surface 3031. In particular, other input devices 3032 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The output means 304 may be used to display information input by or provided to the user, as well as various graphical user interfaces of the terminal device 30, which may be made up of graphics, text, icons, video, and any combination thereof. The output device 304 may include a display panel 3041, and optionally, the display panel 3041 may be configured in the form of a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), or the like. Further, touch-sensitive surface 3031 may overlay display panel 3041 and, when touch-sensitive surface 3031 detects a touch operation thereon or thereabout, communicate to processor 308 to determine the type of touch event, and processor 308 then provides a corresponding visual output on display panel 3041 in accordance with the type of touch event. Although in FIG. 8, touch-sensitive surface 3031 and display panel 3041 are implemented as two separate components to implement input and output functions, in some embodiments, touch-sensitive surface 3031 may be integrated with display panel 3041 to implement input and output functions.
The terminal device 30 may also include at least one sensor 305, such as a distance sensor, a light sensor, a motion sensor, and other sensors. Specifically, the distance sensor is used for detecting the distance between the screen of the terminal device and an object covering the terminal device, and the optical sensor is used for detecting an optical signal of the external environment of the terminal device. As one of the motion sensors, the gravity acceleration sensor may detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when stationary, and may be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration) for recognizing the attitude of the terminal device 30, and related functions (such as pedometer and tapping) for vibration recognition; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured on the terminal device 30, detailed descriptions thereof are omitted.
Audio circuitry 306, speaker 3061, microphone 3062 may provide an audio interface between the user and terminal device 30. The audio circuit 306 may transmit the electrical signal converted from the received audio data to the speaker 3061, and convert the electrical signal into a sound signal by the speaker 3061 and output the sound signal; on the other hand, the microphone 3062 converts collected sound signals into electrical signals, which are received by the audio circuit 306 and converted into audio data, which are then processed by the audio data output processor 308, either via the RF circuit 301 for transmission to another device, for example, or output to the memory 302 for further processing. The audio circuitry 306 may also include an earbud jack to provide communication of peripheral headphones with the terminal device 30.
WiFi belongs to short-distance wireless transmission technology, and the terminal device 30 can help the user send and receive e-mail, browse web pages, access streaming media, etc. through the WiFi module 307, and it provides wireless broadband internet access for the user. Although fig. 8 shows the WiFi module 307, it is understood that it does not belong to the essential constitution of the terminal device 30, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 308 is a control center of the terminal device 30, connects various parts of the entire terminal device 30 by various interfaces and lines, and performs various functions of the terminal device 30 and processes data by running or executing computer programs and/or modules stored in the memory 302 and calling data stored in the memory 302, thereby performing overall monitoring of the terminal device 30. Optionally, processor 308 may include one or more processing cores; preferably, the processor 308 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 308.
The terminal device 30 further includes a power supply 303 (e.g., a battery) for supplying power to various components, which may preferably be logically connected to the processor 308 via a power management system, so as to manage charging, discharging, and power consumption via the power management system. The power supply 303 may also include any component or components of a direct or alternating current power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal device 30 may further include a camera, a bluetooth module, and the like, which are not described in detail herein. Specifically, in this embodiment of the present invention, the output device 304 (or the input device 303) of the terminal device is a touch screen display, the terminal device 30 further includes a memory 302, a processor 308, and one or more computer programs, where the one or more computer programs are stored in the memory 302, and the processor 308 is configured to invoke the program for differentiating and synchronizing the chat information stored in the memory 302 (a non-volatile memory) to execute the procedures of the method steps in the foregoing method embodiments, which is not described herein again.
An embodiment of the present invention further provides a computer storage medium, where the computer storage medium may store a program, and when the program is executed, the program includes some or all of the steps of any one of the chat information difference synchronization methods described in the above method embodiments.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are all expressed as a series of action combinations, but those skilled in the art should understand that the present invention is not limited by the combination of the above-mentioned method embodiments
The order of acts described is limited in that some steps may occur in other orders and concurrently with other steps apart from those illustrated and described herein, in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a memory and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above embodiments of the present invention are described in detail, and the principle and the implementation of the present invention are explained by applying specific embodiments, and the above description of the embodiments is only used to help understanding the method of the present invention and the core idea thereof; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (2)

1. A method for differentiated synchronization of chat messages, comprising:
monitoring whether a target social account has chat information to be synchronized or not under the condition that the target social account logs in on a plurality of terminal devices; the method comprises the following steps: monitoring whether chat information received or sent by a later logged terminal device currently needs to be synchronized on a previously logged terminal device when a plurality of terminals log in a target social account in sequence, or whether all instant chat information currently needs to be synchronized by all the simultaneously logged terminal devices when a plurality of terminal devices log in the target social account simultaneously;
when the chat information to be synchronized of the target social account is monitored, judging the terminal equipment which recently sends the chat information before the current moment in the plurality of terminal equipment as the target terminal equipment;
controlling not to synchronize the chat information to be synchronized to terminal equipment except the target terminal equipment in the plurality of terminal equipment;
sending prompt information to terminal equipment except the target terminal equipment in the plurality of terminal equipment, wherein the prompt information is used for prompting that the chat information to be synchronized is synchronized to the target terminal equipment; the prompt message comprises the specific quantity of the chat messages to be synchronized and the model of the target terminal device; the prompt information also comprises selection information for prompting whether the chat information to be synchronized is checked on the current terminal equipment;
when monitoring that the chat information of the target social contact account needs to be synchronized, determining, as the target terminal device, a terminal device that has recently sent the chat information before the current time among the plurality of terminal devices, including:
when the chat information to be synchronized of the target social contact account is monitored, judging whether a time interval between a time corresponding to the chat information recently sent before the current time in the plurality of terminal devices and the current time is within a preset time length;
and if so, determining the terminal equipment which has recently sent the chat information before the current time in the plurality of terminal equipment as the target terminal equipment.
2. An apparatus for differentiated synchronization of chat messages, comprising:
the system comprises a monitoring module, a synchronization module and a synchronization module, wherein the monitoring module is used for monitoring whether a target social account has chat information to be synchronized or not under the condition that the target social account logs in a plurality of terminal devices; the method comprises the following steps: monitoring whether chat information received or sent by a later logged terminal device currently needs to be synchronized on a previously logged terminal device when a plurality of terminals log in a target social account in sequence, or whether all instant chat information currently needs to be synchronized by all the simultaneously logged terminal devices when a plurality of terminal devices log in the target social account simultaneously;
the judging module is used for judging the terminal equipment which recently sends the chat information before the current time in the plurality of terminal equipment as the target terminal equipment when the chat information to be synchronized of the target social account is monitored;
the synchronization module is used for controlling not to synchronize the chat information to be synchronized to the terminal equipment except the target terminal equipment in the plurality of terminal equipment;
a prompt module, configured to send prompt information to a terminal device other than the target terminal device in the plurality of terminal devices, where the prompt information is used to prompt that the chat information to be synchronized is synchronized to the target terminal device; the prompt message comprises the specific quantity of the chat messages to be synchronized and the model of the target terminal device; the prompt information also comprises selection information for prompting whether the chat information to be synchronized is checked on the current terminal equipment;
the determination module includes:
the judging unit is used for judging whether a time interval between a moment corresponding to the chat information which is sent recently before the current moment in the plurality of terminal devices and the current moment is within a preset time length or not when the chat information to be synchronized of the target social contact account is monitored;
and a determination unit configured to determine, if the determination result is yes, a terminal device that has most recently transmitted chat information before the current time among the plurality of terminal devices as a target terminal device.
CN201610826837.0A 2016-09-14 2016-09-14 Method and device for distinguishing and synchronizing chat information Active CN106209608B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610826837.0A CN106209608B (en) 2016-09-14 2016-09-14 Method and device for distinguishing and synchronizing chat information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610826837.0A CN106209608B (en) 2016-09-14 2016-09-14 Method and device for distinguishing and synchronizing chat information

Publications (2)

Publication Number Publication Date
CN106209608A CN106209608A (en) 2016-12-07
CN106209608B true CN106209608B (en) 2020-01-14

Family

ID=58067015

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610826837.0A Active CN106209608B (en) 2016-09-14 2016-09-14 Method and device for distinguishing and synchronizing chat information

Country Status (1)

Country Link
CN (1) CN106209608B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106790171B (en) * 2016-12-29 2019-12-17 杭州朗和科技有限公司 Session control method, device, computer readable storage medium and equipment
CN106685807A (en) * 2017-01-09 2017-05-17 广东小天才科技有限公司 Display information method and server
CN108491513A (en) * 2018-03-26 2018-09-04 武汉南博网络科技有限公司 A kind of method and apparatus of platform operation information switching
CN108809815B (en) * 2018-06-29 2021-06-22 上海哔哩哔哩科技有限公司 Method for updating unread number of session, session processing method, device and system
CN115065656A (en) * 2022-05-31 2022-09-16 北京京东拓先科技有限公司 Message processing method and device, electronic equipment and computer readable medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103327037A (en) * 2012-03-20 2013-09-25 中兴通讯股份有限公司 Data synchronizing method and device
CN103442042A (en) * 2013-08-14 2013-12-11 福建天晴数码有限公司 Incremental data synchronization method and system
EP2701083A1 (en) * 2012-08-24 2014-02-26 Samsung Electronics Co., Ltd Method, apparatus and system for auto-synchronization of compressed content files
CN104144116A (en) * 2014-07-16 2014-11-12 腾讯科技(深圳)有限公司 Instant messaging method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103327037A (en) * 2012-03-20 2013-09-25 中兴通讯股份有限公司 Data synchronizing method and device
EP2701083A1 (en) * 2012-08-24 2014-02-26 Samsung Electronics Co., Ltd Method, apparatus and system for auto-synchronization of compressed content files
CN103442042A (en) * 2013-08-14 2013-12-11 福建天晴数码有限公司 Incremental data synchronization method and system
CN104144116A (en) * 2014-07-16 2014-11-12 腾讯科技(深圳)有限公司 Instant messaging method and system

Also Published As

Publication number Publication date
CN106209608A (en) 2016-12-07

Similar Documents

Publication Publication Date Title
CN106209608B (en) Method and device for distinguishing and synchronizing chat information
CN108156508B (en) Barrage information processing method and device, mobile terminal, server and system
CN108834132B (en) Data transmission method and equipment and related medium product
CN105094501B (en) Method, device and system for displaying messages in mobile terminal
CN106569910B (en) Data backup and transmission method and mobile terminal
CN106453514B (en) Method and device for distinguishing and synchronizing chat information
CN107743108B (en) Method and device for identifying medium access control address
CN106445739B (en) Data migration method and terminal equipment
CN105653220B (en) Screen data display method and device in remote control
CN106211102B (en) Method and device for distinguishing and synchronizing chat information
CN106302130B (en) A kind of method and device that chat message difference is synchronous
CN106357512B (en) Method and device for distinguishing and synchronizing chat information
CN106484563B (en) Data migration method and terminal equipment
CN115174418A (en) Communication environment safety early warning method and device, electronic equipment and storage medium
CN106302101B (en) Message reminding method, terminal and server
CN107770381B (en) Network management method and related product
CN106792434B (en) Hotspot establishing method and terminal equipment
CN106293407B (en) Picture display method and terminal equipment
CN106909295B (en) Application processing method and terminal
CN106230709B (en) Method and device for distinguishing and synchronizing chat information
CN107823888B (en) Game team forming method and related product
CN106302131B (en) A kind of synchronous method and device of chat message difference
CN106776041B (en) Data processing method and device
CN106357513B (en) Message processing method, device, server and message processing system
CN111163533B (en) Network connection method and related product

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: Guangdong Opel Mobile Communications Co., Ltd.

GR01 Patent grant
GR01 Patent grant