A method and device for changing chat record display position
By adjusting the display order of the chat record list, the function of moving chat records from the front to the back in the instant messaging application is realized, which solves the problem of inconvenient user management and improves the user experience.
Patent Information
- Application Number
- CN202011543465.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-24
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2040-12-24
AI Technical Summary
In instant messaging applications, users cannot flexibly move chat records displayed in the front to the back of the chat record list, resulting in inconvenient chat record management and affecting user experience.
By obtaining the operation instructions of the chat history selected by the user and its target display position, the display order of the chat history list is adjusted so that the target chat record is moved to a specified position, such as the tail position of the chat history list.
It improves users’ flexibility in managing chat records and improves the experience of using instant messaging applications, especially when dealing with multiple group chats.
Smart Images

Figure CN114675909B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and device for changing a chat record display position. Background Art
[0002] With the rapid development and popularization of Internet technology, Internet-based instant messaging applications have become an indispensable tool in people's lives and work with their comprehensive functions and applicability to various scenarios; with the popularization of smart phones, instant messaging software for individual users has become software that people rely on for communication, socializing, work, and even shopping and entertainment in their lives.
[0003] In existing instant messaging applications (such as WeChat and QQ), users check messages sent by a single contact or multiple contacts in a group chat through chat records. According to life or work needs, a user often joins multiple group chats. When there are a large number of group chats, the chat records are usually displayed in an order from recent to distant according to the time when the new message was received; however, the display position of the chat record that the user is concerned about is often inconsistent with the chat record displayed according to time. Although the user can display the chat record that the user is concerned about in the front by pinning it to the top, there is a lack of a method to move the chat record displayed in the front position to the back position, which reduces the user's flexibility in managing the chat records, especially when multiple chat records that are not concerned about temporarily are displayed in the front position for a long time, affecting the user experience. Summary of the invention
[0004] In view of this, an embodiment of the present invention provides a method and device for changing the display position of a chat record, which can obtain a chat record to be changed selected by a user, receive an operation instruction for changing the display position of a chat record input by the user, and move the chat record to the target display position (for example, the tail position of the chat record list) according to the target display position contained in the operation instruction. This overcomes the problem that when using an instant messaging application, the user is unable to move one or more chat records displayed in the front position to the back position of the chat record list, thereby improving the user's flexibility in managing chat records and enhancing the user's experience of using instant messaging applications.
[0005] To achieve the above-mentioned purpose, according to one aspect of an embodiment of the present invention, a method for changing the display position of a chat record is provided, characterized in that it includes: according to a user ID of a user using an instant messaging application, obtaining a chat record list corresponding to the user ID and displaying the chat record list; marking a chat record selected by a user from the chat record list as a target chat record; receiving an operation instruction input by a user to change the display position of the target chat record, the operation instruction including a target display position corresponding to the target chat record; according to the target chat record and the target display position, changing the display order of the chat record list to form a target chat record list, so that the target chat record included in the displayed target chat list is displayed at the target display position.
[0006] Optionally, the method for changing the chat record display position is characterized in that:
[0007] The target chat record is any one of a contact chat record and a multi-person chat record.
[0008] Optionally, the method for changing the chat record display position is characterized in that:
[0009] Receiving an operation instruction input by a user to change the display position of the target chat record, including: receiving an operation instruction input by the user for the target chat record, the input method including any one or more of inputting text, executing gesture events, and executing device motion events, and setting the target display position of the target chat record according to the operation instruction.
[0010] Optionally, the method for changing the chat record display position is characterized in that:
[0011] The target display position includes any one of the set positions at the end, the middle, and the middle to the end of the chat record list.
[0012] Optionally, the method for changing the chat record display position is characterized in that:
[0013] According to the target chat record and the target display position, the display order of the chat record list is changed to form the target chat record list, including: obtaining the number of chat records in the chat record list, calculating the target order of the target chat record in the chat record list according to the target display position, and based on the target order and the current order of the target chat record, changing the display order of the chat records in the chat record list covered within the range from the current order to the target order to form the target chat record list.
[0014] Optionally, the method for changing the chat record display position is characterized in that:
[0015] When it is detected that the user performs any one or more operations of adding a chat record or deleting a chat record on the target chat record list, the number of chat records in the chat record list is reacquired, and the target order of the target chat records in the target chat record list is recalculated according to the target display position. Based on the target order, the display order of the chat records in the chat record list from the current order to the target order range is changed to form the target chat record list.
[0016] Optionally, the method for changing the chat record display position is characterized in that:
[0017] After receiving an operation instruction input by the user to cancel the setting of the display position of the target chat record, the display position of the target chat record in the current chat record list is determined according to the set strategy.
[0018] Preferably, the code developed based on the method of changing the display position of chat records can be integrated into existing instant messaging applications (for example, WeChat, QQ) in the form of files or plug-ins, thereby adding the operation of changing the display position of chat records from the front to the back on the basis of the existing operations of chat records, so as to achieve the flexibility of users in managing chat records and enhance the user experience.
[0019] To achieve the above object, according to a second aspect of an embodiment of the present invention, a device for changing the display position of a chat record is provided, characterized in that it comprises: a chat record acquisition module, an operation instruction processing module and a chat record sequence change module; wherein,
[0020] The chat record acquisition module is used to acquire a chat record list corresponding to the user ID and display the chat record list according to the user ID of the instant messaging application;
[0021] The processing operation instruction module is used to mark the chat record selected by the user from the chat record list as a target chat record; receive an operation instruction input by the user to change the display position of the target chat record, and the operation instruction includes a target display position corresponding to the target chat record;
[0022] The chat record order change module is used to change the display order of the chat record list to form a target chat record list according to the target chat record and the target display position, so that the target chat record included in the displayed target chat list is displayed at the target display position.
[0023] Optionally, the device for changing the chat record display position is characterized in that:
[0024] The processing operation instruction module is used to receive the operation instruction input by the user to change the display position of the target chat record, including: receiving the operation instruction input by the user for the target chat record, the input method including any one or more of inputting text, executing gesture events, and executing device motion events; according to the operation instruction, setting the target display position of the target chat record.
[0025] Optionally, the device for changing the chat record display position is characterized in that:
[0026] The target display position includes any one of the set positions at the end, the middle, and the middle to the end of the chat record list.
[0027] Optionally, the device for changing the chat record display position is characterized in that:
[0028] The chat record order change module is used to change the display order of the chat record list to form a target chat record list according to the target chat record and the target display position, including: obtaining the number of chat records in the chat record list, calculating the target order of the target chat record in the chat record list according to the target display position, and changing the display order of the chat records in the chat record list from the current order to the target order based on the target order and the current order of the target chat record to form the target chat record list.
[0029] Optionally, the device for changing the chat record display position is characterized in that:
[0030] The module for changing the chat record order is used to re-acquire the number of chat records in the chat record list when detecting that the user performs any one or more operations of adding a chat record or deleting a chat record in the target chat record list, recalculate the target order of the target chat record in the target chat record list according to the target display position, and change the display order of the chat records in the chat record list from the current order to the range covered by the target order based on the target order to form the target chat record list.
[0031] Optionally, the device for changing the chat record display position is characterized in that:
[0032] The processing operation instruction module is also used to determine the display position of the target chat record in the current chat record list according to the set strategy after receiving the operation instruction input by the user to cancel the setting of the display position of the target chat record.
[0033] To achieve the above-mentioned purpose, according to the third aspect of an embodiment of the present invention, there is provided an electronic device for changing the display position of a chat record, characterized in that it comprises: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement any of the methods described in the above-mentioned method for changing the display position of a chat record.
[0034] To achieve the above-mentioned purpose, according to the fourth aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored, characterized in that when the program is executed by a processor, any method described in the above-mentioned method for changing the display position of a chat record is implemented.
[0035] An embodiment of the above invention has the following advantages or beneficial effects: it can overcome the problem that when a user uses an instant messaging application, one or more chat records displayed in the front position cannot be moved to the back position of the chat record list, thereby improving the flexibility of the user in managing chat records and enhancing the user's experience in using the instant messaging application.
[0036] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0038] Figure 1 It is a flowchart of a method for changing the display position of a chat record provided by an embodiment of the present invention;
[0039] Figure 2 This is a schematic diagram of a client interface of a chat record provided by an embodiment of the present invention;
[0040] Figure 3 This is a schematic diagram of a client interface for changing the display position of a chat record provided by an embodiment of the present invention;
[0041] Figure 4 It is a structural schematic diagram of a device for changing the display position of a chat record provided by an embodiment of the present invention;
[0042] Figure 5 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0043] Figure 6 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0044] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0045] like Figure 1 As shown, an embodiment of the present invention provides a method for changing the display position of a chat record, and the method may include the following steps:
[0046] Step S101: according to a user ID of an instant messaging application, a chat record list corresponding to the user ID is obtained and the chat record list is displayed.
[0047] Specifically, after the user starts an instant messaging application running on a client device (for example, a smart phone, a tablet computer, etc.) and logs in successfully, the user identification of the user (for example, the user's WeChat account, QQ number) is obtained, and based on the user identification, a chat record list corresponding to the user identification is obtained, and the chat record list is displayed on a page and presented to the user so that the user can view the information of each chat record, wherein the chat record list includes the chat records between the user and the contact (that is, the contact chat records, that is, one-to-one chat records), or the chat records of the group chat in which the user is located (that is, multi-person chat records); when the user selects a chat record, the chat record is marked as a target chat record, that is, the target chat record is any one of the contact chat records and the multi-person chat records.
[0048] Furthermore, users often save chat records (i.e., do not actively delete chat records) in order to easily access the information contained in the chat records, wherein the information includes files, texts, pictures, videos, audios, links, etc. sent by a contact or sent by multiple contacts included in a group chat. Currently, a rule for determining the order in which chat records are displayed in a chat record list is to determine the order based on the time point of the latest information sent by the contact (i.e., the last information in the chat record), for example: Figure 2In the example of the "chat record interface 1" shown, if contact A in the "group chat record 1" sent a message at the time point of "11:50", and contact Z in the "group chat record 9" sent a message at the time point of "10:30", then based on the time series, it can be seen that the chat records are sorted, and the time point corresponding to the group chat record 1 is closest to the current time, so it is arranged at the top. Similarly, personal chat record 5, group chat record 9, etc. are arranged in sequence; it can be understood that the arrangement order of the chat records is dynamically changing. For example: still taking the "chat record interface 1" as an example, if contact Y included in the "group chat record 9" continues to send a large number of messages every day, then based on the time series, "group chat record 9" may continue to be displayed at the top of the chat record list. ; If multiple chat records similar to "Group Chat Record 9" are continuously displayed at the front of the chat list, and these chat records are not paid attention to by the user for a period of time, it will affect the user's experience; although the user can set one or more chat records of interest to be "pinned" (i.e., the chat record is fixedly displayed at the front of the chat record list); however, setting a small number of chat records to be "pinned" still cannot overcome the above problems. If multiple chat records (for example: more than the number of group chat records displayed on one interface) are "pinned", and because the chat records of interest change dynamically, it is necessary to frequently cancel the "pinning" or set the "pinning" according to the changes, thereby reducing the convenience of users viewing chat records and affecting the user experience.
[0049] Step S102: Marking a chat record selected by the user from the chat record list as a target chat record; receiving an operation instruction input by the user to change the display position of the target chat record, wherein the operation instruction includes a target display position corresponding to the target chat record.
[0050] Specifically, when a user selects a target display position for a target chat record to be set from a chat list, the chat record selected by the user from the chat record list is marked as a target chat record; further, an operation instruction input by the user to change the display position of the target chat record is received, and the operation instruction includes the target display position corresponding to the target chat record; wherein the target display position includes any one of the set positions from the tail position, the middle position, and the middle position to the tail position of the chat record list. It is understandable that by setting one or more target chat records (not concerned for the time being) to a position after the middle position of the chat record list, including the tail position, the user can more easily focus on the chat record of concern displayed in the front position; further, each chat record included in the chat record list may include a unique identifier for distinction, and the identifier of the chat record may be generated according to a set rule when creating a chat, for example: a character string of a set length is randomly generated according to one or more letters, numbers, characters, etc. as the identifier of the chat record, and the identifier of each chat record is stored on the client or server. The storage method may be a relational database, a non-relational database, a file, etc. The present invention does not limit the specific form and specific content of the chat record identifier, and the specific form of the data source for storing the chat record.
[0051] Furthermore, an operation instruction input by a user to change the display position of the target chat record is received; specifically, the operation instruction input by a user to change the display position of the target chat record includes: receiving the operation instruction input by the user for the target chat record, the input method includes any one or more of inputting text, executing gesture events, executing device motion events, and sending voice, and setting the target display position of the target chat record according to the operation instruction. For example: the user inputs the operation instruction by executing the "shake" device motion event, and the operation instruction indicates "set the target chat record to the tail position in the chat record list", that is, the operation instruction includes the target display position set for the target chat record.
[0052] Specifically, the method for enabling the user to input an operation instruction may be:
[0053] The first method: after the user selects the target chat record and enters the target chat record details interface, an operation instruction input by the user to change the display position of the target chat record is received, which is specifically described as follows:
[0054] 1) After the user selects the target chat record, the user enters the target chat record details interface, which contains the information sent by each contact in the target chat record (including text, pictures, videos, voice, links, etc.); Figure 2In the schematic diagram shown, the target chat record selected by the user is "Group Chat Record 2". After selection, the chat details interface corresponding to "Group Chat Record 2" is displayed as follows: Figure 2 The interface including "Group chat record 2 (490 persons)" shown in , where 490 persons is an example of the number of contacts included in the group chat, Figure 2 It also includes a schematic diagram of the information sent by "Contact 1, Contact 2, Contact 3".
[0055] 2) In the details interface corresponding to the target chat record, receive the operation command input by the user, as shown below:
[0056] A: Receive the operation instruction input by the user using the method of executing the device motion event, wherein the device motion event executed by the user is received by monitoring the gravity sensing event of the device, for example: shaking the mobile phone, including shaking the mobile phone, shaking the mobile phone, shaking the mobile phone, rotating the mobile phone and other events. The present invention does not limit the specific events of the device motion event used. Specifically, taking the Android system as an example, by monitoring the gravity acceleration, magnetic sensing events, direction sensors, etc., it is determined whether the set device motion event occurs. The following takes "shake" as an example, wherein the onSensorChanged method is used to detect changes in the monitored gravity acceleration sensor (Sensor.TYPE_ACCELEROMETER). The sample code snippet is as follows:
[0057] public void onSensorChanged(SensorEvent sensorEvent){
[0058] if(sensorEvent.sensor.getType()==
[0059] Sensor.TYPE_ACCELEROMETER)
[0060] Furthermore, the data of the gravity acceleration on the X-axis, Y-axis and Z-axis (x, y, z) are obtained at each time interval (timeInterval); the difference (x1, y1, z1) between the current data on the X-axis, Y-axis and Z-axis and the data on the gravity acceleration on the X-axis, Y-axis and Z-axis detected at the last time point (indicated as lastX, lastY and lastZ) is calculated. The sample code snippet is as follows:
[0061] if(timeInterval>200){
[0062] long diffTime=(curTime-lastUpdate);
[0063] lastUpdate = curTime;
[0064] x = sensorEvent.values[0];
[0065] y = sensorEvent.values[1];
[0066] z = sensorEvent.values[2];
[0067] x1 = x - lastX;
[0068] y1 = y - lastY;
[0069] z1=z-lastZ;
[0070] Furthermore, the acceleration vector difference is calculated according to the difference of the data of the axes in each direction. The acceleration vector difference method can calculate the difference of each axis, square them respectively, sum them, and then take the square root to obtain the acceleration vector difference speed; (the acceleration vector difference can also be calculated according to the difference between the current X-axis, Y-axis, and Z-axis data and the set threshold). The sample code snippet is as follows:
[0071] speed=Math.sqrt(x1*x1+y1*y1+z1*z1) / timeInterval*10000;
[0072] Furthermore, the acceleration vector difference is compared with a set threshold value (THRESHOLD), and the time difference between the two acquisitions of data is combined to determine whether it is an expected device action event; after determining that it is an expected device action event, a corresponding operation is performed (changing the target chat record to the target display position, UpdateList()). The sample code snippet is as follows:
[0073] if(speed>THRESHOLD)UpdateList();}
[0074] B: Receive operation instructions input by the user using the method of executing gesture events. Specifically, gesture events include: click, long press, double-click, two-finger zoom, two-finger rotation, one-finger zoom, one-finger rotation, slide, drag, etc. For example: One implementation example is: after receiving the user's click, a menu is displayed, and the menu contains setting options (for example: move to the end, move to the middle, etc.). When the user selects an option (for example: move to the end) through a gesture event (for example: double-click), the corresponding operation is performed.
[0075] C: Receive the user's operation instruction by combining the method of executing gesture events with input text. Specifically, the description of gesture events is consistent with the description in B and will not be repeated here. Further, the operation instruction input by the user's input text method can be received. For example, one implementation example is to display a menu after receiving the user's click. The menu contains the option of "input target display position". After clicking this option, enter the text "move to the middle, move to the end, move to the front 3 of the end, etc." as the target display position; that is, the target display position includes any one of the set positions from the end position, the middle position, and the middle position to the end position of the chat record list; further, after receiving the input text, obtain the target display position by parsing the text. The second method: After the user selects the target chat record, receive the operation instruction corresponding to the user's gesture event, for example: receive the user's long press and drag gesture event of the target chat record (for example: set the drag gesture event to correspond to setting the chat record to the end position of the chat record list) as the operation instruction.
[0076] D: receiving operation instructions input by the user by sending voice, specifically, for example: one implementation example is: receiving a user's click to display a menu, the menu includes "Send Voice Command", and after the user selects "Send Voice Command", a voice indicating the operation instructions of "Move to the end" and "Move to the middle" is generated, and the client recognizes the voice as the corresponding operation instruction, including the target display position; the method for recognizing voice instructions can use a voice recognition module, for example: the Android system can implement voice recognition by calling the interface in the android.speech.RecognizerIntent package, or by calling the interface in the voice recognition engine module of a third party.
[0077] The second method: After the user selects the target chat record, the operation instruction is input based on the target chat record (i.e., without entering the details interface of the target chat record). For example, after the user selects the target chat record, a gesture event (long press and drag) is executed, or a gesture event and a device motion event are combined (long press and swing), or a gesture event is combined with input voice (long press and send voice instruction), etc., and the display position of the target chat record is changed through the target display position (e.g., tail position) contained in the operation instruction. The specific description of the operation instruction is consistent with that in the first method, and will not be repeated here.
[0078] The description of the above two methods is: receiving the operation instruction input by the user for the target chat record, the input method includes any one or more of inputting text, executing gesture events, executing device motion events, and sending voice, and setting the target display position of the target chat record according to the operation instruction. It can be understood that the operation instructions described above can be combined in a variety of ways and used in conjunction to enable the user to send the operation instruction in a more flexible way. The present invention does not limit the specific input method or combination of input methods used.
[0079] Step S103: According to the target chat record and the target display position, the display order of the chat record list is changed to form a target chat record list, so that the target chat record included in the displayed target chat list is displayed at the target display position.
[0080] Specifically, according to the target chat record and the target display position, the display order of the chat record list is changed to form the target chat record list, including: obtaining the number of chat records in the chat record list, calculating the target order of the target chat record in the chat record list according to the target display position, and changing the display order of the chat records in the chat record list from the current order to the target order based on the target order and the current order of the target chat record to form the target chat record list. Among them, the number of chat records in the chat record list is obtained, for example: the number of chat records in the chat record list obtained is 100. The longer the instant tool software is used, the more common chats are included in the accumulated chat list. Although the user can exit part of the group chat, most of the chat records are usually retained based on the need to save contact information or contact information in the group chat, or to view the chat record information in the future.
[0081] Further, according to the target display position, the target order of the target chat record in the chat record list is calculated, for example: if the target display position is the tail position, then 1) the number of chat lists is obtained through GetListNumber() as Value1; 2) the target order of the target chat records is determined to be Value1, so that the display order of the target chat records is at the tail position in the chat record list; for another example: if the target display position is the middle position, then: 1) the number of chat lists is obtained through GetListNumber() as Value1; 2) based on the rounded value of Value1 / 2, the target order of the target chat records is determined according to the value, so that the display order of the target chat records is in the middle position of the chat record list.
[0082] Furthermore, the display order of the chat record list is changed to form a target chat record list. Specifically, based on the target order and the current order of the target chat record, the display order of the chat records in the chat record list from the current order to the target order is changed; preferably, the chat record list is ordered, and a sequence number (for example, the sequence number is a number) can be generated based on the chat record list; taking the target display position as the tail position as an example, the current order of the target chat record is 2, and the target order is 100 (obtained through the above calculation), then the chat record list needs to be changed from the current order (for example, 2) to the target order. The display order of chat records covered within the target order (e.g., 100) (i.e., from 2 to 100 in the current chat record list); the change method can be to first change the labels of the corresponding chat records from 3 to 100, use the code (C, Java, Phython, etc. format) that implements the loop algorithm, reduce the labels of each associated chat record by one, and then change the current order (2) to the target order (100) to change the display order of the target chat records from 2 to 100, and store them in the data source. When reading the chat record data of the data source, sort them by sequence number to obtain the target chat record list with the changed display order. For example: use the SELECT id FROM ListORDER BY num command to obtain an ordered target chat record list (sorted based on sequence number num), where id is an example of a chat record identifier, and the client can display the chat record name corresponding to the chat record identifier on the interface, List is an example of a chat record list, and num is an example of a sequence number.
[0083] Furthermore, when it is detected that the user performs any one or more operations of adding a chat record or deleting a chat record in the target chat record list, the number of chat records in the chat record list is re-acquired, and the target order of the target chat record in the target chat record list is recalculated according to the target display position. Based on the target order, the display order of the chat records in the chat record list from the current order to the target order range is changed to form the target chat record list. It can be understood that by recalculating the target order, the target chat record is arranged in a relatively fixed display position in the chat record list. For example, when the chat record list contains 100 chat records, "Group Chat Record 2" is set to be displayed at the tail position. When the chat record list contains 150 chat records, "Group Chat Record 2" is still displayed at the tail position. Preferably, when the user sets multiple chat records to the target display position (for example, the middle position, the tail position), the last selected target chat record (for example, group chat information 3) is set to the corresponding target display position, and the last chat record set to the target display position (for example, group chat information 2) is moved upward to become the previous chat record adjacent to group chat information 3, and so on, the multiple target chat records set by the user are arranged in the front position adjacent to the target display position (for example, the user sets 5 chat records to the tail position, then the chat list is arranged according to the last 5 chat records sorted as the 5 chat records set by the user). days records); further, when the number of chat records in the target chat record list remains unchanged, but the order of the chat records changes, it is determined whether the changed chat order is related to the display order of the target chat records, for example: when the display order of the target chat record is the last one (tail position), it is not related to the order of other chat records; when the display order of the target chat record is in the middle position, and the chat record whose display position is behind the middle position is changed to the front of the middle position (for example: a contact sends a message to change the display position of the chat record), the display order of the target chat record needs to be recalculated.
[0084] Furthermore, the user can cancel the setting by inputting an instruction to cancel the setting of the display position of the target chat record. The input method used is consistent with the input method set, and will not be repeated here. After receiving the operation instruction input by the user to cancel the setting of the display position of the target chat record, the display position of the target chat record in the current chat record list is determined according to the set strategy. For example: Figure 3Take "Group Chat Record 2" in the example, after canceling the setting of "Move to the end", it will be displayed in the chat record list according to the set strategy (for example, the set strategy is to arrange in the order of time when the information is received). For example, if the message sent by the contact of Group Chat Record 2 is the most recent, Group Chat Record 2 will be displayed first.
[0085] like Figure 2 As shown, an embodiment of the present invention provides a method for displaying a chat record client interface, which may include the following steps:
[0086] Step S201: Mark the chat record selected by the user from the chat record list as a target chat record, and display the chat record details page of the target chat record.
[0087] Specifically, according to the user ID of the instant messaging application, a chat record list corresponding to the user ID is obtained and the chat record list is displayed; for example, the chat record list obtained is as follows: Figure 2 As shown in the "chat record page 1" in the schematic diagram of; further, the chat record selected by the user is marked as a target chat record, such as Figure 2 As shown in the schematic diagram of , the chat record selected by the user is "group chat record 2", then "group chat record 2" is marked as the target chat record, and the corresponding target chat record details interface is displayed, such as Figure 2 Schematic diagram of "Group Chat Record 2 (490 people)" in the figure; the specific description of the target chat record and the chat record list is consistent with the description of step S101 and step S102, and will not be repeated here.
[0088] like Figure 3 As shown, an embodiment of the present invention provides a method for displaying a client interface for changing a chat record display position, and the method may include the following steps:
[0089] Step S301: changing the display order of the chat record list to form a target chat record list, so that when the target chat list is displayed, the target chat record is displayed at the target display position.
[0090] Specifically, an operation instruction input by a user to change the display position of the target chat record is received, and the operation instruction includes the target display position set for the target chat record. The manner in which the user inputs the operation instruction is consistent with the description of step S102 and will not be repeated here; that is, an operation instruction input by the user for the target chat record is received, and the input method includes any one or more of inputting text, executing gesture events, and executing device motion events, and the display position of the target chat record is changed according to the operation instruction. Furthermore, the description of the target display position is consistent with the description of step S102 and will not be repeated here.
[0091] Further, assuming that the target display position of "Group Chat Record 2" indicated in the received operation instruction input by the user is "tail position", the number of chat records in the chat record list is obtained, and the target order of the target chat record in the chat record list is calculated according to the target display position. Based on the target order and the current order of the target chat record, the display order of the chat records in the chat record list from the current order to the target order is changed to form the target chat record list; the specific description of changing the display order of the target chat record and the target chat record list is consistent with step S103 and will not be repeated here. Figure 3 As shown in the interface diagram, after setting the target display position of "Group Chat Record 2" to "tail position", the "Group Chat Record 2" in the displayed interface "Updated Chat Record Page 1" is changed to the tail position of "Last Page of Chat Record", and its update time is "13:50". It can be understood that if the target display position of "Group Chat Record 2" is not set to "tail position", according to the set strategy (for example: sorting by the time when the contact sends the message), "Group Chat Record 2" may be displayed in the first position of the first page. It can be seen that through the method of the present invention, when the group chat is not paid attention to, without exiting the group chat, by setting the target display position of the target chat record, the flexibility of the user in managing the chat record is improved, and the user experience is improved.
[0092] like Figure 4 As shown, an embodiment of the present invention provides a device 400 for changing the display position of a chat record, comprising: a chat record acquisition module 401, an operation instruction processing module 402, and a chat record sequence change module 403; wherein,
[0093] The chat record acquisition module 401 is used to acquire a chat record list corresponding to the user ID according to the user ID of the instant messaging tool and display the chat record list;
[0094] The processing operation instruction module 402 is used to mark the chat record selected by the user from the chat record list as a target chat record; receive an operation instruction input by the user to change the display position of the target chat record, and the operation instruction includes a target display position corresponding to the target chat record;
[0095] The chat record order change module 403 is used to change the display order of the chat record list to form a target chat record list according to the target chat record and the target display position, so that the target chat record included in the displayed target chat list is displayed at the target display position.
[0096] Optionally, the processing operation instruction module 402 is used to receive an operation instruction input by a user to change the display position of the target chat record, including: receiving an operation instruction input by the user for the target chat record, the input method including any one or more of inputting text, executing gesture events, and executing device motion events, and setting the target display position of the target chat record according to the operation instruction.
[0097] Optionally, the processing operation instruction module 402 includes: the target display position includes any one of the set positions of the tail position, the middle position, and the middle position to the tail position of the chat record list.
[0098] Optionally, the chat record order change module 403 is used to change the display order of the chat record list to form a target chat record list according to the target chat record and the target display position, including: obtaining the number of chat records in the chat record list, calculating the target order of the target chat record in the chat record list according to the target display position, and changing the display order of the chat records in the chat record list from the current order to the target order based on the target order and the current order of the target chat records to form the target chat record list.
[0099] Optionally, the chat record order change module 403 is used to re-acquire the number of chat records in the chat record list when it is detected that the user performs any one or more operations of adding a chat record or deleting a chat record on the target chat record list, recalculate the target order of the target chat records in the target chat record list according to the target display position, and change the display order of the chat records in the chat record list from the current order to the covered range of the target order based on the target order to form the target chat record list.
[0100] Optionally, the processing operation instruction module 402 is also used to determine the display position of the target chat record in the current chat record list according to a set strategy after receiving an operation instruction input by the user to cancel the setting of the display position of the target chat record.
[0101] An embodiment of the present invention also provides an electronic device for changing the display position of a chat record, comprising: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method provided in any of the above embodiments.
[0102] An embodiment of the present invention further provides a computer-readable medium on which a computer program is stored. When the program is executed by a processor, the method provided in any of the above embodiments is implemented.
[0103] Figure 5 An exemplary system architecture 500 is shown to which the method for changing the display position of a chat record or the apparatus for changing the display position of a chat record according to an embodiment of the present invention can be applied.
[0104] like Figure 5 As shown, system architecture 500 may include terminal devices 501, 502, 503, a network 504 and a server 505. Network 504 is used to provide a medium for communication links between terminal devices 501, 502, 503 and server 505. Network 504 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0105] The user can use the terminal devices 501, 502, 503 to interact with the server 505 through the network 504 to receive or send messages, etc. Various client applications, such as instant messaging tools, can be installed on the terminal devices 501, 502, 503.
[0106] The terminal devices 501 , 502 , and 503 may be various electronic devices having a display screen and supporting various client applications, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0107] Server 505 may be a server that provides various services, such as a background management server that provides support for client applications used by users using terminal devices 501, 502, and 503. The background management server may process requests received from instant messaging application clients and feed back corresponding response data to the terminal devices.
[0108] It should be noted that the method for changing the display position of chat records provided in the embodiment of the present invention is generally executed by terminal devices 501, 502, and 503. Accordingly, the device for changing the display position of chat records is generally set in the terminal devices 501, 502, and 503 or in the server 505.
[0109] It should be understood that Figure 5 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0110] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system 600 of a terminal device suitable for implementing an embodiment of the present invention. Figure 6 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0111] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0112] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.
[0113] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the system of the present invention are executed.
[0114] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0115] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0116] The modules and / or units involved in the embodiments of the present invention may be implemented in software or hardware. The modules and / or units described may also be provided in a processor, for example, they may be described as: a processor including a module for acquiring chat records, a module for processing operation instructions, and a module for changing the order of chat records. The names of these modules do not, in some cases, constitute limitations on the modules themselves, for example, the module for acquiring chat records may also be described as "a module for acquiring and displaying a list of chat records corresponding to an identifier according to a user identifier".
[0117] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently and not be assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: according to the user ID of the instant messaging application, obtaining a chat record list corresponding to the user ID and displaying the chat record list; marking the chat record selected by the user from the chat record list as a target chat record; receiving an operation instruction input by the user to change the display position of the target chat record, the operation instruction includes the target display position corresponding to the target chat record; according to the target chat record and the target display position, changing the display order of the chat record list to form a target chat record list, so that the target chat record included in the displayed target chat list is displayed at the target display position.
[0118] It can be seen that the embodiments of the present invention can overcome the problem that when a user uses an instant messaging application containing a large number of group chats, one or more chat records displayed in the front position cannot be moved to the back position of the chat record list, thereby increasing the flexibility of the user in managing the chat records and improving the user experience.
[0119] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for changing the display position of a chat record, characterized in that: include: According to a user ID of an instant messaging application, a chat record list corresponding to the user ID is obtained and the chat record list is displayed; wherein the chat record list includes a plurality of group chat records, and the display order of each group chat record in the chat record list is determined by the time point corresponding to the latest information sent by any contact in the group chat; Marking a chat record selected by a user from the chat record list as a target chat record; receiving an operation instruction input by a user to change a display position of the target chat record, wherein the operation instruction includes a target display position corresponding to the target chat record; The method of inputting the operation instruction by the user includes any one of executing a gesture event, executing a device motion event, and sending a voice; In the case where the target display position is the tail position of the chat history list, the operation instruction includes: combining a long press gesture event with a shake in a device motion event, so that the user can change the target chat record to the tail position of the chat history list by performing a long press on the target chat record and shaking the device, or combining a long press gesture event with a voice instruction corresponding to sending a voice, so that the user can change the target chat record to the tail position of the chat history list by performing a long press on the target chat record and sending a voice instruction; According to the target chat record and the target display position, the display order of the chat record list is changed to form a target chat record list, so that the target chat record included in the displayed target chat list is displayed at the target display position.
2. The method according to claim 1, characterized in that: The target chat record is any one of a contact chat record and a multi-person chat record.
3. The method according to claim 1, characterized in that Receiving an operation instruction input by a user to change the display position of the target chat record includes: Receive an operation instruction input by the user for the target chat record, wherein the method of inputting the operation instruction includes any one of inputting text, executing a gesture event, executing a device motion event, and sending voice, and set the target display position of the target chat record according to the operation instruction.
4. The method according to claim 1, characterized in that: The target display position includes any one of the set positions at the end, the middle, and the middle to the end of the chat record list.
5. The method according to claim 1, characterized in that: According to the target chat record and the target display position, changing the display order of the chat record list to form a target chat record list includes: Obtain the number of chat records in the chat record list, calculate the target order of the target chat records in the chat record list according to the target display position, and based on the target order and the current order of the target chat records, change the display order of the chat records in the chat record list that are covered within the range from the current order to the target order to form the target chat record list.
6. The method according to claim 5, characterized in that When it is detected that the user performs any one or more operations of adding a chat record or deleting a chat record on the target chat record list, the number of chat records in the chat record list is reacquired, and the target order of the target chat records in the target chat record list is recalculated according to the target display position. Based on the target order, the display order of the chat records in the chat record list from the current order to the target order range is changed to form the target chat record list.
7. The method according to any one of claims 1 to 6, characterized in that: After receiving an operation instruction input by the user to cancel the setting of the display position of the target chat record, the display position of the target chat record in the current chat record list is determined according to the set strategy.
8. A device for changing the display position of a chat record, characterized in that: include: A module for acquiring chat records, a module for processing operation instructions, and a module for changing the order of chat records; wherein, The chat record acquisition module is used to acquire a chat record list corresponding to the user ID according to the user ID of the instant messaging application and display the chat record list; wherein the chat record list includes a plurality of group chat records, and the display order of each group chat record in the chat record list is determined by the time point corresponding to the latest information sent by any contact in the group chat; The processing operation instruction module is used to mark the chat record selected by the user from the chat record list as the target chat record; receive the operation instruction input by the user to change the display position of the target chat record, and the operation instruction includes the target display position corresponding to the target chat record; wherein the method of the operation instruction input by the user includes any multiple of executing a gesture event, executing a device motion event, and sending a voice; when the target display position is the tail position of the chat record list, the operation instruction includes: combining a long press gesture event and a swing in a device motion event, so that the user can change the target chat record to the tail position of the chat record list by executing a long press on the target chat record and swinging the device, or combining a long press gesture event and a voice instruction corresponding to sending a voice, so that the user can change the target chat record to the tail position of the chat record list by executing a long press on the target chat record and sending a voice instruction; The chat record order change module is used to change the display order of the chat record list to form a target chat record list according to the target chat record and the target display position, so that the target chat record included in the displayed target chat list is displayed at the target display position.
9. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Message display method and device
CN105553826A
Chat record display method, device and computer-readable storage medium
CN109039873A
Message group sorting method and device, electronic equipment and medium
CN110113489A
Method and device for managing session group
CN110266505A
Message display method and terminal equipment
CN110855549A
