WO2018137207A1 - 一种消息记录合并显示方法及终端设备 - Google Patents

一种消息记录合并显示方法及终端设备 Download PDF

Info

Publication number
WO2018137207A1
WO2018137207A1 PCT/CN2017/072682 CN2017072682W WO2018137207A1 WO 2018137207 A1 WO2018137207 A1 WO 2018137207A1 CN 2017072682 W CN2017072682 W CN 2017072682W WO 2018137207 A1 WO2018137207 A1 WO 2018137207A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
terminal device
time
display
record
Prior art date
Application number
PCT/CN2017/072682
Other languages
English (en)
French (fr)
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 华为技术有限公司
Priority to CN201780003467.3A priority Critical patent/CN108235803B/zh
Priority to BR112019015131-1A priority patent/BR112019015131A2/pt
Priority to PCT/CN2017/072682 priority patent/WO2018137207A1/zh
Priority to JP2019540069A priority patent/JP6931706B2/ja
Priority to AU2017395968A priority patent/AU2017395968B2/en
Priority to US16/480,971 priority patent/US11057329B2/en
Priority to EP17894045.8A priority patent/EP3567811A4/en
Publication of WO2018137207A1 publication Critical patent/WO2018137207A1/zh

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/21Monitoring or handling of messages
    • H04L51/216Handling conversation history, e.g. grouping of messages in sessions or threads
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/904Browsing; Visualisation therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/06Arrangements for sorting, selecting, merging, or comparing data on individual record carriers
    • G06F7/08Sorting, i.e. grouping record carriers in numerical or other ordered sequence according to the classification of at least some of the information they carry
    • 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]

Definitions

  • the embodiments of the present invention relate to the field of communications, and in particular, to a message record merge display method and a terminal device.
  • IM Instant Messaging
  • WeChat and Fetion users can install IM applications on mobile devices, tablet devices (Pad) and other terminal devices, and use the installed IM applications to chat.
  • the terminal device saves the message content of the message generated during the chat in the message record of the terminal device, and also saves the display time of the message in the message record.
  • the display time of the message is specifically: the message is a message that the terminal device needs to send, and the display time is the local time of the terminal device; the message is a message received by the terminal device, and the display time is according to the server sending the message.
  • terminals such as Pads
  • users are increasingly using the same account to chat on different terminal devices.
  • the message records generated by the user during the chat are scattered and stored in different terminal devices. If the user needs to combine the message records on different terminal devices, the message records of different terminal devices are usually combined and displayed according to the display time of the messages saved in the message records of the terminal device.
  • the display time of the message is determined by the local time of the terminal device or the time zone in which the terminal device is located. If the user needs to combine the message records of different terminal devices, if the local time of the terminal device that needs to merge the message records is inconsistent, or the time zone of the terminal device that needs to merge the message records is inconsistent, the merged message record cannot be obtained. Sorting correctly according to the order in which messages are sent and received results in a messy message record.
  • the embodiment of the invention provides a message record merge display method and a terminal device, which solves the problem that the display of the merged message records is confusing when the message records of different terminal devices are combined.
  • the embodiment of the present invention provides the following technical solutions:
  • a first aspect of the embodiments of the present invention provides a message record merge display method, including:
  • the first terminal device acquires a message record of the first terminal device, and acquires a message record of the second terminal device, where the message record of the first terminal device includes: a message content of the first message and a causal time of the first message, and the second terminal device
  • the message record includes: the message content of the second message and the causal time of the second message, and according to the causal time of the first message and the causal time of the second message, the message content of the first message and the message content of the second message are performed. Sorting, and displaying the message content of the first message and the message content of the second message according to the sorting.
  • the first terminal device performs the message content of the first message and the message content of the second message according to the causal time of the acquired first message and the causal time of the second message. Sorting, and displaying the message content of the first message and the message content of the second message according to the sorting.
  • the display time is affected by factors such as the local time of the terminal device or the time zone of the terminal device, and the resulting message records cannot be sorted and displayed correctly according to the order in which the messages are sent and received.
  • the causal time of the first message is the coordinated world time when the first message is transmitted
  • the causal time of the second message is the coordinated world time when the second message is transmitted.
  • the first message is a message that is sent by the first terminal device
  • the message record merge display method may further include: the first terminal device records the first The causal time of the message, the causal time of the first message is determined based on the initial time, the first duration, and the second duration.
  • the initial time is the coordinated world when the first terminal device logs in to the IM application.
  • the initial time may be that the server sends the login response to notify the first terminal device after receiving the login request sent by the first terminal device.
  • the first duration is the duration from the start time to the time when the login IM application succeeds
  • the start time is the time when the first terminal device is powered on
  • the second duration is the first terminal device from the start time to the detection.
  • the duration until the first message is sent.
  • the first message is a message that is sent by the first terminal device
  • the message record merge display method may further include: the first terminal device to the server Sending a first message, and receiving a causal time of the first message sent by the server, the causal time of the first message is a coordinated world time when the server receives the first message.
  • the first message is a message received by the first terminal device
  • the message record merge display method may further include: the first terminal device receiving the server The causal time of the first message sent, the causal time of the first message is the coordinated world time when the server sends the first message to the first terminal device.
  • the message record of the first terminal device further includes a display time of the first message, in order to ensure that the display time of the merged message record is increased, and
  • the message record merge display method provided by the embodiment of the present invention may further include: the first terminal device acquires the display time of the third message, and determines the display time and the third message of the first message. When the difference of the display time is greater than the preset threshold, the display time of the first message is displayed.
  • the third message is a message displayed before the first message and displayed with the display time.
  • the display time of the third message is included in the message record of the first terminal device or included in the message record of the second terminal device.
  • the message record of the second terminal device further includes a display time of the second message, in order to ensure that the display time of the merged message record is increased
  • the message record merge display method provided by the embodiment of the present invention may further include: acquiring, by the first terminal device, a display time of the fourth message, and determining a display time of the second message and the fourth time, in order to reduce the power consumption of the first terminal device.
  • the display time of the second message is displayed.
  • the fourth message is a message displayed before the second message and displayed with the display time.
  • the display time of the fourth message is included in the message record of the first terminal device or included in the message record of the second terminal device.
  • a second aspect of the embodiments of the present invention provides a terminal device, where the terminal device includes: a processor and a display.
  • the processor is configured to obtain a message record of the terminal device, and obtain a message record of the second terminal device, where the message record of the terminal device includes: a message content of the first message and a causal time of the first message, where the message record of the second terminal device includes The message content of the second message and the causal time of the second message; sorting the message content of the first message and the message content of the second message according to the causal time of the first message and the causal time of the second message.
  • a display configured to display the message content of the first message and the message content of the second message according to the sorting of the processor.
  • the causal time of the first message is a coordinated world time when the first message is transmitted
  • the causal time of the second message is a coordinated world time when the second message is transmitted.
  • the first message is a message that is sent by the terminal device
  • the terminal device further includes: a memory.
  • the memory is configured to record a causal time of the first message, and the causal time of the first message is determined according to the initial time, the first duration, and the second duration.
  • the initial time is the coordinated world time when the terminal device logs in to the IM application successfully;
  • the first duration is the duration from the start time to the time when the login IM application succeeds, and the start time is the time when the terminal device is powered on;
  • the duration is the duration from when the terminal device detects the first message to be sent.
  • the first message is a message that is sent by the terminal device, and the terminal device further includes: a radio frequency (RF) circuit.
  • the RF circuit is configured to send a first message to the server; and receive a causal time of the first message sent by the server, where the causal time of the first message is a coordinated world time when the server receives the first message.
  • the first message is a message received by the terminal device, and the terminal device further includes: an RF circuit.
  • the RF circuit is configured to receive a causal time of the first message sent by the server, where the causal time of the first message is a coordinated world time when the server sends the first message to the terminal device.
  • the message record of the terminal device further includes a display time of the first message.
  • the processor is further configured to acquire a display time of the third message, where the third message is a message displayed before the first message and the display time is displayed, and the display time of the third message is included in the message record of the terminal device or included In the message record of the second terminal device; determining a difference between the display time of the first message and the display time of the third message.
  • the display is further configured to display a display time of the first message when the processor determines that the difference between the display time of the first message and the display time of the third message is greater than a preset threshold.
  • the message record of the second terminal device further includes a display time of the second message.
  • the processor is further configured to acquire a display time of the fourth message, where the fourth message is a message displayed before the second message and the display time is displayed, and the display time of the fourth message is included in the message record of the terminal device or included In the message record of the second terminal device; determining a difference between the display time of the second message and the display time of the fourth message.
  • the display is further configured to display a display time of the second message when the processor determines that the difference between the display time of the second message and the display time of the fourth message is greater than a preset threshold.
  • a third aspect of the embodiments of the present invention provides a terminal device, where the terminal device includes: acquiring a unit, and a row Sequence unit and display unit.
  • the acquiring unit is configured to obtain a message record of the terminal device, and obtain a message record of the second terminal device, where the message record of the terminal device includes: a message content of the first message and a causal time of the first message, where the message record of the second terminal device includes : the message content of the second message and the causal time of the second message.
  • a sorting unit configured to sort the message content of the first message acquired by the acquiring unit and the message content of the second message according to the causal time of the first message acquired by the obtaining unit and the causal time of the second message.
  • a display unit configured to display the message content of the first message and the message content of the second message according to the sorting of the sorting unit.
  • the causal time of the first message is the coordinated world time when the first message is transmitted
  • the causal time of the second message is the coordinated world time when the second message is transmitted.
  • the first message is a message that is sent by the terminal device
  • the terminal device further includes: a storage unit.
  • a storage unit configured to record a causal time of the first message, where the causal time of the first message is determined according to the initial time, the first duration, and the second duration.
  • the initial time is the coordinated world time when the terminal device logs in to the IM application successfully
  • the first duration is the duration from the start time to the time when the login IM application succeeds
  • the start time is the time when the terminal device is powered on
  • the duration is the duration from when the terminal device detects the first message to be sent.
  • the first message is a message that is sent by the terminal device
  • the terminal device further includes: a sending unit and a receiving unit.
  • a sending unit configured to send a first message to the server.
  • the receiving unit is configured to receive a causal time of the first message sent by the server, where the causal time of the first message is a coordinated world time when the server receives the first message.
  • the first message is a message received by the terminal device, and the terminal device further includes: a receiving unit.
  • the receiving unit is configured to receive a causal time of the first message sent by the server, where the causal time of the first message is a coordinated world time when the server sends the first message to the terminal device.
  • the message record of the terminal device acquired by the acquiring unit further includes a display time of the first message
  • the terminal device further includes: a determining unit.
  • the obtaining unit is further configured to acquire a display time of the third message, where the third message is a message displayed before the first message and the display time is displayed, and the display time of the third message is included in the message record of the terminal device or included In the message record of the second terminal device.
  • a determining unit configured to determine a difference between a display time of the first message and a display time of the third message acquired by the acquiring unit.
  • the display unit is further configured to display the display time of the first message when the determining unit determines that the difference between the display time of the first message and the display time of the third message is greater than a preset threshold.
  • the message record of the second terminal device further includes a display time of the second message.
  • the obtaining unit is further configured to obtain a display time of the fourth message, where the fourth message is a message displayed before the second message and the display time is displayed, and the display time of the fourth message is included in the message record of the terminal device or included In the message record of the second terminal device.
  • the determining unit is further configured to determine a difference between a display time of the second message and a display time of the fourth message acquired by the acquiring unit.
  • the display unit is further configured to display the display time of the second message when the determining unit determines that the difference between the display time of the second message and the display time of the fourth message is greater than a preset threshold.
  • a fourth aspect of the embodiments of the present invention provides a computer storage medium for storing the first terminal.
  • Computer software instructions for the device, the computer software instructions including a program designed to perform the above message record merge display method.
  • FIG. 1 is a simplified schematic diagram of a system architecture to which an embodiment of the present invention may be applied according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of a message record merge display method according to an embodiment of the present disclosure
  • FIG. 4 is a schematic flowchart of another method for displaying and displaying a message record according to an embodiment of the present invention.
  • FIG. 5 is a schematic flowchart of another method for displaying and displaying a message record according to an embodiment of the present invention.
  • FIG. 6 is a schematic flowchart diagram of another message record merge display method according to an embodiment of the present invention.
  • FIG. 7 is a schematic flowchart of another method for displaying and displaying a message record according to an embodiment of the present invention.
  • FIG. 8 is a schematic flowchart diagram of another message record merge display method according to an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of another scenario of a message record merge display method according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of another scenario of a message record merge display method according to an embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of another terminal device according to an embodiment of the present disclosure.
  • FIG. 12 is a schematic structural diagram of another terminal device according to an embodiment of the present invention.
  • the embodiment of the present invention provides a message record merge display method.
  • the first terminal device acquires a message record of the first terminal device, and acquires a message record of the second terminal device, where the message record of the first terminal device includes: a message content of the first message and a causal time of the first message, and the second terminal device
  • the message record includes: the message content of the second message and the causal time of the second message, and according to the causal time of the first message and the causal time of the second message, the message content of the first message and the message content of the second message are performed.
  • Sorting and displaying the message content of the first message and the message content of the second message according to the sorting.
  • the causal time of the message is the coordinated world time when the message is transmitted
  • the Coordinated Universal Time is not the local time of the terminal device, or the terminal device The time zone and other factors are affected. Therefore, the combined message records according to the causal time of the message can be sorted and displayed in the order in which the messages are sent and received.
  • FIG. 1 is a simplified schematic diagram of a system architecture to which embodiments of the present invention may be applied.
  • the system architecture may include: a first terminal device 11, a second terminal device 12, and a server 13.
  • An IM application is installed on the first terminal device 11. If the user needs to use the installed IM application to perform the chat, the user can transmit the message to the other user terminal through the first terminal device 11 after the login application is successfully applied.
  • the first terminal device 11 can save the causal time, message content and display time of the message transmitted by the user through the first terminal device 11 and other user terminals in the message record.
  • the display time of the message may be the local time of the first terminal device 11 according to the first terminal device 11 or the first terminal device 11 Determined at the time zone.
  • the local time of the first terminal device 11 and the time zone in which the first terminal device 11 is located may be obtained by the first terminal device 11 through interaction with the server 13.
  • An IM application is also installed on the second terminal device 12.
  • the user can log in to the IM application on the second terminal device 12 by using the same account, and can transmit the message to the other user terminal through the second terminal device 12 after the login is successful.
  • the second terminal device can save the causal time, the message content and the display time of the message transmitted by the user through the second terminal device 12 and the other user terminals in the message record.
  • the message record of the first terminal device 11 and the message record of the second terminal device 12 need to be merged, if the message record of the second terminal device 12 needs to be merged into the first terminal device 11, the first terminal device 11
  • the message record of the second terminal device 12 can be obtained by means of Wireless Fidelity (WiFi), Bluetooth, or the like.
  • the server 13 is configured to forward the messages transmitted by the first terminal device 11 and the second terminal device 12 and other user terminals.
  • the first terminal device 11 and the second terminal device 12 may be desktop, laptop, tablet, handheld computer, mobile phone, notebook computer, and ultra-mobile personal computer (UMPC). , netbooks, and cellular phones, personal digital assistants (PDAs), dedicated media players, consumer electronics, wearables, smart watches, smart glasses, and more.
  • UMPC ultra-mobile personal computer
  • the first terminal device 11 and the second terminal device 12 are used as a mobile phone as an example for description.
  • the mobile phone may include components such as a display unit 20, an input unit 21, a processor 22, a memory 23, a power source 24, an RF circuit 25, a gravity sensor 26, an audio circuit 27, a speaker 28, a microphone 29, and the like. It can be connected by bus or directly. It will be understood by those skilled in the art that the structure of the handset shown in FIG. 2 does not constitute a limitation to the handset, and may include more components than those illustrated, or some components may be combined, or different components may be arranged.
  • the display unit 20 is operatively coupled to the processor 22 for receiving the processing results returned by the processor 22 and displaying them. For example, it can be used to display images captured by the camera, as well as various menus of the phone.
  • a graphical user interface is typically provided on the display unit 20 for providing an easy to use interface between the user and the operating system running on the handset.
  • the display unit 20 is configured to display a message record merged according to the causal time of the message.
  • the input unit 21 can be a single or multi-point input unit operatively coupled to the processor 22 for receiving input operations by the user.
  • the input unit 21 may be a touch pad or touch screen placed on or in front of the display unit 20, which may collect touch operations on or near the user (such as a user using a finger, a stylus, etc., or any suitable object or
  • the accessory is operated on or near the touch screen, and the corresponding connection device is driven according to a preset program.
  • a touch panel or a touch screen can be implemented based on sensing techniques such as capacitive sensing, resistance sensing, surface acoustic wave sensing, pressure sensing, and light sensing.
  • the touchpad or touchscreen can be integrated with the display unit 20 or can be a separate component.
  • the input unit 21 is configured to receive a chat input operation of the user.
  • the processor 22 is the control center of the handset, which connects various parts of the entire handset using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 23, and by calling stored in the memory.
  • the data in 23 performs various functions of the mobile phone and processes the data, thereby performing overall monitoring of the mobile phone.
  • processor 22 may include one or more processing units; processor 22 may integrate an application processor and a modem processor.
  • the application processor mainly processes an operating system, a user interface, an application, and the like, and the modem processor mainly processes wireless communication. It will be appreciated that the above described modem processor may also not be integrated into the processor 22.
  • the processor 22 is configured to determine a causal time and a display time of the message, obtain a message record of the mobile phone, and also used to merge message records of different mobile phones, and sort the merged message records.
  • the memory 23 can be used to store data, software programs, and modules, and can be a Volotile Memory, such as a Random-Access Memory (RAM), or a Non-Volatile Memory. For example, Read-Only Memory (ROM), Flash Memory, Hard Disk Drive (HDD) or Solid-State Drive (SSD); or a combination of the above types of memory, or It can also be a removable storage medium such as a Secure Digital (SD) memory card.
  • the program code is stored in the memory 23, and the program code is used to cause the processor 22 to execute the message merge display method provided by the embodiment of the present invention by executing the program code.
  • the memory 23 can be used to store a message record, which can include the causal time of the message, the display time of the message, and the message content of the message.
  • the RF circuit 25 can be used for transmitting and receiving information or during a call, receiving and transmitting signals, and in particular, processing the received information to the processor 22; in addition, transmitting the signals generated by the processor 22.
  • RF circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
  • LNA Low Noise Amplifier
  • RF circuitry 25 can also communicate with the network and other devices via wireless communication.
  • the RF circuit 25 can communicate with the server to transmit chat records with other user terminals, acquire Coordinated Universal Time, and the like.
  • Gravity Sensor 26 can detect the acceleration of the mobile phone in all directions (usually three-axis). When it is still, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping). It should be noted that the mobile phone may also include other sensors, such as a pressure sensor, a light sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like, and details are not described herein.
  • Audio circuitry 27, speaker 28, and microphone 29 provide an audio interface between the user and the handset.
  • the audio circuit 27 can transmit the converted electrical data of the received audio data to the speaker 28 for conversion to the sound signal output by the speaker 28; on the other hand, the microphone 29 converts the collected sound signal into an electrical signal by the audio circuit 27. After receiving, it is converted into audio data, and the audio data is output to the RF circuit 25 for transmission to, for example, another mobile phone, or the audio data is output to the processor 22 for further processing.
  • an operating system is running.
  • a running application such as an IM application, can be installed on the operating system.
  • the mobile phone may further include components such as a WiFi module, a Bluetooth module, a camera, and the like.
  • the WiFi module may be a module including a driver of a WiFi chip and a WiFi chip, and the WiFi chip has the capability of running a wireless Internet standard protocol.
  • PCBA Bluetooth-enabled Printed Circuit Board Assembly
  • Coordinated Universal Time referred to in the embodiments of the present invention may also be referred to as World Unified Time, World Standard Time, and International Coordinated Time.
  • the message record merge display method provided by the embodiment of the present invention may be used for the combined display of the message record.
  • the following takes the first terminal device and the second terminal device as an example for description.
  • the processor of the first terminal device can obtain the message record saved by itself, and can obtain the message record of the second terminal device through the WiFi module or the Bluetooth module.
  • the message record of the first terminal device includes: a message content of the first message and a causal time of the first message, where the first message is a message generated when the user chats through the first terminal device, and the causal time of the first message is the transmission
  • the message record of the second terminal device includes: a message content of the second message and a causal time of the second message, where the second message is a message generated when the user chats through the second terminal device, and the second message
  • the causal time is the Coordinated Universal Time when the second message is transmitted.
  • the processor of the first terminal device can obtain the chat record generated when the user chats through the second terminal device from the second terminal device directly through the WiFi module or the Bluetooth module.
  • the first terminal device is the mobile phone 1
  • the second terminal device is the mobile phone 2
  • the distance between the mobile phone 1 and the mobile phone 2 is short.
  • the user needs to merge the WeChat chat record of the mobile phone 2 to the mobile phone 1.
  • the processor of the mobile phone 1 can obtain the WeChat message record of the mobile phone 2 through the WiFi module or the Bluetooth module.
  • the user can connect the mobile phone 1 and the mobile phone 2 to the same WiFi network, and open the function of migrating the chat record in the WeChat of the mobile phone 2, and a two-dimensional code is generated.
  • the user can log in to the WeChat of the mobile phone 1 using the same account and scan the two-dimensional code.
  • the WiFi module of the mobile phone 1 can receive the WeChat chat record transmitted by the WiFi module of the mobile phone 2.
  • the user can turn on the Bluetooth function of the mobile phone 1 and the mobile phone 2, and the Bluetooth module of the mobile phone 1 and the Bluetooth module of the mobile phone 2 can search, and after searching for each other, establish a connection channel. In this way, the user can find the WeChat chat record in the mobile phone 2 and select the Bluetooth module sent to the mobile phone 1 by Bluetooth.
  • the Bluetooth module of the mobile phone 1 can receive the WeChat chat record sent by the Bluetooth module of the mobile phone 2.
  • the processor of the first terminal device may also acquire, from the server, the chat record generated when the user chats through the second terminal device.
  • the first terminal device is the mobile phone 1
  • the second terminal device is the mobile phone 2
  • both the mobile phone 1 and the mobile phone 2 are connected to the network as an example for description.
  • the user needs to merge the WeChat chat record in the mobile phone 2 to the mobile phone 1.
  • the function of uploading the message record can be opened in the WeChat of the mobile phone 2, and the mobile phone 2 can upload the chat record to the server.
  • the user can log in to the WeChat of the mobile phone 1 by using the same account, and open the function of downloading the message record, and the processor of the mobile phone 1 can obtain the WeChat chat record of the mobile phone 2.
  • the first terminal device is the mobile phone 1 and the second terminal device is the mobile phone 2 as an example.
  • the user needs to merge the message record of the mobile phone 2 into the mobile phone 1, and the processor of the mobile phone 1 obtains the record of the self-saved message.
  • the message record of the mobile phone 1 includes the message content and causal time of the message a.
  • the message a is a message sent by the user through the mobile phone 1.
  • the processor of the mobile phone 1 passes the WiFi module or the Bluetooth module Get the message record of the phone 2.
  • the message record of the mobile phone 2 includes the message content and causal time of the message c.
  • the message c is a message sent by the user through the mobile phone 2.
  • the message content of the first message may be determined according to the causal time of the first message and the causal time of the second message. Sorts the message content of the second message.
  • the display of the first terminal device may display the message content of the first message and the message content of the second message according to the ranking.
  • FIG. 3 shows a schematic diagram of the message content of the merged message record displayed by the display of the mobile phone 1.
  • the correct sort result of the message content of the merged message record is: the message content of the message a, and the message content of the message c.
  • the processor of the mobile phone 1 can according to the causal time of the message a (the causal time of the message a is 9:20 am) and the causal time of the message c (the causal time of the message c is 9:50 am), according to the time from morning to night.
  • the message content of message c is placed after the message content of message a.
  • the display of the mobile phone 1 displays the message content of the message a and the message content of the message c according to the ranking.
  • multiple messages are stored on the handset 1 and the handset 2, respectively.
  • the message record of the mobile phone 1 includes the message content and causal time of the message a, the message content of the message b, and the causal time.
  • the message a is a message sent by the user through the mobile phone 1
  • the message b is a message received by the user through the mobile phone 1.
  • the message record of the mobile phone 2 includes the message content and causal time of the message c, the message content of the message d, and the causal time.
  • the message c and the message d are messages sent by the user through the mobile phone 2.
  • FIG. 4 is a schematic diagram showing the content of the message of the merged message record displayed by the display of the mobile phone 1.
  • the correct sort result of the message content of the merged message is: the message content of the message a, the message content of the message c, The message content of message d, the message content of message b.
  • the local time of mobile phone 1 is 15:50 pm, and the local time of mobile phone 2 at the same time is 15:30 pm as an example.
  • the local time of the mobile phone 1 and the mobile phone 2 may be inconsistent. So that the processor of the mobile phone 1 will send the message c (the message c is displayed in the morning) The content of the message of 10:05) and message d (the display time of the message d is 10:07 am) is before the content of the message of the previously sent message a (the display time of the message a is 10:20 am). However, in the embodiment of the present invention, the causal time of the message is not affected by the local time of the mobile phone.
  • the processor of the mobile phone 1 obtains the message record of the mobile phone 1 and the message record of the mobile phone 2, according to the message a
  • the causal time of message b, message c and message d sorting the message contents of message a, message b, message c and message d, and can send the message c after the message (the causal time of message c is 9:50 am
  • the message content of the message d (the causal time of the message d is 9:52 am) is after the message content of the first transmitted message a (the causal time of the message a is 9:20 am).
  • a scenario in which a terminal device merges and displays a message record generated by a user through two terminal device chats is taken as an example.
  • the embodiment of the present invention can also be used to merge and display a message record generated by a user through three or more terminal device chats, and the specific implementation process is generated by the terminal device chatting the user through two terminal devices.
  • the specific implementation of the message record for the merged display is similar, and the embodiment of the present invention will not be described in detail herein.
  • the first terminal device may also display the display time of the combined message record.
  • the embodiment of the present invention provides a display manner of the display time of the message.
  • the message record of the mobile phone 1 acquired by the processor of the mobile phone 1 may further include the display time of the message a and the display time of the message b.
  • the message record of the mobile phone 2 acquired by the processor of the mobile phone 1 may further include the display time of the message c and the display time of the message d.
  • the processor of the mobile phone 1 can determine whether the display time of the message a, the message b, the message c, and the message d needs to be displayed in the following manner.
  • the display time of the message a needs to be displayed. of.
  • the display of the mobile phone 1 can judge the display time of the message and the display time of the message displayed before the message and displayed the display time by the processor of the mobile phone 1. Whether the difference is greater than a preset threshold, and displaying the display time of the message only when it is determined that the difference is greater than the preset threshold.
  • the preset threshold is five minutes as an example. Since the difference between the display time of the message c (the display time of the message c is 10:05 am) and the display time of the message a (the display time of the message a is 10:20 am) is less than five minutes, the display of the mobile phone 1 is not displayed. The display time of message c.
  • the display of the mobile phone 1 Since the display time of the message d (the display time of the message d is 10:07 am) is less than five minutes from the display time of the message a, the display of the mobile phone 1 does not display the display time of the message d. Since the display time of the message b (the display time of the message b is 15:45 pm) is greater than the display time of the message a by more than five minutes, the display of the mobile phone 1 displays the display time of the message b.
  • the memory of the first terminal device and the second terminal device may also record the causal time of the message, the message content of the message, and the display time of the message.
  • the embodiment of the present invention is described here by taking the first terminal device to record the causal time of the first message, the message content of the first message, and the display time of the first message.
  • the user needs to use the IM application installed on the first terminal device to chat, and the IM application can be opened. Enter the login interface of the IM application.
  • the IM application is described as an example of WeChat.
  • FIG. 6 a schematic diagram of a login interface of WeChat displayed for the display of the first terminal device.
  • the login interface includes: an input box for the login account and password, and a login button.
  • the user can input the account XXX in the input box of the login account through the input unit of the first terminal device, and input the password 123 in the input box of the login password, and click the login button after the input is completed.
  • the processor of the first terminal device may carry the login account and password in the login request to the server through the RF circuit of the first terminal device.
  • the server may verify the validity of the user according to the login account and the password carried in the login request.
  • the login response for notifying the first terminal device to log in to the IM application may be sent to the RF circuit of the first terminal device.
  • the processor of the first terminal device can successfully log in to the IM application and display the contact interface.
  • FIG. 7 a schematic diagram of a contact interface displayed for the display of the first terminal device.
  • the contact interface at least one contact is displayed.
  • the displayed contacts are exemplified by Xiaohong and Huaweing.
  • the user can select the contact to enter the chat interface for chatting.
  • the RF circuit of the first terminal device can transmit the message generated by the user chat with the RF circuit of the other user terminal, for example, the RF circuit of the first terminal device and the RF circuit of the other user terminal transmit the first message.
  • the first message may be a message that is sent by the RF circuit of the first terminal device, or may be a message received by the RF circuit of the first terminal device.
  • the memory of the first terminal device may record the causal time of the first message.
  • the first message is a message sent by the RF circuit of the first terminal device.
  • the user chooses to send a message to Xiao Ming, and the user can open a chat interface with Xiao Ming.
  • FIG. 8 a schematic diagram of a chat interface with Xiao Ming displayed for the display of the first terminal device.
  • a message input box and a send button are displayed in the chat interface.
  • the user can input the message content of the first message in the message input box through the input unit of the first terminal device (eg, the message content of the first message is: in), and click the send button after the input is completed.
  • the processor of the first terminal device may send the message content of the first message to the server through the RF circuit of the first terminal device when detecting the user's click on the send button.
  • the causal time of the first terminal device's memory to record the first message may be implemented in the following two ways.
  • the memory of the first terminal device may record the causal time of the first message.
  • the causal time of the first message is determined by the processor of the first terminal device based on the initial time, the first duration, and the second duration.
  • the initial time is a coordinated world time when the first terminal device logs in to the IM application successfully, and may carry the RF circuit sent to the first terminal device in the login response by the server.
  • the first duration is the duration from the start time of the first terminal device to the successful login of the IM application, and the start time is the time when the first terminal device is powered on.
  • the first duration may be obtained by the processor of the first terminal device when the login IM application is successful.
  • the second duration is the duration from when the first terminal device detects the first message to be sent.
  • the second duration may be that the processor of the first terminal device sends the cancellation Obtained at the time of interest.
  • the first duration is initial second
  • the second duration is now second
  • the first terminal device may preset a timer to acquire the first duration and the second duration by using the timer.
  • the processor of the first terminal device can start the timer when the power is detected.
  • the processor of the first terminal device can read the timer time of the timer when the login IM application succeeds, and the time counted at the time is the first duration.
  • the processor of the first terminal device can read the timer time of the timer when the first message needs to be sent, and the time counted at the time is the second duration.
  • the following is an example of the method for setting the first duration and the second duration by using a timer in the first terminal device as an example, but the embodiment of the present invention obtains the processor of the first terminal device.
  • the specific implementation of a duration and a second duration is not specifically limited.
  • the first duration is the duration from when the first terminal device starts to when the login IM application succeeds.
  • the initial time and the first duration are independent of the time at which the first terminal device sends the message. Therefore, after the processor of the first terminal device acquires the initial time and the first duration, the initial time and the first duration may be saved. time. In this way, when the RF circuit of the first terminal device sends another message, the processor of the first terminal device only needs to obtain the duration when the first terminal device needs to be sent from the time when the device is powered on, and according to the saved time. The initial time and the first duration can determine the causal time of other messages.
  • the server may receive the message content of the first message. And causing the causal time of the first message to be sent to the RF circuit of the first terminal device in the response, and the causal time of the first message is the coordinated world time when the server receives the first message.
  • the RF circuit of the first terminal device can record the causal time of the first message through the memory of the first terminal device.
  • the first message is a message received by the RF circuit of the first terminal device.
  • the user receives the message of Xiao Ming as an example.
  • the RF circuit of the terminal device used by Xiao Ming can first send the first message to the server.
  • the server may send the message content of the first message and the causal time of the first message to the RF circuit of the first terminal device, and the causal time of the first message is the coordination when the server sends the first message to the RF circuit of the first terminal device.
  • World time The RF circuit of the first terminal device can record the causal time of the first message through the memory of the first terminal device.
  • the coordinated world time when the server sends the first message to the RF circuit of the first terminal device is the server time
  • the causal time of the first message is septime
  • the first terminal device uses the received server time as the septime.
  • the memory of the first terminal device may also record the display time of the first message and record the message content of the first message.
  • the first message is a message sent by the RF circuit of the first terminal device
  • the display time of the first message is a local time of the first terminal device when the first message needs to be sent. For example, if the local time of the first terminal device is local time and the display time of the first message is show time, the processor of the first terminal device will obtain the local time as the show time.
  • the first message is a message received by an RF circuit of the first terminal device
  • the display time of the first message is calculated by the processor of the first terminal device according to the coordinated world time when the server sends the first message to the first terminal device and the time zone where the first terminal device is located.
  • the display time of the first message may be that the processor of the first terminal device is in accordance with the coordinated world time when the server sends the first message to the first terminal device, and between the local time of the first terminal device and the coordinated world time.
  • the time zone difference is determined by the time.
  • the display time of the first message is show time
  • the coordinated world time when the server sends the first message to the first terminal device is server time
  • the time difference between the local time of the first terminal device and the coordinated world time is X.
  • the memory of the first terminal device records the causal time of the first message, and records the message content of the first message.
  • the display of the first terminal device may display the message content of the first message according to the causal time of the first message.
  • the display of the first terminal device may first acquire the causal time of the previous message of the first message by using the processor of the first terminal device, and display the first according to the causal time of the first message and the causal time of the previous message of the first message.
  • the message content of a message is accessed from the causal time of the first message.
  • the processor of the first terminal device may first acquire the display time of the message displayed before the first message and displayed the display time, and determine The display of the first terminal device displays the display time of the first message when the display time of a message and the display time of the message displayed before the first message and the display time are greater than a preset threshold.
  • the first terminal device performs the message content of the first message and the message content of the second message according to the causal time of the acquired first message and the causal time of the second message. Sorting, and displaying the message content of the first message and the message content of the second message according to the sorting.
  • the causal time of the message is the coordinated world time when the message is transmitted
  • the Coordinated Universal Time is not the local time of the terminal device, or the terminal device The time zone and other factors are affected. Therefore, the combined message records according to the causal time of the message can be sorted and displayed in the order in which the messages are sent and received.
  • the first terminal device displays the display time of the message only when the difference between the display time of the determined message and the display time of the message displayed before the message and the display time is greater than a preset threshold, so that Not only the display time of the merged message record is increased, but also the power consumption of the first terminal device is reduced.
  • the embodiment of the present invention introduces the message record merge display method provided by the embodiment of the present invention according to different application scenarios. Take different scenarios as an example, and take a mobile phone as an example for illustration.
  • the message record of the mobile phone 1 includes the message content of the message a', causal time and display time, the message content of the message b', the causal time and the display time, and the message content of the message c', causality Time and display time.
  • the message a' and the message c' are messages sent by the user through the mobile phone 1
  • the message b' is the message received by the mobile phone 1.
  • the message record of the handset 2 includes the message content of the message d', the causal time and the display time, and the message content, causal time and display time of the message e.
  • the message d' and the message e are messages sent by the user through the mobile phone 2 using the same account.
  • the local time of the mobile phone 1 is 16:05 pm, and the local time of the mobile phone 2 at the same time is 16:35 pm as an example.
  • the mobile phone 2 should display the message content of the first transmitted message d' and the message e before the message content of the post-sent message a'.
  • the mobile phone 2 performs the message contents of the message a', the message b', the message c', the message d' and the message e according to the display time of the message a', the message b', the message c', the message d' and the message e, Sorting and displaying, because the local time of the mobile phone 1 and the mobile phone 2 are inconsistent, the mobile phone 2 will first send the message d' (the display time of the message d' is 15:50 pm) and the message e (the display time of the message e is The message content at 15:52 pm is displayed after the message content of the post-sent message a' (the message a' is displayed at 15:45 pm).
  • the causal time of the message is not affected by the local time of the mobile phone, therefore, the mobile phone 2 will message according to the causal time of the message a', the message b', the message c', the message d' and the message e.
  • the message d' sent first (the causal time of message d' is 10:20 am) and the message do not occur.
  • the message content of e (the causal time of the message e is 10:22 am) is displayed after the message content of the post-sent message a' (the causal time of the message a' is 10:45 am), and the correct sort result can be displayed.
  • the preset threshold is 5 minutes as an example. Since the message d' is the sorted first message, the handset 2 displays the display time of the message d'. Since the difference between the display time of the message e and the message a' and the display time of the message d' is less than five minutes, the handset 2 does not display the display time of the message e and the message a'. Since the difference between the display time of the message b' and the display time of the message d' is greater than five minutes, the handset 2 displays the display time of the message b'. Since the difference between the display time of the message c' and the display time of the message b' is less than five minutes, the handset 2 does not display the display time of the message c'. As shown in FIG. 9, a schematic diagram of an interface after the merged message displayed on the mobile phone 2 is recorded.
  • Scenario 2 is a schematic diagram of a message record of the mobile phone displayed in the mobile phone in the area 1, the message record includes a message a", a message b" and a message c". wherein the message content of the message a" For: ⁇ , the display time is 15:45 pm. The message content of message b" is: What's wrong. The message content of message c" is: None, the display time is 16:00 pm.
  • the local time when the mobile phone is in the area 1 is 16:05 on December 24, after the user brings the mobile phone to the area 2, the local time of the mobile phone in the area 2 is 10:00 on the morning of December 24 as an example.
  • the user logs in to the IM application on the mobile phone and sends a message d" to other user terminals after the login is successful.
  • the mobile phone can determine the message content of the message d": What is busy, the display time is 10:05 am on December 24, The cause and effect time is 13:00 on December 24th.
  • the mobile phone should display the message content of the post message "d" after the message content of the previously sent message c".
  • the phone displays the message according to the message d"
  • the message d The content of the message is displayed, and the content of the message of the post-sent message d" is displayed before the message content of the message a" sent first.
  • the causal time of the message is not affected by the time zone in which the mobile phone is located. Therefore, when the mobile phone displays the message content of the message d" according to the causal time of the message c” and the causal time of the message d”, Assuming that the causal time of message c" is 11:00 am on December 24, the message content of message d" is displayed after the message content of message c".
  • the mobile phone does not display the display time of the message d". As shown in the figure, the mobile phone displayed on the mobile phone is in the schematic of the message record of the area 2.
  • each network element for example, a terminal device, in order to implement the above functions, includes hardware structures and/or software modules corresponding to each function.
  • the present invention can be implemented in a combination of hardware or hardware and computer software in combination with the algorithm steps of the various examples described in the embodiments disclosed herein. Whether a function is implemented in hardware or computer software to drive hardware depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
  • the embodiment of the present invention may divide the function module into the terminal device according to the foregoing method example.
  • each function module may be divided according to each function, or two or more functions may be integrated into one processing module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of the module in the embodiment of the present invention is schematic, and is only a logical function division, and the actual implementation may have another division manner.
  • FIG. 11 shows a possible structural diagram of the terminal device involved in the above and the embodiments.
  • the terminal device may be the first terminal device described above.
  • the terminal device may include: an obtaining unit 31, a sorting unit 32, and a display unit 33.
  • the obtaining unit 31 is configured to acquire a message record of the terminal device, and obtain a message record of the second terminal device, where the message record of the terminal device includes: a message content of the first message and a causal time of the first message, and a second
  • the message record of the terminal device includes: a message content of the second message and a causal time of the second message; and is further configured to acquire a display time of the third message, where the third message is displayed before the first message, and is displayed
  • the time of the message, the display time of the third message is included in the message record of the terminal device or included in the message record of the second terminal device; and is also used to obtain the display time of the fourth message, and the fourth message is displayed in the second message.
  • the message showing the time is displayed before, and the display time of the fourth message is included in the message record of the terminal device or included in the message record of the second terminal device.
  • the sorting unit 32 is configured to sort the message content of the first message and the message content of the second message according to the causal time of the first message acquired by the obtaining unit and the causal time of the second message.
  • the display unit 33 is configured to display, according to the sorting, the message content of the first message sorted by the sorting unit and the message content of the second message, and is further configured to determine, at the determining unit, the display time of the first message and the display time of the third message. When the difference is greater than the preset threshold, the display time of the first message is displayed; and is further configured to display the second message when the determining unit determines that the difference between the display time of the second message and the display time of the fourth message is greater than a preset threshold. Display time.
  • the terminal device may further include: a storage unit 34, a sending unit 35, a receiving unit 36, and a determining unit 37.
  • the storage unit 34 is configured to record a causal time of the first message, where the causal time of the first message is determined according to the initial time, the first duration, and the second duration.
  • the sending unit 35 is configured to send the first message to the server.
  • the receiving unit 36 is configured to receive a causal time of the first message sent by the server, where the causal time of the first message is a coordinated world time when the server receives the first message, or the causal time of the first message is sent by the server to the terminal device Coordinated Universal Time at the first message.
  • a determining unit 37 configured to determine a difference between a display time of the first message and a display time of the third message acquired by the acquiring unit; and configured to determine a display time of the second message and a display of the fourth message acquired by the acquiring unit The difference in time.
  • the terminal device provided by the embodiment of the present invention is configured to execute the foregoing message record merge display method, so that the same effect as the above message record merge display method can be achieved.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the modules or units is only a logical function division.
  • there may be another division manner for example, multiple units or components may be used.
  • the combination may be integrated into another device, or some features may be ignored or not performed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may be one physical unit or multiple physical units, that is, may be located in one place, or may be distributed to multiple different places. . Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the 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 standalone product, may be stored in a readable storage medium.
  • the technical solution of the embodiments of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a device (which may be a microcontroller, chip, etc.) or a processor to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a ROM, A variety of media that can store program code, such as RAM, disk, or optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本发明实施例公开了一种消息记录合并显示方法及终端设备,涉及通信领域,解决了在将不同的终端设备的消息记录进行合并时,合并后的消息记录的显示混乱的问题。具体方案为:第一终端设备获取第一终端设备的消息记录,并获取第二终端设备的消息记录,第一终端设备的消息记录包括:第一消息的消息内容和第一消息的因果时间,第二终端设备的消息记录包括:第二消息的消息内容和第二消息的因果时间,且根据第一消息的因果时间和第二消息的因果时间,将第一消息的消息内容和第二消息的消息内容进行排序,并根据排序显示第一消息的消息内容和第二消息的消息内容。本发明实施例用于合并不同的终端设备的消息记录的过程中。

Description

一种消息记录合并显示方法及终端设备 技术领域
本发明实施例涉及通信领域,尤其涉及一种消息记录合并显示方法及终端设备。
背景技术
即时通讯(Instant Messaging,IM)是一种可以让用户在网络上建立某种私人聊天室的实时通讯服务。且随着微信、飞信等IM应用的广泛应用,用户可以在手机、平板电脑(Pad)等终端设备上安装IM应用,并使用安装好的IM应用进行聊天。
在现有技术中,用户使用IM应用进行聊天的过程中,终端设备会将聊天时产生消息的消息内容保存在终端设备的消息记录中,同时还会保存消息的显示时间在消息记录中。其中,该消息的显示时间具体的为:该消息为终端设备需发送的消息,显示时间是终端设备的本地时间;该消息为终端设备接收到的消息,显示时间是根据服务器发送该消息时的协调世界时(Universal Time Coordinated,UTC)和终端设备所处时区计算得到的。另外,随着手机、Pad等终端设备的普及,用户使用同一账户在不同的终端设备上进行聊天的情况越来越多。在这种情况下,用户聊天时产生的消息记录会分散保存在不同的终端设备中。若用户需要将不同终端设备上的消息记录进行合并显示,通常是将不同终端设备的消息记录进行合并,并根据终端设备的消息记录中保存的消息的显示时间进行排序后显示的。
由上可知,消息的显示时间是由终端设备的本地时间或终端设备所处时区决定的。在用户需要将不同终端设备的消息记录进行合并情况下,若需要合并消息记录的终端设备的本地时间不一致,或需要合并消息记录的终端设备所处时区不一致,则会导致合并后的消息记录无法正确按照消息发送和接收的先后顺序进行排序,最终导致消息记录显示混乱。
发明内容
本发明实施例提供一种消息记录合并显示方法及终端设备,解决了在将不同的终端设备的消息记录进行合并时,合并后的消息记录的显示混乱的问题。
为解决上述技术问题,本发明实施例提供如下技术方案:
本发明实施例的第一方面,提供一种消息记录合并显示方法,包括:
第一终端设备获取第一终端设备的消息记录,并获取第二终端设备的消息记录,第一终端设备的消息记录包括:第一消息的消息内容和第一消息的因果时间,第二终端设备的消息记录包括:第二消息的消息内容和第二消息的因果时间,且根据第一消息的因果时间和第二消息的因果时间,将第一消息的消息内容和第二消息的消息内容进行排序,并根据排序显示第一消息的消息内容和第二消息的消息内容。
本发明实施例提供的消息记录合并显示方法,第一终端设备通过根据获取到的第一消息的因果时间和第二消息的因果时间,将第一消息的消息内容和第二消息的消息内容进行排序,并根据排序显示第一消息的消息内容和第二消息的消息内容。 这样,在需要将不同的终端设备的消息记录进行合并的情况下,由于终端设备是根据消息的因果时间合并消息记录的,而不是根据消息的显示时间合并消息记录的,因此不会出现由于消息的显示时间被终端设备的本地时间,或者终端设备所处时区等因素影响,导致的合并后的消息记录无法正确按照消息发送和接收的先后顺序进行排序并显示的问题。
结合第一方面,在一种可能的实现方式中,第一消息的因果时间为传输第一消息时的协调世界时,第二消息的因果时间为传输第二消息时的协调世界时。
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,第一消息是需第一终端设备发送的消息,该消息记录合并显示方法还可以包括:第一终端设备记录第一消息的因果时间,该第一消息的因果时间是根据初始时间、第一持续时间和第二持续时间确定的。其中,初始时间为第一终端设备登录IM应用成功时的协调世界时,该初始时间可以是服务器在接收到第一终端设备发送的登录请求之后,携带在登录响应中通知第一终端设备的。第一持续时间为第一终端设备从起始时刻到登录IM应用成功时的持续时间,起始时刻为第一终端设备开机的时刻,第二持续时间为第一终端设备从起始时刻到检测到需发送第一消息时的持续时间。且第一终端设备根据初始时间、第一持续时间和第二持续时间确定第一消息的因果时间具体的可以为:第一消息的因果时间=初始时间+(第二持续时间-第一持续时间)。
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,第一消息是需第一终端设备发送的消息,该消息记录合并显示方法还可以包括:第一终端设备向服务器发送第一消息,并接收服务器发送的第一消息的因果时间,该第一消息的因果时间为服务器接收到第一消息时的协调世界时。
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,第一消息是第一终端设备接收到的消息,该消息记录合并显示方法还可以包括:第一终端设备接收服务器发送的第一消息的因果时间,该第一消息的因果时间为服务器向第一终端设备发送第一消息时的协调世界时。
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,第一终端设备的消息记录还包括第一消息的显示时间,为了保证合并后的消息记录的显示时间递增,且为了减少第一终端设备的功耗,本发明实施例提供的消息记录合并显示方法还可以包括:第一终端设备获取第三消息的显示时间,并在确定第一消息的显示时间和第三消息的显示时间的差值大于预设阈值时,显示第一消息的显示时间。其中,第三消息是显示在第一消息之前、且被显示了显示时间的消息,第三消息的显示时间包括在第一终端设备的消息记录中或包括在第二终端设备的消息记录中。
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,第二终端设备的消息记录中还包括第二消息的显示时间,为了保证合并后的消息记录的显示时间递增,且为了减少第一终端设备的功耗,本发明实施例提供的消息记录合并显示方法还可以包括:第一终端设备获取第四消息的显示时间,并在确定第二消息的显示时间和第四消息的显示时间的差值大于预设阈值时,显示第二消息的显示时间。其中,第四消息是显示在第二消息之前、且被显示了显示时间的消息,第四消息的显示时间包括在第一终端设备的消息记录中或包括在第二终端设备的消息记录中。
本发明实施例的第二方面,提供一种终端设备,终端设备包括:处理器和显示器。处理器,用于获取终端设备的消息记录,获取第二终端设备的消息记录,终端设备的消息记录包括:第一消息的消息内容和第一消息的因果时间,第二终端设备的消息记录包括:第二消息的消息内容和第二消息的因果时间;根据第一消息的因果时间和第二消息的因果时间,将第一消息的消息内容和第二消息的消息内容进行排序。显示器,用于根据处理器的排序显示第一消息的消息内容和第二消息的消息内容。
结合第二方面,在一种可能的实现方式中,第一消息的因果时间为传输第一消息时的协调世界时,第二消息的因果时间为传输第二消息时的协调世界时。
结合第二方面和上述可能的实现方式,在另一种可能的实现方式中,第一消息是需终端设备发送的消息,终端设备还包括:存储器。存储器,用于记录第一消息的因果时间,第一消息的因果时间是根据初始时间、第一持续时间和第二持续时间确定的。其中,初始时间为终端设备登录IM应用成功时的协调世界时;第一持续时间为终端设备从起始时刻到登录IM应用成功时的持续时间,起始时刻为终端设备开机的时刻;第二持续时间为终端设备从起始时刻到检测到需发送第一消息时的持续时间。
结合第二方面和上述可能的实现方式,在另一种可能的实现方式中,第一消息是需终端设备发送的消息,终端设备还包括:射频(Radio Frequency,RF)电路。RF电路,用于向服务器发送第一消息;接收服务器发送的第一消息的因果时间,第一消息的因果时间为服务器接收到第一消息时的协调世界时。
结合第二方面和上述可能的实现方式,在另一种可能的实现方式中,第一消息是终端设备接收到的消息,终端设备还包括:RF电路。RF电路,用于接收服务器发送的第一消息的因果时间,第一消息的因果时间为服务器向终端设备发送第一消息时的协调世界时。
结合第二方面和上述可能的实现方式,在另一种可能的实现方式中,终端设备的消息记录还包括第一消息的显示时间。处理器,还用于获取第三消息的显示时间,第三消息是显示在第一消息之前、且被显示了显示时间的消息,第三消息的显示时间包括在终端设备的消息记录中或包括在第二终端设备的消息记录中;确定第一消息的显示时间和第三消息的显示时间的差值。显示器,还用于在处理器确定出第一消息的显示时间和第三消息的显示时间的差值大于预设阈值时,显示第一消息的显示时间。
结合第二方面和上述可能的实现方式,在另一种可能的实现方式中,第二终端设备的消息记录还包括第二消息的显示时间。处理器,还用于获取第四消息的显示时间,第四消息是显示在第二消息之前、且被显示了显示时间的消息,第四消息的显示时间包括在终端设备的消息记录中或包括在第二终端设备的消息记录中;确定第二消息的显示时间和第四消息的显示时间的差值。显示器,还用于在处理器确定出第二消息的显示时间和第四消息的显示时间的差值大于预设阈值时,显示第二消息的显示时间。
本发明实施例的第三方面,提供一种终端设备,终端设备包括:获取单元、排 序单元和显示单元。获取单元,用于获取终端设备的消息记录,获取第二终端设备的消息记录,终端设备的消息记录包括:第一消息的消息内容和第一消息的因果时间,第二终端设备的消息记录包括:第二消息的消息内容和第二消息的因果时间。排序单元,用于根据获取单元获取到的第一消息的因果时间和第二消息的因果时间,将获取单元获取到的第一消息的消息内容和第二消息的消息内容进行排序。显示单元,用于根据排序单元的排序显示第一消息的消息内容和第二消息的消息内容。
结合第三方面,在一种可能的实现方式中,第一消息的因果时间为传输第一消息时的协调世界时,第二消息的因果时间为传输第二消息时的协调世界时。
结合第三方面和上述可能的实现方式,在另一种可能的实现方式中,第一消息是需终端设备发送的消息,终端设备还包括:存储单元。存储单元,用于记录第一消息的因果时间,第一消息的因果时间是根据初始时间、第一持续时间和第二持续时间确定的。其中,初始时间为终端设备登录IM应用成功时的协调世界时;第一持续时间为终端设备从起始时刻到登录IM应用成功时的持续时间,起始时刻为终端设备开机的时刻;第二持续时间为终端设备从起始时刻到检测到需发送第一消息时的持续时间。
结合第三方面和上述可能的实现方式,在另一种可能的实现方式中,第一消息是需终端设备发送的消息,终端设备还包括:发送单元和接收单元。发送单元,用于向服务器发送第一消息。接收单元,用于接收服务器发送的第一消息的因果时间,第一消息的因果时间为服务器接收到第一消息时的协调世界时。
结合第三方面和上述可能的实现方式,在另一种可能的实现方式中,第一消息是终端设备接收到的消息,终端设备还包括:接收单元。接收单元,用于接收服务器发送的第一消息的因果时间,第一消息的因果时间为服务器向终端设备发送第一消息时的协调世界时。
结合第三方面和上述可能的实现方式,在另一种可能的实现方式中,获取单元获取到的终端设备的消息记录还包括第一消息的显示时间,终端设备还包括:确定单元。获取单元,还用于获取第三消息的显示时间,第三消息是显示在第一消息之前、且被显示了显示时间的消息,第三消息的显示时间包括在终端设备的消息记录中或包括在第二终端设备的消息记录中。确定单元,用于确定第一消息的显示时间和获取单元获取到的第三消息的显示时间的差值。显示单元,还用于在确定单元确定出第一消息的显示时间和第三消息的显示时间的差值大于预设阈值时,显示第一消息的显示时间。
结合第三方面和上述可能的实现方式,在另一种可能的实现方式中,第二终端设备的消息记录还包括第二消息的显示时间。获取单元,还用于获取第四消息的显示时间,第四消息是显示在第二消息之前、且被显示了显示时间的消息,第四消息的显示时间包括在终端设备的消息记录中或包括在第二终端设备的消息记录中。确定单元,还用于确定第二消息的显示时间和获取单元获取到的第四消息的显示时间的差值。显示单元,还用于在确定单元确定出第二消息的显示时间和第四消息的显示时间的差值大于预设阈值时,显示第二消息的显示时间。
本发明实施例的第四方面,提供一种计算机存储介质,用于存储上述第一终端 设备所用的计算机软件指令,该计算机软件指令包含用于执行上述消息记录合并显示方法所设计的程序。
附图说明
图1为本发明实施例提供的一种可以应用本发明实施例的系统架构的简化示意图;
图2为本发明实施例提供的一种终端设备的结构示意图;
图3为本发明实施例提供的一种消息记录合并显示方法的流程示意图;
图4为本发明实施例提供的另一种消息记录合并显示方法的流程示意图;
图5为本发明实施例提供的另一种消息记录合并显示方法的流程示意图;
图6为本发明实施例提供的另一种消息记录合并显示方法的流程示意图;
图7为本发明实施例提供的另一种消息记录合并显示方法的流程示意图;
图8为本发明实施例提供的另一种消息记录合并显示方法的流程示意图;
图9为本发明实施例提供的另一种应用本发明实施例的消息记录合并显示方法的场景示意图;
图10为本发明实施例提供的另一种应用本发明实施例的消息记录合并显示方法的场景示意图;
图11为本发明实施例提供的另一种终端设备的结构示意图;
图12为本发明实施例提供的另一种终端设备的结构示意图。
具体实施方式
为了解决在将不同的终端设备的消息记录进行合并时,合并后的消息记录的显示混乱的问题,本发明实施例提供一种消息记录合并显示方法。第一终端设备获取第一终端设备的消息记录,并获取第二终端设备的消息记录,第一终端设备的消息记录包括:第一消息的消息内容和第一消息的因果时间,第二终端设备的消息记录包括:第二消息的消息内容和第二消息的因果时间,且根据第一消息的因果时间和第二消息的因果时间,将第一消息的消息内容和第二消息的消息内容进行排序,并根据排序显示第一消息的消息内容和第二消息的消息内容。这样,在需要将不同的终端设备的消息记录进行合并的情况下,由于消息的因果时间是传输该消息时的协调世界时,而协调世界时是不会被终端设备的本地时间,或者终端设备所处时区等因素影响的,因此根据消息的因果时间合并后的消息记录能够正确按照消息发送和接收的先后顺序进行排序并显示。
下面将结合附图对本发明实施例的实施方式进行详细描述。
图1示出的是可以应用本发明实施例的系统架构的简化示意图。如图1所示,该系统架构可以包括:第一终端设备11、第二终端设备12和服务器13。
其中,第一终端设备11上安装有IM应用,若用户需要使用安装好的IM应用进行聊天,则用户可以在登录IM应用成功后,通过第一终端设备11与其他用户终端传输消息。第一终端设备11可以将用户通过第一终端设备11与其他用户终端传输的消息的因果时间、消息内容和显示时间保存在消息记录中。其中,消息的显示时间可以是第一终端设备11根据第一终端设备的11的本地时间或第一终端设备11所 处时区确定出的。第一终端设备11的本地时间和第一终端设备11所处时区可以是第一终端设备11通过与服务器13的交互获得的。
第二终端设备12上也安装有IM应用。用户可以使用同一账号在第二终端设备12上登录IM应用,并可以在登录成功之后,通过第二终端设备12与其他用户终端传输消息。第二终端设备可以将用户通过第二终端设备12与其他用户终端传输的消息的因果时间、消息内容和显示时间保存在消息记录中。
在需要将第一终端设备11的消息记录和第二终端设备12的消息记录进行合并的情况下,如需将第二终端设备12的消息记录合并至第一终端设备11中,第一终端设备11可以通过无线保真(Wireless Fidelity,WiFi)、蓝牙等方式获取第二终端设备12的消息记录。
所述服务器13用于转发所述第一终端设备11和所述第二终端设备12与其他用户终端传输的消息。
在具体的实现中,第一终端设备11和第二终端设备12可以为桌面型、膝上型、平板电脑、手持计算机、手机、笔记本电脑、超级移动个人计算机(Ultra-mobile Personal Computer,UMPC)、上网本,以及蜂窝电话、个人数字助理(Personal Digital Assistant,PDA)、专用媒体播放器、消费类电子设备、可穿戴设备、智能手表、智能眼镜等等。
在本发明实施例中以第一终端设备11和第二终端设备12为手机为例进行说明。下面结合附图对手机的各个构成部件进行具体的介绍:
如图2所示,手机可以包括:显示单元20、输入单元21、处理器22、存储器23、电源24、RF电路25、重力传感器26、音频电路27、扬声器28、麦克风29等部件,这些部件之间可以以总线连接,也可以直连连接。本领域技术人员可以理解,图2中示出的手机结构并不构成对手机的限定,可以包括比图示更多的部件,或者组合某些部件,或者不同的部件布置。
其中,显示单元20可操作的连接到处理器22,用于接收处理器22返回的处理结果并进行显示。例如,可用于显示通过摄像头采集到的图像,以及手机的各种菜单。在显示单元20上通常配置有图形用户接口(Graphical User Interface,GUI),GUI用于在用户和手机上运行的操作系统之间提供易于使用的接口。在本发明实施例中,显示单元20用于显示根据消息的因果时间合并后的消息记录。
输入单元21可以是单点或多点的输入单元,其可操作的连接到处理器22,用于接收用户的输入操作。输入单元21可以是放置在显示单元20之上或之前的触摸板或触摸屏,该触摸板或触摸屏可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触摸屏上或在触摸屏附近的操作),并根据预先设定的程式驱动相应的连接装置。例如,可以基于电容感应、电阻感应、表面声波感应、压力感应、光感应等感应技术来实现触摸板或触摸屏。且触摸板或触摸屏可以与显示单元20集成在一起或者也可以是单独的部件。在本发明实施例中,输入单元21用于接收用户的聊天输入操作。
处理器22是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器23内的软件程序和/或模块,以及调用存储在存储器 23内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。在具体实现中,作为一种实施例,处理器22可包括一个或多个处理单元;处理器22可集成应用处理器和调制解调处理器。其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器22中。在本发明实施例中,处理器22用于确定消息的因果时间和显示时间,获取手机的消息记录,还用于合并不同手机的消息记录,并将合并后的消息记录进行排序。
存储器23可用于存储数据、软件程序以及模块,可以是易失性存储器(Volatile Memory),例如随机存取存储器(Random-Access Memory,RAM);或者非易失性存储器(Non-Volatile Memory),例如只读存储器(Read-Only Memory,ROM),快闪存储器(Flash Memory),硬盘(Hard Disk Drive,HDD)或固态硬盘(Solid-State Drive,SSD);或者上述种类的存储器的组合,或者也可以是可移动存储介质,例如安全数字(Secure Digital,SD)存储卡。具体的,存储器23内可存储程序代码,该程序代码用于使处理器22通过执行该程序代码,执行本发明实施例提供的消息合并显示方法。在本发明实施例中,存储器23可以用于存储消息记录,该消息记录中可以包括消息的因果时间、消息的显示时间和消息的消息内容等。
电源24,可以为电池,通过电源管理系统与处理器22逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
RF电路25可用于收发信息或通话过程中,信号的接收和发送,特别地,将接收到的信息给处理器22处理;另外,将处理器22生成的信号发送出去。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路25还可以通过无线通信与网络和其他设备通信。在本发明实施例中,RF电路25可以与服务器进行通信,以传输与其他用户终端的聊天记录,获取协调世界时等。
重力传感器(Gravity Sensor)26,可以检测手机在各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等。需要说明的是,手机还可以包括其它传感器,比如压力传感器、光传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路27、扬声器28、麦克风29可提供用户与手机之间的音频接口。音频电路27可将接收到的音频数据转换后的电信号,传输到扬声器28,由扬声器28转换为声音信号输出;另一方面,麦克风29将收集的声音信号转换为电信号,由音频电路27接收后转换为音频数据,再将音频数据输出至RF电路25以发送给比如另一手机,或者将音频数据输出至处理器22以便进一步处理。
另外,在上述部件之上,运行有操作系统。在该操作系统上可以安装运行应用程序,例如IM应用。且,尽管未示出,手机还可以包括WiFi模块、蓝牙模块、摄像头等部件。其中,WiFi模块,可以是包括WiFi芯片和WiFi芯片的驱动程序的模块,WiFi芯片具备运行无线互联网标准协议的能力。蓝牙模块,是一种集成蓝牙功能的印刷电路板组件(Printed Circuit Board Assembly,PCBA),用于短距离无线 通讯。
以下结合附图对本发明实施例提供的消息记录合并显示方法进行具体介绍。
需要说明的是,本发明实施例中涉及到的协调世界时,还可以被称为世界统一时间、世界标准时间和国际协调时间。
在本发明的一些实施例中,用户使用同一账户在不同终端设备(如:第一终端设备和第二终端设备)上进行了聊天的情况下,如果用户需要将不同终端设备的消息记录进行合并显示,如需将第二终端设备的消息记录合并至第一终端设备中,并显示合并后的消息记录时,可以采用本发明实施例提供的消息记录合并显示方法进行消息记录的合并显示。下面以第一终端设备和第二终端设备为例进行说明。
第一终端设备的处理器可以获取自身保存的消息记录,且可以通过WiFi模块或者蓝牙模块获取第二终端设备的消息记录。
其中,第一终端设备的消息记录包括:第一消息的消息内容和第一消息的因果时间,第一消息为用户通过第一终端设备聊天时产生的消息,第一消息的因果时间为传输第一消息时的协调世界时,第二终端设备的消息记录包括:第二消息的消息内容和第二消息的因果时间,第二消息为用户通过第二终端设备聊天时产生的消息,第二消息的因果时间为传输第二消息时的协调世界时。
在一些实施例中,第一终端设备的处理器可以直接通过WiFi模块或者蓝牙模块从第二终端设备处获取用户通过第二终端设备聊天时产生的聊天记录。
示例性的,以第一终端设备为手机1,第二终端设备为手机2,且手机1和手机2之间的距离较短为例进行说明。用户需要将手机2的微信聊天记录合并至手机1,手机1的处理器可以通过WiFi模块或者蓝牙模块获取手机2的微信消息记录。例如,用户可以将手机1和手机2连接到同一个WiFi网络中,并在手机2的微信中打开迁移聊天记录的功能,便会生成二维码。用户可以使用同一账号登录手机1的微信,并进行二维码的扫描。手机1的WiFi模块便可以接收手机2的WiFi模块传输的微信聊天记录。例如,用户可以打开手机1和手机2的蓝牙功能,手机1的蓝牙模块和手机2的蓝牙模块便可以进行搜索,并在搜索到彼此之后,建立连接通道。这样用户可以在手机2中查找到微信聊天记录,并选择以蓝牙发送至手机1的蓝牙模块。手机1的蓝牙模块可以接收手机2的蓝牙模块发送的微信聊天记录。
在一些实施例中,在第二终端设备将聊天记录备份到服务器的情况下,第一终端设备的处理器还可以从服务器处获取用户通过第二终端设备聊天时产生的聊天记录。示例性的,以第一终端设备为手机1,第二终端设备为手机2,且手机1和手机2均接入网络为例进行说明。用户需要将手机2中的微信聊天记录合并至手机1,可以在手机2的微信中打开上传消息记录的功能,手机2便可以将聊天记录上传至服务器。用户可以使用同一账号登录手机1的微信,并打开下载消息记录的功能,手机1的处理器便可以获取手机2的微信聊天记录。
示例性的,以第一终端设备为手机1,第二终端设备为手机2为例进行说明。用户需要将手机2的消息记录合并至手机1,手机1的处理器获取到的自身保存的消息记录。如表1所示,手机1的消息记录包括消息a的消息内容和因果时间。其中,消息a为用户通过手机1发送的消息。手机1的处理器通过WiFi模块或者蓝牙模块 获取到的手机2的消息记录。如表2所示,手机2的消息记录包括消息c的消息内容和因果时间。其中,消息c为用户通过手机2发送的消息。
表1
  消息内容 因果时间 显示时间
消息a 你好 上午9:20 上午10:20
表2
  消息内容 因果时间 显示时间
消息c 在么 上午9:50 上午10:05
在第一终端设备的处理器获取到第一终端设备的消息记录和第二终端设备的消息记录之后,可以根据第一消息的因果时间和第二消息的因果时间,将第一消息的消息内容和第二消息的消息内容进行排序。
第一终端设备的显示器可以根据排序显示第一消息的消息内容和第二消息的消息内容。
结合表1,表2和图3进行说明。所述图3示出了手机1的显示器显示合并后的消息记录的消息内容的示意图,该合并后的消息记录的消息内容的正确排序结果为:消息a的消息内容、消息c的消息内容。手机1的处理器可以根据消息a的因果时间(消息a的因果时间为上午9:20)和消息c的因果时间(消息c的因果时间为上午9:50),按照时间由早到晚的顺序,将消息c的消息内容排在消息a的消息内容之后。手机1的显示器根据排序显示消息a的消息内容和消息c的消息内容。
在一些实施例中,手机1和手机2上分别保存了多条消息。如表3所示,手机1的消息记录包括消息a的消息内容和因果时间,消息b的消息内容和因果时间。其中,消息a为用户通过手机1发送的消息,消息b为用户通过手机1接收到的消息。如表4所示,手机2的消息记录包括消息c的消息内容和因果时间,消息d的消息内容和因果时间。其中,消息c和消息d均为用户通过手机2发送的消息。
表3
  消息内容 因果时间 显示时间
消息a 你好 上午9:20 上午10:20
消息b 家里 下午14:45 下午15:45
表4
  消息内容 因果时间 显示时间
消息c 在么 上午9:50 上午10:05
消息d 在哪 上午9:52 上午10:07
结合表3,表4和图4进行说明。所述图4示出了手机1的显示器显示合并后的消息记录的消息内容的示意图,该合并后的消息记录的消息内容的正确排序结果为:消息a的消息内容、消息c的消息内容、消息d的消息内容、消息b的消息内容。以手机1的本地时间为下午15:50,同一时刻手机2的本地时间为下午15:30为例进行说明。如果手机1根据消息a、消息b、消息c和消息d的显示时间,将消息a、消息b、消息c和消息d的消息内容进行排序,则会由于手机1和手机2的本地时间不一致,使得手机1的处理器将后发送的消息c(消息c的显示时间为上午 10:05)和消息d(消息d的显示时间为上午10:07)的消息内容排在先发送的消息a(消息a的显示时间为上午10:20)的消息内容之前。但是,在本发明实施例中,消息的因果时间是不被手机的本地时间影响的,因此,在手机1的处理器获取到手机1的消息记录和手机2的消息记录后,可以根据消息a、消息b、消息c和消息d的因果时间,将消息a、消息b、消息c和消息d的消息内容进行排序,且可以将后发送的消息c(消息c的因果时间为上午9:50)和消息d(消息d的因果时间为上午9:52)的消息内容排在先发送的消息a(消息a的因果时间为上午9:20)的消息内容之后。
需要说明的是,本发明实施中是以终端设备将用户通过两个终端设备聊天产生的消息记录进行合并显示的场景为例进行说明的。当然,本发明实施例也可以用于将用户通过三个或三个以上的终端设备聊天产生的消息记录进行合并显示的场景,其具体实现过程与终端设备将用户通过两个终端设备聊天产生的消息记录进行合并显示的具体实现类似,本发明实施例在此不再详细赘述。
在一些实施例中,所述第一终端设备还可以显示合并后的消息记录的显示时间,本发明实施例在此提供了一种消息的显示时间的显示方式。
在一些实施例中,如表3所示,手机1的处理器获取到的手机1的消息记录还可以包括消息a的显示时间和消息b的显示时间。如表4所示,手机1的处理器获取到的手机2的消息记录还可以包括消息c的显示时间和消息d的显示时间。为了保证合并后的消息记录的显示时间递增,且为了减少手机1的功耗,手机1的处理器可以通过以下方式确定是否需要显示消息a、消息b、消息c、消息d的显示时间。
结合表3,表4和图5进行说明。如图5所示,对于合并后的消息记录的消息a,由于消息a是手机1的处理器根据消息的因果时间进行排序后的第一条消息,因此该消息a的显示时间是需要被显示的。对于合并后的消息记录的消息a之后的其他消息,手机1的显示器可以通过手机1的处理器判断该消息的显示时间和显示在该消息之前、且被显示了显示时间的消息的显示时间的差值是否大于预设阈值,且只有在确定差值大于预设阈值时,显示该消息的显示时间。这样,不仅保证了合并后的消息记录的显示时间递增,而且无需显示每条消息的显示时间,从而减少了手机1的功耗。示例性的,对于消息a之后的消息c、消息d和消息b,以预设阈值为五分钟为例进行说明。由于消息c的显示时间(消息c的显示时间为上午10:05)与消息a的显示时间(消息a的显示时间为上午10:20)的差值小于五分钟,因此手机1的显示器不显示消息c的显示时间。由于消息d的显示时间(消息d的显示时间为上午10:07)与消息a的显示时间的差值小于五分钟,因此手机1的显示器不显示消息d的显示时间。由于消息b的显示时间(消息b的显示时间为下午15:45)与消息a的显示时间的差值大于五分钟,因此手机1的显示器显示消息b的显示时间。
在一些实施例中,所述第一终端设备和所述第二终端设备的存储器还可以记录消息的因果时间、消息的消息内容和消息的显示时间。本发明实施例在此以第一终端设备记录第一消息的因果时间、第一消息的消息内容和第一消息的显示时间为例进行说明。
用户需要使用第一终端设备上安装好的IM应用进行聊天,可以打开IM应用进 入IM应用的登录界面。示例性的,以IM应用为微信为例进行说明。用户点击微信的应用图标。如图6所示,为第一终端设备的显示器显示的微信的登录界面的示意图。该登录界面中包括:登录账号和密码的输入框,以及登录按钮。用户可以通过第一终端设备的输入单元在登录账号的输入框中输入账号XXX,并在登录密码的输入框中输入密码123,且在输入完成后点击登录按钮。第一终端设备的处理器在检测到用户对登录按钮的点击时,可以通过第一终端设备的RF电路将登录账号和密码携带在登录请求中发送至服务器。
服务器在接收到第一终端设备的RF电路发送的登录请求之后,可以根据登录请求中携带的登录账号和密码来验证用户的合法性。在服务器验证用户的合法性通过时,可以向第一终端设备的RF电路发送用于通知第一终端设备登陆IM应用成功的登录响应。
第一终端设备的处理器在通过RF电路接收到服务器发送的登录响应之后,便可以成功登录IM应用,并显示联系人界面。如图7所示,为第一终端设备的显示器显示的联系人界面的示意图。在该联系人界面中,显示有至少一个联系人。例如,以显示的联系人为小红和小明为例示出。
在显示了联系人界面之后,用户便可以选择联系人进入聊天界面进行聊天。在用户进行聊天的过程中,第一终端设备的RF电路可以与其他用户终端的RF电路传输用户聊天产生的消息,例如第一终端设备的RF电路与其他用户终端的RF电路传输第一消息。其中,第一消息可以是需第一终端设备的RF电路发送的消息,也可以是第一终端设备的RF电路接收到的消息。在第一终端设备的RF电路传输第一消息时,第一终端设备的存储器可以记录第一消息的因果时间。
在一些实施例中,第一消息是需第一终端设备的RF电路发送的消息,示例性的,用户选择向小明发送消息,用户可以打开与小明的聊天界面。如图8所示,为第一终端设备的显示器显示的与小明的聊天界面的示意图。该聊天界面中显示有消息输入框和发送按钮。用户可以通过第一终端设备的输入单元在消息输入框中输入第一消息的消息内容(如,第一消息的消息内容为:在么),并在输入完成后点击发送按钮。第一终端设备的处理器在检测到用户对发送按钮的点击时,可以通过第一终端设备的RF电路向服务器发送第一消息的消息内容。第一终端设备的存储器记录第一消息的因果时间可以采用以下两种实现方式。
在本发明实施例的第一种实现方式中,第一终端设备的处理器在检测到用户对发送按钮的点击时,第一终端设备的存储器可以记录第一消息的因果时间。第一消息的因果时间是第一终端设备的处理器根据初始时间、第一持续时间和第二持续时间确定的。
在一些实施例中,初始时间为第一终端设备登录IM应用成功时的协调世界时,其可以通过服务器携带在登录响应中发送至第一终端设备的RF电路。第一持续时间为第一终端设备从起始时刻到登录IM应用成功时的持续时间,起始时刻为第一终端设备开机的时刻。示例性的,第一持续时间可以是第一终端设备的处理器在登录IM应用成功时获得的。第二持续时间为第一终端设备从起始时刻到检测到需发送第一消息时的持续时间。示例性的,第二持续时间可以是第一终端设备的处理器发送消 息时获得的。例如,假设初始时间为initial time,第一持续时间为initial second,第二持续时间为now second,第一消息的因果时间为septime,则可以根据公式septime=initial time+(now second-initial second),确定第一消息的因果时间。
示例性的,第一终端设备可以预先设置一计时器,以通过该计时器获取第一持续时间和第二持续时间。第一终端设备的处理器可以在检测到开机时,启动计时器。第一终端设备的处理器可以在登录IM应用成功时,读取计时器的计时时间,该时刻读取到的计时时间即为第一持续时间。且第一终端设备的处理器可以在检测到需发送第一消息时,再读取计时器的计时时间,该时刻读取到的计时时间即为第二持续时间。此处仅是以在第一终端设备中设置一计时器为例对第一持续时间和第二持续时间的获取方式进行的举例说明,但本发明实施例对第一终端设备的处理器获取第一持续时间和第二持续时间的具体实现方式并不做具体限制。
需要说明的是,由于初始时间是第一终端设备登录IM应用成功时的协调世界时,第一持续时间是第一终端设备从开机的时刻到登录IM应用成功时的持续时间,可以得到的是,初始时间和第一持续时间与第一终端设备发送消息的时间是无关的,因此,在第一终端设备的处理器获取到初始时间和第一持续时间之后,可以保存初始时间和第一持续时间。这样,在第一终端设备的RF电路发送其他消息时,第一终端设备的处理器只需获取第一终端设备从开机的时刻到检测到其他消息需发送时的持续时间,并根据保存了的初始时间和第一持续时间,便可以确定出其他消息的因果时间。
在本发明实施的第二种实现方式中,在第一终端设备的处理器通过第一终端设备的RF电路向服务器发送了第一消息的消息内容之后,服务器可以接收第一消息的消息内容,并将第一消息的因果时间携带在响应中发送至第一终端设备的RF电路,第一消息的因果时间为服务器接收到第一消息时的协调世界时。第一终端设备的RF电路可以通过第一终端设备的存储器记录第一消息的因果时间。
在一些实施例中,第一消息是通过第一终端设备的RF电路接收到的消息,示例性的,以用户接收到小明的消息为例进行说明。小明使用的终端设备的RF电路可以先将第一消息发送至服务器。服务器便可以将第一消息的消息内容和第一消息的因果时间发送至第一终端设备的RF电路,第一消息的因果时间为服务器向第一终端设备的RF电路发送第一消息时的协调世界时。第一终端设备的RF电路便可以通过第一终端设备的存储器记录第一消息的因果时间。示例性的,假设服务器向第一终端设备的RF电路发送第一消息时的协调世界时为server time,第一消息的因果时间为septime,则第一终端设备将接收到的server time作为septime。
在第一终端设备的RF电路传输第一消息时,第一终端设备的存储器还可以记录第一消息的显示时间,并记录第一消息的消息内容。
在一些实施例中,所述第一消息是通过第一终端设备的RF电路发送的消息,第一消息的显示时间为确定出需发送第一消息时第一终端设备的本地时间。示例性的,假设第一终端设备的本地时间为local time,第一消息的显示时间为show time,则第一终端设备的处理器将获取到的local time作为show time。
在一些实施例中,所述第一消息是通过第一终端设备的RF电路接收到的消息, 所述第一消息的显示时间是第一终端设备的处理器根据服务器向第一终端设备发送第一消息时的协调世界时和第一终端设备所处时区计算得到的。示例性的,第一消息的显示时间可以是第一终端设备的处理器根据服务器向第一终端设备发送第一消息时的协调世界时,以及第一终端设备的本地时间和协调世界时之间的时区差确定的时间。例如,假设第一消息的显示时间为show time,服务器向第一终端设备发送第一消息时的协调世界时为server time,第一终端设备的本地时间和协调世界时之间的时区差为X,则第一终端设备的处理器可以根据公式show time=server time+X,确定第一消息的显示时间。
所述第一终端设备的存储器记录了第一消息的因果时间,且记录了第一消息的消息内容。所述第一终端设备的显示器可以根据第一消息的因果时间,显示第一消息的消息内容。第一终端设备的显示器可以通过第一终端设备的处理器先获取第一消息的前一条消息的因果时间,并根据第一消息的因果时间和第一消息的前一条消息的因果时间,显示第一消息的消息内容。在第一终端设备的存储器记录了第一消息的显示时间之后,第一终端设备的处理器可以先获取显示在第一消息之前、且被显示了显示时间的消息的显示时间,并在确定第一消息的显示时间和显示在第一消息之前、且被显示了显示时间的消息的显示时间的差值大于预设阈值时,第一终端设备的显示器显示第一消息的显示时间。
本发明实施例提供的消息记录合并显示方法,第一终端设备通过根据获取到的第一消息的因果时间和第二消息的因果时间,将第一消息的消息内容和第二消息的消息内容进行排序,并根据排序显示第一消息的消息内容和第二消息的消息内容。这样,在需要将不同的终端设备的消息记录进行合并的情况下,由于消息的因果时间是传输该消息时的协调世界时,而协调世界时是不会被终端设备的本地时间,或者终端设备所处时区等因素影响的,因此根据消息的因果时间合并后的消息记录能够正确按照消息发送和接收的先后顺序进行排序并显示。
并且,第一终端设备只有在确定消息的显示时间和显示在该消息之前、且被显示了显示时间的消息的显示时间的差值大于预设阈值时,才显示该消息的显示时间,这样,不仅保证了合并后的消息记录的显示时间递增,而且减少了第一终端设备的功耗。
为了便于本领域技术人员的理解,本发明实施例在此根据应用场景的不同对本发明实施例提供的消息记录合并显示方法进行介绍。以不同的场景为例,以手机为例进行说明。
场景一、如表5所示,手机1的消息记录包括消息a’的消息内容、因果时间和显示时间,消息b’的消息内容、因果时间和显示时间,以及消息c’的消息内容、因果时间和显示时间。其中,消息a’和消息c’为用户通过手机1发送的消息,消息b’为手机1接收到的消息。如表6所示,手机2的消息记录包括消息d’的消息内容、因果时间和显示时间,以及消息e的消息内容、因果时间和显示时间。其中,消息d’和消息e为用户使用同一账户通过手机2发送的消息。
表5
  消息内容 因果时间 显示时间
消息a’ 吃了么 上午10:45 下午15:45
消息b’ 吃了 上午11:00 下午16:00
消息c’ 在工作么 上午11:03 下午16:03
表6
  消息内容 因果时间 显示时间
消息d’ 哈喽 上午10:20 下午15:50
消息e 在干什么 上午10:22 下午15:52
以手机1的本地时间为下午16:05,同一时刻手机2的本地时间为下午16:35为例进行说明。在将手机1的消息记录合并至手机2时,手机2应该将先发送的消息d’和消息e的消息内容显示在后发送的消息a’的消息内容之前。但是如果手机2根据消息a’、消息b’、消息c’、消息d’和消息e的显示时间,将消息a’、消息b’、消息c’、消息d’和消息e的消息内容进行排序并显示,则会由于手机1和手机2的本地时间不一致,使得手机2将先发送的消息d’(消息d’的显示时间为下午15:50)和消息e(消息e的显示时间为下午15:52)的消息内容显示在后发送的消息a’(消息a’的显示时间为下午15:45)的消息内容之后。在本发明实施例中,消息的因果时间是不被手机的本地时间影响的,因此,手机2根据消息a’、消息b’、消息c’、消息d’和消息e的因果时间,将消息a’、消息b’、消息c’、消息d’和消息e的消息内容进行排序并显示时,不会出现先发送的消息d’(消息d’的因果时间为上午10:20)和消息e(消息e的因果时间为上午10:22)的消息内容显示在后发送的消息a’(消息a’的因果时间为上午10:45)的消息内容之后,即能够显示正确的排序结果。
以预设阈值为5分钟为例进行说明。由于消息d’为排序后的第一条消息,因此手机2显示消息d’的显示时间。由于消息e和消息a’的显示时间与消息d’的显示时间的差值均小于五分钟,因此手机2不显示消息e和消息a’的显示时间。由于消息b’的显示时间与消息d’的显示时间的差值大于五分钟,因此手机2显示消息b’的显示时间。由于消息c’的显示时间与消息b’的显示时间的差值小于五分钟,因此手机2不显示消息c’的显示时间。如图9所示,为手机2显示的合并消息记录后的界面的示意图。
场景二,如图10中的A所示,为手机显示的手机处于地区1的消息记录的示意图,该消息记录包括消息a”、消息b”和消息c”。其中,消息a”的消息内容为:嗨,显示时间为下午15:45。消息b”的消息内容为:怎么了。消息c”的消息内容为:没事,显示时间为下午16:00。
以手机处于地区1时的本地时间为12月24日下午16:05,用户携带手机到达地区2后,手机处于地区2的本地时间为12月24日上午10:00为例进行说明。用户在手机上登录IM应用,并在登录成功后向其他用户终端发送消息d”,手机便可以确定出消息d”的消息内容为:忙什么,显示时间为12月24日上午10:05,因果时间为12月24日下午13:00。手机应该将后发送的消息d”的消息内容显示在先发送的消息c”的消息内容之后。但是,如果手机根据消息d”的显示时间,将消息d” 的消息内容进行显示,则会将后发送的消息d”的消息内容显示在先发送的消息a”的消息内容之前。在本发明实施例中,消息的因果时间是不被手机所处时区影响的,因此,手机根据消息c”的因果时间和消息d”的因果时间,将消息d”的消息内容进行显示时,假设消息c”的因果时间为12月24日上午11:00,则消息d”的消息内容显示在消息c”的消息内容之后。
以预设阈值为五分钟为例进行说明,由于消息d”的显示时间和消息c”的显示时间的差值小于五分钟,因此手机不显示消息d”的显示时间。如图10中的B所示,为手机显示的手机处于地区2的消息记录的示意图。
上述主要从各个网元之间交互的角度对本发明实施例提供的方案进行了介绍。可以理解的是,各个网元,例如终端设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的算法步骤,本发明能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。
本发明实施例可以根据上述方法示例对终端设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本发明实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
例如,在采用对应各个功能划分各个功能模块的情况下,图11示出了上述和实施例中涉及的终端设备的一种可能的结构示意图。该终端设备可以为上述第一终端设备。如图11所示,该终端设备可以包括:获取单元31、排序单元32和显示单元33。
其中,获取单元31,用于获取终端设备的消息记录,并获取第二终端设备的消息记录,终端设备的消息记录包括:第一消息的消息内容和所述第一消息的因果时间,第二终端设备的消息记录包括:第二消息的消息内容和所述第二消息的因果时间;还用于获取第三消息的显示时间,第三消息是显示在第一消息之前、且被显示了显示时间的消息,第三消息的显示时间包括在终端设备的消息记录中或包括在第二终端设备的消息记录中;还用于获取第四消息的显示时间,第四消息是显示在第二消息之前、且被显示了显示时间的消息,第四消息的显示时间包括在终端设备的消息记录中或包括在第二终端设备的消息记录中。
排序单元32,用于根据获取单元获取到的第一消息的因果时间和第二消息的因果时间,将第一消息的消息内容和第二消息的消息内容进行排序。
显示单元33,用于根据排序显示排序单元排序后的第一消息的消息内容和第二消息的消息内容;还用于在确定单元确定出第一消息的显示时间和第三消息的显示时间的差值大于预设阈值时,显示第一消息的显示时间;还用于在确定单元确定出第二消息的显示时间和第四消息的显示时间的差值大于预设阈值时,显示第二消息的显示时间。
在本发明实施例中,进一步的,如图12所示,该终端设备还可以包括:存储单元34、发送单元35、接收单元36和确定单元37。
存储单元34,用于记录第一消息的因果时间,第一消息的因果时间是根据初始时间、第一持续时间和第二持续时间确定的。
发送单元35,用于向服务器发送第一消息。
接收单元36,用于接收服务器发送的第一消息的因果时间,第一消息的因果时间为服务器接收到第一消息时的协调世界时,或者,第一消息的因果时间为服务器向终端设备发送第一消息时的协调世界时。
确定单元37,用于确定第一消息的显示时间和获取单元获取到的第三消息的显示时间的差值;还用于确定第二消息的显示时间和获取单元获取到的第四消息的显示时间的差值。
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。
本发明实施例提供的终端设备,用于执行上述消息记录合并显示方法,因此可以达到与上述消息记录合并显示方法相同的效果。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、 RAM、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何在本发明揭露的技术范围内的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。

Claims (21)

  1. 一种消息记录合并显示方法,其特征在于,包括:
    第一终端设备获取所述第一终端设备的消息记录,获取第二终端设备的消息记录,所述第一终端设备的消息记录包括:第一消息的消息内容和所述第一消息的因果时间,所述第二终端设备的消息记录包括:第二消息的消息内容和所述第二消息的因果时间;
    所述第一终端设备根据所述第一消息的因果时间和所述第二消息的因果时间,将所述第一消息的消息内容和所述第二消息的消息内容进行排序;
    所述第一终端设备根据排序显示所述第一消息的消息内容和所述第二消息的消息内容。
  2. 根据权利要求1所述的方法,其特征在于,
    所述第一消息的因果时间为传输所述第一消息时的协调世界时;
    所述第二消息的因果时间为传输所述第二消息时的协调世界时。
  3. 根据权利要求1或2所述的方法,其特征在于,所述第一消息是需所述第一终端设备发送的消息,所述方法还包括:
    所述第一终端设备记录所述第一消息的因果时间,所述第一消息的因果时间是根据初始时间、第一持续时间和第二持续时间确定的;
    其中,所述初始时间为所述第一终端设备登录即时通信IM应用成功时的协调世界时,所述第一持续时间为所述第一终端设备从起始时刻到登录所述IM应用成功时的持续时间,所述起始时刻为所述第一终端设备开机的时刻,所述第二持续时间为所述第一终端设备从所述起始时刻到检测到需发送所述第一消息时的持续时间。
  4. 根据权利要求1或2所述的方法,其特征在于,所述第一消息是需所述第一终端设备发送的消息,所述方法还包括:
    所述第一终端设备向服务器发送所述第一消息;
    所述第一终端设备接收所述服务器发送的所述第一消息的因果时间,所述第一消息的因果时间为所述服务器接收到所述第一消息时的协调世界时。
  5. 根据权利要求1或2所述的方法,其特征在于,所述第一消息是所述第一终端设备接收到的消息,所述方法还包括:
    所述第一终端设备接收服务器发送的所述第一消息的因果时间,所述第一消息的因果时间为所述服务器向所述第一终端设备发送所述第一消息时的协调世界时。
  6. 根据权利要求1-5中任一项所述的方法,其特征在于,所述第一终端设备的消息记录还包括所述第一消息的显示时间,所述方法还包括:
    所述第一终端设备获取第三消息的显示时间,所述第三消息是显示在所述第一消息之前、且被显示了显示时间的消息,所述第三消息的显示时间包括在所述第一终端设备的消息记录中或包括在所述第二终端设备的消息记录中;
    所述第一终端设备在确定所述第一消息的显示时间和所述第三消息的显示时间的差值大于预设阈值时,显示所述第一消息的显示时间。
  7. 根据权利要求1-6中任一项所述的方法,其特征在于,所述第二终端设备的消息记录还包括所述第二消息的显示时间,所述方法还包括:
    所述第一终端设备获取第四消息的显示时间,所述第四消息是显示在所述第二消 息之前、且被显示了显示时间的消息,所述第四消息的显示时间包括在所述第一终端设备的消息记录中或包括在所述第二终端设备的消息记录中;
    所述第一终端设备在确定所述第二消息的显示时间和所述第四消息的显示时间的差值大于预设阈值时,显示所述第二消息的显示时间。
  8. 一种终端设备,其特征在于,所述终端设备包括:处理器和显示器;
    所述处理器,用于获取所述终端设备的消息记录,获取第二终端设备的消息记录,所述终端设备的消息记录包括:第一消息的消息内容和所述第一消息的因果时间,所述第二终端设备的消息记录包括:第二消息的消息内容和所述第二消息的因果时间;根据所述第一消息的因果时间和所述第二消息的因果时间,将所述第一消息的消息内容和所述第二消息的消息内容进行排序;
    所述显示器,用于根据所述处理器的排序显示所述第一消息的消息内容和所述第二消息的消息内容。
  9. 根据权利要求8所述的终端设备,其特征在于,
    所述第一消息的因果时间为传输所述第一消息时的协调世界时;
    所述第二消息的因果时间为传输所述第二消息时的协调世界时。
  10. 根据权利要求8或9所述的终端设备,其特征在于,所述第一消息是需所述终端设备发送的消息,所述终端设备还包括:存储器;
    所述存储器,用于记录所述第一消息的因果时间,所述第一消息的因果时间是根据初始时间、第一持续时间和第二持续时间确定的;
    其中,所述初始时间为所述终端设备登录即时通信IM应用成功时的协调世界时;所述第一持续时间为所述终端设备从起始时刻到登录所述IM应用成功时的持续时间,所述起始时刻为所述终端设备开机的时刻;所述第二持续时间为所述终端设备从所述起始时刻到检测到需发送所述第一消息时的持续时间。
  11. 根据权利要求8或9所述的终端设备,其特征在于,所述第一消息是需所述终端设备发送的消息,所述终端设备还包括:射频RF电路;
    所述RF电路,用于向服务器发送所述第一消息;接收所述服务器发送的所述第一消息的因果时间,所述第一消息的因果时间为所述服务器接收到所述第一消息时的协调世界时。
  12. 根据权利要求8或9所述的终端设备,其特征在于,所述第一消息是所述终端设备接收到的消息,所述终端设备还包括:射频RF电路;
    所述RF电路,用于接收服务器发送的所述第一消息的因果时间,所述第一消息的因果时间为所述服务器向所述终端设备发送所述第一消息时的协调世界时。
  13. 根据权利要求8-12中任一项所述的终端设备,其特征在于,所述终端设备的消息记录还包括所述第一消息的显示时间;
    所述处理器,还用于获取第三消息的显示时间,所述第三消息是显示在所述第一消息之前、且被显示了显示时间的消息,所述第三消息的显示时间包括在所述终端设备的消息记录中或包括在所述第二终端设备的消息记录中;确定所述第一消息的显示时间和所述第三消息的显示时间的差值;
    所述显示器,还用于在所述处理器确定出所述第一消息的显示时间和所述第三消 息的显示时间的差值大于预设阈值时,显示所述第一消息的显示时间。
  14. 根据权利要求8-13中任一项所述的终端设备,其特征在于,所述第二终端设备的消息记录还包括所述第二消息的显示时间;
    所述处理器,还用于获取第四消息的显示时间,所述第四消息是显示在所述第二消息之前、且被显示了显示时间的消息,所述第四消息的显示时间包括在所述终端设备的消息记录中或包括在所述第二终端设备的消息记录中;确定所述第二消息的显示时间和所述第四消息的显示时间的差值;
    所述显示器,还用于在所述处理器确定出所述第二消息的显示时间和所述第四消息的显示时间的差值大于预设阈值时,显示所述第二消息的显示时间。
  15. 一种终端设备,其特征在于,所述终端设备包括:获取单元、排序单元和显示单元;
    所述获取单元,用于获取所述终端设备的消息记录,获取第二终端设备的消息记录,所述终端设备的消息记录包括:第一消息的消息内容和所述第一消息的因果时间,所述第二终端设备的消息记录包括:第二消息的消息内容和所述第二消息的因果时间;
    所述排序单元,用于根据所述获取单元获取到的所述第一消息的因果时间和所述第二消息的因果时间,将所述获取单元获取到的所述第一消息的消息内容和所述第二消息的消息内容进行排序;
    所述显示单元,用于根据所述排序单元的排序显示所述第一消息的消息内容和所述第二消息的消息内容。
  16. 根据权利要求15所述的终端设备,其特征在于,
    所述第一消息的因果时间为传输所述第一消息时的协调世界时;
    所述第二消息的因果时间为传输所述第二消息时的协调世界时。
  17. 根据权利要求15或16所述的终端设备,其特征在于,所述第一消息是需所述终端设备发送的消息,所述终端设备还包括:存储单元;
    所述存储单元,用于记录所述第一消息的因果时间,所述第一消息的因果时间是根据初始时间、第一持续时间和第二持续时间确定的;
    其中,所述初始时间为所述终端设备登录即时通信IM应用成功时的协调世界时;所述第一持续时间为所述终端设备从起始时刻到登录所述IM应用成功时的持续时间,所述起始时刻为所述终端设备开机的时刻;所述第二持续时间为所述终端设备从所述起始时刻到检测到需发送所述第一消息时的持续时间。
  18. 根据权利要求15或16所述的终端设备,其特征在于,所述第一消息是需所述终端设备发送的消息,所述终端设备还包括:发送单元和接收单元;
    所述发送单元,用于向服务器发送所述第一消息;
    所述接收单元,用于接收所述服务器发送的所述第一消息的因果时间,所述第一消息的因果时间为所述服务器接收到所述第一消息时的协调世界时。
  19. 根据权利要求15或16所述的终端设备,其特征在于,所述第一消息是所述终端设备接收到的消息,所述终端设备还包括:接收单元;
    所述接收单元,用于接收服务器发送的所述第一消息的因果时间,所述第一消息的因果时间为所述服务器向所述终端设备发送所述第一消息时的协调世界时。
  20. 根据权利要求15-19中任一项所述的终端设备,其特征在于,所述获取单元获取到的所述终端设备的消息记录还包括所述第一消息的显示时间,所述终端设备还包括:确定单元;
    所述获取单元,还用于获取第三消息的显示时间,所述第三消息是显示在所述第一消息之前、且被显示了显示时间的消息,所述第三消息的显示时间包括在所述终端设备的消息记录中或包括在所述第二终端设备的消息记录中;
    所述确定单元,用于确定所述第一消息的显示时间和所述获取单元获取到的所述第三消息的显示时间的差值;
    所述显示单元,还用于在所述确定单元确定出所述第一消息的显示时间和所述第三消息的显示时间的差值大于预设阈值时,显示所述第一消息的显示时间。
  21. 根据权利要求15-20中任一项所述的终端设备,其特征在于,所述第二终端设备的消息记录还包括所述第二消息的显示时间;
    所述获取单元,还用于获取第四消息的显示时间,所述第四消息是显示在所述第二消息之前、且被显示了显示时间的消息,所述第四消息的显示时间包括在所述终端设备的消息记录中或包括在所述第二终端设备的消息记录中;
    所述确定单元,还用于确定所述第二消息的显示时间和所述获取单元获取到的所述第四消息的显示时间的差值;
    所述显示单元,还用于在所述确定单元确定出所述第二消息的显示时间和所述第四消息的显示时间的差值大于预设阈值时,显示所述第二消息的显示时间。
PCT/CN2017/072682 2017-01-25 2017-01-25 一种消息记录合并显示方法及终端设备 WO2018137207A1 (zh)

Priority Applications (7)

Application Number Priority Date Filing Date Title
CN201780003467.3A CN108235803B (zh) 2017-01-25 2017-01-25 一种消息记录合并显示方法及终端设备
BR112019015131-1A BR112019015131A2 (pt) 2017-01-25 2017-01-25 Método de exibição e combinação de registro de mensagem e dispositivo terminal
PCT/CN2017/072682 WO2018137207A1 (zh) 2017-01-25 2017-01-25 一种消息记录合并显示方法及终端设备
JP2019540069A JP6931706B2 (ja) 2017-01-25 2017-01-25 メッセージレコードの結合と表示方法、および端末装置
AU2017395968A AU2017395968B2 (en) 2017-01-25 2017-01-25 Message record combination and display method and terminal device
US16/480,971 US11057329B2 (en) 2017-01-25 2017-01-25 Message record combination and display method and terminal device
EP17894045.8A EP3567811A4 (en) 2017-01-25 2017-01-25 MERGED DISPLAY METHOD FOR MESSAGE RECORDINGS, AND TERMINAL DEVICE

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/072682 WO2018137207A1 (zh) 2017-01-25 2017-01-25 一种消息记录合并显示方法及终端设备

Publications (1)

Publication Number Publication Date
WO2018137207A1 true WO2018137207A1 (zh) 2018-08-02

Family

ID=62643351

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/072682 WO2018137207A1 (zh) 2017-01-25 2017-01-25 一种消息记录合并显示方法及终端设备

Country Status (7)

Country Link
US (1) US11057329B2 (zh)
EP (1) EP3567811A4 (zh)
JP (1) JP6931706B2 (zh)
CN (1) CN108235803B (zh)
AU (1) AU2017395968B2 (zh)
BR (1) BR112019015131A2 (zh)
WO (1) WO2018137207A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124199A (zh) * 2019-11-21 2020-05-08 维沃移动通信有限公司 一种消息显示方法及第一电子设备

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7447495B2 (ja) * 2020-01-08 2024-03-12 富士フイルムビジネスイノベーション株式会社 情報処理装置及びプログラム
CN111669316B (zh) * 2020-06-19 2022-04-26 厦门亿联网络技术股份有限公司 即时消息处理方法、装置、设备、服务器及存储介质
CN115037835A (zh) * 2022-06-14 2022-09-09 中国电信股份有限公司 一种消息显示方法、系统、装置、终端及介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050193345A1 (en) * 2004-02-27 2005-09-01 Research In Motion Limited System and method for message display and management
CN101416207A (zh) * 2006-02-06 2009-04-22 谷歌公司 具有电子邮件和聊天消息两者的集成对话
CN102035756A (zh) * 2009-10-07 2011-04-27 捷讯研究有限公司 用于提供时区作为即时消息收发存在的系统和方法
CN102447778A (zh) * 2010-10-13 2012-05-09 腾讯科技(深圳)有限公司 一种展示消息的方法及消息展示装置
CN103167172A (zh) * 2013-02-08 2013-06-19 广州三星通信技术研究有限公司 将多种聊天记录整合的方法和系统
US20150149561A1 (en) * 2013-11-26 2015-05-28 International Business Machines Corporation Time conversion in an instant message

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010029455A1 (en) * 2000-03-31 2001-10-11 Chin Jeffrey J. Method and apparatus for providing multilingual translation over a network
US7133568B2 (en) * 2000-08-04 2006-11-07 Nikitin Alexei V Method and apparatus for analysis of variables
CN100473012C (zh) * 2006-03-28 2009-03-25 腾讯科技(深圳)有限公司 一种消息记录合并方法及客户端
US7761525B2 (en) * 2007-08-23 2010-07-20 International Business Machines Corporation System and method for providing improved time references in documents
CN101730004A (zh) * 2009-10-30 2010-06-09 中兴通讯股份有限公司 实现消息时间处理的方法及系统
CN103139259A (zh) * 2011-11-30 2013-06-05 百度在线网络技术(北京)有限公司 一种实现低流量同步消息记录的方法和服务器
CN103377221B (zh) 2012-04-24 2016-06-01 富士通株式会社 消息整合装置、消息整合方法以及电子设备
CN103812755A (zh) 2012-11-12 2014-05-21 腾讯科技(深圳)有限公司 一种即时通讯应用中的消息同步方法及装置
JP6194459B2 (ja) 2012-11-26 2017-09-13 株式会社コナミデジタルエンタテインメント 表示装置、およびプログラム
JP6296692B2 (ja) 2013-03-29 2018-03-20 株式会社バンダイナムコエンターテインメント サーバシステム
JP2014198169A (ja) 2013-03-29 2014-10-23 株式会社バンダイナムコゲームス サーバシステム
CN104734940A (zh) * 2013-12-23 2015-06-24 华为技术有限公司 一种用于即时通讯工具的信息显示方法和用户终端
KR102249147B1 (ko) * 2014-03-29 2021-05-07 삼성전자주식회사 복합 네트워크에서 멀티미디어 데이터 관련 정보를 송수신하기 위한 장치 및 방법과 그 구조
US20160224538A1 (en) 2015-01-30 2016-08-04 First Advantage Litigation Consulting Dba Consilio Systems and methods for electronic document review
JP2016212878A (ja) 2015-05-08 2016-12-15 Line株式会社 メッセンジャーの表示制御方法及び通信端末
CN105471716A (zh) * 2015-12-17 2016-04-06 网易(杭州)网络有限公司 实现跨客户端消息同步的方法、用户设备及服务器

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050193345A1 (en) * 2004-02-27 2005-09-01 Research In Motion Limited System and method for message display and management
CN101416207A (zh) * 2006-02-06 2009-04-22 谷歌公司 具有电子邮件和聊天消息两者的集成对话
CN102035756A (zh) * 2009-10-07 2011-04-27 捷讯研究有限公司 用于提供时区作为即时消息收发存在的系统和方法
CN102447778A (zh) * 2010-10-13 2012-05-09 腾讯科技(深圳)有限公司 一种展示消息的方法及消息展示装置
CN103167172A (zh) * 2013-02-08 2013-06-19 广州三星通信技术研究有限公司 将多种聊天记录整合的方法和系统
US20150149561A1 (en) * 2013-11-26 2015-05-28 International Business Machines Corporation Time conversion in an instant message

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3567811A4 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124199A (zh) * 2019-11-21 2020-05-08 维沃移动通信有限公司 一种消息显示方法及第一电子设备

Also Published As

Publication number Publication date
AU2017395968A1 (en) 2019-08-22
JP2020509460A (ja) 2020-03-26
CN108235803A (zh) 2018-06-29
US11057329B2 (en) 2021-07-06
BR112019015131A2 (pt) 2020-03-24
JP6931706B2 (ja) 2021-09-08
AU2017395968B2 (en) 2020-12-10
US20200007483A1 (en) 2020-01-02
EP3567811A4 (en) 2019-12-18
CN108235803B (zh) 2022-05-13
EP3567811A1 (en) 2019-11-13

Similar Documents

Publication Publication Date Title
CN110622123B (zh) 一种显示方法及装置
WO2016169465A1 (zh) 一种显示弹幕信息的方法、装置和系统
CN106059894B (zh) 一种消息处理方法和装置
KR102249413B1 (ko) 이미지 공유 방법 및 전자 디바이스
US11740851B2 (en) Display method and apparatus
WO2018137207A1 (zh) 一种消息记录合并显示方法及终端设备
WO2018232758A1 (zh) 一种rcs通信方法及设备
CN108345422A (zh) 应用控制方法、装置、移动终端及计算机可读介质
WO2020103070A1 (zh) 一种对应用程序进行处理的方法、装置和电子设备
CN109240551A (zh) 使用手势控制电子装置的方法及相关产品
CN104809055B (zh) 一种基于云平台的应用程序测试方法和装置
CN108536415A (zh) 应用音量控制方法、装置、移动终端及计算机可读介质
CN106488391B (zh) 一种数据迁移方法及终端设备
KR101876394B1 (ko) 단말기에 미디어 데이터를 재생하는 방법 및 장치
US11147038B2 (en) Notification message processing method and terminal
WO2017008613A1 (zh) 一种推荐内容推送方法、装置及其终端、服务器和系统
CN107479811A (zh) 在会话期间建立与管理会议、记录会议的方法以及移动终端
CN104168179A (zh) 一种发送信息的方法及装置
WO2015078409A1 (zh) 收集信息的方法、装置、终端及系统
CN107908664A (zh) 信息推送方法、装置、移动终端和可读存储介质
CN107689909B (zh) 用户显示方法及装置
CN109189296A (zh) 截屏方法、装置、移动终端以及存储介质
CN108769093A (zh) 软件应用商店的推送方法、装置以及移动终端
CN108833660A (zh) 停车位信息处理方法、装置以及移动终端
CN111163221B (zh) 群组通讯录更新方法、装置、存储介质及终端设备

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: 17894045

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2019540069

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112019015131

Country of ref document: BR

ENP Entry into the national phase

Ref document number: 2017894045

Country of ref document: EP

Effective date: 20190808

ENP Entry into the national phase

Ref document number: 2017395968

Country of ref document: AU

Date of ref document: 20170125

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 112019015131

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20190723