CN113268179A - Session message processing method, device, equipment and storage medium - Google Patents

Session message processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN113268179A
CN113268179A CN202110467365.5A CN202110467365A CN113268179A CN 113268179 A CN113268179 A CN 113268179A CN 202110467365 A CN202110467365 A CN 202110467365A CN 113268179 A CN113268179 A CN 113268179A
Authority
CN
China
Prior art keywords
message
session
downloading
download
control
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.)
Granted
Application number
CN202110467365.5A
Other languages
Chinese (zh)
Other versions
CN113268179B (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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology 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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202110467365.5A priority Critical patent/CN113268179B/en
Publication of CN113268179A publication Critical patent/CN113268179A/en
Application granted granted Critical
Publication of CN113268179B publication Critical patent/CN113268179B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services

Abstract

The method comprises the steps of displaying a session interface, wherein the session interface comprises at least one session message list containing continuous session messages with the same message type; responding to the downloading trigger operation of at least one target conversation message in the conversation message list, and displaying a downloading window; and responding to the triggering operation of the first downloading control in the downloading window, and downloading at least part of the session messages in batch. Therefore, a large number of session messages can be downloaded quickly, the user does not need to switch operations such as clicking, downloading and storing frequently, the downloading operation process is simplified, and the information sharing efficiency and the user experience feeling among the users are improved.

Description

Session message processing method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for processing a session message.
Background
Instant Messaging (IM) is a real-time communication service that allows users to set up some kind of chat room on a network. In the instant communication product, users are allowed to realize information interaction by transmitting session messages such as characters, pictures, files, videos, voice and the like, and any party user is supported to download the clicked session messages.
However, when the number of session messages to be downloaded is large, operations such as clicking, downloading, saving and the like are frequently switched, which not only complicates the operation process, but also greatly affects the information sharing efficiency between users.
Disclosure of Invention
The present disclosure provides a method, an apparatus, a device, and a storage medium for processing a session message, so as to at least solve at least one of the problems of a complicated downloading operation process, low information sharing efficiency, and the like in the related art. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, a method for processing a session message is provided, including:
displaying a conversation interface, wherein the conversation interface comprises at least one conversation message list containing continuous conversation messages with the same message type;
responding to the downloading triggering operation of at least one target conversation message in the conversation message list, and displaying a downloading window; the download window at least comprises a first download control used for batch downloading;
and responding to the triggering operation of the first downloading control, and downloading at least part of the session messages in batch.
As an optional implementation, the first download control includes at least a first download sub-control and a second download sub-control; the first download sub-control and the second download sub-control are respectively used for indicating to download the session messages to be downloaded corresponding to different message sequences and the same message sender;
the step of downloading at least part of the session messages in batch in response to the triggering operation of the first downloading control comprises the following steps:
responding to the triggering operation of the first downloading sub-control, and downloading the session messages which have the message sequence which is greater than or equal to the message sequence of the target session message and are the same as the message sender of the target session message in a batch mode in the session message list; alternatively, the first and second electrodes may be,
and responding to the triggering operation of the second downloading sub-control, and downloading the session messages of which the message sequence is less than or equal to that of the target session message and is the same as the message sender of the target session message in a batch manner.
As an optional implementation manner, the first download control includes at least a third download sub-control and a fourth download sub-control; the third download sub-control and the fourth download sub-control are respectively used for indicating to download the session messages to be downloaded corresponding to different message sequences;
the step of downloading at least part of the session messages in batch in response to the triggering operation of the first downloading control comprises the following steps:
responding to the triggering operation of the third downloading sub-control, and downloading the session messages of which the message sequence is greater than or equal to that of the target session message in the session message list in batch; alternatively, the first and second electrodes may be,
and responding to the triggering operation of the fourth downloading sub-control, and downloading the session messages of which the message sequence is less than or equal to that of the target session message in the session message list in batch.
As an optional implementation manner, the downloading at least part of the session message in batch in response to the triggering operation of the first downloading control comprises:
acquiring a target message sequence and a target message sender identification of the target session message;
responding to the triggering operation of the first downloading control, and inquiring the session message of which the message sequence and the target message sequence meet the preset downloading condition and/or are matched with the target message sender identification;
downloading the inquired session messages in batch.
As an optional implementation manner, the step of downloading the session messages obtained by the query in batches includes:
displaying a message list to be downloaded corresponding to the inquired session message;
responding to the elimination operation of at least one session message in the message list to be downloaded, and acquiring an updated message list to be downloaded;
and responding to the trigger operation of confirming the downloading, and downloading the session messages corresponding to the updated message list to be downloaded in batch.
As an optional implementation manner, the downloading at least part of the session message in batch in response to the triggering operation of the first downloading control comprises:
responding to the triggering operation of the first downloading control, and displaying a conversation interface, wherein the conversation interface comprises a message downloading quantity confirmation control used for determining the downloading quantity of the conversation messages;
responding to the triggering operation of the message download quantity confirmation control, and acquiring target message download quantity;
inquiring corresponding session messages from a local message library according to the target message downloading amount and the message sequence of the target session messages;
downloading the inquired session messages in batch.
As an optional implementation manner, the step of downloading the session messages obtained by the query in batches includes:
sequentially splicing the message sequences of the session messages obtained by the query to generate a first message sequence character string;
processing the first message sequence character string according to an information abstract algorithm to obtain an information abstract value to be checked;
comparing the summary value of the information to be checked with a file name corresponding to a local message folder, wherein the file name is obtained by processing a second message sequence character string corresponding to the session message stored in the local message file according to an information summary algorithm, and the second message sequence character string is generated by sequentially splicing the stored message sequences of the session message;
if the comparison result is consistent, judging whether the message number of the session message obtained by the query is the same as the message number of the session message stored in the corresponding local message folder;
if the comparison result is inconsistent or the judgment result is different, downloading the session messages obtained by query in batches;
and if the comparison result is consistent and the judgment result is the same, prompting that the session message is downloaded successfully.
As an optional implementation manner, the download window further comprises a second download control; the method further comprises the following steps:
and downloading the target session message in response to the triggering operation of the second downloading control.
As an optional implementation manner, the message type of the session message list includes at least one of a picture message, a video message, a document message, and a compressed packet message.
According to a second aspect of the embodiments of the present disclosure, there is provided a session message processing apparatus including:
the first display module is configured to execute display of a session interface, wherein the session interface comprises at least one session message list containing continuous session messages with the same message type;
a second presentation module configured to perform a download trigger operation in response to at least one target session message in the session message list, and present a download window; the download window at least comprises a first download control;
a first processing module configured to execute a batch download of at least a portion of the session messages in response to a triggering operation of the first download control.
As an optional implementation, the first download control includes at least a first download sub-control and a second download sub-control; the first download sub-control and the second download sub-control are respectively used for indicating to download the session messages to be downloaded corresponding to different message sequences and the same message sender; the first processing module comprises:
a first processing sub-module configured to perform batch downloading of session messages, which have a message sequence greater than or equal to that of the target session message and are the same as a message sender of the target session message, in the session message list in response to a triggering operation on the first downloading sub-control; alternatively, the first and second electrodes may be,
and the second processing submodule is configured to execute a triggering operation responding to the second downloading sub-control, and batch download the session messages of which the message sequence is less than or equal to that of the target session message and is the same as the message sender of the target session message in the session message list.
As an optional implementation manner, the first download control includes at least a third download sub-control and a fourth download sub-control; the third download sub-control and the fourth download sub-control are respectively used for indicating to download the session messages to be downloaded corresponding to different message sequences; the first processing module comprises:
a third processing sub-module configured to perform batch downloading of the session messages of which the message sequence is greater than or equal to the message sequence of the target session message in the session message list in response to a triggering operation on the third downloading sub-control; alternatively, the first and second electrodes may be,
and the fourth processing submodule is configured to execute batch downloading of the session messages of which the message sequence is less than or equal to that of the target session message in the session message list in response to the triggering operation of the fourth downloading sub-control.
As an optional implementation, the first processing module includes:
a first obtaining unit configured to perform obtaining a target message sequence and a target message sender identifier of the target session message;
the query unit is configured to execute a trigger operation responding to the first download control, query a session message of which the message sequence and the target message sequence meet preset download conditions and/or are matched with the target message sender identification;
and the processing unit is configured to execute the session messages obtained by the batch downloading inquiry.
As an optional implementation, the processing unit includes:
the display subunit is configured to execute a list of messages to be downloaded corresponding to the session messages obtained by the display query;
a removing subunit, configured to perform a removing operation in response to at least one session message in the to-be-downloaded message list, to obtain an updated to-be-downloaded message list;
and the first processing subunit is configured to execute a trigger operation responding to the confirmation of downloading, and download the session messages corresponding to the updated message list to be downloaded in batch.
As an optional implementation, the first processing module includes:
the display unit is configured to execute a triggering operation responding to the first downloading control, and display a conversation interface, wherein the conversation interface comprises a message downloading quantity confirmation control used for determining the downloading quantity of the conversation messages;
a download amount obtaining unit configured to execute a trigger operation in response to the message download amount confirmation control to obtain a target message download amount;
the query unit is configured to execute query of a corresponding session message from a local message library according to the target message download amount and the message sequence of the target session message;
and the processing unit is configured to execute the session messages obtained by the batch downloading inquiry.
As an optional implementation, the processing unit includes:
the splicing subunit is configured to perform sequential splicing processing on the message sequence of the session message obtained by the query to generate a first message sequence character string;
an obtaining subunit, configured to perform processing on the first message sequence character string according to an information digest algorithm, to obtain an information digest value to be verified;
a comparison subunit, configured to perform comparison between the to-be-checked message digest value and a file name corresponding to a local message folder, where the file name is obtained by processing a second message sequence character string corresponding to a session message stored in the local message file according to a message digest algorithm, and the second message sequence character string is generated by sequentially concatenating message sequences of the stored session message;
a judging subunit, configured to execute, if the comparison result is consistent, to judge whether the message number of the session message obtained by the query is the same as the message number of the session message stored in the corresponding local message folder;
the second processing subunit is configured to execute the session messages obtained by batch downloading and inquiring if the comparison result is inconsistent or the judgment result is different;
and the third processing subunit is configured to prompt that the session message is downloaded successfully if the comparison result is consistent and the judgment result is the same.
As an optional implementation manner, the download window further comprises a second download control; the device further comprises:
the second processing module is configured to execute a triggering operation responding to the second downloading control to download the target session message.
As an optional implementation manner, the message type of the session message list includes at least one of a picture message, a video message, a document message, and a compressed packet message.
According to a third aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, wherein instructions, when executed by a processor of an electronic device, enable the electronic device to perform the conversation message processing method as described in any one of the above embodiments.
According to a fourth aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the conversation message processing method according to any of the above embodiments.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the conversation message processing method provided in any one of the above-mentioned embodiments.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
the embodiment of the disclosure displays a conversation interface, wherein the conversation interface comprises at least one conversation message list of continuous conversation messages with the same message type; responding to the downloading triggering operation of at least one target conversation message in the conversation message list, and displaying a downloading window; the download window at least comprises a first download control used for batch downloading; and responding to the triggering operation of the first downloading control, and downloading at least part of the session messages in batch. Therefore, a large number of session messages can be downloaded quickly, the user does not need to switch operations such as clicking, downloading and storing frequently, the downloading operation process is simplified, the sharing user does not need to share a large number of session messages after packaging, and the information sharing efficiency and the user experience among the users are improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this disclosure, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
Fig. 1 is an architecture diagram illustrating a system applying a session message processing method in accordance with an example embodiment.
Fig. 2 is a flow chart illustrating a method of session message processing in accordance with an exemplary embodiment.
Fig. 3 is a flowchart illustrating a batch download step in a session message processing method according to an exemplary embodiment.
Fig. 4 is a flowchart illustrating a batch download step in another session message processing method according to an example embodiment.
FIG. 5 is an interface diagram illustrating a conversational message processing procedure, according to an example embodiment.
FIG. 6 is an interface diagram illustrating another conversational message processing procedure, according to an example embodiment.
Fig. 7 is a flowchart illustrating a batch download step in another session message processing method according to an example embodiment.
Fig. 8 is a flowchart illustrating a step of downloading session messages obtained by queries in a batch manner in a session message processing method according to an exemplary embodiment.
Fig. 9 is a block diagram illustrating a session message processing apparatus according to an example embodiment.
FIG. 10 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is an architecture diagram illustrating a system applying a session message processing method according to an exemplary embodiment, and referring to fig. 1, the architecture diagram may include a terminal 10, a terminal 20, and a server 30.
The terminal 10 and the terminal 20 may be, but are not limited to, one or more of an entity device such as a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart wearable device, a digital assistant, an augmented reality device, a virtual reality device, and an application program and an applet running in the entity device. The terminals 10 and 20 may have software capable of instant messaging loaded thereon, including but not limited to instant messaging software, short video software, shopping software, video software, game software, and the like.
The server 30 may provide a background service for instant messaging for the terminals 10 and 20. For example only, the server 30 may be, but not limited to, an independent server, a server cluster or a distributed system formed by a plurality of physical servers, and one or more cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, intermediate services, domain name services, security services, and big data and artificial intelligence platforms. The terminal 10 and the server 30, and the terminal 20 and the server 30 may be directly or indirectly connected through wired or wireless communication, and the embodiments of the present disclosure are not limited herein.
The session message processing method provided by the embodiment of the disclosure may be executed by a session message processing apparatus, and the session message processing apparatus may be integrated in a terminal device in a hardware form or a software form, and may be implemented by being executed by a terminal alone, or may be implemented by being executed cooperatively by a terminal and a server.
Fig. 2 is a flow chart illustrating a method of session message processing in accordance with an exemplary embodiment. As shown in fig. 2, the session message processing method may be applied to an electronic device, and the electronic device is taken as an example of the terminal in the foregoing implementation environment schematic diagram for description, and includes the following steps.
In step S201, a session interface is presented, where the session interface includes at least one session message list including consecutive session messages with the same message type.
The conversation interface can refer to an interface formed by message communication among users and comprising a conversation message set. The session may be a chat session based on instant messaging enabled software including, but not limited to, instant messaging software, short video software, shopping software, video software, gaming software, and the like. According to the number of participants in the conversation, the conversation can be divided into a common conversation and a group conversation, etc.
The conversation interface comprises a conversation message set, the conversation message set comprises a plurality of continuous conversation message subsets with the same message type, and each conversation message subset forms a conversation message list. The session message list includes at least two session messages. The session messages in the session message list are downloadable messages, and the message types of the session messages include, but are not limited to, at least one of picture messages, video messages, document messages, and compressed packet messages, by way of example only. The picture message may include, but is not limited to, a still picture, a moving picture, an emoticon, and the like. Document messages may include, but are not limited to, WORD documents, PDF documents, EXCEL documents, CAD documents, and the like. Of course, in some cases, text conversations, voice conversations, etc. may also be included in the list of conversation messages. The conversation message subset with continuous conversation messages and the same message type refers to the conversation message subset with continuous sending or continuous receiving and the same message type and without interruption of conversation messages.
Illustratively, if a user a receives a text message 1, a text message 2, a picture message 1, a text message 3, a text message 4, a picture message 2, a picture message 3, a picture message 4, a voice message 1, a picture message 5, and a picture message 6 in sequence, the { text message 1, text message 2} is a conversation message subset with continuous conversation messages and the same message type, i.e., a conversation message list a, and the { picture message 2, picture message 3, picture message 4} is a conversation message subset with continuous conversation messages and the same message type, i.e., a conversation message list B; { picture message 5, picture message 6} is a subset of a further session message, i.e. a session message list c.
It should be understood that the set of conversation messages herein includes both currently presented conversation messages and hidden conversation messages that are displayed, for example, by sliding up and down.
In step S202, a download window is displayed in response to a download trigger operation for at least one target session message in the session message list; the download window includes at least a first download control for batch downloading.
The target session message may be a session message that the user wants to download, and the target session message may be a session message, or may be multiple session messages of the same or different continuous types, or may be multiple session messages at intervals. The download trigger operation includes, but is not limited to, right click, long press, double click, frame selection, multi-finger touch, and other gesture operations.
The download window may be presented in the form of, but not limited to, a mask, a floating window, a pop-up window, etc. The first download controls included in the download window may be controls for downloading session messages meeting preset download conditions in batches, the first download controls may include, but are not limited to, a click control and a box control, the number of the first download controls may be at least one, and each first download control corresponds to a different preset download condition.
For example, the preset downloading condition may include, but is not limited to, downloading the first N or last N session messages (N is a positive integer) in the session message list where the target session message is located, and including the target session message, downloading all session messages in the session message list where the target session message is located, downloading session messages in odd order or even order in the session message list where the target session message is located, downloading session messages in the session message list where the target session message is located, where the size of the session message in the session message list is greater than or equal to (or less than or equal to) a preset memory size, downloading session messages not downloaded in the session message list where the target session message is located, and so on.
In step S203, at least part of the session messages are downloaded in batch in response to the triggering operation of the first downloading control.
In practical application, a user can slide and browse the session messages in the session interface up and down, and then perform downloading triggering operation such as long pressing on the target session messages of interest in the session message list, so as to display a downloading window on the session interface. The download window includes at least one first download control for batch downloads. Then, the user may trigger a trigger operation, such as clicking, on the target first download control, and download at least a part of the session messages meeting the preset download condition in batch according to the preset download condition corresponding to the target first download control of the trigger operation.
In an optional embodiment, the download window may further include a second download control. The second download control is to download the target session message. At this time, the method further includes: and downloading the target session message in response to the triggering operation of the second downloading control. The selected target session message may be one or multiple pieces, and may be implemented by a continuous click, a sliding gesture, or a pattern gesture, which is not specifically limited by the present disclosure.
The embodiment of the disclosure displays a conversation interface, wherein the conversation interface comprises at least one conversation message list containing continuous conversation messages with the same message type; responding to the downloading triggering operation of at least one target conversation message in the conversation message list, and displaying a downloading window; the download window at least comprises a first download control used for batch downloading; and responding to the triggering operation of the first downloading control, and downloading at least part of the session messages in batch. Therefore, a large number of session messages can be downloaded quickly, the user does not need to switch operations such as clicking, downloading and storing frequently, the downloading operation process is simplified, the sharing user does not need to share a large number of session messages after packaging, and the information sharing efficiency and the user experience among the users are improved.
In an alternative embodiment, as shown in fig. 3, the step of downloading at least part of the session message in batch in response to the triggering operation of the first downloading control may include:
in step S301, a target message sequence and a target message sender identifier of the target session message are obtained.
In general, a session message in instant messaging software is converted into a binary information form for storage and transmission, and a message structure of the session message may be represented as follows:
Figure BDA0003043723670000091
Figure BDA0003043723670000101
through the above message structure, the terminal can know which user (user _ id) issued what type (content _ type) of message at what time (time _ ms), and what the specific content of the message is (content). The message id is a message identifier representing message uniqueness, and may be represented by a sequence number, for example, by an ascending sequence. Each session message can be assigned with a corresponding message id according to the sequence of the message time stamps, that is, assigned with a corresponding message sequence. For example, if the message sequence of a certain session message M is n (that is, the message id is n), the message sequences of the three consecutive messages after the session message M are n +1, n +2, and n +3, and the message sequences of the three consecutive messages before the session message a are n-3, n-2, and n-1.
The target message sequence of the target session message is used to reflect the message identifier of the target session message, which may be represented by an incremental message id in the message structure. The target message sender identity, which is used to reflect the sender of the target message, may be represented by a user _ id in the message structure described above.
In step S302, in response to the triggering operation on the first download control, a session message is queried, where the message sequence and the target message sequence satisfy a preset download condition and/or match the target message sender identifier.
Alternatively, the instant messaging session messages may be stored, for example, in a message database. And the terminal responds to the triggering operation of the user on the first downloading control, and inquires the session message of which the message sequence and the target message sequence meet the preset downloading condition and/or are matched with the target message sender identification from the message database.
For example, the preset downloading condition may include, but is not limited to, downloading the first N or last N session messages (N is a positive integer) in the session message list where the target session message is located and including the target session message, downloading all session messages in the session message list where the target session message is located, downloading session messages in odd order or even order in the session message list where the target session message is located, downloading session messages in the session message list where the target session message is located and whose session message size is greater than or equal to (or less than or equal to) a preset memory size, downloading session messages not downloaded in the session message list where the target session message is located, and so on.
For example, the session message matching the target message sender identifier may be a session message identical to the target message sender identifier, that is, a session message of the same message sender. Of course, the session message matching the target message sender identifier may also include a session message associated with the target message sender identifier, for example, a user associated with the target message sender or a bound user, for example, the current session topic is an operation campaign advertisement, and the user M, the user N, and the user P are main persons of the campaign advertisement.
In step S303, the queried session messages are downloaded in batch.
Alternatively, the terminal may download the queried session messages in batch from the session message list according to the message id of the queried session message. Specifically, the session messages obtained by the query may be downloaded in batch from the session message list in a parallel downloading manner.
In the embodiment, the target message sequence and the target message sender identification of the target session message are obtained, the first downloading control is triggered, the message sequence and the session message meeting the preset downloading condition and/or matched with the target message sender identification are inquired according to the target message sequence and the target message sender identification, and then the inquired session messages are downloaded in batch.
In an optional embodiment, the step of downloading the session messages queried in the session message list in batch may include:
in step S3031, a message list to be downloaded corresponding to the queried session message is displayed.
Optionally, after querying that the message sequence and the target message sequence satisfy the preset downloading condition and/or the session message matched with the target message sender identifier, the terminal may not directly download the queried session messages in batch, but display a list of messages to be downloaded corresponding to the queried session messages. The message list to be downloaded may be displayed in a download window or a new window, the message list to be downloaded displays the queried information of each session message, and the information of the session message may include a thumbnail of the session message, a message sender, sending time, a message size, and the like, so that a user can quickly know content information of each session message in the message list to be downloaded.
In step S3032, in response to the removing operation of at least one session message in the message list to be downloaded, an updated message list to be downloaded is obtained.
Optionally, the window or interface for displaying the to-be-downloaded message list by the terminal may include a removing control, and the user may select at least one session message in the to-be-downloaded message list that is desired to be removed and trigger the removing control, so as to remove the selected session message and obtain an updated to-be-downloaded message list after removal.
Certainly, in order to facilitate quick selection of the session message to be rejected, a sorting control (for example, sorting according to time, sorting according to message size, or the like) or a screening control may be set in the window or interface displaying the list of messages to be downloaded, so as to improve the rejection efficiency.
In step S3033, in response to the trigger operation of confirming the downloading, downloading the session messages corresponding to the updated message list to be downloaded in batch.
Optionally, the terminal acquires a message id set of each session message in the updated message list to be downloaded in response to a trigger operation such as clicking for confirming downloading, and further downloads each session message corresponding to the updated message list to be downloaded in batch according to the message id set.
In the above embodiment, the message list to be downloaded corresponding to the queried session message is displayed; removing at least one session message in the message list to be downloaded to obtain an updated message list to be downloaded; and then the session messages corresponding to the updated message list to be downloaded are downloaded in batch, so that the user can be further assisted to select the session messages really wanted to be downloaded, the intermittent downloading of continuous session messages can be realized, the situation that the user returns to the session interface to reselect the session messages to be downloaded is avoided, the downloading efficiency of the session messages is improved, and the information sharing efficiency among the users is further improved.
In an alternative embodiment, as shown in fig. 4, the first download control may include at least a first download sub-control and a second download sub-control. The first download sub-control and the second download sub-control are respectively used for indicating different session messages to be downloaded in batches. In this embodiment, the first download sub-control and the second download sub-control may be respectively used to instruct to download session messages to be downloaded corresponding to different message sequences and the same message sender.
In a case where the first download control includes at least a first download sub-control and a second download sub-control, the downloading at least part of the session message in batch in response to the triggering operation of the first download control may include:
in step S401, in response to the triggering operation on the first downloading widget, downloading session messages in the session message list in batch, where the message sequence of the session message list is greater than or equal to the message sequence of the target session message and is the same as the message sender of the target session message; alternatively, the first and second electrodes may be,
in step S402, in response to the triggering operation on the second download sub-control, downloading in batch the session messages in the session message list, the message sequence of which is less than or equal to the message sequence of the target session message and is the same as the message sender of the target session message.
The triggering operation includes, but is not limited to, clicking, selecting, frame selecting, and the like. The first download widget and the second download widget download the same session message from the same message sender in the session message list, except that: the first download sub-control is used to download the message queue whose message sequence is greater than or equal to the target session message in the session message list, and the second download sub-control is used to download the message queue whose message sequence is less than or equal to the target session message in the session message list, that is, the arrangement directions of the objects to be downloaded of the first download sub-control and the second download sub-control in the session message list are opposite.
For easy understanding, the description is made by taking the target session message as the picture message with reference to the drawings, and fig. 5 shows an interface schematic diagram of a session message downloading process. As shown in fig. 5, in the group session, if the user a continuously sends 9 picture messages (denoted as M1-M9), the picture messages respectively correspond to the 9 message structures, each picture message has a unique message id, the sender is user a, and the message type is 2 (that is, the picture message type), and then other users in the group session receive 9 independent picture messages pushed by the server. If the user B in the group session right-clicks the 3 rd picture (denoted as M3) of the 9 pictures, a download window T may pop up, and the download window may show a first download sub-control k1 and a second download sub-control k2, where the first download sub-control specifically is: downloading all the pictures of the sending user which are continuous from the picture position to the back, wherein the second downloading sub-control specifically comprises: all pictures of the sending user that are consecutive from the picture position onwards are downloaded. Then, the user B can download all the previous continuous pictures from the beginning of the M3 picture message by selecting the first download widget, that is, download the M1-M3 pictures in batch; the user B can also download all the pictures following the beginning of the M3 picture message, that is, download the M3-M9 pictures in batch by selecting the second download sub-control. And then, storing the pictures which are downloaded in batches locally so as to be convenient for the user to check at any time.
In the above embodiment, the first download control includes the first download sub-control and the second download sub-control; and the first download sub-control and the second download sub-control are respectively used for indicating to download the session messages to be downloaded corresponding to different message sequences and the same message sender, so that when the first download sub-control and/or the second download sub-control are triggered, the session message download aiming at different download intentions of the unified message sender is realized, and the download efficiency and the flexibility of the session message are improved.
In another alternative embodiment, the first download control may include at least a third download sub-control and a fourth download sub-control. The third download sub-control and the fourth download sub-control are also used for instructing to download different session messages in batches. In this embodiment, the third download sub-control and the fourth download sub-control may be respectively used to instruct to download different message sequences, and do not distinguish the session messages to be downloaded corresponding to the message sender.
In an alternative embodiment, as shown in fig. 4, in a case where the first download control includes at least a first download sub-control and a second download sub-control, the downloading at least a part of the session messages in the session message list in batch in response to the triggering operation of the first download control includes:
in step S403, in response to the triggering operation on the third download sub-control, downloading session messages with a message sequence greater than or equal to the message sequence of the target session message in the session message list in batch; alternatively, the first and second electrodes may be,
in step S404, in response to the triggering operation on the fourth download sub-control, downloading the session messages of which the message sequence is less than or equal to the message sequence of the target session message in the session message list in batch.
The triggering operation includes, but is not limited to, clicking, selecting, frame selecting, and the like. The third download sub-control and the fourth download control are used for downloading the continuous session messages which are not distinguished from the message sender in the session message list, and the difference is that: the third download sub-control is used for downloading the message queue whose message sequence is greater than or equal to the target session message in the session message list, and the fourth download sub-control is used for downloading the message queue whose message sequence is less than or equal to the target session message in the session message list, that is, the arrangement directions of the objects to be downloaded of the third download sub-control and the fourth download sub-control in the session message list are opposite.
For easy understanding, the description is made by taking the target session message as the picture message with reference to the drawings, and fig. 6 shows an interface schematic diagram of a session message downloading process. As shown in fig. 6, in the group session, the user a continuously sends 9 picture messages (denoted as M1-M9, where M1-M5 are hidden), each picture message has a unique message id corresponding to the 9 message structures, the sender is the user a, and the message types are all 2 (i.e., picture message types); meanwhile, the user B continuously sends 5 picture messages (marked as M10-M14) which respectively correspond to the 5 message structures, each picture message has a unique message id, the sender is the user B, and the message types are all 2 (namely, the picture message types). In addition, the picture message M10 sent by the user B is next to the picture message M9, i.e. the message sequence of the picture messages M1 to M9 and the picture messages M10 to M14 is incremental. Each user in the group session receives 14 independent picture messages pushed by the server. If the user C in the group session clicks the 6 th picture (denoted as M6) of the 14 pictures, a download window may pop up, and a third download sub-control and a fourth download sub-control may be displayed in the download window, where the third download sub-control specifically includes: downloading all the subsequent continuous pictures from the picture position, wherein the fourth downloading sub-control specifically comprises: all previous consecutive pictures are downloaded starting from this picture position. Then, the user C can download all the previous continuous pictures of the M6 picture message by selecting the third download sub-control, that is, download the M1-M6 pictures in batch; the user C can also download all the pictures following the beginning of the M6 picture message, that is, download the M6-M14 pictures in batch, by selecting the fourth download sub-control. And then, storing the pictures which are downloaded in batches locally so as to be convenient for the user to check at any time.
It should be noted that, the third download sub-control and the fourth download sub-control herein may be independently displayed in the download window, and may also exist in the download window together with the first download sub-control and the second download sub-control, that is, the user may individually perform message selection and batch download on the four download sub-controls, and may also check at least 2 of the four download sub-controls to perform message selection and batch download, which is not specifically limited in this disclosure.
In the above embodiment, the first download control includes the third download sub-control and the fourth download sub-control; and the third download sub-control and the fourth download sub-control are respectively used for indicating to download the session messages to be downloaded corresponding to different message sequences, so that when the third download sub-control and/or the fourth download sub-control are triggered, the session messages with different download intentions are downloaded, and the download efficiency and flexibility of the session messages are further improved.
In an alternative embodiment, as shown in fig. 7, the step of downloading at least part of the session message in batch in response to the triggering operation of the first downloading control may include:
in step S701, a dialog interface is displayed in response to a trigger operation on the first download control, where the dialog interface includes a message download amount confirmation control for determining a session message download amount.
Optionally, after the user performs the download triggering operation on the target session message a, the user may perform a triggering operation, such as clicking, on the first download control in the presented download window to generate the dialog interface. The dialog interface can be displayed in a form of pop-up window or floating window, and the dialog interface comprises a message download quantity confirmation control for determining the number of session message downloads.
In step S702, a target message download amount is obtained in response to a trigger operation on the message download amount confirmation control.
Optionally, the user may perform a triggering operation, such as inputting of the download amount, selecting a drop-down box, clicking, and the like, on the message download amount confirmation control, so as to determine the target message download amount.
In an alternative embodiment, the target message download amount N may be preceded by "+" and/or "-" symbols, where "+ N" indicates that N conversation messages including the target conversation message are downloaded backward, and "— N" indicates that N conversation messages including the target conversation message are downloaded forward. Of course, "+ N" and "-N" may exist simultaneously, for example, a combination of "+ N1" and "-N2" representing the downloading of N1 session messages containing the target session message backwards and N2 session messages containing the target session message forwards, where N, N1 and N2 are both positive integers.
In step S703, a corresponding session message is queried from a local message library according to the target message download amount and the message sequence of the target session message.
Optionally, after confirming the target message download amount N and the message sequence of the target session message, the location of the target session message a in the local message library may be determined according to the message sequence of the target session message. Next, scanning N session records in the local database, where the query target session message a is located (including) forward or backward, and if there are N session messages satisfying the condition, marking the N session messages as the session messages obtained by the query. And if the N session messages meeting the conditions do not exist, continuously scanning forward or backward to inquire the session records until the N session messages meeting the conditions are reached or the latest session message position is scanned when the N session messages meeting the conditions are scanned to the updated position.
In the embodiment of the present disclosure, the N session messages satisfying the condition refer to session messages having the same message type, for example, N picture messages, N video messages, and the like. Of course, in other embodiments, the N session messages satisfying the condition may be session messages with different message types and capable of being downloaded, such as N mixed session messages containing pictures and videos, and so on.
In step S704, the queried session messages are downloaded in batch.
Alternatively, after determining the session messages meeting the query condition, the session messages obtained by the query may be downloaded in batch from the local message library. Specifically, the session messages obtained by the query may be downloaded in batch from the local message library in a parallel downloading manner.
In the above embodiment, the target message download amount is determined, and then the session messages of the matching number are searched from the message database and downloaded in batch according to the message sequence of the target session message and the target message download amount. Therefore, the session messages downloaded in batch better meet the actual requirements of the user, the downloaded session messages can be discontinuous session messages, the batch downloading mode of the messages is more flexible, the operation times of batch downloading of the user are further reduced, and meanwhile, the downloading efficiency and the user experience are also improved.
In an alternative embodiment, as shown in fig. 8, the step of downloading the session messages obtained by the query in batches may include:
in step S801, a message sequence of the session message obtained by the query is sequentially spliced to generate a first message sequence character string.
Optionally, after obtaining the queried session messages, the query session messages may be spliced into unique character strings in ascending order or descending order according to the ranking order of the message sequences of the queried session messages, so as to generate the first message sequence character string of seq1-seq2-seq3, for example.
In step S802, the first message sequence character string is processed according to an information digest algorithm to obtain an information digest value to be checked.
Optionally, the obtained first message sequence character string is processed according to a message-digest algorithm (MD 5), so as to obtain a digest value of the information to be verified, that is, an MD5 value to be verified.
In step S803, the to-be-checked message digest value is compared with a file name corresponding to a local message folder, where the file name is obtained by processing a second message sequence character string corresponding to the session message stored in the local message file according to a message digest algorithm, and the second message sequence character string is generated by sequentially concatenating the message sequences of the stored session message.
Optionally, after the digest value of the to-be-checked information corresponding to the session message to be downloaded is obtained, the digest value of the to-be-checked information may be compared with the file name corresponding to the local message folder. Wherein, the local message folder is used for storing historical batch downloaded session messages. The second message sequence character string is generated by splicing the stored message sequences of the session messages downloaded in batch in the historical mode in the same sequence, the second message sequence character string is processed through the message digest algorithm to obtain a second message digest value corresponding to the second message sequence character string, and a local message folder with the second message digest value as a file name is automatically created locally.
In step S804, if the comparison result is consistent, it is determined whether the message number of the session message obtained by the query is the same as the message number of the session message stored in the corresponding local message folder.
In step S805, if the comparison result is inconsistent or the determination result is different, the session messages obtained by the query are downloaded in batch.
In step S806, if the comparison result is consistent and the determination result is the same, the session message is prompted to be downloaded successfully.
Optionally, since the MD5 has one-way uniqueness, if the comparison result between the digest value of the to-be-verified message and the file name corresponding to the local message folder is consistent, that is, the value of the to-be-verified MD5 is the same as a second MD5 value, it indicates that the session message to be downloaded has been downloaded in batch. And then, judging whether the message number of the inquired session message is the same as the message number of the session message stored in the corresponding local message folder, if so, indicating that the historical downloaded local message folder contains all the session messages required to be downloaded, and further prompting that the session messages are downloaded successfully without repeated batch downloading. If the judging result is that the number of the messages is different, the historical downloaded local message folder only contains part of the session messages needing to be downloaded, and further the session messages obtained by query need to be downloaded in batch. If the comparison result between the summary value of the information to be checked and the file name corresponding to the local message folder is consistent, that is, the value of MD5 to be checked is different from the value of a second MD5, it indicates that the session message to be downloaded has not been downloaded in batch, and further the session message obtained by query needs to be downloaded in batch.
In the embodiment, the message sequence of the session message obtained by query is sequentially spliced to generate a first message sequence character string; processing the first message sequence character string according to an information abstract algorithm to obtain an information abstract value to be checked; and comparing whether the summary value of the information to be checked is consistent with the file name corresponding to the local message folder, if the comparison result is consistent, and the message number of the session message stored in the corresponding local message folder is the same as the message number of the session message obtained by inquiring, the step of batch downloading is not required to be repeatedly executed, and the success of downloading the session message is prompted. Therefore, the problem of repeated downloading caused by that a user executes batch downloading on the same target session message for multiple times can be avoided, and the downloading efficiency and the user experience are further improved.
Fig. 9 is a block diagram illustrating a session message processing apparatus according to an example embodiment. Referring to fig. 7, the apparatus is applied to an electronic device, and includes:
a first presentation module 910 configured to perform presentation of a conversation interface, where the conversation interface includes at least one conversation message list including continuous conversation messages of the same message type;
a second presentation module 920, configured to perform a download triggering operation in response to at least one target session message in the session message list, and present a download window; the download window at least comprises a first download control;
a first processing module 930 configured to perform a batch download of at least part of the session message in response to a triggering operation of the first download control.
As an optional implementation, the first download control includes at least a first download sub-control and a second download sub-control; the first download sub-control and the second download sub-control are respectively used for indicating to download the session messages to be downloaded corresponding to different message sequences and the same message sender; the first processing module comprises:
a first processing sub-module configured to perform batch downloading of session messages, which have a message sequence greater than or equal to that of the target session message and are the same as a message sender of the target session message, in the session message list in response to a triggering operation on the first downloading sub-control; alternatively, the first and second electrodes may be,
and the second processing submodule is configured to execute a triggering operation responding to the second downloading sub-control, and batch download the session messages of which the message sequence is less than or equal to that of the target session message and is the same as the message sender of the target session message in the session message list.
As an optional implementation manner, the first download control includes at least a third download sub-control and a fourth download sub-control; the third download sub-control and the fourth download sub-control are respectively used for indicating to download the session messages to be downloaded corresponding to different message sequences; the first processing module comprises:
a third processing sub-module configured to perform batch downloading of the session messages of which the message sequence is greater than or equal to the message sequence of the target session message in the session message list in response to a triggering operation on the third downloading sub-control; alternatively, the first and second electrodes may be,
and the fourth processing submodule is configured to execute batch downloading of the session messages of which the message sequence is less than or equal to that of the target session message in the session message list in response to the triggering operation of the fourth downloading sub-control.
As an optional implementation, the first processing module includes:
a first obtaining unit configured to perform obtaining a target message sequence and a target message sender identifier of the target session message;
the query unit is configured to execute a trigger operation responding to the first download control, query a session message of which the message sequence and the target message sequence meet preset download conditions and/or are matched with the target message sender identification;
and the processing unit is configured to execute the session messages obtained by the batch downloading inquiry.
As an optional implementation, the processing unit includes:
the display subunit is configured to execute a list of messages to be downloaded corresponding to the session messages obtained by the display query;
a removing subunit, configured to perform a removing operation in response to at least one session message in the to-be-downloaded message list, to obtain an updated to-be-downloaded message list;
and the first processing subunit is configured to execute a trigger operation responding to the confirmation of downloading, and download the session messages corresponding to the updated message list to be downloaded in batch.
As an optional implementation, the first processing module includes:
the display unit is configured to execute a triggering operation responding to the first downloading control, and display a conversation interface, wherein the conversation interface comprises a message downloading quantity confirmation control used for determining the downloading quantity of the conversation messages;
a download amount obtaining unit configured to execute a trigger operation in response to the message download amount confirmation control to obtain a target message download amount;
the query unit is configured to execute query of a corresponding session message from a local message library according to the target message download amount and the message sequence of the target session message;
and the processing unit is configured to execute the session messages obtained by the batch downloading inquiry.
As an optional implementation, the processing unit includes:
the splicing subunit is configured to perform sequential splicing processing on the message sequence of the session message obtained by the query to generate a first message sequence character string;
an obtaining subunit, configured to perform processing on the first message sequence character string according to an information digest algorithm, to obtain an information digest value to be verified;
a comparison subunit, configured to perform comparison between the to-be-checked message digest value and a file name corresponding to a local message folder, where the file name is obtained by processing a second message sequence character string corresponding to a session message stored in the local message file according to a message digest algorithm, and the second message sequence character string is generated by sequentially concatenating message sequences of the stored session message;
a judging subunit, configured to execute, if the comparison result is consistent, to judge whether the message number of the session message obtained by the query is the same as the message number of the session message stored in the corresponding local message folder;
the second processing subunit is configured to execute the session messages obtained by batch downloading and inquiring if the comparison result is inconsistent or the judgment result is different;
and the third processing subunit is configured to prompt that the session message is downloaded successfully if the comparison result is consistent and the judgment result is the same.
As an optional implementation manner, the download window further comprises a second download control; the device further comprises:
the second processing module is configured to execute a triggering operation responding to the second downloading control to download the target session message.
As an optional implementation manner, the message type of the session message list includes at least one of a picture message, a video message, a document message, and a compressed packet message.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
FIG. 10 is a block diagram illustrating an electronic device in accordance with an example embodiment. Referring to fig. 10, an electronic device includes a processor; a memory for storing processor-executable instructions; wherein the processor is configured to implement the steps of any of the above-described embodiments of the method for processing a session message when executing the instructions stored in the memory.
The electronic device may be a terminal, a server or a similar computing device, taking the electronic device as an example of a terminal, and fig. 10 is a block diagram of an electronic device for conversation message processing according to an exemplary embodiment, specifically:
the terminal may include RF (Radio Frequency) circuitry 1110, memory 1120 including one or more computer-readable storage media, input unit 1130, display unit 1140, sensors 1150, audio circuitry 1160, WiFi (wireless fidelity) module 1170, processor 1180 including one or more processing cores, and power supply 1190. Those skilled in the art will appreciate that the terminal structure shown in fig. 10 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
RF circuit 1110 may be used for receiving and transmitting signals during a message transmission or communication process, and in particular, for receiving downlink messages from a base station and then processing the received downlink messages by one or more processors 1180; in addition, data relating to uplink is transmitted to the base station. In general, RF circuitry 1110 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, an LNA (Low Noise Amplifier), a duplexer, and the like. In addition, the RF circuit 1110 can also communicate with a network and other terminals through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), email, SMS (Short Messaging Service), and the like.
The memory 1120 may be used to store software programs and modules, and the processor 1180 may execute various functional applications and data processing by operating the software programs and modules stored in the memory 1120. The memory 1120 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, application programs required for functions, and the like; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 1120 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 1120 may also include a memory controller to provide the processor 1180 and the input unit 1130 access to the memory 1120.
The input unit 1130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, input unit 1130 may include a touch-sensitive surface 1131 as well as other input devices 1132. Touch-sensitive surface 1131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 1131 (e.g., operations by a user on or near the touch-sensitive surface 1131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a preset program. Alternatively, touch-sensitive surface 1131 may include two portions, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 1180, and can receive and execute commands sent by the processor 1180. Additionally, touch-sensitive surface 1131 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 1130 may include other input devices 1132 in addition to the touch-sensitive surface 1131. In particular, other input devices 1132 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 1140 may be used to display information input by or provided to the user and various graphical user interfaces of the terminal, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 1140 may include a Display panel 1141, and optionally, the Display panel 1141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, touch-sensitive surface 1131 may cover display panel 1141, and when touch operation is detected on or near touch-sensitive surface 1131, the touch operation is transmitted to processor 1180 to determine the type of touch event, and processor 1180 then provides corresponding visual output on display panel 1141 according to the type of touch event. Touch-sensitive surface 1131 and display panel 1141 may be implemented as two separate components for input and output functions, although touch-sensitive surface 1131 and display panel 1141 may be integrated for input and output functions in some embodiments.
The terminal may also include at least one sensor 1150, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 1141 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 1141 and/or the backlight when the terminal moves to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the terminal is stationary, and can be used for applications of recognizing terminal gestures (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal, detailed description is omitted here.
Audio circuitry 1160, speaker 1161, and microphone 1162 may provide an audio interface between a user and the terminal. The audio circuit 1160 may transmit the electrical signal converted from the received audio data to the speaker 1161, and convert the electrical signal into a sound signal for output by the speaker 1161; on the other hand, the microphone 1162 converts the collected sound signal into an electric signal, receives it by the audio circuit 1160, converts it into audio data, processes it by the audio data output processor 1180, and transmits it to, for example, another terminal via the RF circuit 1110, or outputs it to the memory 1120 for further processing. The audio circuitry 1160 may also include an ear-bud jack to provide communication of peripheral headphones with the terminal.
WiFi belongs to short distance wireless transmission technology, and the terminal can help the user to send and receive e-mail, browse web page and access streaming media, etc. through the WiFi module 1170, which provides wireless broadband internet access for the user. Although fig. 10 shows the WiFi module 1170, it is understood that it does not belong to the essential constitution of the terminal, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 1180 is a control center of the terminal, connects various parts of the entire terminal by using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 1120 and calling data stored in the memory 1120, thereby performing overall monitoring of the terminal. Optionally, processor 1180 may include one or more processing cores; preferably, the processor 1180 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 within processor 1180.
The terminal further includes a power supply 1190 (e.g., a battery) for supplying power to various components, and preferably, the power supply may be logically connected to the processor 1180 through a power management system, so that functions of managing charging, discharging, and power consumption are implemented through the power management system. Power supply 1190 may also include one or more dc or ac power supplies, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, or any other component.
Although not shown, the terminal may further include a camera, a bluetooth module, and the like, which are not described herein again. In this embodiment, the terminal further includes a memory and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors. The one or more programs include instructions for performing the virtual resource procurement methods provided by the method embodiments described above.
In an exemplary embodiment, a computer storage medium is also provided, in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform the steps of the method provided in any one of the above-described embodiments.
In an exemplary embodiment, there is also provided a computer program product comprising computer programs/instructions which, when executed by a processor, implement the method provided in any of the above embodiments. Optionally, the computer program is stored in a computer readable storage medium. The processor of the electronic device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the electronic device executes the method provided in any one of the above embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method for processing a session message, comprising:
displaying a conversation interface, wherein the conversation interface comprises at least one conversation message list containing continuous conversation messages with the same message type;
responding to the downloading triggering operation of at least one target conversation message in the conversation message list, and displaying a downloading window; the download window at least comprises a first download control used for batch downloading;
and responding to the triggering operation of the first downloading control, and downloading at least part of the session messages in batch.
2. The method of claim 1, wherein the first download control comprises at least a first download sub-control and a second download sub-control; the first download sub-control and the second download sub-control are respectively used for indicating to download the session messages to be downloaded corresponding to different message sequences and the same message sender;
the step of downloading at least part of the session messages in batch in response to the triggering operation of the first downloading control comprises the following steps:
responding to the triggering operation of the first downloading sub-control, and downloading the session messages which have the message sequence which is greater than or equal to the message sequence of the target session message and are the same as the message sender of the target session message in a batch mode in the session message list; alternatively, the first and second electrodes may be,
and responding to the triggering operation of the second downloading sub-control, and downloading the session messages of which the message sequence is less than or equal to that of the target session message and is the same as the message sender of the target session message in a batch manner.
3. The session message processing method according to claim 1 or 2, wherein the first download control includes at least a third download sub-control and a fourth download sub-control; the third download sub-control and the fourth download sub-control are respectively used for indicating to download the session messages to be downloaded corresponding to different message sequences;
the step of downloading at least part of the session messages in batch in response to the triggering operation of the first downloading control comprises the following steps:
responding to the triggering operation of the third downloading sub-control, and downloading the session messages of which the message sequence is greater than or equal to that of the target session message in the session message list in batch; alternatively, the first and second electrodes may be,
and responding to the triggering operation of the fourth downloading sub-control, and downloading the session messages of which the message sequence is less than or equal to that of the target session message in the session message list in batch.
4. The method according to claim 1, wherein the step of downloading at least part of the session messages in batches in response to the triggering operation of the first downloading control comprises:
acquiring a target message sequence and a target message sender identification of the target session message;
responding to the triggering operation of the first downloading control, and inquiring the session message of which the message sequence and the target message sequence meet the preset downloading condition and/or are matched with the target message sender identification;
downloading the inquired session messages in batch.
5. The method according to claim 1, wherein the step of downloading at least part of the session messages in batches in response to the triggering operation of the first downloading control comprises:
responding to the triggering operation of the first downloading control, and displaying a conversation interface, wherein the conversation interface comprises a message downloading quantity confirmation control used for determining the downloading quantity of the conversation messages;
responding to the triggering operation of the message download quantity confirmation control, and acquiring target message download quantity;
inquiring corresponding session messages from a local message library according to the target message downloading amount and the message sequence of the target session messages;
downloading the inquired session messages in batch.
6. The method according to claim 4 or 5, wherein the step of downloading the session messages obtained by the query in batches comprises:
sequentially splicing the message sequences of the session messages obtained by the query to generate a first message sequence character string;
processing the first message sequence character string according to an information abstract algorithm to obtain an information abstract value to be checked;
comparing the summary value of the information to be checked with a file name corresponding to a local message folder, wherein the file name is obtained by processing a second message sequence character string corresponding to the session message stored in the local message file according to an information summary algorithm, and the second message sequence character string is generated by sequentially splicing the stored message sequences of the session message;
if the comparison result is consistent, judging whether the message number of the session message obtained by the query is the same as the message number of the session message stored in the corresponding local message folder;
if the comparison result is inconsistent or the judgment result is different, downloading the session messages obtained by query in batches;
and if the comparison result is consistent and the judgment result is the same, prompting that the session message is downloaded successfully.
7. A session message processing apparatus, comprising:
the first display module is configured to execute display of a session interface, wherein the session interface comprises at least one session message list containing continuous session messages with the same message type;
a second presentation module configured to perform a download trigger operation in response to at least one target session message in the session message list, and present a download window; the download window at least comprises a first download control;
a first processing module configured to execute a batch download of at least a portion of the session messages in response to a triggering operation of the first download control.
8. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the conversational message processing method of any of claims 1-6.
9. A computer-readable storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform the conversation message processing method of any one of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program realizes the method of conversational message processing of any of claims 1 to 6 when executed by a processor.
CN202110467365.5A 2021-04-28 2021-04-28 Session message processing method, device, equipment and storage medium Active CN113268179B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110467365.5A CN113268179B (en) 2021-04-28 2021-04-28 Session message processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110467365.5A CN113268179B (en) 2021-04-28 2021-04-28 Session message processing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113268179A true CN113268179A (en) 2021-08-17
CN113268179B CN113268179B (en) 2023-06-30

Family

ID=77229650

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110467365.5A Active CN113268179B (en) 2021-04-28 2021-04-28 Session message processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113268179B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220394003A1 (en) * 2021-06-06 2022-12-08 Apple Inc. User interfaces for messaging conversations

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100048283A1 (en) * 2006-11-10 2010-02-25 Wms Gaming Inc. Parameter adjustment in a wagering game
CN104486371A (en) * 2014-11-20 2015-04-01 北京安奇智联科技有限公司 Equipment and method for downloading file on batch
CN105227444A (en) * 2015-10-23 2016-01-06 阿里巴巴集团控股有限公司 Based on message informing method and the device of instant messaging
CN107395672A (en) * 2017-06-12 2017-11-24 维沃移动通信有限公司 A kind of picture method for down loading and mobile terminal
CN110166619A (en) * 2018-02-13 2019-08-23 阿里巴巴集团控股有限公司 The method for down loading and client of picture
CN112134784A (en) * 2020-09-03 2020-12-25 北京达佳互联信息技术有限公司 Message display method, device, terminal, server, system and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100048283A1 (en) * 2006-11-10 2010-02-25 Wms Gaming Inc. Parameter adjustment in a wagering game
CN104486371A (en) * 2014-11-20 2015-04-01 北京安奇智联科技有限公司 Equipment and method for downloading file on batch
CN105227444A (en) * 2015-10-23 2016-01-06 阿里巴巴集团控股有限公司 Based on message informing method and the device of instant messaging
CN107395672A (en) * 2017-06-12 2017-11-24 维沃移动通信有限公司 A kind of picture method for down loading and mobile terminal
CN110166619A (en) * 2018-02-13 2019-08-23 阿里巴巴集团控股有限公司 The method for down loading and client of picture
CN112134784A (en) * 2020-09-03 2020-12-25 北京达佳互联信息技术有限公司 Message display method, device, terminal, server, system and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220394003A1 (en) * 2021-06-06 2022-12-08 Apple Inc. User interfaces for messaging conversations
US11671387B2 (en) * 2021-06-06 2023-06-06 Apple Inc. User interfaces for messaging conversations
US11888796B2 (en) 2021-06-06 2024-01-30 Apple Inc. User interfaces for messaging conversations

Also Published As

Publication number Publication date
CN113268179B (en) 2023-06-30

Similar Documents

Publication Publication Date Title
CN110582017B (en) Video playing method, device, terminal and storage medium
CN106775637B (en) Page display method and device for application program
US20180308182A1 (en) Information processing method and apparatus
CN109309696B (en) Folder transmission method, sender, receiver, and storage medium
CN108932159B (en) Task management method and device
CN108984064B (en) Split screen display method and device, storage medium and electronic equipment
CN106293738B (en) Expression image updating method and device
CN108958606B (en) Split screen display method and device, storage medium and electronic equipment
CN109739402B (en) Fast application processing method and terminal equipment
CN112162802A (en) Message reply method and device and electronic equipment
JP6915074B2 (en) Message notification method and terminal
CN112749074A (en) Test case recommendation method and device
CN105095161B (en) Method and device for displaying rich text information
JP2021532492A (en) Character input method and terminal
CN113268179B (en) Session message processing method, device, equipment and storage medium
CN106339402B (en) Method, device and system for pushing recommended content
CN110888572A (en) Message display method and terminal equipment
EP4351117A1 (en) Information display method and apparatus, and electronic device
CN106209601B (en) State update message pushing method and device
CN115017406A (en) Live broadcast picture display method and device, electronic equipment and storage medium
US11327845B2 (en) Image synchronization method and device, and server
CN104954231B (en) Method and device for sending and displaying recommendation information
CN110855550B (en) Communication method, electronic device, and storage medium
CN113220954A (en) Information display method and device and projection equipment
CN108446345B (en) Data searching method and mobile terminal

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