WO2015131557A1 - Terminal device and method for synchronizing chat history of instant messaging - Google Patents

Terminal device and method for synchronizing chat history of instant messaging Download PDF

Info

Publication number
WO2015131557A1
WO2015131557A1 PCT/CN2014/091686 CN2014091686W WO2015131557A1 WO 2015131557 A1 WO2015131557 A1 WO 2015131557A1 CN 2014091686 W CN2014091686 W CN 2014091686W WO 2015131557 A1 WO2015131557 A1 WO 2015131557A1
Authority
WO
WIPO (PCT)
Prior art keywords
chat record
chat
terminal device
user
synchronous
Prior art date
Application number
PCT/CN2014/091686
Other languages
French (fr)
Chinese (zh)
Inventor
张朝
黄伟
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015131557A1 publication Critical patent/WO2015131557A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • 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/216Handling conversation history, e.g. grouping of messages in sessions or threads

Definitions

  • the present invention relates to the field of instant messaging, and in particular, to a chat record synchronization method and a terminal device in an instant chat tool.
  • chat tools With the development of technology and the popularization of information technology, instant chat tools have brought people closer to each other. Through instant chat tools, people can not only appeal to each other, but also enjoy real-time images. Instant chat tools further enhance each other. The emotional communication between the two can also record the text and images when they communicate with each other, providing a real record for the user to revisit in the future.
  • the save mode of the chat record is basically saved locally or stored on the server that provides the chat tool service provider.
  • the server save mode requires the service provider to provide the service. When the service provider does not provide the service or the user does not open the service. If the user's local chat record is lost, it cannot be recovered, causing loss to the user.
  • each terminal saves part of the chat record, which is not conducive to the user's review of the previous chat record, resulting in User's use is bothersome.
  • the technical problem to be solved by the present invention is to provide a chat record synchronization method and a terminal device in an instant chat tool, so as to solve the problem that the local chat record is lost and the server does not save the chat record.
  • a method for synchronizing a chat log of an instant chat tool comprising:
  • the first terminal device receives an instruction to view a chat record with the specified user. If the terminal device does not store the chat record with the specified user, the first terminal device sends the terminal device to the designated user, that is, the first terminal device The second terminal device sends a synchronous chat record request;
  • the chat record is saved locally, and the chat record is displayed.
  • the first terminal device receives the chat record returned by the second terminal device,
  • the steps of saving the chat record locally include:
  • the first terminal device After receiving the encrypted chat record returned by the second terminal device, the first terminal device saves the decrypted chat record locally after performing the decryption operation.
  • the synchronous chat record request includes a specified time period of the chat record to be synchronized, or a specified time period including the chat record to be synchronized, and the user who initiates the synchronous chat record request indicates the identity of the designated user. information.
  • the method further includes:
  • the second terminal device transmits the retrieved chat to the first terminal device.
  • the second terminal device after receiving the synchronous chat record request, performs identity authentication on the user that initiates the synchronous chat record request, and initiates the synchronous chat after local authentication after identity authentication. Record the chat history of the requested user.
  • the step of the second terminal device transmitting the retrieved chat to the first terminal device includes:
  • the second terminal device encrypts the retrieved chat record according to a setting manner and transmits the chat record to the first terminal device.
  • a method for synchronizing a chat log of an instant chat tool comprising:
  • the second terminal device transmits the retrieved chat to the first terminal device.
  • the second terminal device after receiving the synchronous chat record request, performs identity authentication on the user that initiates the synchronous chat record request, and searches for the user's chat locally after identity authentication. recording.
  • the second terminal device transmits the retrieved chat to the first terminal device
  • the steps include:
  • the second terminal device encrypts the retrieved chat record according to a setting manner and transmits the chat record to the first terminal device.
  • a terminal device includes a user input module, a chat record query module, a sending module, a receiving module, a local storage module, and a display module, wherein:
  • the user input module is configured to: receive an instruction to view a chat record with a specified user;
  • the chat record query module is configured to: when the user input module receives an instruction to view a chat record with a specified user, query whether a chat record with the specified user is stored locally;
  • the sending module is configured to: when the chat record query module does not query the chat record between the specified users, send a synchronous chat record request to the terminal device of the specified user, that is, the second terminal device;
  • the receiving module is configured to: receive a chat record returned by the second terminal device;
  • the local storage module is configured to: when the receiving module receives the chat record returned by the second terminal device, save the chat record;
  • the display module is configured to: display the chat record returned by the second terminal device received by the terminal device to the user.
  • the device further includes a decryption module, wherein:
  • the decryption module is configured to perform a decryption operation when the terminal device receives the encrypted chat record returned by the second terminal device;
  • the local storage module is configured to save the chat record as follows: save the decrypted chat record.
  • the synchronous chat record request includes a specified time period of the chat record to be synchronized, or a specified time period including the chat record to be synchronized, and the user who initiates the synchronous chat record request indicates the identity of the designated user. information.
  • the receiving module is further configured to: receive a synchronous chat record request sent by another terminal device other than the terminal device;
  • the chat record query module is further configured to: when the receiving module receives the synchronous chat record request sent by another terminal device, retrieve a chat record of the user who initiates the synchronous chat record request;
  • the sending module is further configured to: when the chat record query module retrieves the chat record of the user who initiates the synchronous chat record request, transmit the retrieved chat to the user who initiates the synchronous chat record request Terminal Equipment.
  • the device further includes an authentication module, wherein:
  • the authentication module is configured to: when the receiving module receives the synchronous chat record request, perform identity authentication on a user who initiates the synchronous chat record request;
  • the chat record query module is configured to retrieve a chat record of a user who initiates the synchronous chat record request according to the following manner: after the authentication module passes the identity authentication, the user who initiates the synchronous chat record request is locally retrieved Chat history.
  • the sending module is configured to transmit the retrieved chat to the terminal device of the user that initiates the synchronous chat record request according to the following manner:
  • the retrieved chat record is encrypted according to a setting manner and then transmitted to the terminal device of the user who initiated the synchronous chat record request.
  • a terminal device includes a receiving module, a chat record query module and a sending module, wherein:
  • the receiving module is configured to: receive a synchronous chat record request received in the chat tool;
  • the chat record query module is configured to: locally retrieve a chat record of a user who initiates the synchronous chat record request;
  • the sending module is configured to: transmit the retrieved chat to the terminal device of the user who initiates the synchronous chat recording request.
  • the device further includes an authentication module, wherein:
  • the authentication module is configured to: when the receiving module receives the synchronous chat record request, perform identity authentication on a user who initiates the synchronous chat record request;
  • the chat record query module is configured to: after the authentication module passes the identity authentication, A local search initiates a chat record for the user.
  • the sending module is configured to transmit the retrieved chat to the terminal device of the user that initiates the synchronous chat record request according to the following manner:
  • the retrieved chat record is encrypted according to a setting manner and then transmitted to the terminal device of the user who initiated the synchronous chat record request.
  • a computer program comprising program instructions, when the program instruction is executed by a terminal device, enabling the terminal device to perform any of the above-mentioned methods for initiating querying a user-side instant chat tool chat record synchronization method.
  • a carrier carrying the computer program A carrier carrying the computer program.
  • a computer program comprising program instructions, when the program instructions are executed by a terminal device, enabling the terminal device to perform any of the instant chat tool chat record synchronization methods on the specified user side.
  • a carrier carrying the computer program A carrier carrying the computer program.
  • the technical solution of the present application can solve the problem that the local chat record is lost and the server does not save the chat record.
  • FIG. 1 is a schematic diagram showing the structure and function of each module of the present invention.
  • the embodiment provides a method for synchronizing the chat log of the instant chat tool.
  • the initiator user When the user of the originating party requests to synchronize the chat record, the initiator user first specifies the friend who needs to restore the record in the chat list and records it as the designated user, and simultaneously sends the chat record synchronization request to the designated user.
  • the chat record saved by the specified user and transmitted to the initiator is returned to the initiator.
  • the implementation of this solution can solve the problem that the local chat record is lost and the server does not save the chat record.
  • the above method includes the following operations:
  • Step 1 The initiator user selects the friend who needs to view the chat record and records it as the designated party user, and determines whether the chat tool saves the chat record with the designated party user locally in the terminal;
  • Step 2 If the chat record between the initiator user and the designated party user is not saved locally, the initiator user sends a synchronous chat record request to the designated party user;
  • the initiator user sends the synchronous chat record request to the designated party user in a fixed format.
  • Step 3 The initiator user receives the chat record from the specified party user and saves it to the local terminal storage, and simultaneously expands the chat record according to the chat tool's native format for the initiator user to view.
  • chat record sent by the designated user is encrypted, the chat record needs to be decrypted to be stored.
  • the synchronous chat record request mentioned above may include a specified time period of the chat record to be synchronized, or a specified time period including the chat record to be synchronized, and an authentication of the user who initiates the synchronous chat record request to indicate the identity of the designated user. Information, so that the specified user can authenticate the identity by synchronizing the chat record request without additional authentication process.
  • the above method further includes the operation of the specified party user, and may include the following operations.
  • the specified party user After the specified party user receives the synchronous chat record request, it can reject and accept the operation. If the designated party user accepts the synchronization request operation, the instant chat tool retrieves the chat record related to the initiator in the specified user local terminal memory, and the chat record includes related information such as text, picture, video, file, etc.; After the chat is recorded, the chat record is transmitted back to the originator user.
  • the designated party user may perform a user identity verification operation, and send the user authentication information to the initiator user to ensure that the synchronization request is a non-illegal request.
  • the designated party user When transmitting the chat record, the designated party user can encrypt and transmit the chat record to improve data transmission. Security.
  • the following embodiment further provides a method for synchronizing the chat log of the instant chat tool, which is mainly described from the specified user side, and has the same idea as the above method, and mainly includes the following operations:
  • the retrieved chat is transmitted to the user.
  • the terminal device may perform identity authentication on the user who initiates the synchronous chat record request. After the user authenticates through the identity, the user initiates the chat record of the user locally.
  • the terminal device transmits the retrieved chat to the user
  • the retrieved chat record may be encrypted and transmitted according to a setting manner.
  • one user (which may be an initiator user or a designated party user) may use different terminal devices, and the request/data sent to the user is received by the user through the terminal device used by the user.
  • the embodiment provides a terminal device, which can synchronize the chat log of the instant chat tool, and mainly includes:
  • the user input module 100 receives an instruction initiated by the user to view a chat record with the specified user
  • the chat record query module 200 when the user input module receives an instruction to view the chat record with the specified user, queries whether the chat record with the specified user is stored locally;
  • the chat record query module 200 can query information in a specified time period of the local chat record, and the information in the specified time period can include all chat records, or text records, or video image records, or file records in the time period;
  • the sending module 300 sends a synchronous chat record request to the designated user when the chat record query module does not query the chat record between the specified users;
  • the receiving module 400 receives the chat record returned by the specified user
  • the sent synchronization chat record request may include a specified time period of the chat record to be synchronized, and may also include the authentication information that the initiator user indicates the identity to the designated user.
  • the local storage module 500 saves the chat record when the terminal device receives the chat record returned by the specified user.
  • the display module 600 displays the chat record returned by the specified user received by the terminal device to the user.
  • the device may further include: a decryption module 700, when the terminal device receives the encrypted chat record returned by the specified user, performs a decryption operation; at this time, the local storage module 500 saves the decrypted chat record.
  • a decryption module 700 when the terminal device receives the encrypted chat record returned by the specified user, performs a decryption operation; at this time, the local storage module 500 saves the decrypted chat record.
  • the receiving module 400 is further configured to: receive a synchronous chat record request sent by another terminal device. .
  • the chat record query module retrieves the chat record of the user who initiates the synchronous chat record request when receiving the synchronous chat record request sent by the other terminal device, and the sending module 300 transmits the retrieved chat to the The user who initiated the sync chat request.
  • the sending module 300 when transmitting the retrieved chat to the user who initiates the synchronous chat record request, encrypts the retrieved chat record according to a setting manner and then transmits the generated chat record.
  • the optimized terminal device further includes an authentication module 800, and the terminal device structure is as shown in FIG. 1 .
  • the authentication module 800 performs identity authentication on the user who initiates the synchronous chat record request.
  • the chat record query module 200 after the authentication module 800 passes the identity authentication, The chat history of the user who initiated the sync chat request is retrieved locally.
  • the embodiment further provides a terminal device, which can implement the operation of the specified user side separately, and the method mainly includes:
  • the receiving module receives the synchronous chat record request sent by the user in the chat tool
  • chat record query module for locally searching a chat record of a user who initiates the synchronous chat record request
  • the sending module transmits the retrieved chat to the user.
  • the device may include an authentication module, and when the receiving module receives the synchronous chat record request, perform identity authentication on the user who initiates the synchronous chat record request; at this time, the chat record query module passes the identity in the authentication module. After the authentication, the chat record of the user is initiated locally.
  • the sending module transmits the retrieved chat to the user
  • the retrieved chat record can be encrypted and transmitted according to the setting mode.
  • the embodiment of the invention discloses a computer program, which comprises program instructions.
  • the terminal device can perform the chat method of the chat tool chat synchronization on the user side of any of the initiators.
  • the embodiment of the invention discloses a carrier carrying the above computer program.
  • the embodiment of the invention discloses a computer program, which comprises program instructions.
  • the terminal device can perform any of the above-mentioned user-side instant chat tool chat record synchronization methods.
  • the embodiment of the invention discloses a carrier carrying the computer program.
  • the user input module When the user needs to perform chat record viewing, the user input module performs friend selection, determines the chat history of viewing and determining the friend, and also determines the start and end time range of the chat record. If user A needs to view the chat record with friend B, the following operations need to be completed on the A user terminal. First, select friend B in the friend list of the A user terminal, and then select to view the chat record of a certain time period. From February to July 2014, the record will continue to be entered in 201402-201407. After that, the chat tool will query the local storage module through the chat record query module to query the chat record that matches the user input information. If the match is successful, it will directly be associated with the friend. B. The chat record in this time period is displayed in chronological order. If the chat record query module does not match the information in the local storage module, the information input by the user is transmitted to the sending module according to the preset format for sending the synchronous chat message. Record the request.
  • the preset format can be designed as required.
  • the above-mentioned encoded information may be accompanied by the authentication information of the A user before the transmission, and the authentication information may be private information that is known to both the A user and the B user.
  • the identity of the user is indicated to B, and the authentication sent by the A user.
  • the information is the real name of the A user, and the sending module sends the above encoded information to the designated user B through the network to perform a chat record synchronization request.
  • the user B After receiving the information request from the user A, the user B completes the following operation at the B user terminal, and the receiving module receives the chat record request from the user A and displays it to the user B, and the user B can select the rejection request, the authentication request, or the receiving request.
  • the authentication request is sent to the A user through the sending module of the B terminal.
  • the authentication information is private information that is known to both the A user and the B user. For example, the B user needs to determine whether it is A user himself, in this embodiment, the authentication information sent to the A user is the birth date of the A user. After the A user replies to the correct date of birth and confirms by the B user, the B user terminal decodes the encoded information sent by the A user, and transmits the decoded information to the chat record query module, and the chat record query module is in the local storage module. After the matching is successful, the chat record is read and encoded, and the encoded chat record sending module is sent out and transmitted to the user A via the network.
  • the chat record format encoded in this embodiment is as follows:
  • FILE is the specific chat record.
  • the A user receives the encoded chat record sent by the B user, completes the following operation on the A user terminal, decodes the received decoded chat record, parses out the complete chat record FILE file, and saves the FILE file in the local storage module.
  • the FILE file is expanded according to the format of the chat tool, and the A user is viewed.
  • the user input module is used to select the friend and determine View and confirm the chat history of your friends, and also determine the start and end time range of the chat history. If user A needs to view the chat record with friend B, the following operations need to be completed on the A user terminal. First, select friend B in the friend list of the A user terminal, and then select to view the chat record of a certain time period. From February to July 2014, the user first queries the chat history locally.
  • the user A edits the short message to send the request information to the user B, for example, the message content can be “#@@ #Request to synchronize the chat record #@@#" between 201402 and 201407, and send the complete information with special identification characters to user B.
  • the above information can be accompanied by the authentication information of the A user before the transmission, and the authentication information.
  • the private information that can be known to both the A user and the B user. In this embodiment, the identity is indicated to B.
  • the authentication information sent by the A user is the birthday of the A user, and the short message is further optimized to “#@@# request. Synchronize chat history between 201402 and 201407 + birthday 19850505#@@#".
  • the user B After receiving the information request from the user A, the user B completes the following operation on the B user terminal, and the receiving module performs the query identification on the short message received from the user A, and reads the short message including the field “#@@#Request synchronization”.
  • User B prompts whether to synchronize the chat record, and User B can choose to reject the request, authenticate the request, or receive the request.
  • the authentication request sends the short message of the authentication to the A user through the B terminal.
  • the authentication content is the private information shared by the A user and the B user. For example, the B user needs to determine whether it is A.
  • the user himself in this embodiment, sends the authentication information to the A user as the birth date of the A user, and sends out the short message.
  • the B user terminal decodes the encoded information sent by the A user, and transmits the decoded information to the chat record query module, and the chat record query module is in the local storage module.
  • chat record is read and encoded, and the encoded chat record is sent through the sending module and transmitted to the user A via the network.
  • the A user receives the encoded chat record sent by the B user, completes the following operation on the A user terminal, decodes the received decoded chat record, parses out the complete chat record FILE file, and saves the FILE file in the local storage module. At the same time, press the FILE file according to the format of the chat tool. Time to expand, provide A user view.
  • the technical solution of the present application can solve the problem that the local chat record is lost and the server does not save the chat record. Therefore, the present invention has strong industrial applicability.

Landscapes

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

Abstract

The present invention relates to the field of instant messaging. Disclosed are a terminal device and method for synchronizing chat history of instant messaging. The method comprises: a terminal device receives an instruction initiated by a user for viewing chat history with a specified user, and if the terminal device does not locally store the chat history with the specified user, then the terminal device transmits to the specified user a request for synchronizing the chat history; when the terminal device receives the chat history returned by the specified user, the terminal device stores the chat history locally and displays the chat history to the user. The technical solution of the present invention can solve the problem that the local chat history is lost and no server stores the chat history.

Description

即时聊天工具聊天记录同步方法及终端设备Instant chat tool chat record synchronization method and terminal device 技术领域Technical field
本发明涉及即时通信领域,具体涉及一种即时聊天工具中聊天记录同步方法及终端设备。The present invention relates to the field of instant messaging, and in particular, to a chat record synchronization method and a terminal device in an instant chat tool.
背景技术Background technique
随着科技的发展,信息化的普及,即时聊天工具拉近了人与人之间的距离,通过即时聊天工具人们不仅可以互诉衷肠,也可以互享实时图像,即时聊天工具进一步增进彼此之间的情感交流,也能记录下彼此交流时的文字及图像,为使用者在以后重新回溯提供了实实在在的记录。目前聊天记录的保存方式基本是在本地保存,或者保存在提供聊天工具服务商的服务器上,服务器保存方式需要服务商提供此项业务,当服务商不提供此服务或用户没有开通此服务的情况下,若用户本地聊天记录丢失则无法恢复,对用户造成损失;另外,用户如若通过多个终端进行聊天则多个终端各保存部分聊天记录,也不利于用户对以往聊天记录的回看,造成用户的使用困扰。With the development of technology and the popularization of information technology, instant chat tools have brought people closer to each other. Through instant chat tools, people can not only appeal to each other, but also enjoy real-time images. Instant chat tools further enhance each other. The emotional communication between the two can also record the text and images when they communicate with each other, providing a real record for the user to revisit in the future. Currently, the save mode of the chat record is basically saved locally or stored on the server that provides the chat tool service provider. The server save mode requires the service provider to provide the service. When the service provider does not provide the service or the user does not open the service. If the user's local chat record is lost, it cannot be recovered, causing loss to the user. In addition, if the user chats through multiple terminals, each terminal saves part of the chat record, which is not conducive to the user's review of the previous chat record, resulting in User's use is bothersome.
发明内容Summary of the invention
本发明所要解决的技术问题是提供一种即时聊天工具中聊天记录同步方法及终端设备,以解决本地聊天记录丢失且无服务器保存聊天记录的问题。The technical problem to be solved by the present invention is to provide a chat record synchronization method and a terminal device in an instant chat tool, so as to solve the problem that the local chat record is lost and the server does not save the chat record.
为了解决上述技术问题,采用如下技术方案:In order to solve the above technical problems, the following technical solutions are adopted:
一种即时聊天工具聊天记录同步方法,包括:A method for synchronizing a chat log of an instant chat tool, comprising:
第一终端设备接收查看与指定用户间的聊天记录的指令,若所述终端设备本地未存储与指定用户间的聊天记录,则所述第一终端设备向所述指定用户的终端设备,即第二终端设备发送同步聊天记录请求;The first terminal device receives an instruction to view a chat record with the specified user. If the terminal device does not store the chat record with the specified user, the first terminal device sends the terminal device to the designated user, that is, the first terminal device The second terminal device sends a synchronous chat record request;
当所述第一终端设备接收到所述第二终端设备返回的聊天记录,则在本地保存所述聊天记录,并显示所述聊天记录。When the first terminal device receives the chat record returned by the second terminal device, the chat record is saved locally, and the chat record is displayed.
可选地,所述第一终端设备接收到所述第二终端设备返回的聊天记录, 则在本地保存所述聊天记录的步骤包括:Optionally, the first terminal device receives the chat record returned by the second terminal device, The steps of saving the chat record locally include:
所述第一终端设备接收到所述第二终端设备返回的加密的聊天记录,则进行解密操作后,在本地保存解密得到的聊天记录。After receiving the encrypted chat record returned by the second terminal device, the first terminal device saves the decrypted chat record locally after performing the decryption operation.
可选地,所述同步聊天记录请求中包含所要同步的聊天记录的指定时间段,或者包含所要同步的聊天记录的指定时间段以及发起同步聊天记录请求的用户向指定方用户表明身份的鉴权信息。Optionally, the synchronous chat record request includes a specified time period of the chat record to be synchronized, or a specified time period including the chat record to be synchronized, and the user who initiates the synchronous chat record request indicates the identity of the designated user. information.
可选地,该方法还包括:Optionally, the method further includes:
所述第二终端设备接收所述同步聊天记录请求,在本地检索发起所述同步聊天记录请求的用户的聊天记录;Receiving, by the second terminal device, the synchronous chat record request, locally searching for a chat record of a user who initiates the synchronous chat record request;
所述第二终端设备将所检索到的聊天传输给所述第一终端设备。The second terminal device transmits the retrieved chat to the first terminal device.
可选地,所述第二终端设备接收所述同步聊天记录请求后,对发起所述同步聊天记录请求的用户进行身份鉴权,当通过身份鉴权后,才在本地检索发起所述同步聊天记录请求的用户的聊天记录。Optionally, after receiving the synchronous chat record request, the second terminal device performs identity authentication on the user that initiates the synchronous chat record request, and initiates the synchronous chat after local authentication after identity authentication. Record the chat history of the requested user.
可选地,所述第二终端设备将所检索到的聊天传输给所述第一终端设备的步骤包括:Optionally, the step of the second terminal device transmitting the retrieved chat to the first terminal device includes:
所述第二终端设备对所检索到的聊天记录按照设定方式加密后传输给所述第一终端设备。The second terminal device encrypts the retrieved chat record according to a setting manner and transmits the chat record to the first terminal device.
一种即时聊天工具聊天记录同步方法,包括:A method for synchronizing a chat log of an instant chat tool, comprising:
第二终端设备接收聊天工具接收到的同步聊天记录请求,在本地检索所述用户的聊天记录;Receiving, by the second terminal device, the synchronous chat record request received by the chat tool, and locally searching the chat record of the user;
所述第二终端设备将所检索到的聊天传输给第一终端设备。The second terminal device transmits the retrieved chat to the first terminal device.
可选地,所述第二终端设备接收所述同步聊天记录请求后,对发起所述同步聊天记录请求的用户进行身份鉴权,当通过身份鉴权后,才在本地检索所述用户的聊天记录。Optionally, after receiving the synchronous chat record request, the second terminal device performs identity authentication on the user that initiates the synchronous chat record request, and searches for the user's chat locally after identity authentication. recording.
可选地,所述第二终端设备将所检索到的聊天传输给所述第一终端设备 的步骤包括:Optionally, the second terminal device transmits the retrieved chat to the first terminal device The steps include:
所述第二终端设备对所检索到的聊天记录按照设定方式加密后传输给所述第一终端设备。The second terminal device encrypts the retrieved chat record according to a setting manner and transmits the chat record to the first terminal device.
一种终端设备,包括用户输入模块、聊天记录查询模块、发送模块、接收模块、本地存储模块和显示模块,其中:A terminal device includes a user input module, a chat record query module, a sending module, a receiving module, a local storage module, and a display module, wherein:
所述用户输入模块设置成:接收查看与指定用户间的聊天记录的指令;The user input module is configured to: receive an instruction to view a chat record with a specified user;
所述聊天记录查询模块设置成:在所述用户输入模块收到查看与指定用户间的聊天记录的指令时,查询本地是否存储有与指定用户间的聊天记录;The chat record query module is configured to: when the user input module receives an instruction to view a chat record with a specified user, query whether a chat record with the specified user is stored locally;
所述发送模块设置成:在所述聊天记录查询模块未查询到指定用户间的聊天记录时,向所述指定用户的终端设备,即第二终端设备发送同步聊天记录请求;The sending module is configured to: when the chat record query module does not query the chat record between the specified users, send a synchronous chat record request to the terminal device of the specified user, that is, the second terminal device;
所述接收模块设置成:接收所述第二终端设备返回的聊天记录;The receiving module is configured to: receive a chat record returned by the second terminal device;
所述本地存储模块设置成:当所述接收模块接收到所述第二终端设备返回的聊天记录时,保存所述聊天记录;The local storage module is configured to: when the receiving module receives the chat record returned by the second terminal device, save the chat record;
所述显示模块设置成:将本终端设备接收到的所述第二终端设备返回的聊天记录显示给用户。The display module is configured to: display the chat record returned by the second terminal device received by the terminal device to the user.
可选地,该设备还包括解密模块,其中:Optionally, the device further includes a decryption module, wherein:
所述解密模块设置成:在本终端设备接收到所述第二终端设备返回的加密的聊天记录时,进行解密操作;The decryption module is configured to perform a decryption operation when the terminal device receives the encrypted chat record returned by the second terminal device;
所述本地存储模块设置成按照如下方式保存所述聊天记录:保存解密得到的聊天记录。The local storage module is configured to save the chat record as follows: save the decrypted chat record.
可选地,所述同步聊天记录请求中包含所要同步的聊天记录的指定时间段,或者包含所要同步的聊天记录的指定时间段以及发起同步聊天记录请求的用户向指定方用户表明身份的鉴权信息。Optionally, the synchronous chat record request includes a specified time period of the chat record to be synchronized, or a specified time period including the chat record to be synchronized, and the user who initiates the synchronous chat record request indicates the identity of the designated user. information.
可选地,所述接收模块还设置成:接收除本终端设备外的其他终端设备发送的同步聊天记录请求; Optionally, the receiving module is further configured to: receive a synchronous chat record request sent by another terminal device other than the terminal device;
所述聊天记录查询模块还设置成:在所述接收模块接收到其他终端设备发送的同步聊天记录请求时,检索发起所述同步聊天记录请求的用户的聊天记录;The chat record query module is further configured to: when the receiving module receives the synchronous chat record request sent by another terminal device, retrieve a chat record of the user who initiates the synchronous chat record request;
所述发送模块还设置成:所述聊天记录查询模块检索到发起所述同步聊天记录请求的用户的聊天记录时,将所检索到的聊天传输给所述发起所述同步聊天记录请求的用户的终端设备。The sending module is further configured to: when the chat record query module retrieves the chat record of the user who initiates the synchronous chat record request, transmit the retrieved chat to the user who initiates the synchronous chat record request Terminal Equipment.
可选地,该设备还包括鉴权模块,其中:Optionally, the device further includes an authentication module, wherein:
所述鉴权模块设置成:在所述接收模块接收到所述同步聊天记录请求时,对发起所述同步聊天记录请求的用户进行身份鉴权;The authentication module is configured to: when the receiving module receives the synchronous chat record request, perform identity authentication on a user who initiates the synchronous chat record request;
所述聊天记录查询模块设置成按照如下方式检索发起所述同步聊天记录请求的用户的聊天记录:在所述鉴权模块通过身份鉴权后,才在本地检索发起所述同步聊天记录请求的用户的聊天记录。The chat record query module is configured to retrieve a chat record of a user who initiates the synchronous chat record request according to the following manner: after the authentication module passes the identity authentication, the user who initiates the synchronous chat record request is locally retrieved Chat history.
可选地,所述发送模块设置成按照如下方式将所检索到的聊天传输给所述发起所述同步聊天记录请求的用户的终端设备:Optionally, the sending module is configured to transmit the retrieved chat to the terminal device of the user that initiates the synchronous chat record request according to the following manner:
对所检索到的聊天记录按照设定方式加密后传输给所述发起所述同步聊天记录请求的用户的终端设备。The retrieved chat record is encrypted according to a setting manner and then transmitted to the terminal device of the user who initiated the synchronous chat record request.
一种终端设备,包括接收模块、聊天记录查询模块和发送模块,其中:A terminal device includes a receiving module, a chat record query module and a sending module, wherein:
所述接收模块设置成:接收聊天工具中接收到的同步聊天记录请求;The receiving module is configured to: receive a synchronous chat record request received in the chat tool;
所述聊天记录查询模块设置成:在本地检索发起所述同步聊天记录请求的用户的聊天记录;The chat record query module is configured to: locally retrieve a chat record of a user who initiates the synchronous chat record request;
所述发送模块设置成:将所检索到的聊天传输给所述发起所述同步聊天记录请求的用户的终端设备。The sending module is configured to: transmit the retrieved chat to the terminal device of the user who initiates the synchronous chat recording request.
可选地,该设备还包括鉴权模块,其中:Optionally, the device further includes an authentication module, wherein:
鉴权模块设置成:在所述接收模块接收到所述同步聊天记录请求时,对发起所述同步聊天记录请求的用户进行身份鉴权;The authentication module is configured to: when the receiving module receives the synchronous chat record request, perform identity authentication on a user who initiates the synchronous chat record request;
所述聊天记录查询模块设置成:在所述鉴权模块通过身份鉴权后,才在 本地检索发起所述用户的聊天记录。The chat record query module is configured to: after the authentication module passes the identity authentication, A local search initiates a chat record for the user.
可选地,所述发送模块设置成按照如下方式将所检索到的聊天传输给所述发起所述同步聊天记录请求的用户的终端设备:Optionally, the sending module is configured to transmit the retrieved chat to the terminal device of the user that initiates the synchronous chat record request according to the following manner:
对所检索到的聊天记录按照设定方式加密后传输给所述发起所述同步聊天记录请求的用户的终端设备。The retrieved chat record is encrypted according to a setting manner and then transmitted to the terminal device of the user who initiated the synchronous chat record request.
一种计算机程序,包括程序指令,当该程序指令被终端设备执行时,使得该终端设备可执行上述任意的发起查询用户侧即时聊天工具聊天记录同步方法。A computer program, comprising program instructions, when the program instruction is executed by a terminal device, enabling the terminal device to perform any of the above-mentioned methods for initiating querying a user-side instant chat tool chat record synchronization method.
一种载有该计算机程序的载体。A carrier carrying the computer program.
一种计算机程序,包括程序指令,当该程序指令被终端设备执行时,使得该终端设备可执行上述任意的指定用户侧的即时聊天工具聊天记录同步方法。A computer program, comprising program instructions, when the program instructions are executed by a terminal device, enabling the terminal device to perform any of the instant chat tool chat record synchronization methods on the specified user side.
一种载有该计算机程序的载体。A carrier carrying the computer program.
采用本申请技术方案可以解决本地聊天记录丢失且无服务器保存聊天记录的问题。The technical solution of the present application can solve the problem that the local chat record is lost and the server does not save the chat record.
附图概述BRIEF abstract
图1为本发明各模块结构及功能示意图。FIG. 1 is a schematic diagram showing the structure and function of each module of the present invention.
本发明的较佳实施方式Preferred embodiment of the invention
下文将结合附图对本发明技术方案作进一步详细说明。需要说明的是,在不冲突的情况下,本申请的实施例和实施例中的特征可以任意相互组合。 The technical solution of the present invention will be further described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments of the present application may be combined with each other arbitrarily.
实施例1Example 1
本实施例提供一种即时聊天工具聊天记录同步方法,发起方用户在申请同步聊天记录时,首先指定聊天列表里需要恢复记录的好友并记为指定用户,同时向指定用户发送聊天记录同步请求,当指定用户同意此请求后,则将指定用户本地所保存的与发起方的聊天记录回传给发起方。此方案的实现可以解决本地聊天记录丢失且无服务器保存聊天记录的问题。The embodiment provides a method for synchronizing the chat log of the instant chat tool. When the user of the originating party requests to synchronize the chat record, the initiator user first specifies the friend who needs to restore the record in the chat list and records it as the designated user, and simultaneously sends the chat record synchronization request to the designated user. When the specified user agrees to the request, the chat record saved by the specified user and transmitted to the initiator is returned to the initiator. The implementation of this solution can solve the problem that the local chat record is lost and the server does not save the chat record.
可选地,上述方法包括如下操作:Optionally, the above method includes the following operations:
步骤1,发起方用户选定需要查看聊天记录的好友并记之为指定方用户,判断并查询聊天工具在终端本地是否保存与指定方用户的聊天记录;Step 1: The initiator user selects the friend who needs to view the chat record and records it as the designated party user, and determines whether the chat tool saves the chat record with the designated party user locally in the terminal;
步骤2,如若本地没有保存发起方用户与指定方用户之间的聊天记录,发起方用户发送同步聊天记录请求至指定方用户;Step 2: If the chat record between the initiator user and the designated party user is not saved locally, the initiator user sends a synchronous chat record request to the designated party user;
其中,发起方用户以固定格式发送同步聊天记录请求至指定方用户。The initiator user sends the synchronous chat record request to the designated party user in a fixed format.
步骤3,发起方用户接收来自指定方用户的聊天记录,并保存至本地终端存储器,同时将聊天记录按照聊天工具固有格式展开以供发起方用户查看。Step 3: The initiator user receives the chat record from the specified party user and saves it to the local terminal storage, and simultaneously expands the chat record according to the chat tool's native format for the initiator user to view.
其中,如果指定方用户发送的聊天记录是加密的,则需要解密得到聊天记录后进行存储。If the chat record sent by the designated user is encrypted, the chat record needs to be decrypted to be stored.
而上述涉及到的同步聊天记录请求中可以包含所要同步的聊天记录的指定时间段,或者包含所要同步的聊天记录的指定时间段以及发起同步聊天记录请求的用户向指定方用户表明身份的鉴权信息,以便指定用户通过同步聊天记录请求即可进行身份鉴权,无需额外增加鉴权流程。The synchronous chat record request mentioned above may include a specified time period of the chat record to be synchronized, or a specified time period including the chat record to be synchronized, and an authentication of the user who initiates the synchronous chat record request to indicate the identity of the designated user. Information, so that the specified user can authenticate the identity by synchronizing the chat record request without additional authentication process.
另外,上述方法还包括指定方用户的操作,可包括如下各操作。In addition, the above method further includes the operation of the specified party user, and may include the following operations.
指定方用户收到同步聊天记录请求后,可以进行拒绝及接受操作。如果指定方用户接受同步请求操作后,即时聊天工具则在指定用户本地终端存储器内检索与发起方相关的聊天记录,聊天记录包括文字、图片、视频、文件等相关信息;指定方用户终端检索到聊天记录后,对聊天记录传输回发起方用户。可选地,指定方用户收到同步聊天记录请求后,可以进行用户身份验证操作,向发起方用户发送用户鉴权信息,确保同步请求为非非法请求。而在传输聊天记录时,指定方用户可对聊天记录加密后传输,以提高数据传输 的安全性。After the specified party user receives the synchronous chat record request, it can reject and accept the operation. If the designated party user accepts the synchronization request operation, the instant chat tool retrieves the chat record related to the initiator in the specified user local terminal memory, and the chat record includes related information such as text, picture, video, file, etc.; After the chat is recorded, the chat record is transmitted back to the originator user. Optionally, after receiving the synchronous chat record request, the designated party user may perform a user identity verification operation, and send the user authentication information to the initiator user to ensure that the synchronization request is a non-illegal request. When transmitting the chat record, the designated party user can encrypt and transmit the chat record to improve data transmission. Security.
需要说明的是,上述方法主要是从发起方用户侧进行描述的。It should be noted that the above method is mainly described from the initiator user side.
下面本实施例再提供一种即时聊天工具聊天记录同步方法,主要从指定用户侧描述的,其思想与上述方法相同,主要包括如下操作:The following embodiment further provides a method for synchronizing the chat log of the instant chat tool, which is mainly described from the specified user side, and has the same idea as the above method, and mainly includes the following operations:
终端设备接收聊天工具中用户发送的同步聊天记录请求,在本地检索所述用户的聊天记录;Receiving, by the terminal device, a synchronous chat record request sent by the user in the chat tool, and locally searching the chat record of the user;
将所检索到的聊天传输给所述用户。The retrieved chat is transmitted to the user.
其中,终端设备接收同步聊天记录请求后,可以对发起同步聊天记录请求的用户进行身份鉴权,当用户通过身份鉴权后,才在本地检索发起此用户的聊天记录。After receiving the synchronous chat record request, the terminal device may perform identity authentication on the user who initiates the synchronous chat record request. After the user authenticates through the identity, the user initiates the chat record of the user locally.
另外,终端设备将所检索到的聊天传输给所述用户时,可对所检索到的聊天记录按照设定方式加密后传输。In addition, when the terminal device transmits the retrieved chat to the user, the retrieved chat record may be encrypted and transmitted according to a setting manner.
上述方法中,一个用户(可能为发起方用户,也可能为指定方用户),其可以使用不同终端设备,发送给用户的请求/数据会被该用户通过其使用的终端设备接收。In the above method, one user (which may be an initiator user or a designated party user) may use different terminal devices, and the request/data sent to the user is received by the user through the terminal device used by the user.
实施例2Example 2
本实施例提供一种终端设备,可以实现即时聊天工具聊天记录的同步,其主要包括:The embodiment provides a terminal device, which can synchronize the chat log of the instant chat tool, and mainly includes:
用户输入模块100,接收用户发起的查看与指定用户间的聊天记录的指令;The user input module 100 receives an instruction initiated by the user to view a chat record with the specified user;
聊天记录查询模块200,在用户输入模块收到查看与指定用户间的聊天记录的指令时,查询本地是否存储有与指定用户间的聊天记录;The chat record query module 200, when the user input module receives an instruction to view the chat record with the specified user, queries whether the chat record with the specified user is stored locally;
其中,聊天记录查询模块200可查询本地聊天记录中用户指定时间段内信息,指定时间段内信息可包括此时间段内全部聊天记录,或文字记录,或视频图像记录,或文件记录等; The chat record query module 200 can query information in a specified time period of the local chat record, and the information in the specified time period can include all chat records, or text records, or video image records, or file records in the time period;
发送模块300,在聊天记录查询模块未查询到指定用户间的聊天记录时,向指定用户发送同步聊天记录请求;The sending module 300 sends a synchronous chat record request to the designated user when the chat record query module does not query the chat record between the specified users;
接收模块400,接收指定用户返回的聊天记录;The receiving module 400 receives the chat record returned by the specified user;
其中,发送的同步聊天记录请求中可以包含所要同步的聊天记录的指定时间段,也可包含发起方用户向指定方用户表明身份的鉴权信息;The sent synchronization chat record request may include a specified time period of the chat record to be synchronized, and may also include the authentication information that the initiator user indicates the identity to the designated user.
本地存储模块500,当终端设备接收到指定用户返回的聊天记录时,保存聊天记录;The local storage module 500 saves the chat record when the terminal device receives the chat record returned by the specified user.
显示模块600,将本终端设备接收到的指定用户返回的聊天记录显示给用户。The display module 600 displays the chat record returned by the specified user received by the terminal device to the user.
上述设备还可以包括:解密模块700,在本终端设备接收到所述指定用户返回的加密的聊天记录时,进行解密操作;此时,本地存储模块500,保存解密得到的聊天记录。The device may further include: a decryption module 700, when the terminal device receives the encrypted chat record returned by the specified user, performs a decryption operation; at this time, the local storage module 500 saves the decrypted chat record.
需要说明的是,上述终端设备,除了作为发起方所使用的终端设备外,也可能作为指定用户所使用的终端设备,因此,接收模块400还设置成:接收其他终端设备发送的同步聊天记录请求。这样,上述聊天记录查询模块,在接收到其他终端设备发送的同步聊天记录请求时,检索发起同步聊天记录请求的用户的聊天记录;而发送模块300,则将所检索到的聊天传输给所述发起同步聊天记录请求的用户。可选地,发送模块300,将所检索到的聊天传输给发起同步聊天记录请求的用户时,对所检索到的聊天记录按照设定方式加密后再进行传输。It should be noted that, in addition to the terminal device used by the initiator, the terminal device may also be used as a terminal device used by the designated user. Therefore, the receiving module 400 is further configured to: receive a synchronous chat record request sent by another terminal device. . In this way, the chat record query module retrieves the chat record of the user who initiates the synchronous chat record request when receiving the synchronous chat record request sent by the other terminal device, and the sending module 300 transmits the retrieved chat to the The user who initiated the sync chat request. Optionally, the sending module 300, when transmitting the retrieved chat to the user who initiates the synchronous chat record request, encrypts the retrieved chat record according to a setting manner and then transmits the generated chat record.
另外,优化的终端设备还包括鉴权模块800,此时终端设备结构如图1所示。鉴权模块800在接收模块接收到所述同步聊天记录请求时,对发起同步聊天记录请求的用户进行身份鉴权;此时,聊天记录查询模块200,在鉴权模块800通过身份鉴权后,才在本地检索发起同步聊天记录请求的用户的聊天记录。In addition, the optimized terminal device further includes an authentication module 800, and the terminal device structure is as shown in FIG. 1 . When the receiving module receives the synchronous chat record request, the authentication module 800 performs identity authentication on the user who initiates the synchronous chat record request. At this time, the chat record query module 200, after the authentication module 800 passes the identity authentication, The chat history of the user who initiated the sync chat request is retrieved locally.
本实施例再提供一种终端设备,可单独实现指定用户侧的操作,其主要包括: The embodiment further provides a terminal device, which can implement the operation of the specified user side separately, and the method mainly includes:
接收模块,接收聊天工具中用户发送的同步聊天记录请求;The receiving module receives the synchronous chat record request sent by the user in the chat tool;
聊天记录查询模块,在本地检索发起所述同步聊天记录请求的用户的聊天记录;a chat record query module for locally searching a chat record of a user who initiates the synchronous chat record request;
发送模块,将所检索到的聊天传输给用户。The sending module transmits the retrieved chat to the user.
可选地,上述设备可以包括鉴权模块,在接收模块接收到同步聊天记录请求时,对发起同步聊天记录请求的用户进行身份鉴权;此时,聊天记录查询模块,在鉴权模块通过身份鉴权后,才在本地检索发起所述用户的聊天记录。Optionally, the device may include an authentication module, and when the receiving module receives the synchronous chat record request, perform identity authentication on the user who initiates the synchronous chat record request; at this time, the chat record query module passes the identity in the authentication module. After the authentication, the chat record of the user is initiated locally.
而发送模块将所检索到的聊天传输给用户时,可对检索到的聊天记录按照设定方式加密后传输。When the sending module transmits the retrieved chat to the user, the retrieved chat record can be encrypted and transmitted according to the setting mode.
本发明实施例公开了一种计算机程序,包括程序指令,当该程序指令被终端设备执行时,使得该终端设备可执行上述任意的发起方用户侧的聊天工具聊天记录同步方法。本发明实施例公开了一种载有上述计算机程序的载体。The embodiment of the invention discloses a computer program, which comprises program instructions. When the program instruction is executed by the terminal device, the terminal device can perform the chat method of the chat tool chat synchronization on the user side of any of the initiators. The embodiment of the invention discloses a carrier carrying the above computer program.
本发明实施例公开了一种计算机程序,包括程序指令,当该程序指令被终端设备执行时,使得该终端设备可执行上述任意的指定用户侧的即时聊天工具聊天记录同步方法。本发明实施例公开了一种载有该计算机程序的载体。The embodiment of the invention discloses a computer program, which comprises program instructions. When the program instruction is executed by the terminal device, the terminal device can perform any of the above-mentioned user-side instant chat tool chat record synchronization methods. The embodiment of the invention discloses a carrier carrying the computer program.
下面结合具体应用对上述设备做详细的描述。The above equipment will be described in detail below in conjunction with specific applications.
用户需要进行聊天记录查看时,通过用户输入模块进行好友选择,确定查看与确定好友的聊天记录,同时还需确定聊天记录的起止时间范围。如用户A需要查看与好友B的聊天记录,需要完成在A用户终端的如下操作,首先在A用户终端的好友列表中选择好友B,然后选择查看某时间段的聊天记录,如需要查询2014年2月至2014年7月的记录,则继续输入201402-201407,此后聊天工具通过聊天记录查询模块在本地存储模块进行查询,查询与用户输入信息相匹配的聊天记录,匹配成功则直接将与好友B在此时间段内的聊天记录按时间顺序回显,聊天记录查询模块没有在本地存储模块中匹配到信息,则将用户输入的信息按照预设格式传送至发送模块用于发送同步聊天记 录请求。预设格式可根据要求进行设计。When the user needs to perform chat record viewing, the user input module performs friend selection, determines the chat history of viewing and determining the friend, and also determines the start and end time range of the chat record. If user A needs to view the chat record with friend B, the following operations need to be completed on the A user terminal. First, select friend B in the friend list of the A user terminal, and then select to view the chat record of a certain time period. From February to July 2014, the record will continue to be entered in 201402-201407. After that, the chat tool will query the local storage module through the chat record query module to query the chat record that matches the user input information. If the match is successful, it will directly be associated with the friend. B. The chat record in this time period is displayed in chronological order. If the chat record query module does not match the information in the local storage module, the information input by the user is transmitted to the sending module according to the preset format for sending the synchronous chat message. Record the request. The preset format can be designed as required.
本实施例按照如下格式进行编码传送:This embodiment performs code transmission according to the following format:
##MESSAGERECORD##MESSAGERECORD
-USER=A-SEARCH-USER=B-TIME-FROM=201402-TO=201407##;-USER=A-SEARCH-USER=B-TIME-FROM=201402-TO=201407##;
上述编码信息在传输前可同时附带A用户的鉴权信息,鉴权信息可为A用户和B用户共知的私密信息,本实施例中则向B表明自己的身份,A用户发送的鉴权信息为A用户的真实姓名,发送模块将上述编码信息通过网络发送到指定用户B进行聊天记录同步请求。The above-mentioned encoded information may be accompanied by the authentication information of the A user before the transmission, and the authentication information may be private information that is known to both the A user and the B user. In this embodiment, the identity of the user is indicated to B, and the authentication sent by the A user. The information is the real name of the A user, and the sending module sends the above encoded information to the designated user B through the network to perform a chat record synchronization request.
用户B接收来自用户A的信息请求后,完成在B用户终端的如下操作,接收模块接收来自用户A的聊天记录请求并显示给用户B,用户B可以选择拒绝请求、鉴权请求或者接收请求。After receiving the information request from the user A, the user B completes the following operation at the B user terminal, and the receiving module receives the chat record request from the user A and displays it to the user B, and the user B can select the rejection request, the authentication request, or the receiving request.
拒绝请求则不进行聊天记录同步,鉴权请求则再次通过B终端的发送模块向A用户发送鉴权信息,鉴权信息为A用户和B用户共知的私密信息,如B用户需要确定是否为A用户本人,本实施例中则向A用户发送的鉴权信息为——A用户的出生年月日。待A用户回复正确的出生年月并经B用户确认后,B用户终端将A用户发送的编码信息进行解码,将解码后的信息传送至聊天记录查询模块,经聊天记录查询模块在本地存储模块进行聊天及匹配,匹配成功后将聊天记录读取并编码,同时将编码后的聊天记录发送模块发出,经由网络传送给用户A,本实施例编码的聊天记录格式如下:If the request is rejected, the chat record is not synchronized. The authentication request is sent to the A user through the sending module of the B terminal. The authentication information is private information that is known to both the A user and the B user. For example, the B user needs to determine whether it is A user himself, in this embodiment, the authentication information sent to the A user is the birth date of the A user. After the A user replies to the correct date of birth and confirms by the B user, the B user terminal decodes the encoded information sent by the A user, and transmits the decoded information to the chat record query module, and the chat record query module is in the local storage module. After the matching is successful, the chat record is read and encoded, and the encoded chat record sending module is sent out and transmitted to the user A via the network. The chat record format encoded in this embodiment is as follows:
##SYNMESSAGE-##SYNMESSAGE-
USER=A-SEARCH-USER=B-TIME-FROM=201402-TO=201407++FILE##;USER=A-SEARCH-USER=B-TIME-FROM=201402-TO=201407++FILE##;
其中FILE为具体聊天记录。Where FILE is the specific chat record.
A用户接收到B用户发来的编码聊天记录,完成在A用户终端的如下操作,将接收的解码聊天记录进行解码,解析出完整的聊天记录FILE文件,将FILE文件保存在本地的存储模块,同时将FILE文件按照聊天工具的格式按时间进行展开,提供A用户查看。The A user receives the encoded chat record sent by the B user, completes the following operation on the A user terminal, decodes the received decoded chat record, parses out the complete chat record FILE file, and saves the FILE file in the local storage module. At the same time, the FILE file is expanded according to the format of the chat tool, and the A user is viewed.
用户需要进行聊天记录查看时,通过用户输入模块进行好友选择,确定 查看与确定好友的聊天记录,同时还需确定聊天记录的起止时间范围。如用户A需要查看与好友B的聊天记录,需要完成在A用户终端的如下操作,首先在A用户终端的好友列表中选择好友B,然后选择查看某时间段的聊天记录,如需要查询2014年2月至2014年7月的记录,用户首先在本地进行查询聊天记录,如果没有与好友B的聊天记录,则用户A编辑短信息向用户B发送请求信息,如短信内容可为“#@@#请求同步201402至201407之间的聊天记录#@@#”,将编辑完整的带特殊标识字符的信息向用户B发出,上述信息在传输前可同时附带A用户的鉴权信息,鉴权信息可为A用户和B用户共知的私密信息,本实施例中则向B表明自己的身份,A用户发送的鉴权信息为A用户的生日,则短息进一步优化为“#@@#请求同步201402至201407之间的聊天记录+生日19850505#@@#”。When the user needs to perform chat record viewing, the user input module is used to select the friend and determine View and confirm the chat history of your friends, and also determine the start and end time range of the chat history. If user A needs to view the chat record with friend B, the following operations need to be completed on the A user terminal. First, select friend B in the friend list of the A user terminal, and then select to view the chat record of a certain time period. From February to July 2014, the user first queries the chat history locally. If there is no chat record with the friend B, the user A edits the short message to send the request information to the user B, for example, the message content can be “#@@ #Request to synchronize the chat record #@@#" between 201402 and 201407, and send the complete information with special identification characters to user B. The above information can be accompanied by the authentication information of the A user before the transmission, and the authentication information. The private information that can be known to both the A user and the B user. In this embodiment, the identity is indicated to B. The authentication information sent by the A user is the birthday of the A user, and the short message is further optimized to “#@@# request. Synchronize chat history between 201402 and 201407 + birthday 19850505#@@#".
用户B接收来自用户A的信息请求后,完成在B用户终端的如下操作,接收模块对接收来自用户A的短信进行查询辨识,读取到包含字段“#@@#请求同步”的短信时向用户B提示是否同步聊天记录,用户B可以选择拒绝请求、鉴权请求或者接收请求。After receiving the information request from the user A, the user B completes the following operation on the B user terminal, and the receiving module performs the query identification on the short message received from the user A, and reads the short message including the field “#@@#Request synchronization”. User B prompts whether to synchronize the chat record, and User B can choose to reject the request, authenticate the request, or receive the request.
拒绝请求则不进行聊天记录同步,鉴权请求则再次通过B终端向A用户发送鉴权的短信息,鉴权内容为A用户和B用户共知的私密信息,如B用户需要确定是否为A用户本人,本实施例中则向A用户发送的鉴权信息为——A用户的出生年月日,并已短信息的方式发出。待A用户回复正确的出生年月并经B用户确认后,B用户终端将A用户发送的编码信息进行解码,将解码后的信息传送至聊天记录查询模块,经聊天记录查询模块在本地存储模块进行聊天及匹配,匹配成功后将聊天记录读取并编码,同时将编码后的聊天记录通过发送模块发出,经由网络传送给用户A,本实施例编码的聊天记录格式可为:##SYNMESSAGE-USER=A-SEARCH-USER=B-TIME-FROM=201402-TO=201407++FILE##,其中FILE为具体聊天记录。If the request is rejected, the chat record is not synchronized. The authentication request sends the short message of the authentication to the A user through the B terminal. The authentication content is the private information shared by the A user and the B user. For example, the B user needs to determine whether it is A. The user himself, in this embodiment, sends the authentication information to the A user as the birth date of the A user, and sends out the short message. After the A user replies to the correct date of birth and confirms by the B user, the B user terminal decodes the encoded information sent by the A user, and transmits the decoded information to the chat record query module, and the chat record query module is in the local storage module. After the matching is successful, the chat record is read and encoded, and the encoded chat record is sent through the sending module and transmitted to the user A via the network. The chat record format encoded in this embodiment may be: ##SYNMESSAGE- USER=A-SEARCH-USER=B-TIME-FROM=201402-TO=201407++FILE##, where FILE is the specific chat record.
A用户接收到B用户发来的编码聊天记录,完成在A用户终端的如下操作,将接收的解码聊天记录进行解码,解析出完整的聊天记录FILE文件,将FILE文件保存在本地的存储模块,同时将FILE文件按照聊天工具的格式按 时间进行展开,提供A用户查看。The A user receives the encoded chat record sent by the B user, completes the following operation on the A user terminal, decodes the received decoded chat record, parses out the complete chat record FILE file, and saves the FILE file in the local storage module. At the same time, press the FILE file according to the format of the chat tool. Time to expand, provide A user view.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本申请不限制于任何特定形式的硬件和软件的结合。One of ordinary skill in the art will appreciate that all or a portion of the steps described above can be accomplished by a program that instructs the associated hardware, such as a read-only memory, a magnetic or optical disk, and the like. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the foregoing embodiment may be implemented in the form of hardware or in the form of a software function module. This application is not limited to any specific combination of hardware and software.
以上所述,仅为本发明的较佳实例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above is only a preferred embodiment of the present invention and is not intended to limit the scope of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
采用本申请技术方案可以解决本地聊天记录丢失且无服务器保存聊天记录的问题。因此本发明具有很强的工业实用性。 The technical solution of the present application can solve the problem that the local chat record is lost and the server does not save the chat record. Therefore, the present invention has strong industrial applicability.

Claims (15)

  1. 一种即时聊天工具聊天记录同步方法,包括:A method for synchronizing a chat log of an instant chat tool, comprising:
    第一终端设备接收查看与指定用户间的聊天记录的指令,若所述终端设备本地未存储与指定用户间的聊天记录,则所述第一终端设备向所述指定用户的终端设备,即第二终端设备发送同步聊天记录请求;The first terminal device receives an instruction to view a chat record with the specified user. If the terminal device does not store the chat record with the specified user, the first terminal device sends the terminal device to the designated user, that is, the first terminal device The second terminal device sends a synchronous chat record request;
    当所述第一终端设备接收到所述第二终端设备返回的聊天记录,则在本地保存所述聊天记录,并显示所述聊天记录。When the first terminal device receives the chat record returned by the second terminal device, the chat record is saved locally, and the chat record is displayed.
  2. 如权利要求1所述的即时聊天工具聊天记录同步方法,其中,所述第一终端设备接收到所述第二终端设备返回的聊天记录,则在本地保存所述聊天记录的步骤包括:The method for synchronizing chat chats of the instant chat tool according to claim 1, wherein the step of storing the chat record locally by the first terminal device after receiving the chat record returned by the second terminal device comprises:
    所述第一终端设备接收到所述第二终端设备返回的加密的聊天记录,则进行解密操作后,在本地保存解密得到的聊天记录。After receiving the encrypted chat record returned by the second terminal device, the first terminal device saves the decrypted chat record locally after performing the decryption operation.
  3. 如权利要求1或2所述的即时聊天工具聊天记录同步方法,其中,所述同步聊天记录请求中包含所要同步的聊天记录的指定时间段,或者包含所要同步的聊天记录的指定时间段以及发起同步聊天记录请求的用户向指定方用户表明身份的鉴权信息。The instant chat tool chat record synchronization method according to claim 1 or 2, wherein the synchronous chat record request includes a specified time period of the chat record to be synchronized, or a specified time period including the chat record to be synchronized, and the initiation The user who synchronizes the chat record request indicates the identity authentication information to the designated party user.
  4. 如权利要求3所述的即时聊天工具聊天记录同步方法,该方法还包括:The instant messaging tool chat record synchronization method of claim 3, the method further comprising:
    所述第二终端设备接收所述同步聊天记录请求,在本地检索发起所述同步聊天记录请求的用户的聊天记录;Receiving, by the second terminal device, the synchronous chat record request, locally searching for a chat record of a user who initiates the synchronous chat record request;
    所述第二终端设备将所检索到的聊天传输给所述第一终端设备。The second terminal device transmits the retrieved chat to the first terminal device.
  5. 如权利要求4所述的即时聊天工具聊天记录同步方法,其中,所述第二终端设备接收所述同步聊天记录请求后,对发起所述同步聊天记录请求的用户进行身份鉴权,当通过身份鉴权后,才在本地检索发起所述同步聊天记录请求的用户的聊天记录。The instant chat tool chat record synchronization method according to claim 4, wherein after receiving the synchronous chat record request, the second terminal device performs identity authentication on the user who initiates the synchronous chat record request, and passes the identity After the authentication, the chat record of the user who initiated the synchronous chat record request is retrieved locally.
  6. 如权利要求4所述的即时聊天工具聊天记录同步方法,其中,所述第二终端设备将所检索到的聊天传输给所述第一终端设备的步骤包括: The instant messaging tool chat record synchronization method of claim 4, wherein the step of the second terminal device transmitting the retrieved chat to the first terminal device comprises:
    所述第二终端设备对所检索到的聊天记录按照设定方式加密后传输给所述第一终端设备。The second terminal device encrypts the retrieved chat record according to a setting manner and transmits the chat record to the first terminal device.
  7. 一种即时聊天工具聊天记录同步方法,包括:A method for synchronizing a chat log of an instant chat tool, comprising:
    第二终端设备接收聊天工具接收到的同步聊天记录请求,在本地检索所述用户的聊天记录;Receiving, by the second terminal device, the synchronous chat record request received by the chat tool, and locally searching the chat record of the user;
    所述第二终端设备将所检索到的聊天传输给第一终端设备。The second terminal device transmits the retrieved chat to the first terminal device.
  8. 如权利要求7所述的即时聊天工具聊天记录同步方法,其中,所述第二终端设备接收所述同步聊天记录请求后,对发起所述同步聊天记录请求的用户进行身份鉴权,当通过身份鉴权后,才在本地检索所述用户的聊天记录。The instant chat tool chat record synchronization method according to claim 7, wherein after receiving the synchronous chat record request, the second terminal device performs identity authentication on the user who initiates the synchronous chat record request, and passes the identity. After the authentication, the chat record of the user is retrieved locally.
  9. 如权利要求7所述的即时聊天工具聊天记录同步方法,其中,所述第二终端设备将所检索到的聊天传输给所述第一终端设备的步骤包括:The method of claim 7, wherein the step of transmitting, by the second terminal device, the retrieved chat to the first terminal device comprises:
    所述第二终端设备对所检索到的聊天记录按照设定方式加密后传输给所述第一终端设备。The second terminal device encrypts the retrieved chat record according to a setting manner and transmits the chat record to the first terminal device.
  10. 一种终端设备,包括用户输入模块、聊天记录查询模块、发送模块、接收模块、本地存储模块和显示模块,其中:A terminal device includes a user input module, a chat record query module, a sending module, a receiving module, a local storage module, and a display module, wherein:
    所述用户输入模块设置成:接收查看与指定用户间的聊天记录的指令;The user input module is configured to: receive an instruction to view a chat record with a specified user;
    所述聊天记录查询模块设置成:在所述用户输入模块收到查看与指定用户间的聊天记录的指令时,查询本地是否存储有与指定用户间的聊天记录;The chat record query module is configured to: when the user input module receives an instruction to view a chat record with a specified user, query whether a chat record with the specified user is stored locally;
    所述发送模块设置成:在所述聊天记录查询模块未查询到指定用户间的聊天记录时,向所述指定用户的终端设备,即第二终端设备发送同步聊天记录请求;The sending module is configured to: when the chat record query module does not query the chat record between the specified users, send a synchronous chat record request to the terminal device of the specified user, that is, the second terminal device;
    所述接收模块设置成:接收所述第二终端设备返回的聊天记录;The receiving module is configured to: receive a chat record returned by the second terminal device;
    所述本地存储模块设置成:当所述接收模块接收到所述第二终端设备返回的聊天记录时,保存所述聊天记录;The local storage module is configured to: when the receiving module receives the chat record returned by the second terminal device, save the chat record;
    所述显示模块设置成:将本终端设备接收到的所述第二终端设备返回的聊天记录显示给用户。The display module is configured to: display the chat record returned by the second terminal device received by the terminal device to the user.
  11. 如权利要求10所述的设备,该设备还包括解密模块,其中: The device of claim 10, further comprising a decryption module, wherein:
    所述解密模块设置成:在本终端设备接收到所述第二终端设备返回的加密的聊天记录时,进行解密操作;The decryption module is configured to perform a decryption operation when the terminal device receives the encrypted chat record returned by the second terminal device;
    所述本地存储模块设置成按照如下方式保存所述聊天记录:保存解密得到的聊天记录。The local storage module is configured to save the chat record as follows: save the decrypted chat record.
  12. 如权利要求7或8所述的设备,其中,The apparatus according to claim 7 or 8, wherein
    所述同步聊天记录请求中包含所要同步的聊天记录的指定时间段,或者包含所要同步的聊天记录的指定时间段以及发起同步聊天记录请求的用户向指定方用户表明身份的鉴权信息。The synchronous chat record request includes a specified time period of the chat record to be synchronized, or a specified time period including the chat record to be synchronized, and authentication information indicating that the user who initiates the synchronous chat record request indicates the identity to the designated user.
  13. 如权利要求12所述的设备,其中:The device of claim 12 wherein:
    所述接收模块还设置成:接收除本终端设备外的其他终端设备发送的同步聊天记录请求;The receiving module is further configured to: receive a synchronous chat record request sent by another terminal device other than the terminal device;
    所述聊天记录查询模块还设置成:在所述接收模块接收到其他终端设备发送的同步聊天记录请求时,检索发起所述同步聊天记录请求的用户的聊天记录;The chat record query module is further configured to: when the receiving module receives the synchronous chat record request sent by another terminal device, retrieve a chat record of the user who initiates the synchronous chat record request;
    所述发送模块还设置成:所述聊天记录查询模块检索到发起所述同步聊天记录请求的用户的聊天记录时,将所检索到的聊天传输给所述发起所述同步聊天记录请求的用户的终端设备。The sending module is further configured to: when the chat record query module retrieves the chat record of the user who initiates the synchronous chat record request, transmit the retrieved chat to the user who initiates the synchronous chat record request Terminal Equipment.
  14. 如权利要求13所述的设备,该设备还包括鉴权模块,其中:The device of claim 13 further comprising an authentication module, wherein:
    所述鉴权模块设置成:在所述接收模块接收到所述同步聊天记录请求时,对发起所述同步聊天记录请求的用户进行身份鉴权;The authentication module is configured to: when the receiving module receives the synchronous chat record request, perform identity authentication on a user who initiates the synchronous chat record request;
    所述聊天记录查询模块设置成按照如下方式检索发起所述同步聊天记录请求的用户的聊天记录:在所述鉴权模块通过身份鉴权后,才在本地检索发起所述同步聊天记录请求的用户的聊天记录。The chat record query module is configured to retrieve a chat record of a user who initiates the synchronous chat record request according to the following manner: after the authentication module passes the identity authentication, the user who initiates the synchronous chat record request is locally retrieved Chat history.
  15. 一种终端设备,包括接收模块、聊天记录查询模块和发送模块,其中:A terminal device includes a receiving module, a chat record query module and a sending module, wherein:
    所述接收模块设置成:接收聊天工具中接收到的同步聊天记录请求;The receiving module is configured to: receive a synchronous chat record request received in the chat tool;
    所述聊天记录查询模块设置成:在本地检索发起所述同步聊天记录请求 的用户的聊天记录;The chat record query module is configured to: initiate a synchronous chat record request by locally searching User's chat history;
    所述发送模块设置成:将所检索到的聊天传输给所述发起所述同步聊天记录请求的用户的终端设备。 The sending module is configured to: transmit the retrieved chat to the terminal device of the user who initiates the synchronous chat recording request.
PCT/CN2014/091686 2014-09-18 2014-11-19 Terminal device and method for synchronizing chat history of instant messaging WO2015131557A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410480280.0A CN105429846B (en) 2014-09-18 2014-09-18 Instant chat tool chat record synchronization method and terminal equipment
CN201410480280.0 2014-09-18

Publications (1)

Publication Number Publication Date
WO2015131557A1 true WO2015131557A1 (en) 2015-09-11

Family

ID=54054439

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/091686 WO2015131557A1 (en) 2014-09-18 2014-11-19 Terminal device and method for synchronizing chat history of instant messaging

Country Status (2)

Country Link
CN (1) CN105429846B (en)
WO (1) WO2015131557A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200293583A1 (en) * 2017-11-15 2020-09-17 Huawei Technologies Co., Ltd. Information search method, terminal, network device, and system

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106230703A (en) * 2016-08-30 2016-12-14 腾讯科技(深圳)有限公司 The process of chat record and acquisition methods and device
CN108090079B (en) * 2016-11-22 2021-03-02 阿里巴巴集团控股有限公司 Chat record processing method and device of instant chat tool
CN106778353B (en) * 2017-01-18 2020-04-14 厦门黑镜科技有限公司 Method and apparatus for saving messages
CN106713127B (en) * 2017-02-20 2021-03-09 北京小米移动软件有限公司 Method and device for acquiring and processing instant chat records
CN110278204B (en) * 2019-06-18 2022-05-17 深圳市靠谱网络科技有限公司 User privacy data storage method and device in social application
CN114500445A (en) * 2022-01-04 2022-05-13 维沃移动通信有限公司 Communication record acquisition method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159705A (en) * 2006-10-03 2008-04-09 国际商业机器公司 Method and apparatus for providing chat histories to invitees
US20090138520A1 (en) * 2007-11-16 2009-05-28 International Business Machines Corporation Maintaining and Replicating Chat Histories
CN102655481A (en) * 2011-03-04 2012-09-05 腾讯科技(深圳)有限公司 Webpape-based instant messaging chat content looking-up method and system
CN103684980A (en) * 2012-09-17 2014-03-26 阿里巴巴集团控股有限公司 Method and system for synchronizing chatting records in instant chat tool

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103118048A (en) * 2011-11-17 2013-05-22 腾讯科技(深圳)有限公司 Data synchronization method, server and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159705A (en) * 2006-10-03 2008-04-09 国际商业机器公司 Method and apparatus for providing chat histories to invitees
US20090138520A1 (en) * 2007-11-16 2009-05-28 International Business Machines Corporation Maintaining and Replicating Chat Histories
CN102655481A (en) * 2011-03-04 2012-09-05 腾讯科技(深圳)有限公司 Webpape-based instant messaging chat content looking-up method and system
CN103684980A (en) * 2012-09-17 2014-03-26 阿里巴巴集团控股有限公司 Method and system for synchronizing chatting records in instant chat tool

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200293583A1 (en) * 2017-11-15 2020-09-17 Huawei Technologies Co., Ltd. Information search method, terminal, network device, and system
EP3687118A4 (en) * 2017-11-15 2020-09-30 Huawei Technologies Co., Ltd. Information search method, terminal, network device, and system
US11582179B2 (en) 2017-11-15 2023-02-14 Huawei Technologies Co., Ltd. Information search method, terminal, network device, and system

Also Published As

Publication number Publication date
CN105429846B (en) 2020-03-31
CN105429846A (en) 2016-03-23

Similar Documents

Publication Publication Date Title
WO2015131557A1 (en) Terminal device and method for synchronizing chat history of instant messaging
US11362811B2 (en) Secure telecommunications
US9923877B2 (en) External indexing and search for a secure cloud collaboration system
US10084775B1 (en) Time-varying representations of user credentials
US10650119B2 (en) Multimedia data processing method, apparatus, system, and storage medium
US20130110946A1 (en) Ad hoc group chat using a social networking service
KR20200124695A (en) Methods and systems for video contracting
WO2018072753A1 (en) Seamless handover method and apparatus based on web real-time communication session
WO2017206524A1 (en) Electronic device control method, terminal and control system
CN108768920B (en) Recorded broadcast data processing method and device
US20240169001A1 (en) System and method of correlating multiple data points to create a new single data point
CN104113556A (en) Network logon authentication method and system, mobile terminal and application server
US20180113717A1 (en) Method for processing innovation-creativity data information, user equipment and cloud server
CN101753479B (en) Real-time communication system, method and related device
US11303630B2 (en) Method for opening a secure session on a computer terminal
US20200314090A1 (en) System for securely sharing content over a network using persistent individual servers
KR20160123014A (en) Mobile electric contract system and method using voices
JP6462866B2 (en) Online personal record management system through network and personal online record management method using the same
JP4985782B2 (en) Authentication information input support device, authentication information input support system, authentication information input support method, and program
US20090293002A1 (en) Method for generating a set user identifiers associated with user introduction information, method for accessing this information, associated server and terminal
CN113766031A (en) Method and device for storing note resources and related equipment
JP6344731B1 (en) Content evaluation system
US20230254291A1 (en) Client-side encryption of content for virtual meetings
TWI712307B (en) Methods for encrypting and decrypting the group message and transporting the encrypted group message
US20240106771A1 (en) Instant intelligent communication system for strangers

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14884605

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14884605

Country of ref document: EP

Kind code of ref document: A1