Disclosure of Invention
In view of the above, the present invention provides a method, an apparatus and a related device for managing chat records.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical solutions:
in a first aspect, an embodiment provides a chat log management method, where the chat log management method includes:
monitoring chat information of target chat software, and storing the chat information into a chat record table associated with a chat object corresponding to the chat information;
selecting a plurality of target chat objects from a pre-established chat object list according to a selection instruction generated in response to user operation;
searching a target chat record table from the chat record tables based on the target chat objects;
and newly building a virtual chat window, and displaying the target chat record list by using the virtual chat window.
In an optional embodiment, the pre-established chat object list includes a buddy list, and the step of selecting the target chat object from the pre-established chat object list according to a selection instruction generated in response to a user operation includes:
selecting a target friend from the friend list according to a first selection instruction generated in response to a first user operation;
screening candidate group chats from a pre-established group chat list, wherein the pre-established group chat list comprises a plurality of group chats and group chat group members of each group chat, and the candidate group chats are group chats of which the group chat group members comprise the target friends;
selecting a target group chat from the candidate group chats according to a second selection instruction generated in response to a second user operation;
and determining the target friend and the target group chat as the target chat object.
In an alternative embodiment, the pre-established chat object list comprises a group chat list, and the step of selecting the target chat object from the pre-established chat object list according to a selection instruction generated in response to a user operation comprises:
selecting a target group chat from the group chat list according to a first selection instruction generated in response to a first user operation;
determining group chat members contained in each target group chat as candidate friends;
selecting a target friend from the candidate friends according to a second selection instruction generated in response to a second user operation;
and determining the target friend and the target group chat as the target chat object.
In an optional implementation manner, after the step of creating the virtual chat window and displaying the target chat record table by using the virtual chat window, the method further includes:
and storing the target chat record table into a virtual chat record table.
In an optional implementation manner, after the step of creating the virtual chat window and displaying the target chat record table by using the virtual chat window, the method further includes:
if the fact that the selected time of any piece of chat information in the virtual chat window is larger than or equal to the preset time is detected, popping up an information confirmation box;
and when a confirmation instruction is generated based on the information confirmation box, jumping to a chat window where the selected chat information is located in response to the confirmation instruction.
In a second aspect, an embodiment provides a chat log management apparatus, including:
the information monitoring module is used for monitoring the chat information of the target chat software and storing the chat information into a chat record table associated with a chat object corresponding to the chat information;
the object selection module is used for selecting a plurality of target chat objects from a pre-established chat object list according to a selection instruction generated by responding to user operation;
the searching module is used for searching the plurality of chat record tables to obtain a target chat record table based on the plurality of target chat objects;
and the new building module is used for building a virtual chat window and displaying the target chat record list by using the virtual chat window.
In an optional embodiment, the pre-established chat object list includes a buddy list, and the object selection module is configured to select a target buddy from the buddy list according to a first selection instruction generated in response to a first user operation;
the object selection module is further used for screening candidate group chats from a pre-established group chat list, wherein the pre-established group chat list comprises a plurality of group chats and group chat group members of each group chat, and the candidate group chats comprise the group chats of the target friends;
the object selection module is further used for selecting a target group chat from the candidate group chats according to a second selection instruction generated in response to a second user operation;
the object selection module is further configured to determine the target friend and the target group chat as the target chat object.
In an optional embodiment, the pre-established chat object list comprises a group chat list, and the object selection module is configured to select a target group chat from the group chat list according to a first selection instruction generated in response to a first user operation;
the object selection module is further used for determining group chat group members contained in each target group chat as candidate friends;
the object selection module is further used for selecting a target friend from the candidate friends according to a second selection instruction generated in response to a second user operation;
the object selection module is further configured to determine the target friend and the target group chat as the target chat object.
In a third aspect, an embodiment provides an electronic device, including a processor and a memory, where the memory stores machine executable instructions capable of being executed by the processor, and the processor can execute the machine executable instructions to implement the chat record management method according to any one of the foregoing embodiments.
In a fourth aspect, embodiments provide a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements a chat log management method as in any one of the preceding embodiments.
The chat record management method, the device and the related equipment provided by the embodiment of the invention have the advantages that the chat information of the target chat software is monitored, the chat information is stored in the chat record table associated with the chat object corresponding to the chat information, then a plurality of target chat objects are selected from the pre-established chat object list according to the selection instruction generated by responding to the user operation, then the target chat record table is obtained by searching from the chat record tables based on the target chat objects, the virtual chat window is newly established, and the target chat record table is displayed by utilizing the virtual chat window. When the chat records need to be searched, the chat records of each target chat object do not need to be searched independently, but a plurality of target chat objects can be directly selected, and the chat record tables of the target chat objects and the target chat objects are displayed in one virtual chat window, so that the chat records of the target chat objects can be inquired at one time, the operation is more convenient, and the user experience is improved.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
It is noted that relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
For convenience of illustration, only the relevant portions of the embodiments of the present invention are shown, and details of the embodiments are not disclosed. The electronic device 100 may be any terminal device such as a mobile phone, a tablet computer, a PDA (personal digital assistant), a personal computer, and the like, taking the electronic device 100 as a mobile phone as an example:
referring to fig. 1, the electronic device 100 includes a memory 110, a processor 150, an input module 120, a display module 130, a communication module 140, and the like. The processor 150 is electrically connected to the memory 110, the input module 120, the display module 130, and the communication module 140.
In addition, the electronic device 100 is pre-installed with instant messaging software, such as one or more of wechat, QQ, nailing and the like, and is not limited herein.
The memory 110 is used to store programs or data. In an alternative embodiment, the memory 110 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as an instant messaging software, a sound playing function, an image playing function, and the like), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. The Memory 110 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like.
The input module 120 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. In particular, the input module 120 may include a touch panel and other input devices.
The touch panel, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel (e.g., an operation performed by the user on or near the touch panel using any suitable object or accessory such as a finger, a stylus, etc.), and drive the corresponding connection device according to a preset program. Alternatively, the touch panel may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 150, and can receive and execute commands sent by the processor 150. In addition, the touch panel may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input module 120 may include other input devices in addition to the touch panel. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display module 130 may be used to display information input by or provided to the user and various menus of the electronic device 100. The display module 130 may include a display panel, and optionally, the display panel may be configured in the form of a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), or the like. Further, the touch panel may cover the display panel, and when the touch panel detects a touch operation thereon or nearby, the touch panel transmits the touch operation to the processor 150 to determine the type of the touch event, and then the processor 150 provides a corresponding visual output on the display panel according to the type of the touch event. Although in fig. 1, the touch panel and the display panel are two separate components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel and the display panel may be integrated to implement the input and output functions of the mobile phone.
The processor 150 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 110 and calling data stored in the memory 110, thereby performing overall monitoring of the mobile phone.
The communication module 140 is configured to establish a communication connection between the electronic device 100 and another communication terminal through the network, and to transmit and receive data through the network. The communication module 140 may be, but is not limited to, a WiFi unit, a radio frequency circuit, etc.
It should be understood that the structure shown in fig. 1 is only a schematic structural diagram of the electronic device 100, and the electronic device 100 may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
First embodiment
The invention provides a chat record management method, which is applied to electronic equipment 100 shown in fig. 1 and is used for realizing cross-chat-window chat record query. Please refer to fig. 2, which is a flowchart illustrating a chat log management method according to the present invention. The chat record management method comprises the following steps:
s201, monitoring the chat information of the target chat software, and storing the chat information into a chat record table associated with the chat object corresponding to the chat information.
The target chatting software can be instant messaging software such as WeChat, QQ, nailing and the like. The electronic device 100 of the present invention can listen to the chat information of the target chat software. Generally, instant messaging software can have multiple chat windows, and the chat objects of different chat windows are not the same.
In this embodiment, the electronic device 100 provided by the present invention can monitor the chat information in each chat window in the target chat software, and store the chat information in the chat record table associated with the chat object corresponding to the chat information. It should be noted that the chat window may be a private chat window or a group chat window. It should be further noted that, the electronic device 100 stores the monitored chat information in the private chat window to the corresponding private chat record table, and stores the monitored chat information in the group chat window to the corresponding group chat record table.
For example, electronic device 100 monitors that target chat software includes chat window No. 1, chat window No. 2, and chat window No. 3, and chat objects in chat window No. 1, chat window No. 2, and chat window No. 3 are A, B, C, respectively, so that electronic device 100 can store chat information in chat window No. 1 to chat log table associated with chat object a, store chat information in chat window No. 2 to chat log table associated with chat object B, and store chat information in chat window No. 3 to chat log table associated with chat object C.
S202, a plurality of target chat objects are selected from a pre-established chat object list according to a selection instruction generated in response to user operation.
It should be noted that the target chat object may include a target private chat object and a target group chat object. In particular, the present invention provides two methods of selecting a target chat object, as described below.
The first is to select the target friend first and then select the target group chat. Referring to fig. 3, the S202 includes:
s2021, selecting a target friend from the friend list according to a first selection instruction generated in response to the first user operation.
The pre-established friend list is a list formed by friends included in the instant messaging software after the user logs in the instant messaging software. For example, a WeChat buddy list, a qq buddy list, etc.
It should be noted that, when the user needs to query the chat records, the icon of "query the chat records" may be clicked, so as to display the pre-stored buddy list. At this point, the user may select a target buddy from the buddy list.
Specifically, the user may touch an icon of a target friend selected by the user on the touch panel (i.e., a first user operation), and the processor 150 may generate a first selection instruction according to the touch operation, so as to determine a friend corresponding to the icon touched by the user as the target friend.
S2022, screening candidate group chats from a pre-established group chat list, wherein the pre-established group chat list includes a plurality of group chats and group chat group members of each group chat, and the candidate group chats are group chats of which the group chat group members include target friends.
The pre-established group chat list is a set of all group chats included in the instant messaging software of the user and a group chat group member included in each group chat.
And after the target friend is selected, further obtaining a group chat containing the target friend, determining the group chat containing the target friend as a candidate group chat, and displaying the candidate group chat to the user so as to facilitate the user to select.
For example, the user includes friend A, B, C, D, and the group chat list includes group chat 1, group chat 2, and group chat 3, while group chat 1 includes 3 group members A, B, C, group chat 2 includes 3 group members B, C, D, and group chat 3 includes 3 group members A, C, D. If the user selects a as the target friend from A, B, C, D four friends, the candidate group chats screened at this time are the group chat 1 and the group chat 3 including a.
S2023, selecting the target group chat from the candidate group chats according to a second selection instruction generated in response to the second user operation.
After the user selects the target friend, the display module 130 displays all candidate group chats for the user to select. Specifically, the user may touch an icon of the group chat selected by the user on the touch panel (i.e., a second user operation), and the processor 150 may generate a second selection instruction according to the touch operation, so as to determine the group chat corresponding to the icon touched by the user as the target group chat.
And S2024, determining the target friend and the target group chat as target chat objects.
And simultaneously, the target friend and the target group chat are determined as target chat objects, so that the user can search the private chat records of the target friend and the chat records of the target friend in the target group chat.
The second method is to select the target group chat first and then select the target friend. Referring to fig. 4, the S202 includes:
s2025, selecting a target group chat from the group chat list according to the first selection instruction generated in response to the first user operation.
The pre-established group chat list is a list formed by the group chats included in the instant messaging software after the user logs in the instant messaging software. For example, a WeChat group list, a qq group list, etc.
It should be noted that, when the user needs to query the chat records, the icon of "query the chat records" may be clicked, so as to display a pre-stored group chat list. At this time, the user may select a target group chat from the group chat list.
Specifically, the user may touch an icon of the target group chat selected by the user on the touch panel (i.e., a first user operation), and the processor 150 generates a first selection instruction according to the touch operation, so as to determine the group chat corresponding to the icon touched by the user as the target group chat.
S2026, determining all group chat group members included in each target group chat as candidate friends.
For example, the group chat list includes group chat 1, group chat 2, and group chat 3, while group chat 1 includes A, B, C members, group chat 2 includes B, C, E members, and group chat 3 includes A, C, D members. If the user selects the group chat 1 and the group chat 2 as the target group chat from the group chat 1, the group chat 2 and the group chat 3, A, B, C, E is finally determined as the candidate friend for the user to further select.
S2027, selecting the target friend from the candidate friends according to a second selection instruction generated in response to the second user operation.
After the user selects the target group chat, the display module 130 displays all the candidate buddies for the user to select. Specifically, the user may touch an icon of the friend selected by the user on the touch panel (i.e., a second user operation), and the processor 150 may generate a second selection instruction according to the touch operation, so as to determine the friend corresponding to the icon touched by the user as the target friend.
And S2028, determining the target friend and the target group chat as target chat objects.
Similarly, the target friend and the target group chat are determined as the target chat objects, so that the user can search the private chat records of the target friend and the chat records of the target friend in the target group chat.
S203, searching the target chat record table from the plurality of chat record tables based on the plurality of target chat objects.
Note that, the chat object and the chat log table are associated with each other. Therefore, once the target chat object is determined, the corresponding chat record table can be found according to the target chat object.
Specifically, the target chat object includes a target friend and a target group chat, and the obtained target chat record table also includes a private chat record table corresponding to the target friend and a group chat record table corresponding to the target group chat.
It should be noted that, when searching for the target chat record, the user may also input information such as time and keywords as the filtering condition.
And S204, creating a virtual chat window, and displaying the target chat record list by using the virtual chat window.
It will be appreciated that a user conducting a conversation with each chat object creates a chat window. In order to facilitate the user to view the chat records, after the electronic device 100 searches for the target chat record, a virtual chat window is also created, and the target chat record table is displayed by using the virtual chat window, so that the user can visually see the chat record that the user wants to find.
If the target chat object includes a plurality of objects (whether private chat or group chat), the target chat object is presented in the form of group chat. In an alternative embodiment, each chat message may be presented in a different text box, and the text boxes of different objects may be colored differently to distinguish the chat messages between different objects.
And S205, storing the target chat record table into the virtual chat record table.
The target chat record table is stored in the virtual chat record table, so that the user can open the virtual chat window at any time to check the target chat record again without searching again.
S206, if the fact that the selected time of any piece of chat information in the virtual chat window is larger than or equal to the preset time is detected, popping up an information confirmation box.
S207, when the confirmation command is generated based on the information confirmation box, jumps to the chat window in which the selected chat information is located in response to the confirmation command.
That is, if the user presses a certain piece or several pieces of chat information in the virtual chat window, an information confirmation box can pop up to further confirm whether the user needs to check the chat window where the chat information originally exists. In an alternative embodiment, the information confirmation box includes a "cancel" icon and a "confirm" icon. When the user clicks the 'cancel' icon, the user does not need to jump to a chat window where the chat information is located; when the user clicks the 'confirmation' icon, the electronic equipment generates a confirmation instruction and jumps to a chat window where the selected chat information is located in response to the confirmation instruction, so that the user can further view the specific information.
Understandably, the misoperation of the user can be effectively avoided by setting the information confirmation box.
In order to execute the corresponding steps in the above embodiment and various possible manners, an implementation manner of the chat log management apparatus 200 is given below, and optionally, the chat log management apparatus 200 may adopt the device structure of the electronic device 100 shown in fig. 1. Further, referring to fig. 5, fig. 5 is a functional block diagram of a chat log management apparatus 200 according to an embodiment of the present invention. It should be noted that the basic principle and the generated technical effect of the chat log management device 200 provided in the present embodiment are the same as those of the above embodiments, and for the sake of brief description, no part of the present embodiment is mentioned, and corresponding contents in the above embodiments may be referred to. The chat log management device 200 includes: the system comprises an information monitoring module 210, an object selection module 220, a search module 230, a new building module 240, a storage module 250 and a jump module 260.
The information monitoring module 210 is configured to monitor chat information of the target chat software, and store the chat information in a chat record table associated with a chat object corresponding to the chat information.
It is understood that in an alternative embodiment, the information monitoring module 210 may be configured to execute S201.
The object selection module 220 is configured to select a plurality of target chat objects from a pre-established chat object list according to a selection instruction generated in response to a user operation.
It should be noted that the target chat object may include a target private chat object and a target group chat object. In particular, the present invention provides two methods of selecting a target chat object, as described below.
The first is to select the target friend first and then select the target group chat.
The object selection module 220 is configured to select a target friend from a friend list according to a first selection instruction generated in response to a first user operation, and screen a candidate group chat from a pre-established group chat list, where the pre-established group chat list includes a plurality of group chats and group chat group members of each group chat, the candidate group chat is a group chat in which the group chat group members include the target friend, and then select the target group chat from the candidate group chat according to a second selection instruction generated in response to a second user operation, and determine the target friend and the target group chat as a target chat object.
The second method is to select the target group chat first and then select the target friend.
The object selection module 220 is configured to select a target group chat from the group chat list according to a first selection instruction generated in response to a first user operation, determine group chat group members included in each target group chat as candidate friends, select a target friend from the candidate friends according to a second selection instruction generated in response to a second user operation, and determine the target friend and the target group chat as a target chat object.
It is understood that in an alternative embodiment, the object selection module 220 may be configured to perform S202, S2021-S2028.
Search module 230 is configured to search the target chat log list from the plurality of chat log lists based on the plurality of target chat objects.
It is to be appreciated that in an alternative embodiment, the search module 230 can be configured to perform S203.
The new creation module 240 is configured to create a virtual chat window, and display the target chat record table by using the virtual chat window.
It is to be appreciated that in an alternative embodiment, the new building block 240 can be utilized to perform S204.
The storage module 250 is configured to store the target chat log table in the virtual chat log table.
It is understood that in an alternative embodiment, the storage module 250 may be used to execute S205.
The jumping module 260 is configured to pop up an information confirmation box if it is detected that a selected time of any one of the chat messages in the virtual chat window is greater than or equal to a preset time, and to jump to the chat window where the selected chat message is located in response to a confirmation instruction when the confirmation instruction is generated based on the information confirmation box.
It is to be appreciated that in an alternative embodiment, the jump module 260 can be utilized to execute S206, S207.
Alternatively, the modules may be stored in the memory 110 shown in fig. 1 in the form of software or Firmware (Firmware) or be fixed in an Operating System (OS) of the electronic device 100, and may be executed by the processor 150 in fig. 1. Meanwhile, data, codes of programs, and the like required to execute the above-described modules may be stored in the memory 110.
In summary, the chat log management method, apparatus, and related device provided in the embodiments of the present invention monitor the chat information of the target chat software, store the chat information in the chat log table associated with the chat object corresponding to the chat information, select a plurality of target chat objects from the pre-established chat object list according to the selection instruction generated in response to the user operation, search the target chat log table from the plurality of chat log tables based on the plurality of target chat objects, create a virtual chat window, and display the target chat log table using the virtual chat window. When the chat records need to be searched, the chat records of each target chat object do not need to be searched independently, but a plurality of target chat objects can be directly selected, and the chat record tables of the target chat objects and the target chat objects are displayed in one virtual chat window, so that the chat records of the target chat objects can be inquired at one time, the operation is more convenient, and the user experience is improved.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.