CN112087364B - Session list display method, device and storage medium - Google Patents

Session list display method, device and storage medium Download PDF

Info

Publication number
CN112087364B
CN112087364B CN201910512705.4A CN201910512705A CN112087364B CN 112087364 B CN112087364 B CN 112087364B CN 201910512705 A CN201910512705 A CN 201910512705A CN 112087364 B CN112087364 B CN 112087364B
Authority
CN
China
Prior art keywords
displayed
session
conversation
sessions
display
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910512705.4A
Other languages
Chinese (zh)
Other versions
CN112087364A (en
Inventor
黄小刚
赵东
李斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910512705.4A priority Critical patent/CN112087364B/en
Publication of CN112087364A publication Critical patent/CN112087364A/en
Application granted granted Critical
Publication of CN112087364B publication Critical patent/CN112087364B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/224Monitoring or handling of messages providing notification on incoming messages, e.g. pushed notifications of received messages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]

Abstract

The application relates to a conversation list display method, a device and a storage medium, wherein the conversation list display method comprises the following steps: acquiring a conversation list display instruction; determining a conversation set to be displayed according to the conversation list display instruction, wherein the conversation set to be displayed comprises at least one conversation to be displayed; acquiring the number of conversations to be displayed in a conversation set to be displayed and the display sequence of each conversation to be displayed; determining at least one target session from the session set to be displayed according to the number and the display sequence to obtain a target session set; the conversation list is displayed according to the member information of the target conversation set, so that when the conversation list is displayed, the terminal does not need to load all member information of the conversation to be displayed during first display, the conversation display time is shortened, and the efficiency of viewing the conversation information by a user is improved.

Description

Session list display method, device and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for displaying a session list, and a storage medium.
Background
With the rapid development of Instant Messaging (IM) technology, IM software has become one of the indispensable communication tools for network users.
Currently, in the message-driven IM software, there are messages, then the corresponding conversation and the members in the conversation are found according to the messages, and finally the information of the name, the head portrait, etc. of the conversation is displayed on the screen of the mobile terminal in the form of a conversation list.
However, when there are many sessions to be displayed and there are many members in the sessions to be displayed, the time required for loading the sessions to be displayed and the information of the members of the sessions to be displayed is long, which further results in a slow speed of displaying the sessions, and is not favorable for improving the efficiency of viewing the sessions by the user.
Disclosure of Invention
The embodiment of the application provides a conversation list display method, a conversation list display device and a storage medium, so that conversation display speed is improved.
The embodiment of the application provides a method for displaying a session list, which comprises the following steps:
acquiring a conversation list display instruction;
determining a conversation set to be displayed according to the conversation list display instruction, wherein the conversation set to be displayed comprises at least one conversation to be displayed;
acquiring the number of the conversations to be displayed in the conversation set to be displayed and the display sequence of each conversation to be displayed;
determining at least one target session from the session set to be displayed according to the number and the display sequence to obtain a target session set;
and displaying a conversation list according to the member information of the target conversation set.
Determining at least one target session from the session set to be displayed according to the number and the display sequence to obtain a target session set, specifically comprising:
acquiring the session type of the session to be displayed in the session set to be displayed;
determining the number of display pieces of the current screen according to the session type and the display sequence;
and taking the conversations to be displayed with the display sequence in the front and the total number equal to the number of the displayed conversations on the current screen as target conversations to obtain a target conversation set.
The determining, by the session type and the display order, the number of display pieces of the current screen according to the session type and the display order specifically includes:
grouping the sessions to be displayed belonging to the same aggregation session into a group to obtain at least one aggregation session group;
determining the number of sessions to be displayed in each aggregation session group and the number of the aggregation session groups;
and determining the number of the current screen display pieces according to the number of the conversations to be displayed in the aggregation conversation group, the number of the aggregation conversation groups and the display sequence.
After the displaying the session list according to the member information of the target session set, the method further comprises:
marking the target session as a displayed session, and detecting whether a session list pull-down instruction is received;
and if the session list pull-down instruction is received, updating the session set to be displayed according to the displayed sessions, and returning to execute the steps of acquiring the number of the sessions to be displayed in the session set to be displayed and the display sequence of each session to be displayed.
Wherein, the updating the session set to be displayed according to the displayed sessions specifically includes:
collecting the conversations to be displayed, taking the conversations to be displayed except the displayed conversations as the residual conversations to be displayed, and determining the number of the residual conversations to be displayed;
judging whether the number of the remaining sessions to be displayed is less than a first preset number or not;
if so, generating a historical conversation acquisition request according to the number of the remaining conversations to be displayed, and sending the historical conversation acquisition request to a server, wherein the historical conversation acquisition request is used for indicating the server to return the historical conversations with corresponding numbers according to the number of the remaining conversations to be displayed;
and receiving the history conversation returned by the server, and updating the returned history conversation and the remaining conversations to be displayed into the conversation set to be displayed.
The displaying a session list according to the member information of the target session set specifically includes:
judging whether the number of the target sessions in the target session set is larger than a second preset number or not;
if so, taking the target sessions with the display sequence in front and the total number equal to the second preset number as a sub-session set, loading member information of the sub-session set, and then loading the remaining member information of the target sessions;
and displaying a corresponding session list according to the target session set and the loaded member information.
Wherein, the displaying the corresponding session list according to the target session set and the loaded member information specifically includes:
when the member information of the sub-session set is loaded, generating an initial session list based on the member information of the target session set and the sub-session set, and displaying the initial session list to a user;
and when the loading of the rest member information of the target session is finished, generating a complete session list based on the target session set and all the member information, and updating the initial session list which is displayed by using the complete session list.
After displaying the session list according to the member information of the target session set, the method further includes:
detecting whether the session to be displayed receives a new message;
if so, updating the display sequence of the conversation to be displayed to which the new message belongs;
and updating the display sequence of the conversation to be displayed according to the updated display sequence.
An embodiment of the present application further provides a session list display apparatus, including:
the first acquisition module is used for acquiring a conversation list display instruction;
the first determining module is used for determining a session set to be displayed according to the session list display instruction, wherein the session set to be displayed comprises at least one session to be displayed;
the second acquisition module is used for acquiring the number of the conversations to be displayed in the conversation set to be displayed and the display sequence of each conversation to be displayed;
the second determining module is used for determining at least one target session from the session set to be displayed according to the number and the display sequence to obtain a target session set;
and the display module is used for displaying the conversation list according to the member information of the target conversation set.
Wherein the second determining module specifically includes:
the acquisition unit is used for acquiring the session types of the sessions to be displayed in the session set to be displayed;
the first determining unit is used for determining the number of the display pieces of the current screen according to the conversation type and the display sequence;
and the second determining unit is used for taking the sessions to be displayed with the display sequence in front and the total number equal to the number of the current screen display as target sessions to obtain a target session set.
Wherein the session type includes an aggregation session, and the first determining unit is specifically configured to:
grouping the sessions to be displayed belonging to the same aggregation session into a group to obtain at least one aggregation session group;
determining the number of sessions to be displayed in each aggregation session group and the number of the aggregation session groups;
and determining the number of the current screen displays according to the number of the conversations to be displayed in the aggregation conversation, the number of the aggregation conversation groups and the display sequence.
The conversation list display device further comprises a detection module and an updating module;
the detection module is used for:
after a session list is displayed according to the member information of the target session set, marking the target session as a displayed session, and detecting whether a session list pull-down instruction is received;
the update module is to:
when the session list pull-down instruction is received, updating the session set to be displayed according to the displayed sessions, and triggering the second acquisition module to reacquire the number of the sessions to be displayed in the session set to be displayed and the display sequence of each session to be displayed.
Wherein, the display module specifically includes:
the judging unit is used for judging whether the number of the target sessions in the target session set is greater than a second preset number;
a first loading unit, configured to, when the number of target sessions in the target session set is greater than the second preset number, take the target sessions with the previous display order and the total number equal to the second preset number as a sub-session set, load member information of the sub-session set, and then load remaining member information of the target sessions;
the second loading unit is used for loading the member information of all the target conversations in the target conversation set at one time when the number of the target conversations in the target conversation set is not more than the second preset number;
and the display unit is used for displaying a corresponding conversation list according to the target conversation set and the loaded member information.
Wherein the display unit is specifically configured to:
when the member information of the sub-session set is loaded, generating an initial session list based on the member information of the target session set and the sub-session set, and displaying the initial session list to a user;
and when the loading of the rest member information of the target session is completed, generating a complete session list based on the target session set and all the member information, and updating the initial session list which is displayed by using the complete session list.
Wherein the conversation list display device further comprises a third determination module;
the third determining module is to:
after displaying a session list according to the member information of the target session set, detecting whether the session to be displayed receives a new message;
if so, updating the display sequence of the conversation to be displayed to which the new message belongs;
and updating the display sequence of the conversation to be displayed according to the updated display sequence.
The embodiment of the application also provides a computer-readable storage medium, wherein a plurality of instructions are stored in the storage medium, and the instructions are suitable for being loaded by a processor to execute any one of the conversation list display methods.
According to the conversation list display method, the conversation list display device and the storage medium, the conversation set to be displayed is determined by obtaining the conversation list display instruction and according to the conversation list display instruction, the conversation set to be displayed comprises at least one conversation to be displayed, then the number of the conversations to be displayed in the conversation set to be displayed and the display sequence of each conversation to be displayed are obtained, at least one target conversation is determined from the conversation set to be displayed according to the number and the display sequence to obtain the target conversation set, and then the conversation list is displayed according to the member information of the target conversation set, so that when the conversation list is displayed, a terminal does not need to load all member information of the conversations to be displayed when the conversation list is displayed for the first time, the conversation display time is shortened, and the efficiency of viewing the conversation information by a user is improved.
Drawings
The technical solution and other advantages of the present application will become apparent from the detailed description of the embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a scene schematic diagram of a session list display system according to an embodiment of the present application.
Fig. 2 is a flowchart illustrating a session list display method according to an embodiment of the present application.
Fig. 3 is a schematic flowchart of S104 according to an embodiment of the present application.
Fig. 4 is a schematic flowchart of S1042 according to an embodiment of the present application.
Fig. 5 is a schematic diagram of a session list display interface provided in an embodiment of the present application.
Fig. 6 is another schematic flow chart of a session list display method according to an embodiment of the present application.
Fig. 7 is another schematic flow chart of a session list display method according to an embodiment of the present application.
Fig. 8 is a schematic structural diagram of a session list display apparatus according to an embodiment of the present application.
Fig. 9 is a schematic structural diagram of a second determining module 140 according to an embodiment of the present disclosure.
Fig. 10 is another schematic structural diagram of a session list display apparatus according to an embodiment of the present application.
Fig. 11 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a method and a device for displaying a session list and a storage medium.
Referring to fig. 1, fig. 1 is a schematic view of a session list display system, which may include any one of the session list display apparatuses provided in the embodiments of the present application, and the session list display apparatus may be integrated in a mobile terminal, so that the mobile terminal can perform a session list display function.
The mobile terminal can obtain a conversation list display instruction, determine a conversation set to be displayed according to the conversation list display instruction, wherein the conversation set to be displayed comprises at least one conversation to be displayed, obtain the number of the conversations to be displayed in the conversation set to be displayed and the display sequence of each conversation to be displayed, determine at least one target conversation from the conversation set to be displayed according to the number and the display sequence to obtain a target conversation set, and display a conversation list according to member information of the target conversation set.
The mobile terminal is a user device installed with an instant messaging tool, for example, a messaging application or an interactive application such as enterprise WeChat, QQ, Easy, Facebook (Facebook), microblog, Twitter (Twitter) and the like is installed, and the mobile terminal may be a hardware device with various operating systems, touch screens and/or display screens such as a mobile phone, a tablet computer, a personal digital assistant, a wearable device and the like.
For example, as shown in fig. 1, when a user opens an instant messaging software installed on a mobile terminal through a touch screen, for example, opens an enterprise wechat, the mobile terminal generates a session list display instruction, and determines sessions to be displayed in the enterprise wechat application, such as sessions of "development group", "production department", "administrative group", "party member group", "daily movement". "meeting notification", and the like, according to the session list display instruction, to obtain a set of sessions to be displayed, and then the mobile terminal obtains the number of sessions to be displayed in the set of sessions to be displayed and a display order, such as 50 sessions to be displayed, the display order of "development group" is 4, the display order of "production department" is 1, and the like, and selects at least one session to be displayed from the set of sessions to be displayed as a target session to obtain a target set of sessions, for example, the sessions to be displayed in the display order of 1 st to 20 th among the above 50 sessions to be displayed are used as target sessions, then the member information of the target session set is determined, and then the target session set and the member information thereof are combined to generate a session list, and the session list is displayed to the user.
As shown in fig. 2, fig. 2 is a schematic flow chart of a session list display method provided in an embodiment of the present application, and a specific flow of the session list display method may be as follows:
s101, acquiring a conversation list display instruction.
When a user has a social requirement, the user can send information to a receiver of the message through instant messaging software, and correspondingly, the receiver can receive the message through corresponding instant messaging software in the mobile terminal and record the message in a corresponding session, wherein the message can be understood as the content of the session message, such as characters, images, characters, videos, documents and the like, sent or received when the user uses the instant messaging software to perform session chat. Specifically, when the instant messaging software is opened by a user, the corresponding mobile terminal generates a session list display instruction, so that the session list display device obtains the session list display instruction, and further, the session list display function of the session list display device is realized.
And S102, determining a conversation set to be displayed according to the conversation list display instruction, wherein the conversation set to be displayed comprises at least one conversation to be displayed.
After acquiring the session list display instruction generated by the mobile terminal, the session list display device may acquire all sessions to be displayed in the corresponding instant messaging software to obtain a session set to be displayed, where the session set to be displayed includes at least one session to be displayed, and thus the session set to be displayed may be displayed in a session list form in subsequent steps.
The conversation to be displayed can be specifically a conversation containing messages in the instant messaging software, and a conversation not containing messages can be ignored and not displayed in the conversation list, so that the space of the conversation list is saved, more conversations containing messages can be displayed in the conversation list, and the processing efficiency of the messages is improved.
S103, acquiring the number of the conversations to be displayed in the conversation set to be displayed and the display sequence of each conversation to be displayed.
In this embodiment, the sessions to be displayed may be sorted according to the display priority levels of the sessions to be displayed in the session set to be displayed from high to low, so as to obtain the display order of each session to be displayed, where the display priority level of the session to be displayed that is set to be the top is the highest, and for other sessions to be displayed, the sessions to be displayed may be sorted according to the generation time of the latest message in the session to be displayed, and the display priority level of the session to be displayed corresponding to the later generation time of the latest message in the session to be displayed is higher.
And S104, determining at least one target session from the session set to be displayed according to the number of the sessions and the display sequence to obtain a target session set.
In this embodiment, in the case that the number of sessions to be displayed in the session set to be displayed is large, if the session list is generated after all the member information of the sessions to be displayed in the session set to be displayed is loaded by using the prior art, time consumed for loading the member information is long, which affects the speed of displaying the session list, and is not beneficial to user experience.
Specifically, when the number of sessions to be displayed in the session set to be displayed is greater than the maximum number of sessions that can be displayed on the display screen at a time, the session to be displayed with the previous display order and the number equal to the maximum number of sessions in the session set to be displayed can be selected as a target session to obtain the target session set, so that a session list can be generated immediately after member information of the target session is loaded in subsequent steps, and the time for displaying the session list is shortened.
Correspondingly, when the number of the sessions to be displayed in the session set to be displayed is not more than the maximum number of sessions which can be displayed by the display screen at a time, all the sessions to be displayed in the session set to be displayed can be directly used as target sessions.
In a specific implementation, the maximum number of sessions that can be displayed on the display screen may be determined according to the specific size of the display screen, or may be a value preset by the user.
In some embodiments, when there may be a session to be displayed in the session set to be displayed, where the session type of the session to be displayed is an aggregated session, referring to fig. 3, the S104 specifically may include:
s1041, obtaining the session type of the session to be displayed in the session set to be displayed.
According to the number of session members in the session to be displayed, the session to be displayed can be divided into a single-person session, a multi-person session or an application session without session members. In addition, the session type of the session to be displayed may also be set as an aggregated session according to the user requirement, for example, the session 1 to be displayed, the session 2 to be displayed, and the session 3 to be displayed are set as aggregated sessions, where a plurality of sessions to be displayed belonging to the same aggregated session only occupy a display space of one session in a session list, for example, if the session 1 to be displayed, the session 2 to be displayed, and the session 3 to be displayed all belong to an aggregated session named "message do not disturb", the three sessions to be displayed appear in the session list in a session manner named "message do not disturb". In addition, during specific implementation, unimportant conversations to be displayed can be displayed in an aggregation mode, so that the display space of the conversation list is saved, more conversations are displayed in the single-screen conversation list, and the conversation searching efficiency is improved.
S1042, determining the number of the current screen display pieces according to the session type and the display sequence.
In the present embodiment, the size of the display screen for displaying the conversation list determines the maximum number of conversations that the display screen can display at one time, such as 20. When there is no aggregation session, the display screen can display 20 sessions to be displayed at the maximum, but when there is an aggregation session, since a plurality of sessions to be displayed belonging to the same aggregation session can constitute an aggregation session group and be displayed together, the number of sessions to be displayed that can be displayed at the maximum by the display screen may be greater than 20. Therefore, in order to ensure that the display screen can display the most conversations to be displayed each time, the conversation list display device determines the number of display pieces of the current screen according to the conversation type and the display sequence.
Specifically, referring to fig. 4, when the session type of the session to be displayed includes an aggregation session, that is, when the session set to be displayed includes at least one aggregation session, the S1042 specifically includes:
s1-1, grouping the sessions to be displayed belonging to the same aggregation session into a group to obtain at least one aggregation session group.
For example, in the session set to be displayed, the session 1 to be displayed, the session 2 to be displayed, the session 3 to be displayed, the session 4 to be displayed, and the session 5 to be displayed are aggregation sessions, and the session 1 to be displayed, the session 2 to be displayed, and the session 3 to be displayed belong to a first aggregation session, and the session 4 to be displayed and the session 5 to be displayed belong to a second aggregation session, then the session 1 to be displayed, the session 2 to be displayed, and the session 3 to be displayed may be grouped into one group, so as to obtain a first aggregation session group, and the session 4 to be displayed and the session 5 to be displayed may be grouped into one group, so as to obtain a second aggregation session group.
S1-2, determining the number of the sessions to be displayed in each aggregation session group and the number of the aggregation session groups.
Next to the above example, in the set of sessions to be displayed, the number of aggregation session groups is two, the number of sessions to be displayed in the first aggregation session group is three, and the number of sessions to be displayed in the second aggregation session group is two.
And S1-3, determining the number of the current screen display pieces according to the number of the conversations to be displayed in the aggregation conversation group, the number of the aggregation conversation groups and the display sequence.
In this embodiment, different sessions to be displayed belonging to the same aggregation session have the same display order, and the display order of the aggregation session group formed by the sessions to be displayed having the highest display priority in the aggregation session group may be determined. For example, if the generation times of the latest messages in the session 1 to be displayed, the session 2 to be displayed, and the session 3 to be displayed are 2 o ' clock, 3 o ' clock, and 4 o ' clock in the afternoon of the day, the display order of the first aggregated session group is determined by the generation time of the latest message in the session 3 to be displayed.
Specifically, the display order of the corresponding aggregation session group may be determined according to the display order of the sessions to be displayed belonging to the same aggregation session, then the aggregation session group and the sessions to be displayed whose session types are not aggregation sessions are sorted, and the number of aggregation session groups in the top N (maximum session number) and the number of sessions to be displayed included in the aggregation session group are counted to obtain the number of display bars of the current screen, for example, the maximum session number N may be 20, two aggregation session groups in the top 20 of the display order are provided, and the two aggregation session groups respectively include 3 sessions to be displayed and 2 sessions to be displayed, and then the number of display bars of the current screen is 23.
S1043, taking the conversations to be displayed, of which the display sequence is in the front and the total number is equal to the number of the displayed conversations on the current screen, as target conversations to obtain a target conversation set.
Next, in the previous example, if the number of the current screen display pieces is 23, the sessions to be displayed that are sequentially ranked at the top 23 in the set of sessions to be displayed are displayed as target sessions, so as to obtain a target session set.
And S105, displaying a conversation list according to the member information of the target conversation set.
In this embodiment, each session to be displayed has a unique session identifier, and the member information of the session to be displayed may be associated with the corresponding session identifier, so as to search the member information corresponding to the session to be displayed. The member information of the session to be displayed may specifically include personal information such as an identity ID, an avatar, a name, a company, a position, and a contact address of the session member in the session to be displayed, and session authority related information of the session member in the session to be displayed, such as whether to publish a message in the session to be displayed, whether to refer to a certain type of message, and the like.
Specifically, the member information of the target session in the target session set may be loaded first, and then the member information of the target session set and the loaded member information of the target session are combined in a preset form to obtain a corresponding session list, and then the session list is displayed to the user through the display screen. For example, as shown in fig. 5, the session list includes a plurality of sessions, which are arranged in sequence from top to bottom, and the "do not disturb chat", "card punching", "file transfer assistant", etc., and the receiving time of the latest message in the corresponding session from top to bottom is advanced in sequence.
Specifically, referring to fig. 6, after the step S105, the method may further include:
and S106, marking the target session as a displayed session, detecting whether a session list pull-down instruction is received, if so, executing S107, and if not, not processing.
Specifically, after the session list is displayed according to the member information of the target session set, the target sessions in the target session set may be marked as displayed sessions, so as to avoid repeated display thereof in subsequent steps. Further, after the user finishes viewing the currently displayed session list, if the user needs to view more sessions, the user may trigger the instant messaging software to send a session list pull-down instruction to the session list display device to view the session list of the next screen.
And S107, updating the session set to be displayed according to the displayed sessions, and returning to execute the S103.
In this embodiment, the session set to be displayed is updated based on the displayed sessions, so that other sessions to be displayed except the displayed sessions in the session set to be displayed are displayed in the subsequent steps.
For example, S107 may specifically include:
s1071, collecting the conversations to be displayed, taking the conversations to be displayed except the displayed conversations as the remaining conversations to be displayed, and determining the number of the remaining conversations to be displayed.
For example, if the number of sessions to be displayed in the set of sessions to be displayed is 35 and the number of sessions already displayed is 20, the number of remaining sessions to be displayed in the set of sessions to be displayed is 15.
S1072, judging whether the number of the remaining sessions to be displayed is smaller than a first preset number, if so, sequentially executing S1073 and S1074, and if not, executing S1075.
For example, the first preset number may be equal to the maximum number of sessions that can be displayed on the display screen at a time, such as 20.
S1073, generating a historical conversation acquisition request according to the number of the remaining conversations to be displayed, and sending the historical conversation acquisition request to the server, wherein the historical conversation acquisition request is used for indicating the server to return the historical conversations with corresponding numbers according to the number of the remaining conversations to be displayed.
Specifically, when the number of the remaining sessions to be displayed is less than a first preset number, that is, the sessions to be displayed that have not been displayed in the set of sessions to be displayed cannot satisfy the number of sessions displayed on one screen of the display screen, for example, 20 sessions can be displayed on one screen of the display screen, but the number of the remaining sessions to be displayed is 15, that is, 5 sessions are absent.
In order to meet the number of displayed sessions on one screen of a display screen, when the number of remaining sessions to be displayed cannot meet the number of displayed sessions on one screen of the display screen, more history sessions may be requested from the server, where a receiving time of a latest message of a history session is earlier than a receiving time of a latest message of any session to be displayed, and the history session is not stored in the mobile terminal in advance, that is, the history session cannot be loaded when the session set to be displayed is loaded.
And S1074, receiving the history session returned by the server, updating the returned history session and the remaining sessions to be displayed into a session set to be displayed, and then returning to execute the S103.
Specifically, the received historical conversation is used as a conversation to be displayed and is merged into the remaining conversations to be displayed to obtain a new conversation set to be displayed, and the new conversation set to be displayed is used for replacing and updating the conversation set to be displayed, wherein the number of the conversations to be displayed in the updated conversation set to be displayed is not less than the first preset number.
And S1075, updating the remaining sessions to be displayed into a session set to be displayed, and returning to execute the S103.
Specifically, when the number of the remaining sessions to be displayed is not less than a first preset number, that is, when the number of sessions to be displayed that are not yet displayed in the session set to be displayed can satisfy the number of session display pieces on one screen of the display screen, the remaining sessions to be displayed may be updated to the session set to be displayed, for example, 20 sessions may be displayed on one screen of the display screen, and the number of the remaining sessions to be displayed is 25, that is, 5 sessions to be displayed may also remain after one screen of the remaining sessions to be displayed is displayed.
It should be noted that after executing the above S1074 or S1075, the above S103 is returned to be executed to obtain the number of sessions to be displayed in the updated set of sessions to be displayed and the display order of each session to be displayed, and then the above S104 and S105 may be executed in sequence to complete the display of the session list in the next screen.
As can be seen from the above, in the session list display method provided in this embodiment, a session set to be displayed is determined by obtaining a session list display instruction, and according to the session list display instruction, the session set to be displayed includes at least one session to be displayed, then the number of sessions to be displayed in the session set to be displayed and the display order of each session to be displayed are obtained, at least one target session is determined from the session set to be displayed according to the number and the display order, so as to obtain a target session set, and then a session list is displayed according to the target session set and the member information, so that when the session list is displayed, a terminal does not need to load member information of all sessions to be displayed when displaying the session list for the first time, the time for displaying the session is shortened, and the efficiency for a user to view the session information is improved.
As shown in fig. 7, fig. 7 is another schematic flow chart of a session list display method provided in the embodiment of the present application, and a specific flow of the session list display method may be as follows:
s201, acquiring a conversation list display instruction.
Specifically, when the instant messaging software installed on the mobile terminal is opened by a user, the mobile terminal generates a session list display instruction, so that the session list display device obtains the session list display instruction, and further, the session list display function of the session list display device is realized.
S202, determining a conversation set to be displayed according to the conversation list display instruction, wherein the conversation set to be displayed comprises at least one conversation to be displayed.
When a user uses instant messaging software installed on a mobile terminal to perform social contact, the mobile terminal stores sessions in which messages sent or received by the user are recorded in the instant messaging software, wherein the sessions in which the messages sent or received by the user are recorded, that is, the sessions in which the messages are generated, can be stored in a local session data table of the mobile terminal, and in specific implementation, the sessions in which the messages are generated can be stored only for a latest period of time, such as a latest month, so as to save a local storage space.
In this embodiment, the sessions stored in the session data table may be regarded as sessions to be displayed, that is, the session list display apparatus may load the sessions generated with the messages from the session data table according to the session list display instruction, so as to obtain a session set to be displayed.
In some embodiments, the session data table may further store member information of the sessions to be displayed, and in a specific implementation, for a session to be displayed with a large number of session members, for example, a session to be displayed with more than a thousand session members, only part of information for displaying a session list in the member information of the session to be displayed may be stored in the session data table, where the part of information for displaying a session list may include information such as an identity ID, a name, and an image of the session member.
Therefore, when the conversation to be displayed and the member information of the conversation to be displayed are loaded, only the same conversation data table needs to be read, and only partial information used for displaying the conversation list in the member information of the conversation to be displayed with more conversation members needs to be loaded, so that the data volume of the member information needing to be loaded is greatly reduced.
S203, acquiring the number of the sessions to be displayed in the session set to be displayed and the display sequence of each session to be displayed.
In this embodiment, the sessions to be displayed in the session set to be displayed may be sorted in the order from high to low in display priority level of the sessions to be displayed, so as to obtain a display order of each session to be displayed.
S204, determining at least one target conversation from the conversation set to be displayed according to the number of the target conversations and the display sequence to obtain a target conversation set.
In this embodiment, in the case that the number of sessions to be displayed in the session set to be displayed is large, if the session list is generated after all the member information of the sessions to be displayed in the session set to be displayed is loaded by using the prior art, time consumed for loading the member information is long, which affects the speed of displaying the session list, and is not beneficial to user experience.
For example, when the number of sessions to be displayed in the session set to be displayed is greater than the maximum number of sessions that can be displayed on the display screen at a time, the session to be displayed with the previous display order and the number equal to the maximum number of sessions in the session set to be displayed can be selected as the target session to obtain the target session set, so that a session list can be generated immediately after member information of the target session is loaded in subsequent steps, and the time for displaying the session list is shortened.
S205, judging whether the number of the target sessions in the target session set is larger than a second preset number, if so, executing S206, and if not, executing S208.
The second preset number may be the maximum number of sessions that can be displayed on the display screen, such as 20, or may be a numerical value preset by the user, such as 15.
S206, the target sessions with the display sequence in the front and the total number equal to the second preset number are taken as a sub-session set, and the member information of the sub-session set is loaded.
In this embodiment, in order to further shorten the time for displaying the session list, when there are a large number of target sessions in the target session set, the member information of the target sessions in the target session set may be loaded in batches, and the corresponding session list may be generated and displayed immediately after the member information of the first batch of target sessions is loaded.
For example, if the number of target sessions in the target session set is 30 and the second preset number is 20, then 20 item tagged sessions in the target session set, which are displayed sequentially in the first order, may be taken as a sub-session set, and member information of the target sessions in the sub-session set is loaded first, and then S207 and S209 may be executed simultaneously to generate a corresponding session list for display when the member information of the sub-session set is loaded, and load the member information of the remaining 5 item tagged sessions in the target session set.
And S207, loading the member information of the rest target session.
After the step S206 is executed, the member information of the target session except the sub-session set in the target session set is loaded, and then the step S209 may be executed again to generate and display the corresponding session list when the loading of the member information of the remaining target session is completed.
And S208, loading member information of all target sessions in the target session set at one time.
When the number of the target sessions in the target session set is not more than the second preset number, the time required for loading the member information of the target sessions in the target session set is not long, so that the member information of the target sessions in the target session set does not need to be loaded in batches, and the member information of all the target sessions in the target session set can be loaded at one time.
And S209, displaying a corresponding session list according to the target session set and the loaded member information.
In this embodiment, the member information of the target sessions in the target session set may be loaded in batches, and a corresponding session list may be generated immediately after the member information of the first group of target sessions is loaded and displayed, and then a corresponding session list may be generated each time the member information of a group of target sessions is loaded, and the session list being displayed on the display screen may be updated.
For example, the S209 may specifically include:
and (1) when the member information of the sub-session set is loaded, generating an initial session list based on the member information of the target session set and the sub-session set, and displaying the initial session list to a user.
And (2) when the loading of the member information of the remaining target session is completed, generating a complete session list based on the target session set and all the member information of the target session set, and updating the initial session list which is being displayed by using the complete session list.
It is understood that after the above S206 is performed, the above S207 and the sub-step (1) are simultaneously performed, and after the above S207 is performed, the above sub-step (2) is performed.
Further, after the above S209, the method may further include:
s210, marking the target session as a displayed session, detecting whether a session list pull-down instruction is received, if so, executing S211, and if not, not processing.
Specifically, after a corresponding session list is generated according to the target session set and the loaded member information and the session list is displayed to the user, the target session in the target session set can be marked as a displayed session, so that repeated display of the target session in subsequent steps is avoided. Further, after the user finishes viewing the currently displayed session list, if the user needs to view more sessions, the user may trigger the corresponding instant messaging software to send a session list pull-down instruction to the session list display device to view the session list of the next screen.
S211, updating the session set to be displayed according to the displayed sessions, and returning to execute the S203.
In this embodiment, the loaded session set to be displayed is updated based on the displayed sessions, so that sessions to be displayed other than the displayed sessions in the session set to be displayed are displayed in the subsequent steps.
It should be noted that S210 and S211 are the same as S106 and S107 in the previous method embodiment, that is, the specific implementation of S210 and S211 in this embodiment may refer to the specific implementation of S106 and S107 in the previous method embodiment, and therefore, the detailed description is omitted here.
In some embodiments, after S209 above, the method may further include:
and A, detecting whether the session to be displayed receives a new message, if so, executing the step B, and if not, not processing.
When a user uses instant messaging software on a mobile terminal to perform social contact, a message can be sent or received through a network server connected with the mobile terminal. Specifically, the step a may be: and detecting whether the session to be displayed receives a new message pushed by the network server.
And B, updating the display sequence of the conversation to be displayed to which the new message belongs.
Specifically, when the session to be displayed receives a new message, the new message is recorded in the session to be displayed, that is, the generation time of the latest message in the session to be displayed is advanced, and the display sequence corresponding to the session to be displayed is also changed, where if the session to be displayed is a top-placing session, the display sequence of the session to be displayed after re-determination is still the top-placing session, and if the session to be displayed is not the top-placing session, the display sequence of the session to be displayed after re-determination is the first position or the last position of the top-placing session.
And C, updating the display sequence of the conversation to be displayed according to the updated display sequence.
It can be understood that the to-be-displayed conversation to which the new message belongs appears at the first line or the second line of the displayed first-screen conversation list after the display sequence is determined again, the conversation to be displayed is marked as a displayed conversation by the conversation list display device, and when the next-screen conversation list is displayed subsequently, the conversation to be displayed whose display sequence is located after the last conversation to be displayed in the previous-screen conversation list is taken to be displayed.
As can be seen from the above, in the session list display method provided in this embodiment, a session set to be displayed is determined according to a session list display instruction, where the session set to be displayed includes at least one session to be displayed, then the number of sessions to be displayed in the session set to be displayed and the display order of each session to be displayed are obtained, at least one target session is determined from the session set to be displayed according to the number of sessions to be displayed and the display order, so as to obtain a target session set, and then a session list is displayed according to member information of the target session set, so that member information of all sessions to be displayed does not need to be loaded during first display, thereby shortening the time for displaying sessions and improving the efficiency for a user to view session information.
On the basis of the method in the foregoing embodiment, the present embodiment will be further described from the perspective of a conversation list display apparatus, please refer to fig. 8, where fig. 8 specifically describes the conversation list display apparatus provided in the embodiment of the present application, which may include: a first obtaining module 110, a first determining module 120, a second obtaining module 130, a second determining module 140, and a display module 150, wherein:
(1) first obtaining module 110
The first obtaining module 110 is configured to obtain a session list display instruction.
Specifically, when the instant messaging software installed on the mobile terminal is opened by the user, the mobile terminal generates a session list display instruction, so that the first obtaining module 110 obtains the session list display instruction, thereby implementing the session list display function of the session list display apparatus.
(2) First determination module 120
The first determining module 120 is configured to determine a session set to be displayed according to the session list display instruction, where the session set to be displayed includes at least one session to be displayed.
For example, after the first obtaining module 110 obtains a session list display instruction generated by the mobile terminal, the first determining module 120 may obtain all sessions to be displayed in the corresponding instant messaging software to obtain a session set to be displayed, where the session set to be displayed includes at least one session to be displayed, and thus, in a subsequent step, the session set to be displayed may be displayed in a session list.
(3) Second acquisition module 130
The second obtaining module 130 is configured to obtain the number of sessions to be displayed in the set of sessions to be displayed and a display sequence of each session to be displayed.
In this embodiment, the second obtaining module 130 may sort the sessions to be displayed according to the display priority of the sessions to be displayed in the set of sessions to be displayed from high to low, so as to obtain the display order of each session to be displayed.
(4) Second determination Module 140
The second determining module 140 is configured to determine at least one target session from the set of sessions to be displayed according to the number and the display order of the sessions to be displayed in the set of sessions to be displayed, so as to obtain a target set of sessions.
In this embodiment, in a case that the number of sessions to be displayed in the session set to be displayed is large, if a session list is generated after all member information of sessions to be displayed in the session set to be displayed is loaded by using the prior art, time consumed for loading the member information may be long, speed of displaying the session list may be affected, and user experience may be unfavorable.
Specifically, when the number of sessions to be displayed in the session set to be displayed is greater than the maximum number of sessions that can be displayed on the display screen at a time, the second determining module 140 may select a session to be displayed that is in the previous display order of the session set to be displayed and has the number equal to the maximum number of sessions as a target session, so as to obtain the target session set, and thus the session list display apparatus in the subsequent step may generate a session list immediately after the member information of the target session is loaded, thereby shortening the time for displaying the session list.
In some embodiments, when there may be a session to be displayed in the session set to be displayed, which has a session type of an aggregated session, please refer to fig. 9, where the second determining module 140 specifically includes:
the obtaining unit 141 is configured to obtain the session types of the sessions to be displayed in the session set to be displayed.
According to the number of session members in the session to be displayed, the session to be displayed can be divided into a single-person session, a multi-person session or an application session without session members. In addition, the session type of the session to be displayed may also be set as an aggregated session according to the user requirement, for example, the session 1 to be displayed, the session 2 to be displayed, and the session 3 to be displayed are set as aggregated sessions, where a plurality of sessions to be displayed belonging to the same aggregated session only occupy a display space of one session in a session list, for example, if the session 1 to be displayed, the session 2 to be displayed, and the session 3 to be displayed all belong to an aggregated session named "message do not disturb", the three sessions to be displayed appear in the session list in a session manner named "message do not disturb". In addition, during specific implementation, unimportant conversations to be displayed can be displayed in an aggregation mode, so that the display space of the conversation list is saved, more conversations are displayed in the single-screen conversation list, and the conversation searching efficiency is improved.
The first determining unit 142 is configured to determine the number of display pieces of the current screen according to the session type and the display order.
In the present embodiment, the size of the display screen for displaying the conversation list determines the maximum number of conversations that the display screen can display at one time, such as 20. When there is no aggregation session, the display screen can display 20 sessions to be displayed at the maximum, but when there is an aggregation session, since a plurality of sessions to be displayed belonging to the same aggregation session can constitute an aggregation session group and be displayed together, the number of sessions to be displayed that can be displayed at the maximum by the display screen may be greater than 20. Therefore, in order to ensure that the display screen can display the most sessions to be displayed each time, the first determining unit 142 determines the number of display pieces of the current screen according to the session type and the display sequence.
When the session type of the session to be displayed includes an aggregation session, that is, when the session set to be displayed includes at least one aggregation session, the first determining unit 142 may be specifically configured to:
grouping conversations to be displayed, which belong to the same aggregation conversation, into one group to obtain at least one aggregation conversation group;
determining the number of conversations to be displayed in each aggregation conversation group and the number of the aggregation conversation groups;
and determining the number of the display pieces of the current screen according to the number of the conversations to be displayed in the aggregation conversation group, the number of the aggregation conversation groups and the display sequence.
In this embodiment, different sessions to be displayed belonging to the same aggregation session have the same display order, and the display order of the aggregation session group formed by them may be determined by the session to be displayed with the highest display priority in the aggregation session group.
Specifically, the first determining unit 142 may first determine the display order of the corresponding aggregation session group according to the display order of the sessions to be displayed belonging to the same aggregation session, then sort the aggregation session group and the sessions to be displayed whose session types are not aggregation sessions, and count the number of aggregation session groups ranked in the top N (maximum session number) and the number of sessions to be displayed included in the aggregation session groups, so as to obtain the number of display pieces on the current screen, for example, the maximum session number N may be 20, there are two aggregation session groups whose display orders are top 20, and the two aggregation session groups respectively include 3 sessions to be displayed and 2 sessions to be displayed, so that the number of display pieces on the current screen is 23.
The second determining unit 143 is configured to use the sessions to be displayed, which have the previous display order and the total number of which is equal to the number of displayed sessions on the current screen, as target sessions to obtain a target session set.
(5) And a display module 150, configured to display the session list according to the member information of the target session set.
Specifically, the display module 150 may load member information of the target session in the target session set, combine the member information of the target session set and the loaded member information of the target session in a preset form to obtain a corresponding session list, and then display the session list to the user through the display screen.
In this embodiment, in order to further shorten the time for displaying the session list, when there are a large number of target sessions in the target session set, the member information of the target sessions in the target session set may be loaded in batches, and the corresponding session list may be generated and displayed immediately after the member information of the first batch of target sessions is loaded.
The display module 150 may specifically include:
and the judging unit is used for judging whether the number of the target sessions in the target session set is greater than a second preset number.
And the first loading unit is used for taking the target sessions with the display sequence in the front and the total number equal to the second preset number as the sub-session set when the number of the target sessions in the target session set is larger than the second preset number, loading the member information of the sub-session set, and then loading the member information of the rest target sessions.
And the second loading unit is used for loading the member information of all the target conversations in the target conversation set at one time when the number of the target conversations in the target conversation set is not more than a second preset number.
And the display unit is used for displaying the corresponding conversation list according to the target conversation set and the loaded member information.
The display unit may be specifically configured to:
when the member information of the sub-session set is loaded, generating an initial session list based on the target session set and the member information of the sub-session set, and displaying the initial session list to a user;
and when the loading of the member information of the rest target session is finished, generating a complete session list based on the target session set and all the member information of the target session set, and updating the initial session list which is being displayed by using the complete session list.
Further, referring to fig. 10, the session list display apparatus may further include:
(6) detection module 160
The detecting module 160 is configured to mark the target session as a displayed session, and detect whether a session list pull-down instruction is received.
(7) Update module 170
The updating module 170 is configured to update the session set to be displayed according to the displayed sessions when the session list pull-down instruction is received, and trigger the second obtaining module 130 to obtain the number of the sessions to be displayed in the session set to be displayed and the display sequence of each session to be displayed again.
In this embodiment, the updating module 170 updates the session set to be displayed based on the displayed sessions, which is beneficial to displaying other sessions to be displayed in the session set to be displayed in the subsequent steps except for the displayed sessions.
The update module 170 may be specifically configured to:
centralizing the conversations to be displayed, taking the conversations to be displayed except the displayed conversations as the remaining conversations to be displayed, and determining the number of the remaining conversations to be displayed;
judging whether the number of the remaining sessions to be displayed is less than a first preset number;
if yes, generating a historical conversation acquisition request according to the number of the remaining conversations to be displayed, and sending the historical conversation acquisition request to a server, wherein the historical conversation acquisition request is used for indicating the server to return the historical conversations with corresponding numbers according to the number of the remaining conversations to be displayed; receiving the history session returned by the server, and updating the returned history session and the remaining sessions to be displayed into a session set to be displayed, so that the second obtaining module 130 obtains the number of the sessions to be displayed in the loaded session set to be displayed and the display sequence of each session to be displayed again;
if not, the remaining sessions to be displayed are updated to the session set to be displayed, so that the second obtaining module 130 obtains the number of the sessions to be displayed in the loaded session set to be displayed and the display sequence of each session to be displayed again.
In some embodiments, the session list display apparatus may further include:
(8) third determining module
A third determination module to:
after the display module 150 displays the session list, detecting whether the session to be displayed receives a new message;
if so, updating the display sequence of the conversation to be displayed to which the new message belongs;
and updating the display sequence of the session to be displayed according to the updated display sequence.
In specific implementation, the above units and modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementations of the above units and modules may refer to the foregoing method embodiments, and are not described herein again.
As can be seen from the above, the session list display apparatus provided in this embodiment obtains the session set to be displayed by obtaining the session list display instruction and according to the session list display instruction, where the session set to be displayed includes at least one session to be displayed, then obtains the number of sessions to be displayed in the session set to be displayed and the display order of each session to be displayed, and determines at least one target session from the session set to be displayed according to the number and the display order to obtain the target session set, and then displays the session list according to the member information of the target session set, so that the member information of all sessions to be displayed does not need to be loaded during the first display, thereby shortening the time for displaying the sessions and improving the efficiency for the user to view the session information.
Accordingly, an embodiment of the present application further provides a mobile terminal, as shown in fig. 11, which shows a schematic structural diagram of the mobile terminal according to the embodiment of the present application, and specifically:
the mobile terminal may include components such as a processor 401 of one or more processing cores, memory 402 of one or more computer-readable storage media, Radio Frequency (RF) circuitry 403, a power supply 404, an input unit 405, and a display unit 406. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 11 is not intended to be limiting of mobile terminals and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the processor 401 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the mobile terminal. Alternatively, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to the use of the mobile terminal, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 access to the memory 402.
The RF circuit 403 may be used for receiving and transmitting signals during information transmission and reception, and in particular, for receiving downlink information of a base station and then processing the received downlink information by the one or more processors 401; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuitry 403 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 403 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
The mobile terminal may further include a power supply 404 (e.g., a battery) for powering the various components, and preferably, the power supply 404 may be logically coupled to the processor 401 via a power management system that may be configured to manage charging, discharging, and power consumption. The power supply 404 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The mobile terminal may further include an input unit 405, and the input unit 405 may be used to receive input numeric or character information and generate a keyboard, mouse, joystick, optical or trackball signal input in relation to user setting and function control. Specifically, in one particular embodiment, input unit 405 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 401, and can receive and execute commands sent by the processor 401. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 405 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The mobile terminal may also include a display unit 406, and the display unit 406 may be used to display information input by the user or provided to the user, as well as various graphical user interfaces of the mobile terminal, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 406 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 401 to determine the type of the touch event, and then the processor 401 provides a corresponding visual output on the display panel according to the type of the touch event. Although in FIG. 11 the touch-sensitive surface and the display panel are two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
Although not shown, the mobile terminal may further include a camera, a bluetooth module, and the like, which will not be described herein. Specifically, in this embodiment, the processor 401 in the mobile terminal loads the executable file corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 401 runs the application programs stored in the memory 402, thereby implementing various functions as follows:
acquiring a conversation list display instruction;
determining a conversation set to be displayed according to the conversation list display instruction, wherein the conversation set to be displayed comprises at least one conversation to be displayed;
acquiring the number of conversations to be displayed in a conversation set to be displayed and the display sequence of each conversation to be displayed;
determining at least one target session from the session set to be displayed according to the number and the display sequence to obtain a target session set;
and displaying a conversation list according to the member information of the target conversation set.
The mobile terminal can achieve the effective effect that any one of the session list display devices provided in the embodiments of the present application can achieve, which is detailed in the foregoing embodiments and will not be described herein again.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
The above detailed description is provided for a method, an apparatus, and a storage medium for displaying a session list according to embodiments of the present application, and a specific example is applied in the detailed description to explain the principles and implementations of the present application, and the description of the above embodiments is only used to help understanding the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A method for displaying a session list, comprising:
acquiring a conversation list display instruction;
determining a conversation set to be displayed according to the conversation list display instruction, wherein the conversation set to be displayed comprises at least one conversation to be displayed;
acquiring the number of the conversations to be displayed in the conversation set to be displayed and the display sequence of each conversation to be displayed;
determining a plurality of target conversations displayed on a current screen from the conversation set to be displayed according to the number and the display sequence to obtain a target conversation set; the number of the current screen display pieces is the number of current sessions which can be displayed by a first-time loading page of a display screen for displaying the session list;
displaying a conversation list according to the member information of the target conversation set;
wherein the determining a plurality of target sessions of a current screen display bar from the set of sessions to be displayed comprises:
acquiring an aggregation conversation group with the highest prior conversation number and a first conversation to be displayed which does not belong to the aggregation conversation group; the aggregation conversation group comprises a plurality of second conversations to be displayed, which belong to the same aggregation conversation, and the maximum conversation number is the maximum conversation number which can be displayed by a first-time loading page of a display screen for displaying the conversation list;
and determining the first session to be displayed and the second session to be displayed as a plurality of target sessions of the current screen display bar.
2. The method for displaying a session list according to claim 1, wherein the determining at least one target session from the set of sessions to be displayed according to the number and the display order to obtain a set of target sessions specifically includes:
acquiring the session type of the session to be displayed in the session set to be displayed;
determining the number of display pieces of the current screen according to the session type and the display sequence;
and taking the sessions to be displayed with the display sequence in front and the total number equal to the number of the current screen display as target sessions to obtain a target session set.
3. The method according to claim 2, wherein the session type includes an aggregated session, and the determining the number of display pieces of the current screen according to the session type and the display order specifically includes:
grouping the sessions to be displayed belonging to the same aggregation session into a group to obtain at least one aggregation session group;
determining the number of sessions to be displayed in each aggregation session group and the number of the aggregation session groups;
and determining the number of the display pieces of the current screen according to the number of the conversations to be displayed in the aggregation conversation group, the number of the aggregation conversation groups and the display sequence.
4. The method according to claim 1, further comprising, after the displaying the session list according to the member information of the target session set:
marking the target session as a displayed session, and detecting whether a session list pull-down instruction is received or not;
and if the session list pull-down instruction is received, updating the session set to be displayed according to the displayed sessions, and returning to execute the steps of acquiring the number of the sessions to be displayed in the session set to be displayed and the display sequence of each session to be displayed.
5. The method according to claim 4, wherein the updating the set of sessions to be displayed according to the displayed sessions specifically includes:
collecting the conversations to be displayed, taking the conversations to be displayed except the displayed conversations as the remaining conversations to be displayed, and determining the number of the remaining conversations to be displayed;
judging whether the number of the remaining sessions to be displayed is less than a first preset number or not;
if yes, generating a historical conversation obtaining request according to the number of the remaining conversations to be displayed, and sending the historical conversation obtaining request to a server, wherein the historical conversation obtaining request is used for indicating the server to return historical conversations with corresponding numbers according to the number of the remaining conversations to be displayed;
and receiving the history conversation returned by the server, and updating the returned history conversation and the remaining conversations to be displayed into the conversation set to be displayed.
6. The method according to claim 1, wherein the displaying the session list according to the member information of the target session set specifically includes:
judging whether the number of the target sessions in the target session set is larger than a second preset number or not;
if so, taking the target sessions with the display sequence in front and the total number equal to the second preset number as a sub-session set, loading member information of the sub-session set, and then loading the remaining member information of the target sessions;
and displaying a corresponding session list according to the target session set and the loaded member information.
7. The method according to claim 6, wherein the displaying the corresponding session list according to the target session set and the loaded member information specifically includes:
when the member information of the sub-session set is loaded, generating an initial session list based on the member information of the target session set and the sub-session set, and displaying the initial session list to a user;
and when the loading of the rest member information of the target session is finished, generating a complete session list based on the target session set and all the member information, and updating the initial session list which is displayed by using the complete session list.
8. The method according to claim 1, further comprising, after the displaying the session list according to the member information of the target session set:
detecting whether the session to be displayed receives a new message;
if so, updating the display sequence of the conversation to be displayed to which the new message belongs;
and updating the display sequence of the conversation to be displayed according to the updated display sequence.
9. A conversation list display apparatus, comprising:
the first acquisition module is used for acquiring a conversation list display instruction;
the first determining module is used for determining a session set to be displayed according to the session list display instruction, wherein the session set to be displayed comprises at least one session to be displayed;
the second acquisition module is used for acquiring the number of the conversations to be displayed in the conversation set to be displayed and the display sequence of each conversation to be displayed;
the second determining module is used for determining a plurality of target conversations of the current screen display bar from the conversation set to be displayed according to the number and the display sequence to obtain a target conversation set; the number of the current screen display pieces is the number of current sessions which can be displayed by a first-time loading page of a display screen for displaying the session list;
the display module is used for displaying a conversation list according to the member information of the target conversation set;
wherein the second determining module is specifically configured to:
acquiring an aggregation conversation group with the highest prior conversation number and a first conversation to be displayed which does not belong to the aggregation conversation group; the aggregation conversation group comprises a plurality of second conversations to be displayed, which belong to the same aggregation conversation, and the maximum conversation number is the maximum conversation number which can be displayed by a first-time loading page of a display screen for displaying the conversation list;
and determining the first session to be displayed and the second session to be displayed as a plurality of target sessions of the current screen display bar.
10. A computer-readable storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor to perform the session list display method of any one of claims 1 to 8.
CN201910512705.4A 2019-06-13 2019-06-13 Session list display method, device and storage medium Active CN112087364B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910512705.4A CN112087364B (en) 2019-06-13 2019-06-13 Session list display method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910512705.4A CN112087364B (en) 2019-06-13 2019-06-13 Session list display method, device and storage medium

Publications (2)

Publication Number Publication Date
CN112087364A CN112087364A (en) 2020-12-15
CN112087364B true CN112087364B (en) 2022-05-31

Family

ID=73734527

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910512705.4A Active CN112087364B (en) 2019-06-13 2019-06-13 Session list display method, device and storage medium

Country Status (1)

Country Link
CN (1) CN112087364B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112769681B (en) * 2021-01-27 2023-03-24 北京达佳互联信息技术有限公司 Session display method and device, electronic equipment and storage medium
CN113098781B (en) * 2021-03-19 2023-01-20 北京达佳互联信息技术有限公司 Session list processing method, device, server and storage medium
CN115174290B (en) * 2022-05-24 2024-03-22 青岛海尔科技有限公司 Session record display method and device, storage medium and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103684980A (en) * 2012-09-17 2014-03-26 阿里巴巴集团控股有限公司 Method and system for synchronizing chatting records in instant chat tool
CN103942213A (en) * 2013-01-21 2014-07-23 腾讯科技(深圳)有限公司 Data paging method and device
CN106791014A (en) * 2016-11-29 2017-05-31 北京小米移动软件有限公司 Message display method and device
CN106888236A (en) * 2015-12-15 2017-06-23 腾讯科技(深圳)有限公司 Conversation managing method and session management device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140244775A1 (en) * 2013-02-27 2014-08-28 Mark Hull Prioritization of network communications

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103684980A (en) * 2012-09-17 2014-03-26 阿里巴巴集团控股有限公司 Method and system for synchronizing chatting records in instant chat tool
CN103942213A (en) * 2013-01-21 2014-07-23 腾讯科技(深圳)有限公司 Data paging method and device
CN106888236A (en) * 2015-12-15 2017-06-23 腾讯科技(深圳)有限公司 Conversation managing method and session management device
CN106791014A (en) * 2016-11-29 2017-05-31 北京小米移动软件有限公司 Message display method and device

Also Published As

Publication number Publication date
CN112087364A (en) 2020-12-15

Similar Documents

Publication Publication Date Title
CN108306810B (en) Group building method, server and terminal
US20210224477A1 (en) Method and apparatus for displaying candidate word, and graphical user interface
CN108021316B (en) Message display method and device
US10791074B2 (en) Information pushing method, apparatus, and system, and computer storage medium
CN112291134B (en) Information prompting method, device, equipment and storage medium
CN112087364B (en) Session list display method, device and storage medium
CN106059894B (en) Message processing method and device
US10652287B2 (en) Method, device, and system for managing information recommendation
CN106506321B (en) Group message processing method and terminal device
CN112637039B (en) Information processing method, device and storage medium
WO2014169661A1 (en) Method and system for processing report information
CN106293738B (en) Expression image updating method and device
CN106775194B (en) Application interface switching method and device
JP6915074B2 (en) Message notification method and terminal
CN112749074B (en) Test case recommending method and device
CN106330681B (en) Method, system and related equipment for sharing film watching information
EP2768183A1 (en) Email management apparatus and method of electronic device
CN109739409B (en) Batch processing method and device and terminal equipment
CN108616637B (en) Information processing method and device, electronic equipment and computer readable storage medium
CN113242171B (en) Method and related device for managing session messages
CN111274463B (en) Information display method, device and storage medium based on IM contact person grouping setting
CN109327800B (en) Emergency call implementation method, electronic device and computer-readable storage medium
CN113852450A (en) Message push feedback method and device, electronic equipment and storage medium
CN113268179A (en) Session message processing method, device, equipment and storage medium
CN108182122B (en) Application update reminding method and device, storage medium and server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant