WO2015180382A1 - 管理即时消息的方法和装置 - Google Patents

管理即时消息的方法和装置 Download PDF

Info

Publication number
WO2015180382A1
WO2015180382A1 PCT/CN2014/089208 CN2014089208W WO2015180382A1 WO 2015180382 A1 WO2015180382 A1 WO 2015180382A1 CN 2014089208 W CN2014089208 W CN 2014089208W WO 2015180382 A1 WO2015180382 A1 WO 2015180382A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
session
instant message
instant
existing
Prior art date
Application number
PCT/CN2014/089208
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 KR1020147035957A priority Critical patent/KR101601003B1/ko
Priority to RU2015100906/07A priority patent/RU2604641C2/ru
Priority to BR112015000407A priority patent/BR112015000407A2/pt
Priority to MX2015000197A priority patent/MX359701B/es
Priority to JP2016522254A priority patent/JP2016524767A/ja
Priority to US14/605,252 priority patent/US20150350120A1/en
Publication of WO2015180382A1 publication Critical patent/WO2015180382A1/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Definitions

  • the present disclosure relates to the field of instant messaging, and in particular, to a method and apparatus for managing instant messages.
  • Instant messaging is a service that can send and receive Internet messages instantly. With the development of mobile Internet, instant messaging is no longer a simple chat tool. It has developed into an integrated information platform integrating communication, information, entertainment, search, e-commerce, office collaboration and enterprise customer service.
  • Instant messaging can be a single-person conversation between two clients, or a multi-person conversation between multiple clients.
  • the current instant messaging client when conducting a single-person conversation or a multi-person conversation, displays the instant messages in the conversation window in chronological order.
  • the present disclosure provides a method and apparatus for managing instant messages to improve the efficiency of browsing and searching of instant messages.
  • a method for managing an instant message including:
  • the instant message is not a reply message of an existing message, create a session, and join the instant message as a root node into the session;
  • the instant message is a reply message of an existing message
  • the instant message is added to the session in which the existing message is located, and the instant message is set as a child node of the existing message.
  • the creating a session, adding the instant message to the session as a root node includes:
  • the adding the instant message to the session in which the existing message is located, and setting the instant message as a child node of the existing message includes:
  • the method further includes:
  • a specified operation is detected for any instant message in any session
  • the method further includes:
  • the any instant message and its child nodes are deleted from any of the sessions.
  • the method further includes:
  • a default topic name is generated for the session or the content entered by the user is set to the topic name of the session.
  • an apparatus for managing an instant message comprising:
  • a determining module configured to determine, when the instant message is sent or received, whether the instant message is a reply message of an existing message
  • a first processing module configured to: when the instant message is not a reply message of an existing message, create a session, and join the instant message as a root node into the session;
  • a second processing module configured to: when the instant message is a reply message of an existing message, add the instant message to a session in which the existing message is located, and set the instant message as the existing message Child node.
  • the first processing module includes:
  • a creating unit configured to create a session when the instant message is not a reply message of an existing message, and add the instant message to the session;
  • a setting unit configured to set an association attribute of the instant message to be empty or set as a root node of the session.
  • the second processing module includes:
  • a joining unit configured to add the instant message to a session in which the existing message is located when the instant message is a reply message of an existing message
  • a setting unit configured to set an association attribute of the instant message to a child node of the existing message.
  • the device further includes:
  • a detecting module configured to detect a specified operation on any instant message in any session
  • a creating module configured to: when the detecting module detects a specified operation of any instant message in any session, create a new session, and use any one of the instant messages as a root node, and use any one of the instant messages and Its child nodes join the new session.
  • the device further includes:
  • a deleting module configured to delete the any instant message and its child nodes from the any session after the detecting module detects a specified operation of any instant message in any session.
  • the device further includes:
  • a setting module configured to: after the first processing module creates a session, generate a default theme name for the session or set a content input by the user as a theme name of the session.
  • an apparatus for managing an instant message comprising:
  • processor executable instructions a processor and a memory for storing processor executable instructions
  • processor is configured to:
  • the instant message is not a reply message of an existing message, create a session, and join the instant message as a root node into the session;
  • the instant message is a reply message of an existing message
  • the instant message is added to the session in which the existing message is located, and the instant message is set as a child node of the existing message.
  • the technical solution provided by the embodiment of the present disclosure may include the following beneficial effects: when sending and receiving an instant message, determining whether the instant message is a reply message of an existing message; if the instant message is not a reply message of an existing message, creating a session, the instant message is added to the session as a root node; if the instant message is a reply message of an existing message, the instant message is added to the session in which the existing message is located, and the session is The instant message is set as a child node of the existing message, so that the associated instant message forms a tree-structured session, and provides a brand-new instant message storage mode, which can quickly browse according to the parent-child relationship between the nodes. Finding instant messages greatly improves the efficiency of browsing and finding instant messages, making it easier to use.
  • FIG. 1 is a flow chart showing a method of managing an instant message, according to an exemplary embodiment.
  • FIG. 2 is a flowchart illustrating a method of managing an instant message, according to another exemplary embodiment.
  • FIG. 3 is a flowchart of a method of managing an instant message, according to another exemplary embodiment.
  • FIG. 4 is a block diagram of an apparatus for managing an instant message, according to another exemplary embodiment.
  • FIG. 5 is a block diagram of an apparatus for managing an instant message, according to another exemplary embodiment.
  • FIG. 6 is a block diagram of an apparatus for managing an instant message, according to another exemplary embodiment.
  • FIG. 7 is a block diagram of an apparatus for managing an instant message, according to another exemplary embodiment.
  • FIG. 8 is a block diagram of an apparatus for managing an instant message, according to another exemplary embodiment.
  • FIG. 1 is a flowchart of a method for managing an instant message according to an exemplary embodiment. As shown in FIG. 1 , the method is used in a terminal, and includes the following steps.
  • step S11 when sending and receiving an instant message, determining whether the instant message is a reply message of an existing message, if the instant message is not a reply message of an existing message, executing S12; if the instant message is a reply of an existing message For the message, execute S13.
  • the instant message may be an instant message to be sent by the local terminal, or may be an instant message sent by another terminal.
  • the instant message may be a message in a single-person conversation or a message in a multi-person conversation, which is not specifically limited in this embodiment.
  • step S12 a session is created, the instant message is added to the session as a root node, and the process ends.
  • the session is a collection of instant messages, including at least one instant message, and usually includes multiple instant messages.
  • Each instant message in the session except the first one is a reply message. Therefore, the instant messages in a session are related and can be considered as instant messages about the same topic.
  • the session on the "birthday" topic in the single-player conversation between terminal A and terminal B includes 20 instant messages.
  • the session about the "over the festival” topic in the multi-person dialogue between terminal A and terminal C and terminal D includes 30 instant messages, and the session on the "ticket" topic includes 50 instant messages and the like.
  • a default topic name for the session or set the content entered by the user to the topic name of the session.
  • the default topic name may be part or all of the first instant message in the session.
  • an editing function can also be provided to the user, and the user can input the content he wants as the topic name of the session in the edit box of the topic name of the session.
  • the timestamp of the session may be set to the timestamp of the first instant message in the session, which is not specifically limited in this embodiment.
  • step S13 the instant message is added to the session in which the existing message is located, and the instant message is set as a child node of the existing message, and the process ends.
  • a tree-like session can be obtained, and each session has its own theme.
  • multiple sessions are available.
  • a session list can be established to store the session.
  • the session is displayed on the terminal, the session list can be displayed, and the sessions in the session list are arranged according to the session timestamp, so that the user can view it.
  • the displayed session includes at least the topic name of the session.
  • the instant message in the session may also be displayed.
  • each instant message in the session may be displayed in a tree structure, or a thumbnail may be displayed. After the user clicks, the tree structure and the like are expanded, which is not specifically limited in this embodiment.
  • the above method can be applied to single-person conversations as well as multi-person conversations.
  • the terminal participates in a multi-person dialogue, and the multi-person dialogue includes discussion of multiple topics
  • the above method can logically form associations according to the topics, and obtain a tree structure session of each topic, which is more convenient for the user to browse and find the instant.
  • Message Arranging individual instant messages in chronological order Compared with the way, the browsing and searching time is greatly saved, the efficiency is improved, and the user is convenient to use.
  • the session is created, and the instant message is added to the session as a root node, and the method may include:
  • the adding the instant message to the session in which the existing message is located, and setting the instant message as a child node of the existing message may include:
  • the foregoing method may further include:
  • a specified operation is detected for any instant message in any session
  • the foregoing method may further include:
  • the instant message and its child nodes are removed from the session.
  • the foregoing method when sending and receiving an instant message, determining whether the instant message is a reply message of an existing message; if the instant message is not a reply message of an existing message, creating a session, the instant The message is added to the session as a root node; if the instant message is a reply message of an existing message, the instant message is added to the session in which the existing message is located, and the instant message is set to the
  • the child nodes of the existing message make the associated instant message form a tree-structured session, providing a brand-new instant message storage mode, which can quickly browse and find instant messages according to the parent-child relationship between the nodes, greatly improving The efficiency of browsing and finding instant messages is more convenient to use.
  • FIG. 2 is a flowchart of a method for managing an instant message according to another exemplary embodiment. As shown in FIG. 2, the method is used in a terminal, and includes the following steps.
  • step S21 when sending and receiving an instant message, determining whether the instant message is a reply message of an existing message, if the instant message is not a reply message of an existing message, executing S22; if the instant message is a reply of an existing message The message is then executed in step S24.
  • step S22 a session is created.
  • step S23 the instant message is added to the session, the associated attribute of the instant message is set to null or set to the root node of the session, and the process ends.
  • the root node is the first node in the session and is the top of the tree structure. In the tree structure, there is only one root node, the root node may have multiple child nodes, and the root node is also the parent node of the multiple child nodes, each of which Child nodes are also available To have your own child nodes. For any two instant messages, if instant message B is the reply message of instant message A, then A is the parent node and B is the child node.
  • information related to instant messages includes a plurality of types: message ID, time stamp, and message content.
  • the related information of the instant message may further include: an ID of the associated session, an associated attribute, and the like.
  • the association attribute is used to set the association between the current instant message and other instant messages.
  • the association attribute of the current node may be set to null or set to the ID of the current node, to indicate that the node is the root node of a session, or
  • the association attribute of the current node can be set to the parent node ID to indicate that the current node is a child node of the parent node.
  • step S24 the instant message is added to the session in which the existing message is located, and the associated attribute of the instant message is set as a child node of the existing message, and the process ends.
  • the setting the associated attribute of the instant message as a child node of the existing message may include:
  • the foregoing method may further include:
  • a specified operation is detected for any instant message in any session
  • the foregoing method may further include:
  • the instant message and its child nodes are removed from the session.
  • the foregoing method when sending and receiving an instant message, determining whether the instant message is a reply message of an existing message; if the instant message is not a reply message of an existing message, creating a session, the instant message Joining the session, setting the association attribute of the instant message to be empty or set as the root node of the session; if the instant message is a reply message of an existing message, adding the instant message to the session where the existing message is located Setting the associated attribute of the instant message to the child node of the existing message, so that the associated instant message forms a tree-structured session, and provides a brand-new instant message storage mode, which can be based on the father and son between the nodes. Quickly browse and find instant messages, greatly improving the efficiency of browsing and finding instant messages, making it easier to use.
  • FIG. 3 is a flowchart of a method for managing an instant message according to another exemplary embodiment. As shown in FIG. 3, the method is used in a terminal, and includes the following steps.
  • step S31 when the instant message is sent and received, it is determined whether the instant message is a reply message of an existing message, and if the instant message is not a reply message of an existing message, then S32 is performed; if the instant message is a reply of an existing message Message, then execute S33.
  • step S32 a session is created, the instant message is added to the session as a root node, and then S34 is performed.
  • This step can include the following steps:
  • step S33 the instant message is added to the session in which the existing message is located, and the instant message is set as a child node of the existing message, and then S34 is performed.
  • This step can include the following steps:
  • step S34 a specified operation for any of the instant messages in any of the sessions is detected.
  • the specified operation may be set as needed, and may be any operation, such as a long press operation, a click operation, a double click operation, a drag operation, and the like.
  • Any session may be the session created in step S32, or may be the session in which the existing message is located in step S33.
  • step S35 a new session is created, with any instant message as the root node, and any instant message and its child nodes are added to the new session.
  • the any instant message and its child nodes include all the child nodes following any of the instant messages.
  • Adding any instant message and its child nodes to the new session can be implemented by setting any instant message as the root node, that is, the associated attribute is empty or its own ID; the associated attributes of all the remaining child nodes are not Change, still retain the relationship of the parent and child nodes in the original session.
  • the new session After creating a new session for this step, if there is already a list of sessions, it is added to the session list and reordered by the timestamp of the session, making it easier for users to browse and find.
  • the new session can also set its theme name, which is not described here.
  • the method may further include:
  • the deletion operation refers to the operation of deleting the associated attribute, and does not represent deleting the content of the instant message. This can be achieved by deleting the associated attributes of any instant message and its child nodes, so that these nodes no longer belong to any session, and there is no relationship between the parent and child nodes. The user can find the corresponding instant message through the timestamp.
  • any of the instant messages and their child nodes that are subjected to the specified operation may or may not be deleted.
  • deletion the instant message and its child nodes no longer exist in the original session; if not deleted, the original session still retains any instant message and its child nodes, which is equivalent to Duplicate a copy to the new session.
  • the tree structure of the session 1 is: the root node A, the child nodes B and C of the root node, the child nodes D of the B, and the child nodes F of the C; after detecting the long press operation on the child node B, A session 2, the child node B, and the child nodes D and E of B are added to the session 2, and the effect of separating part of the content in the session 1 to the new session 2 is achieved.
  • B is the root node and D and E are their child nodes. Child nodes B, D, and E can be deleted in session 1, or they can be reserved.
  • the method may further include:
  • the foregoing method when sending and receiving an instant message, determining whether the instant message is a reply message of an existing message; if the instant message is not a reply message of an existing message, creating a session, the instant The message is added to the session as a root node; if the instant message is a reply message of an existing message, the instant message is added to the session in which the existing message is located, and the instant message is set to the
  • the child nodes of the existing message make the associated instant message form a tree-structured session, providing a brand-new instant message storage mode, which can quickly browse and find instant messages according to the parent-child relationship between the nodes, greatly improving The efficiency of browsing and finding instant messages is more convenient to use.
  • FIG. 4 is a block diagram of an apparatus for managing an instant message, according to another exemplary embodiment.
  • the apparatus includes a determination module 121, a first processing module 122, and a second processing module 123.
  • the determining module 121 is configured to determine whether the instant message is a reply message of an existing message when the instant message is sent or received.
  • the first processing module 122 is configured to create a session when the instant message is not a reply message of an existing message, and join the instant message as a root node in the session.
  • the second processing module 123 is configured to: when the instant message is a reply message of an existing message, add the instant message to the session where the existing message is located, and set the instant message as a child of the existing message. node.
  • FIG. 5 is a block diagram of an apparatus for managing an instant message, according to another exemplary embodiment.
  • the first processing module 122 may include a creating unit 122a and a setting unit 122b.
  • the creating unit 122a is configured to create a session when the instant message is not a reply message of an existing message, and add the instant message to the session.
  • the setting unit 122b is configured to set the association attribute of the instant message to be empty or set as the root node of the session.
  • the second processing module 123 may include: a joining unit and a setting unit.
  • the joining unit is configured to add the instant message to the session in which the existing message is located when the instant message is a reply message of an existing message.
  • the setting unit is configured to set an association attribute of the instant message to a child node of the existing message.
  • FIG. 6 is a block diagram of an apparatus for managing an instant message, according to another exemplary embodiment.
  • the above apparatus may further include: a detecting module 124 and a creating module 125.
  • the detection module 124 is configured to detect a specified operation for any of the instant messages in either session.
  • the creating module 125 is configured to, when the detecting module detects a specified operation of any instant message in any session, create a new session, use the instant message as a root node, and use the instant message to Its child nodes join In the new session.
  • the foregoing apparatus may further include: deleting the module.
  • the delete module is configured to delete any instant message and its child nodes from the any session after the detection module detects a specified operation for any of the instant messages in any of the sessions.
  • the foregoing apparatus may further include:
  • a setting module configured to: after the first processing module creates a session, generate a default theme name for the session or set the content input by the user as the theme name of the session.
  • the foregoing apparatus when sending and receiving an instant message, determining whether the instant message is a reply message of an existing message; if the instant message is not a reply message of an existing message, creating a session, the instant The message is added to the session as a root node; if the instant message is a reply message of an existing message, the instant message is added to the session in which the existing message is located, and the instant message is set to the
  • the child nodes of the existing message make the associated instant message form a tree-structured session, providing a brand-new instant message storage mode, which can quickly browse and find instant messages according to the parent-child relationship between the nodes, greatly improving The efficiency of browsing and finding instant messages is more convenient to use.
  • FIG. 7 is a block diagram of an apparatus for managing an instant message, according to another exemplary embodiment.
  • the device includes:
  • processor 701 and a memory 702 for storing processor executable instructions
  • processor is configured to:
  • the instant message is not a reply message of an existing message, create a session, and join the instant message as a root node into the session;
  • the instant message is a reply message of an existing message
  • the instant message is added to the session in which the existing message is located, and the instant message is set as a child node of the existing message.
  • FIG. 8 is a block diagram of an apparatus 800 for managing instant messages, according to another exemplary embodiment.
  • device 800 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a gaming console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
  • device 800 can include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, And a communication component 816.
  • Processing component 802 typically controls the overall operation of device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.
  • Processing component 802 can include one or more processors 820 to execute instructions to perform all or part of the steps of the above described methods.
  • processing component 802 can include one or more modules to facilitate interaction between component 802 and other components.
  • processing component 802 can include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
  • Memory 804 is configured to store various types of data to support operation at device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phone book data, messages, pictures, videos, and the like.
  • the memory 804 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read only memory
  • EPROM Electrically erasable programmable read only memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Disk Disk or Optical Disk.
  • Power component 806 provides power to various components of device 800.
  • Power component 806 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device 800.
  • the multimedia component 808 includes a screen between the device 800 and the user that provides an output interface.
  • the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user.
  • the touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor may sense not only the boundary of the touch or sliding action, but also the duration and pressure associated with the touch or slide operation.
  • the multimedia component 808 includes a front camera and/or a rear camera. When the device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
  • the audio component 810 is configured to output and/or input an audio signal.
  • the audio component 810 includes a microphone (MIC) that is configured to receive an external audio signal when the device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode.
  • the received audio signal may be further stored in memory 804 or transmitted via communication component 816.
  • the audio component 810 also includes a speaker for outputting an audio signal.
  • the I/O interface 812 provides an interface between the processing component 802 and the peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to, a home button, a volume button, a start button, and a lock button.
  • Sensor assembly 814 includes one or more sensors for providing device 800 with a status assessment of various aspects.
  • sensor assembly 814 can detect an open/closed state of device 800, a relative positioning of components, such as the display and keypad of device 800, and sensor component 814 can also detect a change in position of one component of device 800 or device 800. The presence or absence of user contact with device 800, device 800 orientation or acceleration/deceleration, and temperature variation of device 800.
  • Sensor assembly 814 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact.
  • Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
  • the sensor assembly 814 can also include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
  • Communication component 816 is configured to facilitate wired or wireless communication between device 800 and other devices.
  • the device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof.
  • communication component 816 receives a broadcast signal or broadcast associated message from an external broadcast management system via a broadcast channel. interest.
  • the communication component 816 also includes a near field communication (NFC) module to facilitate short range communication.
  • NFC near field communication
  • the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
  • RFID radio frequency identification
  • IrDA infrared data association
  • UWB ultra-wideband
  • Bluetooth Bluetooth
  • device 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor, or other electronic component implementation for performing the above methods of managing instant messages.
  • ASICs application specific integrated circuits
  • DSPs digital signal processors
  • DSPDs digital signal processing devices
  • PLDs programmable logic devices
  • FPGA field programmable A gate array
  • controller microcontroller, microprocessor, or other electronic component implementation for performing the above methods of managing instant messages.
  • the foregoing apparatus when sending and receiving an instant message, determining whether the instant message is a reply message of an existing message; if the instant message is not a reply message of an existing message, creating a session, the instant The message is added to the session as a root node; if the instant message is a reply message of an existing message, the instant message is added to the session in which the existing message is located, and the instant message is set to the
  • the child nodes of the existing message make the associated instant message form a tree-structured session, providing a brand-new instant message storage mode, which can quickly browse and find instant messages according to the parent-child relationship between the nodes, greatly improving The efficiency of browsing and finding instant messages is more convenient to use.
  • non-transitory computer readable storage medium comprising instructions, such as a memory 804 comprising instructions executable by processor 820 of apparatus 800 to perform the above method.
  • the non-transitory computer readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.
  • a non-transitory computer readable storage medium when instructions in the storage medium are executed by a processor of a mobile terminal, to enable a mobile terminal to perform a method of managing an instant message, the method comprising:
  • the instant message is not a reply message of an existing message, create a session, and join the instant message as a root node into the session;
  • the instant message is a reply message of an existing message
  • the instant message is added to the session in which the existing message is located, and the instant message is set as a child node of the existing message.
  • the creating a session, adding the instant message to the session as a root node includes:
  • the adding the instant message to the session in which the existing message is located, and setting the instant message as a child node of the existing message includes:
  • the method further includes:
  • a specified operation is detected for any instant message in any session
  • the method further includes:
  • the any instant message and its child nodes are deleted from any of the sessions.
  • the method further includes:
  • a default topic name is generated for the session or the content entered by the user is set to the topic name of the session.
  • the non-transitory computer readable storage medium when sending and receiving an instant message, determines whether the instant message is a reply message of an existing message; if the instant message is not a reply message of an existing message, creating a session, the instant message is added to the session as a root node; if the instant message is a reply message of an existing message, the instant message is added to the session in which the existing message is located, and the session is The instant message is set as a child node of the existing message, so that the associated instant message forms a tree-structured session, and provides a brand-new instant message storage mode, which can quickly browse according to the parent-child relationship between the nodes. Finding instant messages greatly improves the efficiency of browsing and finding instant messages, making it easier to use.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Digital Computer Display Output (AREA)

Abstract

本公开是关于一种管理即时消息的方法和装置,属于即时通信领域。所述方法包括:当收发即时消息时,判断所述即时消息是否是已有消息的回复消息;如果所述即时消息不是已有消息的回复消息,则创建一个会话,将所述即时消息作为根节点加入所述会话中;如果所述即时消息是已有消息的回复消息,则将所述即时消息加入所述已有消息所在的会话中,且将所述即时消息设置为所述已有消息的子节点。所述装置包括:判断模块、第一处理模块和第二处理模块。本公开使得有关联的即时消息形成了树状结构的会话,提供了一种全新的即时消息存储模式,可以根据节点之间的父子关系快速浏览和查找即时消息,极大地提高了浏览和查找即时消息的效率,使用更方便。

Description

管理即时消息的方法和装置
本申请基于申请号为201410228013.4、申请日为2014年5月27日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本公开涉及即时通信领域,尤其涉及一种管理即时消息的方法和装置。
背景技术
即时通信是能够即时发送和接收互联网消息的业务。随着移动互联网的发展,即时通信不再是一个单纯的聊天工具,它已经发展成集交流、资讯、娱乐、搜索、电子商务、办公协作和企业客户服务等为一体的综合化信息平台。
即时通信可以在两个客户端之间进行单人对话,也可以在多个客户端之间进行多人对话。目前的即时通信客户端,无论是进行单人对话时,还是进行多人对话时,对话窗口中的即时消息都是按照时间顺序来展示的。
这种方式虽然方便了用户阅读最新的消息,但是当针对一个主题的消息分布在多个不同的时刻时,用户很难查找,往往需要反复浏览历史消息几遍才能获取一个主题的各条消息。因此,上述按照时间顺序排列即时消息的方式不利于基于主题的浏览和查找,效率较低。
发明内容
有鉴于此,本公开提供了一种管理即时消息的方法和装置,以提高即时消息的浏览和查找的效率。
根据本公开实施例的第一方面,提供一种管理即时消息的方法,包括:
当收发即时消息时,判断所述即时消息是否是已有消息的回复消息;
如果所述即时消息不是已有消息的回复消息,则创建一个会话,将所述即时消息作为根节点加入所述会话中;
如果所述即时消息是已有消息的回复消息,则将所述即时消息加入所述已有消息所在的会话中,且将所述即时消息设置为所述已有消息的子节点。
可选的,所述创建一个会话,将所述即时消息作为根节点加入所述会话中,包括:
创建一个会话,将所述即时消息加入所述会话中;
将所述即时消息的关联属性设置为空或者设置为所述会话的根节点。
可选的,所述将所述即时消息加入所述已有消息所在的会话中,且将所述即时消息设置为所述已有消息的子节点,包括:
将所述即时消息加入所述已有消息所在的会话中;
设置所述即时消息的关联属性为所述已有消息的子节点。
可选的,所述方法还包括:
检测到对任一会话中的任一即时消息的指定操作;
创建一个新会话,以所述任一即时消息为根节点,将所述任一即时消息及其子节点加入所述新会话中。
可选的,所述方法还包括:
在检测到对任一会话中的任一即时消息的指定操作之后,将所述任一即时消息及其子节点从所述任一会话中删除。
可选的,所述方法还包括:
在创建一个会话之后,为所述会话生成默认的主题名称或将用户输入的内容设置为所述会话的主题名称。
根据本公开实施例的第二方面,提供一种管理即时消息的装置,所述装置包括:
判断模块,用于当收发即时消息时,判断所述即时消息是否是已有消息的回复消息;
第一处理模块,用于在所述即时消息不是已有消息的回复消息时,创建一个会话,将所述即时消息作为根节点加入所述会话中;
第二处理模块,用于在所述即时消息是已有消息的回复消息时,将所述即时消息加入所述已有消息所在的会话中,且将所述即时消息设置为所述已有消息的子节点。
可选的,所述第一处理模块包括:
创建单元,用于在所述即时消息不是已有消息的回复消息时,创建一个会话,将所述即时消息加入所述会话中;
设置单元,用于将所述即时消息的关联属性设置为空或者设置为所述会话的根节点。
可选的,所述第二处理模块包括:
加入单元,用于在所述即时消息是已有消息的回复消息时,将所述即时消息加入所述已有消息所在的会话中;
设置单元,用于设置所述即时消息的关联属性为所述已有消息的子节点。
可选的,所述装置还包括:
检测模块,用于检测到对任一会话中的任一即时消息的指定操作;
创建模块,用于在所述检测模块检测到对任一会话中的任一即时消息的指定操作,创建一个新会话,以所述任一即时消息为根节点,将所述任一即时消息及其子节点加入所述新会话中。
可选的,所述装置还包括:
删除模块,用于在所述检测模块检测到对任一会话中的任一即时消息的指定操作之后,将所述任一即时消息及其子节点从所述任一会话中删除。
可选的,所述装置还包括:
设置模块,用于在所述第一处理模块创建一个会话之后,为所述会话生成默认的主题名称或将用户输入的内容设置为所述会话的主题名称。
根据本公开实施例的第三方面,提供一种管理即时消息的装置,所述装置包括:
处理器及用于存储处理器可执行指令的存储器;
其中,所述处理器被配置为:
当收发即时消息时,判断所述即时消息是否是已有消息的回复消息;
如果所述即时消息不是已有消息的回复消息,则创建一个会话,将所述即时消息作为根节点加入所述会话中;
如果所述即时消息是已有消息的回复消息,则将所述即时消息加入所述已有消息所在的会话中,且将所述即时消息设置为所述已有消息的子节点。
本公开的实施例提供的技术方案可以包括以下有益效果:当收发即时消息时,判断所述即时消息是否是已有消息的回复消息;如果所述即时消息不是已有消息的回复消息,则创建一个会话,将所述即时消息作为根节点加入所述会话中;如果所述即时消息是已有消息的回复消息,则将所述即时消息加入所述已有消息所在的会话中,且将所述即时消息设置为所述已有消息的子节点,使得有关联的即时消息形成了树状结构的会话,提供了一种全新的即时消息存储模式,可以根据节点之间的父子关系快速浏览和查找即时消息,极大地提高了浏览和查找即时消息的效率,使用更方便。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。
图1是根据一示例性实施例示出的一种管理即时消息的方法的流程图。
图2是根据另一示例性实施例示出的一种管理即时消息的方法的流程图。
图3是根据另一示例性实施例示出的一种管理即时消息的方法的流程图。
图4是根据另一示例性实施例示出的一种管理即时消息的装置的框图。
图5是根据另一示例性实施例示出的一种管理即时消息的装置的框图。
图6是根据另一示例性实施例示出的一种管理即时消息的装置的框图。
图7是根据另一示例性实施例示出的一种管理即时消息的装置的框图。
图8是根据另一示例性实施例示出的一种管理即时消息的装置的框图。
具体实施方式
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中 所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。
图1是根据一示例性实施例示出的一种管理即时消息的方法的流程图,如图1所示,该方法用于终端中,包括以下步骤。
在步骤S11中,当收发即时消息时,判断该即时消息是否是已有消息的回复消息,如果该即时消息不是已有消息的回复消息,则执行S12;如果该即时消息是已有消息的回复消息,则执行S13。
本实施例中,所述即时消息可以是本地终端待发送的即时消息,也可以是收到其它终端发来的即时消息。该即时消息可以是单人对话中的消息,也可以是多人对话中的消息,本实施例对此不做具体限定。
在步骤S12中,创建一个会话,将该即时消息作为根节点加入该会话中,流程结束。
本实施例中,会话是即时消息的集合,其中至少包括一条即时消息,通常会包括多条即时消息。会话中的各条即时消息除第一条以外其余的都是回复消息,因此,一个会话中的即时消息都具有关联性,可以认为都是关于同一个主题的即时消息。例如,终端A与终端B之间的单人对话中关于“生日”主题的会话包括20条即时消息。终端A与终端C和终端D的多人对话中关于“过节”主题的会话包括30条即时消息,关于“车票”主题的会话包括50条即时消息等等。
其中,在创建会话时,会生成该会话的主题名称、时间戳等与会话有关的各种信息。
可选的,在创建一个会话之后,可以为该会话生成默认的主题名称或将用户输入的内容设置为该会话的主题名称。其中,默认的主题名称可以为该会话中的第一条即时消息的部分内容或全部内容。当然,也可以提供编辑功能给用户,用户可以在会话的主题名称的编辑框内输入自己想要的内容作为会话的主题名称。会话的时间戳可以设置为该会话内第一条即时消息的时间戳,本实施例对此不做具体限定。
在步骤S13中,将该即时消息加入该已有消息所在的会话中,且将该即时消息设置为该已有消息的子节点,流程结束。
在按照上述方法对即时消息进行存储后,可以得到树状结构的会话,每一个会话都有自己的主题。对于本地终端来说,可以得到多个会话。当已有多个会话时,可以建立会话列表来存储会话。当在终端上展示会话时,可以展示会话列表,该会话列表内的会话按照会话时间戳来排列,从而方便用户查看。展示的会话至少包括该会话的主题名称,另外,还可以展示该会话内的即时消息,可选的,可以以树状结构来展示会话内各条即时消息,或者也可以展示一个缩略图,在用户点击后再展开树状结构等等,本实施例对此不做具体限定。
上述方法可以适用于单人对话以及多人对话。当终端参与多人对话,且该多人对话中包括多个主题的讨论时,上述方法可以依据主题在逻辑上按层次形成关联,得到各个主题的树状结构会话,更加方便用户浏览和查找即时消息。与按照时间顺序排列各个即时消息 的方式相比,极大地节省了浏览和查找的时间,提高了效率,方便用户使用。
本实施例中,可选的,所述创建一个会话,将该即时消息作为根节点加入该会话中,可以包括:
创建一个会话,将该即时消息加入该会话中;
将该即时消息的关联属性设置为空或者设置为该会话的根节点。
本实施例中,可选的,所述将该即时消息加入该已有消息所在的会话中,且将该即时消息设置为该已有消息的子节点,可以包括:
将该即时消息加入该已有消息所在的会话中;
设置该即时消息的关联属性为该已有消息的子节点。
本实施例中,可选的,上述方法还可以包括:
检测到对任一会话中的任一即时消息的指定操作;
创建一个新会话,以该任一即时消息为根节点,将该任一即时消息及其子节点加入该新会话中。
本实施例中,可选的,上述方法还可以包括:
在检测到对任一会话中的任一即时消息的指定操作之后,将该任一即时消息及其子节点从该任一会话中删除。
本实施例提供的上述方法,当收发即时消息时,判断所述即时消息是否是已有消息的回复消息;如果所述即时消息不是已有消息的回复消息,则创建一个会话,将所述即时消息作为根节点加入所述会话中;如果所述即时消息是已有消息的回复消息,则将所述即时消息加入所述已有消息所在的会话中,且将所述即时消息设置为所述已有消息的子节点,使得有关联的即时消息形成了树状结构的会话,提供了一种全新的即时消息存储模式,可以根据节点之间的父子关系快速浏览和查找即时消息,极大地提高了浏览和查找即时消息的效率,使用更方便。
图2是根据另一示例性实施例示出的一种管理即时消息的方法的流程图,如图2所示,该方法用于终端中,包括以下步骤。
在步骤S21中,当收发即时消息时,判断该即时消息是否是已有消息的回复消息,如果该即时消息不是已有消息的回复消息,则执行S22;如果该即时消息是已有消息的回复消息,则执行步骤S24。
在步骤S22中,创建一个会话。
其中,在创建一个会话之后,还可以为该会话生成默认的主题名称或将用户输入的内容设置为该会话的主题名称。当然,还可以生成会话会话ID、会话时间戳等信息。
在步骤S23中,将该即时消息加入该会话中,将该即时消息的关联属性设置为空或者设置为该会话的根节点,流程结束。
其中,根节点为会话中的第一个节点,是树状结构的顶端,在树状结构中根节点只有一个,根节点可以有多个子节点,根节点也是该多个子节点的父节点,每一个子节点也可 以有自己的子节点。对于任意两条即时消息来说,如果即时消息B是即时消息A的回复消息,则A就是父节点,B就是子节点。
通常,与即时消息相关的信息包括多种:消息ID、时间戳、消息内容。本实施例中,即时消息的相关信息还可以包括:所属会话的ID、关联属性等等。该关联属性用来设置当前即时消息与其它即时消息的关联性,如可以将当前节点的关联属性设置为空或者设置为当前节点的ID,用以表示该节点为一个会话的根节点,或者,可以将当前节点的关联属性设置为父节点ID,用以表示当前节点为该父节点的子节点。
在步骤S24中,将该即时消息加入该已有消息所在的会话中,设置该即时消息的关联属性为该已有消息的子节点,流程结束。
其中,设置该即时消息的关联属性为该已有消息的子节点,可以包括:
设置该即时消息的关联属性为该已有消息的ID,以表示该已有消息为当前的即时消息的父节点,当前的即时消息为该已有消息的子节点,从而建立了该已有即时消息与当前的即时消息的关联性。
本实施例中,可选的,上述方法还可以包括:
检测到对任一会话中的任一即时消息的指定操作;
创建一个新会话,以该任一即时消息为根节点,将该任一即时消息及其子节点加入该新会话中。
本实施例中,可选的,上述方法还可以包括:
在检测到对任一会话中的任一即时消息的指定操作之后,将该任一即时消息及其子节点从该任一会话中删除。
本实施例提供的上述方法,当收发即时消息时,判断所述即时消息是否是已有消息的回复消息;如果所述即时消息不是已有消息的回复消息,则创建一个会话,将该即时消息加入该会话中,将该即时消息的关联属性设置为空或者设置为该会话的根节点;如果所述即时消息是已有消息的回复消息,则将该即时消息加入该已有消息所在的会话中,设置该即时消息的关联属性为该已有消息的子节点,使得有关联的即时消息形成了树状结构的会话,提供了一种全新的即时消息存储模式,可以根据节点之间的父子关系快速浏览和查找即时消息,极大地提高了浏览和查找即时消息的效率,使用更方便。
图3是根据另一示例性实施例示出的一种管理即时消息的方法的流程图,如图3所示,该方法用于终端中,包括以下步骤。
在步骤S31中,当收发即时消息时,判断该即时消息是否是已有消息的回复消息,如果该即时消息不是已有消息的回复消息,则执行S32;如果该即时消息是已有消息的回复消息,则执行S33。
在步骤S32中,创建一个会话,将该即时消息作为根节点加入该会话中,然后执行S34。
本步骤可以包括以下步骤:
创建一个会话,将该即时消息加入该会话中;
将该即时消息的关联属性设置为空或者设置为该会话的根节点。
在步骤S33中,将该即时消息加入该已有消息所在的会话中,且将该即时消息设置为该已有消息的子节点,然后执行S34。
本步骤可以包括以下步骤:
将该即时消息加入该已有消息所在的会话中;
设置该即时消息的关联属性为该已有消息的子节点。
在步骤S34中,检测到对任一会话中的任一即时消息的指定操作。
本实施例中,所述指定操作可以根据需要设置,可以为任意操作,如长按操作、单击操作、双击操作、拖拽操作等等。其中,任一会话可以是步骤S32中创建的会话,也可以是步骤S33中该已有消息所在的会话。
在步骤S35中,创建一个新会话,以该任一即时消息为根节点,将该任一即时消息及其子节点加入该新会话中。
其中,该任一即时消息及其子节点包括该任一即时消息后续的所有子节点。将该任一即时消息及其子节点加入该新会话中,可以通过以下方式实现:将该任一即时消息设置为根节点,即关联属性为空或者自身ID;其余所有子节点的关联属性不变,仍然保留在原有会话中的父子节点的关系。
在创建本步骤的新会话之后,如果已有会话列表,则将其加入会话列表中,且以会话的时间戳进行重新排序,从而方便用户浏览和查找。所述新会话还可以设置其主题名称,此处不赘述。
其中,在检测到对任一会话中的任一即时消息的指定操作之后,还可以包括:
将该任一即时消息及其子节点从该任一会话中删除。
所述删除操作是指删除关联属性的操作,并不代表删除即时消息的内容。可以通过以下方式实现:将该任一即时消息及其子节点的关联属性删除,从而这些节点不再属于任何会话,也没有父子节点的关系,用户可以通过时间戳来查找相应的即时消息。
本实施例中,被执行指定操作的该任一即时消息及其子节点,可以删除也可以不删除。在删除的情况下,原有会话中则不再存在该任一即时消息及其子节点;在不删除的情况下,原有会话中仍然保留有该任一即时消息及其子节点,相当于复制了一份至新建会话中。
例如,会话1的树状结构为:根节点A、根节点的子节点B和C、B的子节点D和E、C的子节点F;检测到对子节点B的长按操作后,创建一个会话2,将该子节点B,以及B的子节点D和E均添加到该会话2中,达到了将会话1中的部分内容分离出来至新建会话2的效果。在会话2中,B为根节点,D和E为其子节点。在会话1中可以删除子节点B、D和E,也可以保留。
通过这种方式可以很方便地对已有会话进行管理,如原有会话内容较多,可能涉及了多个主题,则可以快速地将其中的分支分离出来单独作为一个会话管理。
本实施例中,在创建任一个会话之后,还可以包括:
为该会话生成默认的主题名称或将用户输入的内容设置为该会话的主题名称。
本实施例提供的上述方法,当收发即时消息时,判断所述即时消息是否是已有消息的回复消息;如果所述即时消息不是已有消息的回复消息,则创建一个会话,将所述即时消息作为根节点加入所述会话中;如果所述即时消息是已有消息的回复消息,则将所述即时消息加入所述已有消息所在的会话中,且将所述即时消息设置为所述已有消息的子节点,使得有关联的即时消息形成了树状结构的会话,提供了一种全新的即时消息存储模式,可以根据节点之间的父子关系快速浏览和查找即时消息,极大地提高了浏览和查找即时消息的效率,使用更方便。另外,当检测到对任一会话中的任一即时消息的指定操作时,创建一个新会话,以该任一即时消息为根节点,将该任一即时消息及其子节点加入该新会话中,使得从一个会话中分离出部分即时消息形成新的会话,实现了对已有树状结构的会话进行管理和维护,达到了调整树状结构的效果,使得基于会话管理即时消息更加方便和快捷。
图4是根据另一示例性实施例示出的一种管理即时消息的装置框图。参照图4,该装置包括判断模块121,第一处理模块122和第二处理模块123。
该判断模块121被配置为,当收发即时消息时,判断该即时消息是否是已有消息的回复消息。
该第一处理模块122被配置为,在该即时消息不是已有消息的回复消息时,创建一个会话,将该即时消息作为根节点加入该会话中。
该第二处理模块123被配置为,在该即时消息是已有消息的回复消息时,将该即时消息加入该已有消息所在的会话中,且将该即时消息设置为该已有消息的子节点。
图5是根据另一示例性实施例示出的一种管理即时消息的装置框图。参照图5,第一处理模块122可以包括:创建单元122a和设置单元122b。
该创建单元122a被配置为,在该即时消息不是已有消息的回复消息时,创建一个会话,将该即时消息加入该会话中。
该设置单元122b被配置为,将该即时消息的关联属性设置为空或者设置为该会话的根节点。
本实施例中,第二处理模块123可以包括:加入单元和设置单元。
该加入单元被配置为,在该即时消息是已有消息的回复消息时,将该即时消息加入该已有消息所在的会话中。
该设置单元被配置为,设置该即时消息的关联属性为该已有消息的子节点。
图6是根据另一示例性实施例示出的一种管理即时消息的装置框图。参照图6,上述装置还可以包括:检测模块124和创建模块125。
该检测模块124被配置为,检测到对任一会话中的任一即时消息的指定操作。
该创建模块125被配置为,在该检测模块检测到对任一会话中的任一即时消息的指定操作,创建一个新会话,以该任一即时消息为根节点,将该任一即时消息及其子节点加入 该新会话中。
本实施例中,上述装置还可以包括:删除模块。
该删除模块被配置为,在该检测模块检测到对任一会话中的任一即时消息的指定操作之后,将该任一即时消息及其子节点从该任一会话中删除。
本实施例中,上述装置还可以包括:
设置模块,用于在该第一处理模块创建一个会话之后,为该会话生成默认的主题名称或将用户输入的内容设置为该会话的主题名称。
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
本实施例提供的上述装置,当收发即时消息时,判断所述即时消息是否是已有消息的回复消息;如果所述即时消息不是已有消息的回复消息,则创建一个会话,将所述即时消息作为根节点加入所述会话中;如果所述即时消息是已有消息的回复消息,则将所述即时消息加入所述已有消息所在的会话中,且将所述即时消息设置为所述已有消息的子节点,使得有关联的即时消息形成了树状结构的会话,提供了一种全新的即时消息存储模式,可以根据节点之间的父子关系快速浏览和查找即时消息,极大地提高了浏览和查找即时消息的效率,使用更方便。
图7是根据另一示例性实施例示出的一种管理即时消息的装置的框图。该装置包括:
处理器701及用于存储处理器可执行指令的存储器702;
其中,该处理器被配置为:
当收发即时消息时,判断该即时消息是否是已有消息的回复消息;
如果该即时消息不是已有消息的回复消息,则创建一个会话,将该即时消息作为根节点加入该会话中;
如果该即时消息是已有消息的回复消息,则将该即时消息加入该已有消息所在的会话中,且将该即时消息设置为该已有消息的子节点。
图8是根据另一示例性实施例示出的一种管理即时消息的装置800的框图。例如,装置800可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。
参照图8,装置800可以包括以下一个或多个组件:处理组件802,存储器804,电源组件806,多媒体组件808,音频组件810,输入/输出(I/O)的接口812,传感器组件814,以及通信组件816。
处理组件802通常控制装置800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理元件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理部件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。
存储器804被配置为存储各种类型的数据以支持在设备800的操作。这些数据的示例包括用于在装置800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
电力组件806为装置800的各种组件提供电力。电力组件806可以包括电源管理系统,一个或多个电源,及其他与为装置800生成、管理和分配电力相关联的组件。
多媒体组件808包括在所述装置800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当设备800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当装置800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。
I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。
传感器组件814包括一个或多个传感器,用于为装置800提供各个方面的状态评估。例如,传感器组件814可以检测到设备800的打开/关闭状态,组件的相对定位,例如所述组件为装置800的显示器和小键盘,传感器组件814还可以检测装置800或装置800一个组件的位置改变,用户与装置800接触的存在或不存在,装置800方位或加速/减速和装置800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。
通信组件816被配置为便于装置800和其他设备之间有线或无线方式的通信。装置800可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信部件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信 息。在一个示例性实施例中,所述通信部件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。
在示例性实施例中,装置800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述管理即时消息的方法。
本实施例提供的上述装置,当收发即时消息时,判断所述即时消息是否是已有消息的回复消息;如果所述即时消息不是已有消息的回复消息,则创建一个会话,将所述即时消息作为根节点加入所述会话中;如果所述即时消息是已有消息的回复消息,则将所述即时消息加入所述已有消息所在的会话中,且将所述即时消息设置为所述已有消息的子节点,使得有关联的即时消息形成了树状结构的会话,提供了一种全新的即时消息存储模式,可以根据节点之间的父子关系快速浏览和查找即时消息,极大地提高了浏览和查找即时消息的效率,使用更方便。
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器804,上述指令可由装置800的处理器820执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。
一种非临时性计算机可读存储介质,当所述存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行一种管理即时消息的方法,所述方法包括:
当收发即时消息时,判断所述即时消息是否是已有消息的回复消息;
如果所述即时消息不是已有消息的回复消息,则创建一个会话,将所述即时消息作为根节点加入所述会话中;
如果所述即时消息是已有消息的回复消息,则将所述即时消息加入所述已有消息所在的会话中,且将所述即时消息设置为所述已有消息的子节点。
可选的,所述创建一个会话,将所述即时消息作为根节点加入所述会话中,包括:
创建一个会话,将所述即时消息加入所述会话中;
将所述即时消息的关联属性设置为空或者设置为所述会话的根节点。
可选的,所述将所述即时消息加入所述已有消息所在的会话中,且将所述即时消息设置为所述已有消息的子节点,包括:
将所述即时消息加入所述已有消息所在的会话中;
设置所述即时消息的关联属性为所述已有消息的子节点。
可选的,所述方法还包括:
检测到对任一会话中的任一即时消息的指定操作;
创建一个新会话,以所述任一即时消息为根节点,将所述任一即时消息及其子节点加 入所述新会话中。
可选的,所述方法还包括:
在检测到对任一会话中的任一即时消息的指定操作之后,将所述任一即时消息及其子节点从所述任一会话中删除。
可选的,所述方法还包括:
在创建一个会话之后,为所述会话生成默认的主题名称或将用户输入的内容设置为所述会话的主题名称。
本实施例提供的上述非临时性计算机可读存储介质,当收发即时消息时,判断所述即时消息是否是已有消息的回复消息;如果所述即时消息不是已有消息的回复消息,则创建一个会话,将所述即时消息作为根节点加入所述会话中;如果所述即时消息是已有消息的回复消息,则将所述即时消息加入所述已有消息所在的会话中,且将所述即时消息设置为所述已有消息的子节点,使得有关联的即时消息形成了树状结构的会话,提供了一种全新的即时消息存储模式,可以根据节点之间的父子关系快速浏览和查找即时消息,极大地提高了浏览和查找即时消息的效率,使用更方便。
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本申请旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由下面的权利要求指出。
应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求来限制。

Claims (13)

  1. 一种管理即时消息的方法,其特征在于,所述方法包括:
    当收发即时消息时,判断所述即时消息是否是已有消息的回复消息;
    如果所述即时消息不是已有消息的回复消息,则创建一个会话,将所述即时消息作为根节点加入所述会话中;
    如果所述即时消息是已有消息的回复消息,则将所述即时消息加入所述已有消息所在的会话中,且将所述即时消息设置为所述已有消息的子节点。
  2. 根据权利要求1所述的方法,其特征在于,所述创建一个会话,将所述即时消息作为根节点加入所述会话中,包括:
    创建一个会话,将所述即时消息加入所述会话中;
    将所述即时消息的关联属性设置为空或者设置为所述会话的根节点。
  3. 根据权利要求1所述的方法,其特征在于,所述将所述即时消息加入所述已有消息所在的会话中,且将所述即时消息设置为所述已有消息的子节点,包括:
    将所述即时消息加入所述已有消息所在的会话中;
    设置所述即时消息的关联属性为所述已有消息的子节点。
  4. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    检测到对任一会话中的任一即时消息的指定操作;
    创建一个新会话,以所述任一即时消息为根节点,将所述任一即时消息及其子节点加入所述新会话中。
  5. 根据权利要求4所述的方法,其特征在于,所述方法还包括:
    在检测到对任一会话中的任一即时消息的指定操作之后,将所述任一即时消息及其子节点从所述任一会话中删除。
  6. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    在创建一个会话之后,为所述会话生成默认的主题名称或将用户输入的内容设置为所述会话的主题名称。
  7. 一种管理即时消息的装置,其特征在于,所述装置包括:
    判断模块,用于当收发即时消息时,判断所述即时消息是否是已有消息的回复消息;
    第一处理模块,用于在所述即时消息不是已有消息的回复消息时,创建一个会话,将所述即时消息作为根节点加入所述会话中;
    第二处理模块,用于在所述即时消息是已有消息的回复消息时,将所述即时消息加入所述已有消息所在的会话中,且将所述即时消息设置为所述已有消息的子节点。
  8. 根据权利要求7所述的装置,其特征在于,所述第一处理模块包括:
    创建单元,用于在所述即时消息不是已有消息的回复消息时,创建一个会话,将所述即时消息加入所述会话中;
    设置单元,用于将所述即时消息的关联属性设置为空或者设置为所述会话的根节点。
  9. 根据权利要求7所述的装置,其特征在于,所述第二处理模块包括:
    加入单元,用于在所述即时消息是已有消息的回复消息时,将所述即时消息加入所述已有消息所在的会话中;
    设置单元,用于设置所述即时消息的关联属性为所述已有消息的子节点。
  10. 根据权利要求7所述的装置,其特征在于,所述装置还包括:
    检测模块,用于检测到对任一会话中的任一即时消息的指定操作;
    创建模块,用于在所述检测模块检测到对任一会话中的任一即时消息的指定操作,创建一个新会话,以所述任一即时消息为根节点,将所述任一即时消息及其子节点加入所述新会话中。
  11. 根据权利要求10所述的装置,其特征在于,所述装置还包括:
    删除模块,用于在所述检测模块检测到对任一会话中的任一即时消息的指定操作之后,将所述任一即时消息及其子节点从所述任一会话中删除。
  12. 根据权利要求7所述的装置,其特征在于,所述装置还包括:
    设置模块,用于在所述第一处理模块创建一个会话之后,为所述会话生成默认的主题名称或将用户输入的内容设置为所述会话的主题名称。
  13. 一种管理即时消息的装置,其特征在于,所述装置包括:
    处理器及用于存储处理器可执行指令的存储器;
    其中,所述处理器被配置为:
    当收发即时消息时,判断所述即时消息是否是已有消息的回复消息;
    如果所述即时消息不是已有消息的回复消息,则创建一个会话,将所述即时消息作为根节点加入所述会话中;
    如果所述即时消息是已有消息的回复消息,则将所述即时消息加入所述已有消息所在的会话中,且将所述即时消息设置为所述已有消息的子节点。
PCT/CN2014/089208 2014-05-27 2014-10-22 管理即时消息的方法和装置 WO2015180382A1 (zh)

Priority Applications (6)

Application Number Priority Date Filing Date Title
KR1020147035957A KR101601003B1 (ko) 2014-05-27 2014-10-22 인스턴트 메세지를 관리하는 방법, 장치, 프로그램 및 기록매체
RU2015100906/07A RU2604641C2 (ru) 2014-05-27 2014-10-22 Способ и устройство для управления мгновенным сообщением
BR112015000407A BR112015000407A2 (pt) 2014-05-27 2014-10-22 método e dispositivo para gerenciamento de mensagem instantânea
MX2015000197A MX359701B (es) 2014-05-27 2014-10-22 Método y dispositivo para la gestión de mensajería instantánea.
JP2016522254A JP2016524767A (ja) 2014-05-27 2014-10-22 インスタントメッセージの管理方法、装置、プログラム及び記録媒体
US14/605,252 US20150350120A1 (en) 2014-05-27 2015-01-26 Method and device for managing instant message

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410228013.4A CN104038407A (zh) 2014-05-27 2014-05-27 管理即时消息的方法和装置
CN201410228013.4 2014-05-27

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/605,252 Continuation US20150350120A1 (en) 2014-05-27 2015-01-26 Method and device for managing instant message

Publications (1)

Publication Number Publication Date
WO2015180382A1 true WO2015180382A1 (zh) 2015-12-03

Family

ID=51469001

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/089208 WO2015180382A1 (zh) 2014-05-27 2014-10-22 管理即时消息的方法和装置

Country Status (9)

Country Link
US (1) US20150350120A1 (zh)
EP (1) EP2950486B1 (zh)
JP (1) JP2016524767A (zh)
KR (1) KR101601003B1 (zh)
CN (1) CN104038407A (zh)
BR (1) BR112015000407A2 (zh)
MX (1) MX359701B (zh)
RU (1) RU2604641C2 (zh)
WO (1) WO2015180382A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104038407A (zh) * 2014-05-27 2014-09-10 小米科技有限责任公司 管理即时消息的方法和装置
CN105530174A (zh) 2016-01-22 2016-04-27 腾讯科技(深圳)有限公司 发布消息的方法和装置
CN107103399A (zh) * 2016-02-22 2017-08-29 西门子公司 用于控制业务的工作流程的方法和装置
CN106385498B (zh) * 2016-09-14 2019-09-20 青岛海信移动通信技术股份有限公司 信息归类方法及装置
CN107911443B (zh) * 2017-11-14 2021-01-26 北京星选科技有限公司 一种会话信息处理方法、装置、服务器和可读存储介质
JP6919079B1 (ja) * 2018-06-28 2021-08-11 キム、ビョン ジンKIM, Byung Jin 表示装置

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050050143A1 (en) * 2003-04-30 2005-03-03 International Business Machines Corporation Method and apparatus for enhancing instant messaging systems
CN101079826A (zh) * 2006-06-22 2007-11-28 腾讯科技(深圳)有限公司 电子邮件显示方法及系统
US20080263157A1 (en) * 2007-04-18 2008-10-23 Kulvir Singh Bhogal Method and system for ordering instant messages
CN103024704A (zh) * 2012-11-23 2013-04-03 北京金和软件股份有限公司 一种pda端回复短信归类显示的方法
CN103491245A (zh) * 2013-09-06 2014-01-01 天脉聚源(北京)传媒科技有限公司 一种存储短信的方法、装置和终端设备
CN104038407A (zh) * 2014-05-27 2014-09-10 小米科技有限责任公司 管理即时消息的方法和装置

Family Cites Families (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6346952B1 (en) * 1999-12-01 2002-02-12 Genesys Telecommunications Laboratories, Inc. Method and apparatus for summarizing previous threads in a communication-center chat session
US20040189698A1 (en) * 2003-03-26 2004-09-30 Nortel Networks Limited Instant messaging to service bureau
US7549924B2 (en) * 2003-05-09 2009-06-23 Microsoft Corporation Instant messaging embedded games
US8631076B1 (en) * 2004-03-31 2014-01-14 Google Inc. Methods and systems for associating instant messenger events
JP2006024145A (ja) * 2004-07-09 2006-01-26 Fuji Xerox Co Ltd 電子掲示板用コンピュータプログラムならびに電子掲示板処理装置および方法
US9542667B2 (en) * 2005-09-09 2017-01-10 Microsoft Technology Licensing, Llc Navigating messages within a thread
US20070168445A1 (en) * 2006-01-18 2007-07-19 Genty Denise M Method and apparatus for storing and retrieving conversations in an instant messaging system
US8001184B2 (en) * 2006-01-27 2011-08-16 International Business Machines Corporation System and method for managing an instant messaging conversation
JP4256399B2 (ja) * 2006-03-10 2009-04-22 株式会社東芝 情報一覧提示方法及び情報共有システム
US20080028027A1 (en) * 2006-07-25 2008-01-31 Jack Jachner Multi-threaded instant messaging
US8418069B2 (en) * 2006-09-29 2013-04-09 International Business Machines Corporation Spinning off chat threads
CN101237420B (zh) * 2007-02-02 2010-12-22 国际商业机器公司 即时消息通信方法和装置
JP2007183976A (ja) * 2007-02-05 2007-07-19 Make Softwear:Kk 電子掲示板管理方法
US8024412B2 (en) * 2008-02-15 2011-09-20 Microsoft Corporation User interface reading email conversations
US20090234638A1 (en) * 2008-03-14 2009-09-17 Microsoft Corporation Use of a Speech Grammar to Recognize Instant Message Input
JP2010055483A (ja) * 2008-08-29 2010-03-11 Fujitsu Ltd 情報再取得手順生成プログラム及び情報再取得手順生成装置
US8996451B2 (en) * 2010-03-23 2015-03-31 Nokia Corporation Method and apparatus for determining an analysis chronicle
US8914446B2 (en) * 2011-04-05 2014-12-16 Avaya Inc. IM continuation across SIP sessions and across clients for point-to-point and multi-user chat
CN103428070B (zh) * 2012-05-17 2016-08-03 阿里巴巴集团控股有限公司 即时群体通信方法、会话管理服务器及客户端
CN102780647A (zh) * 2012-07-21 2012-11-14 上海量明科技发展有限公司 通过即时通信工具实现思维图功能的方法、客户端及系统
CN102843312B (zh) * 2012-08-15 2016-03-30 大唐移动通信设备有限公司 即时消息的发送及接收方法和装置
US9288166B2 (en) * 2012-09-18 2016-03-15 International Business Machines Corporation Preserving collaboration history with relevant contextual information
JP2014085961A (ja) * 2012-10-25 2014-05-12 Canon Marketing Japan Inc コミュニティシステム、コミュニティサーバ、コミュニティシステムの制御方法、およびプログラム

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050050143A1 (en) * 2003-04-30 2005-03-03 International Business Machines Corporation Method and apparatus for enhancing instant messaging systems
CN101079826A (zh) * 2006-06-22 2007-11-28 腾讯科技(深圳)有限公司 电子邮件显示方法及系统
US20080263157A1 (en) * 2007-04-18 2008-10-23 Kulvir Singh Bhogal Method and system for ordering instant messages
CN103024704A (zh) * 2012-11-23 2013-04-03 北京金和软件股份有限公司 一种pda端回复短信归类显示的方法
CN103491245A (zh) * 2013-09-06 2014-01-01 天脉聚源(北京)传媒科技有限公司 一种存储短信的方法、装置和终端设备
CN104038407A (zh) * 2014-05-27 2014-09-10 小米科技有限责任公司 管理即时消息的方法和装置

Also Published As

Publication number Publication date
US20150350120A1 (en) 2015-12-03
CN104038407A (zh) 2014-09-10
KR20150141123A (ko) 2015-12-17
RU2604641C2 (ru) 2016-12-10
EP2950486A1 (en) 2015-12-02
JP2016524767A (ja) 2016-08-18
MX359701B (es) 2018-10-05
BR112015000407A2 (pt) 2017-06-27
KR101601003B1 (ko) 2016-03-08
MX2015000197A (es) 2016-03-03
EP2950486B1 (en) 2019-11-06
RU2015100906A (ru) 2016-08-10

Similar Documents

Publication Publication Date Title
KR101820781B1 (ko) 앨범 표시 방법 및 장치
RU2635889C2 (ru) Способ и устройство для создания группы, способ и устройство для выхода из группы
WO2015180382A1 (zh) 管理即时消息的方法和装置
WO2017031875A1 (zh) 在聊天界面更改表情符号的方法、装置及终端设备
WO2018032271A1 (zh) 信息搜索方法、装置、电子设备及服务器
WO2018000585A1 (zh) 界面主题的推荐方法、装置、终端及服务器
JP2020515124A (ja) マルチメディアリソースを処理するための方法および装置
WO2017088247A1 (zh) 输入处理方法、装置及设备
WO2022089568A1 (zh) 文件分享的方法、装置和电子设备
WO2017045302A1 (zh) 信息收集方法和装置
WO2013029536A1 (zh) 针对于即时通信工具提供搜索的方法及系统
WO2016173246A1 (zh) 基于云名片的电话呼叫方法及装置
WO2016082461A1 (zh) 推荐信息获取方法、终端及服务器
CN106777016B (zh) 基于即时通信进行信息推荐的方法及装置
CN105893493A (zh) 搜索方法及装置
WO2015039517A1 (en) Multimedia file search method, apparatus, and terminal device
CN104636164A (zh) 启动页面生成方法及装置
WO2017080205A1 (zh) 一种锁屏壁纸相关信息获取方法及装置
CN104268151A (zh) 联系人分组方法及装置
CN111046210A (zh) 一种信息推荐方法、装置和电子设备
WO2022121827A1 (zh) 信息提供方法、装置及电子设备
US10079787B2 (en) Method and apparatus for creating group and exiting group
WO2016197549A1 (zh) 一种进行搜索的方法和装置
WO2017219536A1 (zh) 应用切换方法及装置
CN110928425A (zh) 信息监控方法及装置

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2016522254

Country of ref document: JP

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 20147035957

Country of ref document: KR

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: MX/A/2015/000197

Country of ref document: MX

ENP Entry into the national phase

Ref document number: 2015100906

Country of ref document: RU

Kind code of ref document: A

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

Ref document number: 14892905

Country of ref document: EP

Kind code of ref document: A1

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112015000407

Country of ref document: BR

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14892905

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 112015000407

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20150108