Detailed Description
Reference will now be made in detail to the embodiments of the present disclosure, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the drawings are exemplary and intended to be illustrative of the present disclosure, and should not be construed as limiting the present disclosure.
The disclosure provides a conversation list display method, mainly aiming at the technical problem of low message processing efficiency in the prior art.
The conversation list display method of the embodiment of the disclosure includes obtaining each conversation in instant messaging software, and judging whether a first message and a second message exist in each conversation, wherein the first message is an unread message provided with an emergency mark, the second message is an unread message provided with an ait current user mark, then determining display contents of each message area in a conversation list according to a judgment result, and then obtaining a conversation state of each conversation, wherein the conversation state includes: and determining the display content of each conversation area in the conversation list according to the conversation state of each conversation by the latest message occurrence time, and finally, displaying the title bar and the corresponding display content of each area in the conversation list. Therefore, the display form of the rich messages can be realized, and each message is displayed in a partition mode according to the importance degree of the message, so that the user can process the urgent or important messages preferentially, and the processing efficiency of the message is improved. And the method can realize the partition display of each conversation according to the occurrence time of the latest message in each conversation, so that the user can process the conversation of the current day preferentially, and then process the conversation of each day between the current days, thereby leading the user to process the urgent or important conversation preferentially and improving the processing efficiency of the message.
A session list display method, apparatus, and electronic device according to embodiments of the present disclosure are described below with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating a session list display method according to a first embodiment of the disclosure.
The disclosed embodiment is exemplified in that the conversation list display method is configured in a conversation list display apparatus, which can be configured in any electronic device, so that the electronic device can perform a conversation list display function.
The electronic device may be, for example, a Personal Computer (PC), a cloud device, or a mobile device, and the mobile device may be, for example, a mobile phone, a tablet Computer, a Personal digital assistant, a wearable device, and other hardware devices having various operating systems, touch screens, and/or display screens.
As shown in fig. 1, the session list display method includes the steps of:
step 101, obtaining each session in the instant messaging software, wherein the session comprises: at least one message.
It can be understood that when the user has a social requirement, the message can be sent to the receiver of the message through the instant messaging software, and accordingly, the receiver can receive the message through the corresponding instant messaging software in the electronic device and display the message in the corresponding session. Therefore, in the embodiment of the present disclosure, the session list display device may acquire each session in the instant messaging software, where each session includes at least one message.
That is to say, in the present disclosure, only the conversation including the message is acquired, so that the conversation including the message may be displayed in the subsequent step, and the conversation not including the message may be ignored and not displayed in the conversation list, so as to save the space of the conversation list, so that more conversations including the message may be displayed in the conversation list, and the processing efficiency of the message is improved.
Step 102, judging whether a first message and a second message exist in each session; the first message is an unread message with an emergency mark; the second message is an unread message with the set ait current user flag.
In the embodiment of the present disclosure, the first message is an unread message with an emergency flag, for example, when the sender has an emergency message to notify the receiver, the sender may set the emergency flag on the message when sending the message, and correspondingly, the message received by the receiver will be set with the emergency flag, so that the receiver can preferentially process the message with the emergency flag. The second message is an unread message with an ait (@) current user mark, for example, in a chat group, when a sender wants to send a message to a certain receiver, the sender can edit the message at ait @ the other side, so that the corresponding receiver can process the message in time after receiving the message.
In the embodiment of the present disclosure, after the session list display device acquires each session, it may be determined whether a first message and a second message exist in the session for each session. Specifically, for each session, it may be determined whether the session includes an unread message, if the session does not include an unread message, it is determined that the session does not include a first message and a second message, if the session includes an unread message, it may be further determined whether the unread message in the session has an emergency flag, if so, it is determined that the session includes a first message, if not, it is determined that the session does not include a first message, meanwhile, it may be determined whether the unread message in the session has an ait current user flag, if so, it is determined that the session includes a second message, and if not, it is determined that the session does not include a second message.
It should be noted that, for the same session, the session may only have the first message, or the session may only have the second message, or the session may not have the first message and the second message, or the session may have both the first message and the second message.
For example, in a chat group, when a sender sends a message to a current user, the sender may at @ the current user during the process of editing the message, and when sending the message, the message is set with an emergency flag, and the message may be a first message or a second message. Or, in the chat group, when the sender has an emergency to notify all users in the chat group, the sender may set an emergency flag to the message after sending the message, at this time, the first message exists in the session, if the sender wants to separately remind the current user, the sender may re-edit the message, and in the process of editing the message, the ait @ the current user, at this time, the second message may exist in the session.
As an application scenario, when the instant messaging software is office-class software, and when a department leader has important notification to notify all staff of the work hours, a message with an emergency flag may be sent in a chat group, and if the department leader wants to remind employee a of following the progress of the matter, employee a may be @ in the chat group, and for employee a, there are a first message and a second message in the current session at the same time.
103, determining the display content of each message area in the session list according to the judgment result; the message area includes: a first message area and a second message area; the display content of the first message area is a first message and corresponding sender information; the display content of the second message area is the second message and the corresponding sender information.
In the embodiment of the disclosure, for each session, when a first message exists in the session, the first message in the session and corresponding sender information may be displayed in a first message area, where the sender information may be identification information of a sender, such as a sender name, a sender avatar, and the like, and when a second message exists in the session, the second message in the session and corresponding sender information may be displayed in a second message area. Therefore, each message can be displayed in a partition mode according to the importance degree of each message, so that a user can process urgent or important messages preferentially, and the processing efficiency of the user is improved.
As an example, for example, referring to fig. 2, if the user a sends a first message and a second message to the current user, the first message, the name of the user a and the avatar may be displayed in the first message area 21, and the second message, the name of the user a and the avatar may be displayed in the second message area 22.
It should be noted that, if a certain message may be a first message or a second message, for example, in a chat group, when a sender sends a message to a current user, the current user may be at @ at the time of editing the message by the sender, and an emergency flag is set for the message when the message is sent, at this time, the message may be the first message and the second message at the same time, and the message may be displayed in the first message area, or the message may be displayed in the second message area, or the message may be displayed in both the first message area and the second message area to prompt the user, so that the user may perform priority processing on the message.
As a possible implementation manner, in order to facilitate the user to process the latest unread message, in the present disclosure, the display contents in the first message area may be arranged in a reverse order according to the occurrence time of each first message, and similarly, the display contents in the second message area may also be arranged in a reverse order according to the occurrence time of each second message.
Step 104, obtaining the session state of each session, wherein the session state comprises: the latest message occurrence time.
Generally, the display contents in the session are arranged in reverse order according to the occurrence time of each message, so in the embodiment of the present disclosure, in order to facilitate the user to process each message in time, thereby improving the processing efficiency of the message, the session state of each session may be obtained, where the session state includes the occurrence time of the latest message. That is to say, in the present disclosure, the occurrence time of the latest message in each session may be obtained, so that in the subsequent step, each session may be displayed in a partitioned manner according to the occurrence time of the latest message in each session, so as to improve the efficiency of the user in processing messages.
105, determining the display content of each session area in the session list according to the session state of each session; the session area includes: a first session area and a second session area; the display content of the first conversation area is the conversation with the current day of the corresponding latest message occurrence time; the display content of the second conversation area is the conversation of each day before the current latest message occurrence time.
In the embodiment of the present disclosure, after the session states of the sessions are acquired, for each session, it may be determined whether the occurrence time of the latest message in the session state of the session is the current day, if so, the session is displayed in the first session area, and if not, the session is displayed in the second session area. Therefore, each conversation can be displayed in a partitioned mode according to the occurrence time of the latest message corresponding to each conversation, namely, the conversation on the same day and the conversation on each day before the current day are displayed in a partitioned mode, so that a user can process the conversation on the same day preferentially, then the conversation on each day between the current days is processed, the user can process the urgent or important conversation preferentially, and the message processing efficiency is improved.
As an example, referring to fig. 2, sessions for the current day may be displayed in the first session area 23, and sessions for the previous day may be displayed in the second session area 24.
And 106, displaying the title bar of each area in the conversation list and the corresponding display content.
In the embodiment of the present disclosure, after determining the display contents corresponding to the first message area and the second message area in the session list and the display contents corresponding to the first session area and the second session area in the session list, the display contents corresponding to each area and the title bar of each area may be displayed.
As an example, referring to fig. 2, a corresponding title, for example, "urgent message" is displayed on the title bar 211 of the first display area 21, a corresponding title "important message" is displayed on the title bar 221 of the second display area 22, a corresponding title "today message" is displayed on the title bar 231 of the first conversation area 23, and a corresponding title "earlier message" is displayed on the title bar 241 of the second conversation area 24. Therefore, each message can be displayed in a partition mode according to the importance degree of the message, so that a user can process urgent or important messages preferentially, and the message processing efficiency is improved. And the method can realize the partition display of each conversation according to the occurrence time of the latest message in each conversation, so that the user can process the conversation of the current day preferentially, and then process the conversation of each day between the current days, thereby leading the user to process the urgent or important conversation preferentially and improving the processing efficiency of the message.
The conversation list display method of the embodiment of the disclosure includes obtaining each conversation in instant messaging software, and judging whether a first message and a second message exist in each conversation, wherein the first message is an unread message provided with an emergency mark, the second message is an unread message provided with an ait current user mark, then determining display contents of each message area in a conversation list according to a judgment result, and then obtaining a conversation state of each conversation, wherein the conversation state includes: and determining the display content of each conversation area in the conversation list according to the conversation state of each conversation by the latest message occurrence time, and finally, displaying the title bar and the corresponding display content of each area in the conversation list. Therefore, the display form of the rich messages can be realized, and each message is displayed in a partition mode according to the importance degree of the message, so that the user can process the urgent or important messages preferentially, and the processing efficiency of the message is improved. And the method can realize the partition display of each conversation according to the occurrence time of the latest message in each conversation, so that the user can process the conversation of the current day preferentially, and then process the conversation of each day between the current days, thereby leading the user to process the urgent or important conversation preferentially and improving the processing efficiency of the message.
As an example, referring to fig. 2, the session displayed in the first session area 23 may include: the session name 232 and the session avatar 233, and likewise, the session displayed in the second session area 24 may include: a session name and a session avatar.
As a possible implementation manner, in order to facilitate the user to process the unread messages in time and prompt the user of the number of the unread messages, when the unread messages exist in the conversation, the unread message mark of the conversation and the message corresponding to the occurrence time of the latest message may be displayed in the conversation area. The unread message tags indicate the number of unread messages in the conversation, for example, the unread message tags may be represented by arabic numerals, roman numerals, or graphics or other characters, which is not limited thereto.
Therefore, the preview display of the latest message in the session can be realized according to the unread state of the message, and the number of the unread messages in the session is prompted to the user, so that the user can process the unread messages in the session in time.
As an example, referring to fig. 2, when a session 1 is displayed in the first session area 23, the session 1 displayed in the first session area 23 may include: a session name 232, a session avatar 233, an unread message tag 234, a message 235 corresponding to the time of occurrence of the latest message, and a time of occurrence of the latest message 236.
As a possible implementation manner, when there is no unread message in the conversation, the conversation displayed in the conversation area does not include: and the unread message marks and the message corresponding to the occurrence time of the latest message. Therefore, according to the read state of the message, the latest message is not previewed in the conversation, the space of the conversation list can be saved, more conversations can be displayed in the conversation list, and the message processing efficiency is improved.
As an example, referring to fig. 2, when a session 2 is displayed in the first session area 23, the session 2 displayed in the first session area 23 includes only: the conversation name, the conversation avatar and the latest message occurrence time, and the message corresponding to the unread message mark and the latest message occurrence time is not included.
It should be noted that the number of messages displayed in the message area may be multiple, and similarly, the number of sessions displayed in the session area may also be multiple, and for the convenience of the user to handle unread messages and for the convenience of the user to handle urgent messages, a first button for folding the display content or a second button for unfolding the display content is provided on the title bar of each area except the first message area in the session list.
Thus, the user can fold the message which is not processed temporarily by pressing the first button, for example, the user can press the first button on the title bar of the second message area, the first button on the title bar of the first session area, and the first button on the title bar of the second session area, first focus on processing the urgent message in the first message area, after processing the urgent message in the first message area, can press the second button on the title bar of the second message area, then process the important message in the second message area, then press the first button on the title bar of the second message area, and the second button on the title bar of the first session area, so as to process the present message in the first session area, and finally, press the first button on the title bar of the first session area, and the second button on the title bar of the second session area, and processing earlier messages, so that the user can process urgent and important messages preferentially, and the processing efficiency of the messages is improved.
As an example, referring to fig. 2, the first button 25 is located on the title bar of the second message area and the first button is located on the title bar of the session area, and the user can press the first button on the title bar of the second message area and the first button on the title bar of the first session area to obtain the session list page shown in fig. 3.
As shown in fig. 3, when the user presses the first button on the title bar of the second message area, the second message area displays only the title bar provided with the first number mark 31, wherein the first number mark 31 represents the number of unread messages in the display content of the second message area.
When the user presses the first button on the title bar of the conversation area, whether an unread message exists in the conversation displayed in the conversation area can be judged, if the unread message does not exist in the conversation, the conversation area only displays the title bar, and if the unread message exists in the conversation, a second number mark 32 is also displayed in the title bar of the conversation area, wherein the second number mark 32 represents the number of conversations in the conversation area in which the unread message exists.
In fig. 3, the first number mark 31 and the second number mark 32 are only used as examples of the number of dots, and in practical application, the first number mark may be represented by arabic numerals, roman numerals, or the like, which is not limited thereto.
Of course, the user may also press the second button 33 on the title bar of the second message area and press the second button 33 on the title bar of the conversation area according to the requirement of the user, so as to expand the display content corresponding to each area.
As a possible implementation manner, in order to facilitate the user to process the latest message, the display contents in the first message area and the second message area may be arranged in reverse order according to the occurrence time of each message, so that the user may refer to and process each message in sequence according to the occurrence time of the message.
Similarly, the display contents in the conversation area can also be arranged in reverse order according to the occurrence time of the latest message in each conversation, so that the messages in each conversation can be sequentially consulted and processed according to the occurrence time of the latest message.
As a possible implementation manner, after the user refers to or processes the message in the message area, the message state is changed to the read state, and at this time, the message and the corresponding sender information may be deleted from the message area, so as to ensure that only the corresponding unread message is displayed in the message area, thereby improving the efficiency of the user in processing the urgent message or the important message. When the user consults or processes a certain session in the session area, no unread message exists in the session, and at this time, the session displayed in the area can be updated. The above process is described in detail below with reference to fig. 4.
Fig. 4 is a flowchart illustrating a session list display method according to a second embodiment of the disclosure.
As shown in fig. 4, on the basis of the embodiment shown in fig. 1, the session list display method may include the following steps:
step 201, obtaining a message state change request, where the message state change request includes: a message that changes from an unread state to a read state, and the session to which the message belongs.
In the embodiment of the present disclosure, the user may trigger the message state change request by clicking the message in the message area, or the user may trigger the message state change request by clicking the session in the session area. Correspondingly, the session list display device of the embodiment of the disclosure may acquire the message state change request after monitoring that the user triggers the message state change request in a listening manner.
Step 202, updating the session displayed in the session area according to the message state change request.
In the embodiment of the disclosure, after the user clicks the session in the session area, the session displayed in the session area can be updated according to the message state change request.
As an example, referring to fig. 5, when the user does not trigger the message status change request, as shown in the area 51, the session in which the unread message exists may include: a session name, a session header, an unread message flag (dot), a message corresponding to the occurrence time of the latest message, and after the user triggers a message state change request, there will be no unread message in the session, as shown in an area 52, and the session without unread message only includes: the conversation name, the conversation head portrait and the latest message occurrence time can be saved, so that the space of a conversation list can be saved, more conversations can be displayed in the conversation list, and the message processing efficiency is improved.
For example, when the electronic device is a PC, a session in the general instant messaging software displays two lines of information, one line being: avatar, name, and time of occurrence of the latest message, another action: in the present disclosure, when the unread message does not exist in the session, the session name, the session avatar, and the occurrence time of the latest message may be displayed only in one line, and the preview content of the latest message does not need to be displayed in another line, so that a maximum of 35 sessions may be displayed, and the processing efficiency of the user is improved. In addition, the user can directly ignore the conversation only displaying one line and emphasize the conversation displaying two lines, so that the efficiency of processing the message by the user can be further improved.
Step 203, determine whether the message is the first message or the second message.
In the embodiment of the present disclosure, when the user triggers the message state change request, it may be determined whether the message clicked by the user is the first message or the second message, if yes, step 203 is executed, and if not, step 202 is executed.
And step 204, if the message is the first message or the second message, deleting the message and the corresponding sender information from the message area.
In the embodiment of the disclosure, after the message clicked by the user is the first message or the second message, at this time, the first message or the second message is changed from the unread state to the read state, and at this time, the message and the corresponding sender information may be deleted from the message area, so that it is ensured that only the corresponding unread message is displayed in the message area, and the efficiency of the user in processing the urgent message or the important message is improved.
In order to implement the above embodiments, the present disclosure also provides a session list display apparatus.
Fig. 6 is a schematic structural diagram of a session list display apparatus according to a third embodiment of the present disclosure.
As shown in fig. 6, the conversation list display apparatus includes: an acquisition module 101, a judgment module 102, a determination module 103, and a display module 104.
The obtaining module 101 is configured to obtain each session in the instant messaging software, where the session includes: at least one message.
A judging module 102, configured to judge whether a first message and a second message exist in each session; the first message is an unread message with an emergency mark; the second message is an unread message with the set ait current user flag.
A determining module 103, configured to determine display contents of each message area in the session list according to the determination result; the message area includes: a first message area and a second message area; the display content of the first message area is a first message and corresponding sender information; the display content of the second message area is the second message and the corresponding sender information.
The obtaining module 101 is further configured to obtain session states of each session, where the session states include: the latest message occurrence time.
The determining module 103 is further configured to determine display contents of each session area in the session list according to the session state of each session; the session area includes: a first session area and a second session area; the display content of the first conversation area is the conversation with the current day of the corresponding latest message occurrence time; the display content of the second conversation area is the conversation of each day before the current latest message occurrence time.
And the display module 104 is configured to display the title bar of each area in the session list and corresponding display content.
As a possible implementation, the sender message includes: sender name and sender avatar.
As a possible implementation, the session displayed in the session area includes: session name, session avatar; if there is an unread message in the conversation, the conversation displayed in the conversation area further includes: the message corresponding to the unread message mark and the latest message occurrence time; the unread message tags indicate the number of unread messages in the session; if the unread message does not exist in the conversation, the conversation displayed in the conversation area does not include: and the unread message marks and the message corresponding to the occurrence time of the latest message.
As a possible implementation manner, a first button for folding the display content or a second button for unfolding the display content is provided on the title bar of each region except the first message region in the conversation list.
The display module 104 is further configured to, after the first button on the title bar of the second message area is pressed, display only the title bar with the first number of marks in the second message area; the first number mark represents the number of unread messages in the display content of the second message area; when a first button on a title bar of the conversation area is pressed, the conversation area only displays the title bar; if the unread messages exist in the conversation displayed in the conversation area, a second number mark is also displayed in the title bar of the conversation area; the second quantity flag indicates the number of sessions in which unread messages exist in the session region.
As a possible implementation manner, the display contents in the message area are arranged in a reverse order according to the occurrence time of each message; the display contents in the conversation area are arranged in reverse order according to the occurrence time of the latest message in each conversation.
Further, in a possible implementation manner of the embodiment of the present disclosure, referring to fig. 7, on the basis of the embodiment shown in fig. 6, the session list display apparatus may further include: an update module 105 and a delete module 106.
The obtaining module 101 is further configured to obtain a message state change request, where the message state change request includes: a message changed from an unread state to a read state and a session to which the message belongs;
an updating module 105, configured to update the session displayed in the session area according to the message status change request;
the determining module 102 is further configured to determine whether the message is a first message or a second message;
and the deleting module 106 is configured to delete the message and the corresponding sender information from the message area when the message is the first message or the second message.
It should be noted that the foregoing explanation on the embodiment of the session list display method is also applicable to the session list display apparatus of this embodiment, and details are not described here.
The conversation list display device of the embodiment of the disclosure judges whether a first message and a second message exist in each conversation by acquiring each conversation in instant messaging software, wherein the first message is an unread message provided with an emergency mark, the second message is an unread message provided with an ait current user mark, then determines the display content of each message area in the conversation list according to the judgment result, and then acquires the conversation state of each conversation, wherein the conversation state comprises: and determining the display content of each conversation area in the conversation list according to the conversation state of each conversation by the latest message occurrence time, and finally, displaying the title bar and the corresponding display content of each area in the conversation list. Therefore, the display form of the rich messages can be realized, and each message is displayed in a partition mode according to the importance degree of the message, so that the user can process the urgent or important messages preferentially, and the processing efficiency of the message is improved. And the method can realize the partition display of each conversation according to the occurrence time of the latest message in each conversation, so that the user can process the conversation of the current day preferentially, and then process the conversation of each day between the current days, thereby leading the user to process the urgent or important conversation preferentially and improving the processing efficiency of the message.
In order to implement the above embodiments, the present disclosure also provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor, the instructions being configured to perform the session list display method set forth in the above embodiments.
Referring now to FIG. 8, shown is a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 8, an electronic device may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 801 that may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage means 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data necessary for the operation of the electronic apparatus are also stored. The processing apparatus 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
Generally, the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 807 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage 808 including, for example, magnetic tape, hard disk, etc.; and a communication device 809. The communication means 809 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. While fig. 5 illustrates an electronic device having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 809, or installed from the storage means 808, or installed from the ROM 802. The computer program, when executed by the processing apparatus 801, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring each session in instant messaging software, wherein the session comprises the following steps: at least one message; judging whether a first message and a second message exist in each session; the first message is an unread message with an emergency mark; the second message is an unread message with the set Atty current user mark; determining the display content of each message area in the conversation list according to the judgment result; the message area includes: a first message area and a second message area; the display content of the first message area is a first message and corresponding sender information; the display content of the second message area is a second message and corresponding sender information; obtaining the session state of each session, wherein the session state comprises: the latest message occurrence time; determining the display content of each session area in the session list according to the session state of each session; the session area includes: a first session area and a second session area; the display content of the first conversation area is the conversation with the current day of the corresponding latest message occurrence time; the display content of the second conversation area is the conversation of which the corresponding latest message occurrence time is each day before the current time; and displaying the title bar of each area in the conversation list and the corresponding display content.
Alternatively, the computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring a message state change request, wherein the message state change request comprises: a message changed from an unread state to a read state and a session to which the message belongs; updating the conversation displayed in the conversation area according to the message state change request; judging whether the message is a first message or a second message; and if the message is the first message or the second message, deleting the message and the corresponding sender information from the message area.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. 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.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
In order to achieve the above embodiments, the present disclosure also proposes a non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the session list display method proposed by the above embodiments of the present disclosure.
Fig. 9 is a schematic diagram illustrating a non-transitory computer-readable storage medium according to an embodiment of the present disclosure. As shown in fig. 9, a non-transitory computer readable storage medium 900 having stored thereon computer instructions 901 according to an embodiment of the present disclosure. The computer instructions 901, when executed by a processor, perform all or a portion of the steps of the session list display methods of the embodiments of the present disclosure as previously described.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding, the above technical solutions may be embodied in the form of a software product, which may be stored in a non-transitory storage medium, such as a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM), and so on, and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute the methods of the various embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solutions of the present disclosure, not to limit them; although the present disclosure has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present disclosure.