CN113268179B - Session message processing method, device, equipment and storage medium - Google Patents
Session message processing method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN113268179B CN113268179B CN202110467365.5A CN202110467365A CN113268179B CN 113268179 B CN113268179 B CN 113268179B CN 202110467365 A CN202110467365 A CN 202110467365A CN 113268179 B CN113268179 B CN 113268179B
- Authority
- CN
- China
- Prior art keywords
- message
- session
- download
- downloading
- 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.)
- Active
Links
- 238000003672 processing method Methods 0.000 title claims description 21
- 238000012545 processing Methods 0.000 claims abstract description 93
- 230000004044 response Effects 0.000 claims abstract description 60
- 238000000034 method Methods 0.000 claims abstract description 37
- 238000012790 confirmation Methods 0.000 claims description 14
- 230000008569 process Effects 0.000 abstract description 11
- 238000010586 diagram Methods 0.000 description 12
- 238000004891 communication Methods 0.000 description 10
- 238000004590 computer program Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 8
- 238000001514 detection method Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000001960 triggered effect Effects 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 238000007667 floating Methods 0.000 description 2
- 238000009432 framing Methods 0.000 description 2
- 230000005484 gravity Effects 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000001174 ascending effect Effects 0.000 description 1
- 230000003190 augmentative effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000012905 input function Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction 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/04812—Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction 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/04817—Interaction 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
- H04L51/046—Interoperability with other network applications or services
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
- Computer And Data Communications (AREA)
Abstract
The present disclosure relates to a method, an apparatus, a device and a storage medium for processing a session message, wherein the method includes displaying a session interface, and the session interface includes at least one session message list containing continuous session messages with the same message type; responding to the downloading triggering operation of at least one item mark session message in the session message list, and displaying a downloading window; and in response to a triggering operation of a first downloading control in the downloading window, downloading at least part of the session messages in batches. Therefore, the session messages with a large number are rapidly downloaded, operations such as clicking, downloading and storing are not required to be frequently switched by users, the downloading operation process is simplified, and the information sharing efficiency and the user experience among users are improved.
Description
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 session messages.
Background
Instant messaging (IM, instant Messaging) is a real-time communication service that allows users to set up a chat room over a network. In instant messaging products, information interaction is allowed to be realized between users by transferring conversation messages such as words, pictures, files, videos, voices and the like, and any party user is supported to download the clicked conversation messages.
However, when the number of session messages to be downloaded is large, operations such as clicking, downloading, saving and the like are often switched frequently, so that the operation process is complicated, and the information sharing efficiency between users is greatly affected.
Disclosure of Invention
The disclosure provides a session message processing method, a device, equipment and a storage medium, so as to at least solve at least one problem of complex downloading operation process, low information sharing efficiency and the like in the related technology. The technical scheme of the present disclosure is as follows:
according to a first aspect of an embodiment of the present disclosure, there is provided a session message processing method, including:
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 a downloading triggering operation of at least one item mark session message in the session message list, and displaying a downloading window; the downloading window at least comprises a first downloading control used for batch downloading;
and in response to the triggering operation of the first downloading control, downloading at least part of the session messages in batches.
As an optional implementation manner, 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 session messages to be downloaded, which are corresponding to different message sequences and the same message sender;
The step of downloading at least part of session messages in batches in response to the triggering operation of the first downloading control comprises the following steps:
responding to the triggering operation of the first download sub-control, and downloading the session messages of which the message sequence is more than or equal to the message sequence of the target session message and the same as the message sender of the target session message in batches; or,
and responding to the triggering operation of the second download sub-control, and downloading the session messages of which the message sequence is smaller than or equal to that of the target session message and the same as that of the message sender of the target session message in batches.
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 session messages to be downloaded corresponding to different message sequences;
the step of downloading at least part of session messages in batches in response to the triggering operation of the first downloading control comprises the following steps:
responding to the triggering operation of the third download sub-control, and downloading 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 batches; or,
And responding to the triggering operation of the fourth download sub-control, and downloading the session messages of which the message sequence in the session message list is less than or equal to the message sequence of the target session message in batches.
As an optional implementation manner, the step of downloading at least part of the session messages in batches in response to the triggering operation of the first downloading control includes:
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 a 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 identifier;
and downloading the session messages obtained by inquiry in batches.
As an optional implementation manner, the step of downloading the session message obtained by the query in batches includes:
displaying a message list to be downloaded corresponding to the session message obtained by inquiry;
responding to the rejection operation of at least one session message in the message list to be downloaded, and obtaining an updated message list to be downloaded;
and responding to the triggering operation of confirming the downloading, and downloading the session messages corresponding to the updated message list to be downloaded in batches.
As an optional implementation manner, the step of downloading at least part of the session messages in batches in response to the triggering operation of the first downloading control includes:
responsive to a triggering operation of the first download control, displaying a conversation interface including a message download amount confirmation control for determining a number of conversation message downloads;
responding to the triggering operation of the message downloading amount confirmation control to acquire the downloading amount of the target message;
inquiring corresponding session messages from a local message library according to the downloading amount of the target messages and the message sequence of the target session messages;
and downloading the session messages obtained by inquiry in batches.
As an optional implementation manner, the step of downloading the session message obtained by the query in batches includes:
sequentially splicing the message sequences of the session messages obtained by the inquiry to generate a first message sequence character string;
processing the first message sequence character string according to a message digest algorithm to obtain a message digest value to be checked;
comparing the information abstract value 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 a session message stored in the local message file according to an information abstract 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 messages obtained by the inquiry is the same as the message number of the session messages stored in the corresponding local message folder;
if the comparison results are inconsistent or the judgment results are different, downloading the session messages obtained by inquiry in batches;
if the comparison results are consistent and the judgment results are the same, the successful downloading of the session message is prompted.
As an alternative embodiment, the download window further comprises a second download control; the method further comprises the steps of:
and responding to the triggering operation of the second downloading control, and downloading 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 package message.
According to a second aspect of the embodiments of the present disclosure, there is provided a session message processing apparatus, including:
a first presentation module configured to execute a presentation session interface, wherein the session interface comprises at least one session message list containing continuous session messages with the same message type;
a second display module configured to perform a download window in response to a download triggering operation for at least one target session message in the session message list; the download window comprises at least a first download control;
And the first processing module is configured to execute batch downloading of at least part of the session messages in response to the triggering operation of the first downloading control.
As an optional implementation manner, 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 session messages to be downloaded, which are corresponding to different message sequences and the same message sender; the first processing module includes:
the first processing submodule is configured to execute the batch downloading of session messages, of which the message sequence 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, in the session message list in response to the triggering operation of the first download submodule; or,
and the second processing sub-module is configured to execute the batch downloading of the session messages, of which the message sequence in the session message list 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, in response to the triggering operation of the second downloading sub-control.
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 session messages to be downloaded corresponding to different message sequences; the first processing module includes:
A third processing sub-module configured to execute batch downloading of 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 trigger operation on the third download sub-control; or,
and the fourth processing sub-module is configured to execute the batch downloading of the session messages of which the message sequence in the session message list is less than or equal to the message sequence of the target session message in response to the triggering operation of the fourth downloading sub-control.
As an alternative embodiment, the first processing module includes:
a first acquisition unit configured to perform acquisition of a target message sequence and a target message sender identification of the target session message;
a query unit configured to execute a session message in which a query message sequence and the target message sequence meet a preset download condition and/or match the target message sender identifier in response to a trigger operation on the first download control;
and the processing unit is configured to execute session messages obtained by batch downloading inquiry.
As an alternative embodiment, the processing unit includes:
the display subunit is configured to execute a message list to be downloaded corresponding to the session message obtained by the display query;
A rejection subunit configured to perform a rejection operation in response to at least one session message in the message list to be downloaded, to obtain an updated message list to be downloaded;
and the first processing subunit is configured to execute the triggering operation of responding to the confirmed downloading and download the session messages corresponding to the updated message list to be downloaded in batches.
As an alternative embodiment, the first processing module includes:
a presentation unit configured to perform a presentation of a conversation interface including a message download amount confirmation control for determining a number of conversation message downloads in response to a trigger operation to the first download control;
a download amount acquisition unit configured to perform a trigger operation in response to the message download amount confirmation control, to acquire a target message download amount;
a query unit configured to perform a query for 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 session messages obtained by batch downloading inquiry.
As an alternative embodiment, 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 string according to a message digest algorithm to obtain a message digest value to be checked;
a comparing subunit configured to perform comparison of the to-be-checked information digest value with a file name corresponding to a local message folder, the file name being obtained by processing a second message sequence string corresponding to a session message stored in the local message file according to an information digest algorithm, the second message sequence string being generated by sequentially splicing message sequences of the stored session message;
a judging subunit configured to execute if the comparison result is consistent, and judge whether the number of the session messages obtained by the query is the same as the number of the session messages stored in the corresponding local message folder;
the second processing subunit is configured to execute batch downloading of session messages obtained by inquiry if the comparison results are inconsistent or the judgment results are different;
And the third processing subunit is configured to execute the step of prompting successful downloading of the session message if the comparison results are consistent and the judgment results are the same.
As an alternative embodiment, the download window further comprises a second download control; the apparatus further comprises:
the second processing module is configured to perform downloading of the target session message in response to a triggering operation on the second download 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 package message.
According to a third aspect of embodiments of the present disclosure, there is provided a computer readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform a session message processing method as described in any one of the above embodiments.
According to a fourth aspect of embodiments of the present disclosure, there is provided 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 session message processing method according to any of the embodiments described above.
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 session message processing method provided in any of the embodiments described above.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
the embodiment of the disclosure displays a session interface, wherein the session interface comprises at least one session message list of continuous session messages with the same message type; responding to a downloading triggering operation of at least one item mark session message in the session message list, and displaying a downloading window; the downloading window at least comprises a first downloading control used for batch downloading; and in response to the triggering operation of the first downloading control, downloading at least part of the session messages in batches. Therefore, the method and the device can realize rapid downloading of a large number of session messages, do not need frequent operations such as clicking, downloading and storing, simplify the downloading operation process, do not need sharing users to package and share a large number of session messages, and improve the information sharing efficiency and the user experience among users.
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 do not constitute an undue limitation on the disclosure.
Fig. 1 is an architecture diagram of a system for applying a session message processing method according to an exemplary embodiment.
Fig. 2 is a flow chart illustrating a method of session message processing according to an exemplary embodiment.
Fig. 3 is a flow chart illustrating batch download steps in a session message processing method according to an exemplary embodiment.
Fig. 4 is a flow chart illustrating batch download steps in another session message processing method according to an exemplary embodiment.
Fig. 5 is an interface diagram illustrating a session message handling process according to an example embodiment.
Fig. 6 is an interface diagram illustrating another session message handling process according to an example embodiment.
Fig. 7 is a flowchart illustrating batch download steps in another session message processing method, according to an example embodiment.
Fig. 8 is a flowchart illustrating steps of a batch download query derived session message in a session message processing method according to an exemplary embodiment.
Fig. 9 is a block diagram of a session message processing apparatus according to an example embodiment.
Fig. 10 is a block diagram of an electronic device, according to an example embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of 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 foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
Fig. 1 is an architecture diagram of a system for applying a session message processing method, which may include a terminal 10, a terminal 20, and a server 30, according to an exemplary embodiment, referring to fig. 1.
The terminals 10 and 20 may be, but are not limited to, one or more of a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart wearable device, a digital assistant, an augmented reality device, a virtual reality device, or an application or applet running in the physical device. The terminals 10 and 20 may be loaded with software capable of implementing an instant messaging function, 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 of the instant communication for the terminal 10 and the terminal 20. By way of example only, the server 30 may be, but is not limited to, a stand-alone server, a server cluster or a distributed system of multiple physical servers, or a cloud server providing one or more of cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, intermediary services, domain name services, security services, and basic cloud computing services such as 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, where the session message processing apparatus may be integrated in a terminal device in a hardware form or in a software form, may be executed by a terminal separately, or may be executed by the terminal and a server cooperatively.
Fig. 2 is a flow chart illustrating a method of session message processing according to 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 a terminal in the above implementation environment schematic diagram to describe the method, and includes the following steps.
In step S201, a session interface is presented, where the session interface includes at least one session message list containing continuous session messages with the same message type.
The session interface may refer to an interface formed by message communication between users and including a session message set. The session may be a chat session based on software having instant messaging functionality including, but not limited to, instant messaging software, short video software, shopping software, video software, gaming software, and the like. The number of participants in a conversation may be divided into a general conversation and a group conversation, etc.
The session interface comprises a session message set, wherein the session message set comprises a plurality of continuous session message subsets with the same message type, and each session message subset forms a session 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 a picture message, a video message, a document message and a compressed package message by way of example only. The picture message may include, but is not limited to, a still picture, a moving picture, an expression picture, etc. The document message may include, but is not limited to, a WORD document, a PDF document, an EXCEL document, a CAD document, and the like. Of course, in some cases, text sessions, voice sessions, etc. may also be included in the session message list. A subset of session messages that are consecutive and of the same message type refers to a subset of session messages that are of the same message type and that are consecutively transmitted or consecutively received without interruption of the session messages.
For example, if the user a receives text message 1, text message 2, picture message 1, text message 3, text message 4, picture message 2, picture message 3, picture message 4, voice message 1, picture message 5, and picture message 6 in sequence, { text message 1, text message 2} is a subset of session messages with continuous session messages and the same message type, that is, a session message list a, and { picture message 2, picture message 3, and picture message 4} is another subset of session messages with continuous session messages and the same message type, that is, a session message list B; { picture message 5, picture message 6} is a further subset of session messages that are consecutive and of the same message type, i.e. session message list c.
It should be understood that the session message set herein includes the currently presented session messages as well as hidden session messages that are displayed by sliding up and down, etc.
In step S202, a download window is displayed in response to a download triggering operation for at least one item of target session message in the session message list; the download window includes at least a first download control for bulk download.
The target session message may be a session message that the user wants to download, or may be multiple session messages of the same or different continuous types, or may be multiple session messages of a gap. The download triggering operation includes, but is not limited to, right click, long press, double click, box selection, multi-finger touch, etc., or other gesture operations.
The download window may be presented in the form of, but not limited to, a mask, a floating window, a popup window, etc. The first downloading controls included in the downloading window may be controls for downloading session messages meeting preset downloading conditions in batches, the first downloading controls may include, but are not limited to, a click control and a box control, the number of the first downloading controls may be at least one, and each first downloading control corresponds to a different preset downloading condition.
The preset download conditions may include, but are not limited to, downloading the first N or last N session messages (N is a positive integer) including the target session message in the session message list where the target session message is located, 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 which the size of the session message in the session message list where the target session message is located is greater than or equal to (or less than or equal to) the preset memory size, downloading session messages in the session message list where the target session message is located, and so on.
In step S203, at least part of the session message is downloaded in bulk in response to a triggering operation of the first download control.
In practical application, the user can slide up and down through the session messages in the session interface, then perform download triggering operations such as long press and the like on the target session messages interested in the session message list, and display a download window on the session interface. The download window includes at least one first download control for bulk download. Then, the user can download at least part of session messages meeting the preset downloading conditions in batches according to the preset downloading conditions corresponding to the target first downloading control of the triggering operation by triggering the triggering operation such as clicking and the like on the target first downloading control.
In an alternative embodiment, the download window may also include a second download control. The second download control is for downloading the target session message. At this time, the method further includes: and responding to the triggering operation of the second downloading control, and downloading the target session message. The selected target session message may be one or more, and may be implemented by a continuous click, swipe gesture or pattern gesture, which is not specifically limited in this disclosure.
The embodiment of the disclosure displays 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 a downloading triggering operation of at least one item mark session message in the session message list, and displaying a downloading window; the downloading window at least comprises a first downloading control used for batch downloading; and in response to the triggering operation of the first downloading control, downloading at least part of the session messages in batches. Therefore, the method and the device can realize rapid downloading of a large number of session messages, do not need frequent operations such as clicking, downloading and storing, simplify the downloading operation process, do not need sharing users to package and share a large number of session messages, and improve the information sharing efficiency and the user experience among users.
In an alternative embodiment, as shown in fig. 3, the step of downloading at least part of the session message in bulk in response to the triggering operation of the first download control may include:
in step S301, a target message sequence and a target message sender identifier of the target session message are acquired.
In general, a session message in instant messaging software is stored and transmitted in the form of binary information, and a message structure of the session message may be represented as follows:
with the above-described message structure, the terminal can know which user (user_id) sent what type (content_type) of message at what time (time_ms), and what the specific content of the message is (content). Where a message id is a message identification that embodies the message's uniqueness, e.g., the message identification may be represented by a sequence number, e.g., the message id may be represented by an incremental sequence. Each session message may be assigned a corresponding message id, i.e. a corresponding sequence of messages, according to the order of message time stamps. For example, if the message sequence of a certain session message M is n (i.e., the message id is n), the message sequences of the following three consecutive messages of the session message M are n+1, n+2, and n+3 in sequence, and the message sequences of the preceding three consecutive messages of the session message a are n=3, n-2, and n-1 in sequence.
Wherein the target message sequence of the target session message is used to reflect the message identity of the target session message, which may be represented by an incremented message id in the message structure. The sender of the target message identifies the sender that is used to reflect the target message, which can be represented by the 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 that the message sequence and the target message sequence meet a preset download condition and/or match the target message sender identifier.
Alternatively, the session messages of the instant messaging 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 identifier from the message database.
Exemplary, the preset download conditions may include, but are not limited to, downloading a first N or last N session messages (N is a positive integer) in a session message list where a target session message is located, 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 which the size of the session message in the session message list where the target session message is located is greater than or equal to (or less than or equal to) a preset memory size, downloading session messages 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 the same session message as the target message sender identifier, that is, the session message of the same message sender. Of course, the session message matched with the target message sender identifier may also include a session message associated with the target message sender identifier, for example, an associated user or a binding user associated with the target message sender, for example, the current session subject is an operation campaign, and the user M, the user N, and the user P are main people of the campaign, and if the target message sender identifier is the user M, the session messages of the same message type continuously sent by the user M and the associated user (for example, the user N and the user P) may be acquired at the same time.
In step S303, the session messages obtained by the inquiry are downloaded in batches.
Alternatively, the terminal may download the session message obtained by the query in batch from the session message list according to the message id of the session message obtained by the query. Specifically, the session messages obtained by the query may be downloaded in batches from the session message list in a parallel downloading manner.
According to the embodiment, the target message sequence and the target message sender identifier of the target session message are obtained, the first downloading control is triggered, the session messages of which the message sequence and the target message sequence meet the preset downloading conditions and/or are matched with the target message sender identifier are queried according to the target message sequence and the target message sender identifier, so that batch downloading of the queried session messages is realized, batch selection of the session messages to be downloaded is realized directly through triggering the first downloading control, the session messages which are needed to be downloaded are selected back and forth by a user are reduced, the user downloading operation process is further reduced, the downloading efficiency is improved, the content of the downloaded session messages is diversified, flexible downloading of the session messages is realized, and meanwhile, the user experience is further improved.
In an optional embodiment, the step of downloading the session messages queried in the session message list in batches may include:
in step S3031, a list of messages to be downloaded corresponding to the session message obtained by the query is displayed.
Optionally, after the terminal queries that the message sequence and the target message sequence meet the preset downloading condition and/or the session message matched with the target message sender identifier, the terminal may not directly download the session message obtained by the query in batch, but display a list of messages to be downloaded corresponding to the session message obtained by the query. The to-be-downloaded message list can be displayed in a downloading window or a new window, and each piece of queried session message information is displayed in the to-be-downloaded message list, wherein the session message information can comprise a thumbnail of a session message, a message sender, a sending time, a message size and the like, so that a user can quickly know the content information of each session message in the to-be-downloaded message list.
In step S3032, an updated message list to be downloaded is obtained in response to the rejection operation of at least one session message in the message list to be downloaded.
Optionally, the window or the interface for displaying the to-be-downloaded message list by the terminal may include a rejection control, and the user may select at least one session message in the to-be-downloaded message list to be rejected and trigger the rejection control to implement rejection operation on the selected session message, so as to obtain an updated to-be-downloaded message list after rejection.
Of course, in order to facilitate quick selection of the session message to be removed, a sorting control (for example, sorting according to time, sorting according to message size, etc.) or a screening control may be set in the window or interface for displaying the list of the messages to be downloaded, so as to further improve the efficiency of the removing operation.
In step S3033, in response to the trigger operation for confirming the downloading, the session messages corresponding to the updated to-be-downloaded message list are downloaded in batches.
Optionally, the terminal responds to a triggering operation such as clicking to confirm downloading, and obtains a message id set of each session message in the updated message list to be downloaded, and then downloads each session message corresponding to the updated message list to be downloaded in batches according to the message id set.
According to the embodiment, the list of the messages to be downloaded corresponding to the session messages obtained through the display query is provided; 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 batches, so that the user can be further assisted in selecting the session messages which really want to be downloaded, the intermittent downloading of continuous session messages can be realized, the user return value session interface is prevented from reselecting the session messages to be downloaded, the downloading efficiency of the session messages is improved, and the information sharing efficiency among 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 to download different session messages in batches. In this embodiment, the first download sub-control and the second download sub-control may be used to instruct to download session messages to be downloaded, where the session messages correspond to different message sequences and to the same message sender.
In the case that the first download control includes at least a first download sub-control and a second download sub-control, the step of downloading at least part of the session messages in bulk in response to a triggering operation on the first download control may include:
in step S401, in response to the triggering operation of the first download sub-control, batch downloading session messages, where the message sequence in 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; or,
in step S402, in response to the triggering operation of the second download sub-control, session messages, which have a message sequence less 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 the session message list are downloaded in batches.
The triggering operation includes, but is not limited to, clicking, selecting, framing, etc. The first download sub-control and the second download control are both used for downloading the same session message of the message sender in the session message list, and the difference is that: the first downloading sub-control is used for downloading the message queue of the target session message with the message sequence more than or equal to that in the session message list, and the second downloading sub-control is used for downloading the message queue of the target session message with the message sequence less than or equal to that in the session message list, namely the arrangement directions of the objects to be downloaded of the first downloading sub-control and the second downloading sub-control in the session message list are opposite.
For ease of understanding, an interface diagram of a session message download process is shown in fig. 5, and described with reference to the accompanying drawings using a target session message as an example of a picture message. As shown in fig. 5, in the group session, if the user a continuously sends 9 picture messages (denoted as M1 to M9), the 9 message structures are respectively corresponding to the 9 picture messages, each picture message has a unique message id, the sender is userA (user a), and the message types are 2 (i.e., picture message types), so that 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 be popped up, where a first download sub-control k1 and a second download sub-control k2 may be displayed, where the first download sub-control specifically is: downloading all the pictures of the sending user, which are continuous from the picture position, wherein the second download sub-control is specifically: downloading all pictures of the sending user which are continuous from the picture position. Then, the user B can download all the continuous pictures before the start of the M3 picture message by selecting the first download sub-control, namely downloading the M1-M3 pictures in batches; the user B can also download all pictures which are continuous after the start of the M3 picture message by selecting the second download sub-control, namely, download the M3-M9 pictures in batches. And then, saving the pictures which are downloaded in batches in a local area so as to facilitate the user to check at any time.
In the above embodiment, the first download control includes 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 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 downloading aiming at different downloading intents of the unified message sender is realized, and the downloading efficiency and the flexibility of the session messages 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 respectively indicating to download different session messages in batches. In this embodiment, the third download sub-control and the fourth download sub-control may be used to instruct downloading of different message sequences, respectively, without distinguishing the session messages to be downloaded corresponding to the message sender.
In an alternative embodiment, continuing to refer to 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 step of downloading, in batch, at least part of the session messages in the session message list in response to a triggering operation on the first download control includes:
In step S403, in response to the triggering operation of the third download sub-control, batch 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; or,
in step S404, in response to the triggering operation of the fourth download sub-control, batch downloading session messages with a message sequence less than or equal to the message sequence of the target session message in the session message list.
The triggering operation includes, but is not limited to, clicking, selecting, framing, etc. The third downloading sub-control and the fourth downloading control are used for downloading continuous session messages which are not distinguished from the message sender in the session message list, and the difference is that: the third downloading sub-control is used for downloading the message queue of the target session message with the message sequence more than or equal to that in the session message list, and the fourth downloading sub-control is used for downloading the message queue of the target session message with the message sequence less than or equal to that in the session message list, namely the arrangement directions of the objects to be downloaded of the third downloading sub-control and the fourth downloading sub-control in the session message list are opposite.
For ease of understanding, an interface diagram of a session message download process is shown in fig. 6, in conjunction with the accompanying drawings and described by taking a target session message as an example of a picture message. As shown in fig. 6, in the group session, the user a continuously transmits 9 picture messages (denoted as M1 to M9, where M1 to M5 are hidden) corresponding to the 9 message structures, respectively, each picture message has a unique message id, the sender is userA (user a), and the message types are all 2 (i.e., picture message types); simultaneously, 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 userB (user B), and the message types are 2 (namely, the picture message types). Furthermore, the picture message M10 sent by the user B is immediately following the picture message M9, i.e. the message sequence of the picture messages M1 to M9 and the picture messages M10 to M14 is incremented. Each user in the group session will receive 14 independent picture messages pushed by the server. If the user C in the group session clicks on the 6 th picture (denoted as M6) in the 14 pictures, a download window may be popped up, where a third download sub-control and a fourth download sub-control may be displayed in the download window, where the third download sub-control is specifically: downloading all pictures which are continuous from the picture position, wherein the fourth download sub-control comprises the following specific steps: all pictures that are consecutive before starting from the picture position are downloaded. Then, the user C can download all the continuous pictures before the start of the M6 picture message by selecting a third download sub-control, namely downloading the M1-M6 pictures in batches; the user C may also download all the pictures that are continuous after the start of the M6 picture message, that is, download M6 to M14 pictures in batch, by selecting the fourth download sub-control. And then, saving the pictures which are downloaded in batches in a local area so as to facilitate 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 independently perform message selection and batch download on the four download sub-controls, and may also check at least 2 controls in 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 a third download sub-control and a 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 message downloading with different downloading intents is realized, and the downloading efficiency and the 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 bulk in response to the triggering operation of the first download control may include:
in step S701, in response to a triggering operation on the first download control, a dialogue interface is presented, the dialogue interface including a message download amount confirmation control for determining a number of session message downloads.
Optionally, after performing 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 dialogue interface can be displayed in a popup window or a floating window, and the dialogue interface comprises a message download amount confirmation control for determining the number of session message downloads.
In step S702, in response to the triggering operation of the message download amount confirmation control, a target message download amount is acquired.
Optionally, the user may perform a triggering operation, such as inputting a download amount, selecting a drop down box, clicking, etc., on the message download amount confirmation control 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 session messages including the target session message are downloaded backward and "—n" indicates that N session messages including the target session message are downloaded forward. Of course, "+N" and "-N" may coexist, and an exemplary combination of "+N1" and "-N2" represents downloading N1 session messages including the target session message backward and N2 session messages including the target session message forward.
In step S703, according to the target message downloading amount and the message sequence of the target session message, the corresponding session message is queried from the local message library.
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. And then, scanning N forward or backward session records of the position (including) where the query target session message A is located in a local database, and marking the N session messages as the session messages obtained by query if the N session messages meeting the condition exist. If there are no N session messages meeting the condition, the query session record is scanned forwards or backwards continuously until N session messages meeting the condition are reached, or the latest session message position is scanned when the user scans to the updated position.
In the embodiment of the present disclosure, the N session messages satisfying the condition herein refer to session messages with the same message type, for example, N picture messages, N video messages, and so on. Of course, in other embodiments, the N session messages meeting the condition may be session messages of 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 session messages obtained by the inquiry are downloaded in batches.
Alternatively, after determining the session message meeting the query condition, the session message obtained by the query may be downloaded in batch from the local message library. Specifically, the session messages obtained by the query can be downloaded in batches from the local message library in a parallel downloading manner.
In the above embodiment, the downloading amount of the target message is determined first, and then the matched number of session messages are queried from the message database and downloaded in batches according to the message sequence of the target session message and the downloading amount of the target message. Therefore, the batch downloading session messages more meet the actual demands of users, the downloaded session messages can be discontinuous session messages, the batch downloading mode of the messages is more flexible, the batch downloading operation times of the users are further reduced, and the downloading efficiency and the user experience are improved.
In an alternative embodiment, as shown in fig. 8, the step of downloading the session message 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, so as to generate a first message sequence string.
Alternatively, after the queried session message is obtained, the unique character strings may be spliced in ascending or descending order according to the arrangement order of the message sequences of the queried session messages, so as to generate the first message sequence character string of seq1-seq2-seq 3.
In step S802, the first message sequence string is processed according to a message digest algorithm to obtain a message digest value to be checked.
Optionally, the first message sequence string obtained above is processed according to a message-digest algorithm (md5) to obtain a message digest value to be checked, i.e. an MD5 value to be checked.
In step S803, the file name corresponding to the local message folder and the information abstract value to be checked is compared, where the file name is obtained by processing, according to an information abstract algorithm, a second message sequence character string corresponding to the session message stored in the local message file, where the second message sequence character string is generated by sequentially splicing the stored message sequences of the session message.
Optionally, after obtaining the information abstract value to be checked corresponding to the session message to be downloaded, the information abstract value to be checked may be compared with the file name corresponding to the local message folder. The local message folder is used for storing the historical batch downloaded session messages. The second message sequence character string is generated by carrying out the same sequence splicing processing on the saved message sequences of the session messages downloaded in batches, the second message sequence character string is also processed by the message digest algorithm, a second message digest value corresponding to the second message sequence character string is obtained, and a local message folder taking 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 number of session messages obtained by the query is the same as the number of session messages 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 batches.
In step S806, if the comparison result is consistent and the determination result is the same, a successful download of the session message is prompted.
Optionally, because the MD5 has uniqueness, if the comparison result of the summary value of the information to be checked and the file name corresponding to the local message folder is consistent, that is, the MD5 value to be checked is the same as a second MD5 value, it is indicated that the session message to be downloaded is downloaded in batches. And then, judging whether the number of the searched session messages is the same as the number of the session messages stored in the corresponding local message folder, if the number of the searched session messages is the same, indicating that all the session messages needed to be downloaded at the time are contained in the local message folder downloaded in the history, 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 local message folder for historical downloading only contains part of the session messages which need to be downloaded at the present time, and then the session messages which need to be downloaded in batches and inquired are needed. If the comparison result of the information abstract value to be checked and the file name corresponding to the local information folder is consistent, that is, the MD5 value to be checked is different from a second MD5 value, it is indicated that the session message to be downloaded is not downloaded in batches, and then the session message obtained by inquiring is downloaded in batches.
In the above embodiment, the message sequence of the session message obtained by the query is sequentially spliced to generate the first message sequence character string; processing the first message sequence character string according to a message digest algorithm to obtain a message digest value to be checked; and comparing whether the information abstract value to be checked is consistent with the file name corresponding to the local message folder, and if the comparison result is consistent, and the number of the session messages stored in the corresponding local message folder is the same as the number of the queried session messages, then the batch downloading step is not required to be repeatedly executed, and the success of the session message downloading is prompted. Therefore, the problem of repeated downloading caused by the fact that the user performs batch downloading on the same target session message for many times can be avoided, and the downloading efficiency and the user experience are further improved.
Fig. 9 is a block diagram of a session message processing apparatus according to an example embodiment. Referring to fig. 7, the apparatus is applied to an electronic device, including:
a first presentation module 910 configured to execute a presentation session interface, wherein the session interface includes at least one session message list including continuous session messages with the same message type;
A second presentation module 920 configured to perform a presentation of a download window in response to a download triggering operation for at least one target session message in the session message list; the download window comprises at least a first download control;
a first processing module 930 configured to perform bulk download of at least a portion of the session message in response to a trigger operation on the first download control.
As an optional implementation manner, 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 session messages to be downloaded, which are corresponding to different message sequences and the same message sender; the first processing module includes:
the first processing submodule is configured to execute the batch downloading of session messages, of which the message sequence 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, in the session message list in response to the triggering operation of the first download submodule; or,
and the second processing sub-module is configured to execute the batch downloading of the session messages, of which the message sequence in the session message list 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, in response to the triggering operation of the second downloading sub-control.
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 session messages to be downloaded corresponding to different message sequences; the first processing module includes:
a third processing sub-module configured to execute batch downloading of 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 trigger operation on the third download sub-control; or,
and the fourth processing sub-module is configured to execute the batch downloading of the session messages of which the message sequence in the session message list is less than or equal to the message sequence of the target session message in response to the triggering operation of the fourth downloading sub-control.
As an alternative embodiment, the first processing module includes:
a first acquisition unit configured to perform acquisition of a target message sequence and a target message sender identification of the target session message;
a query unit configured to execute a session message in which a query message sequence and the target message sequence meet a preset download condition and/or match the target message sender identifier in response to a trigger operation on the first download control;
And the processing unit is configured to execute session messages obtained by batch downloading inquiry.
As an alternative embodiment, the processing unit includes:
the display subunit is configured to execute a message list to be downloaded corresponding to the session message obtained by the display query;
a rejection subunit configured to perform a rejection operation in response to at least one session message in the message list to be downloaded, to obtain an updated message list to be downloaded;
and the first processing subunit is configured to execute the triggering operation of responding to the confirmed downloading and download the session messages corresponding to the updated message list to be downloaded in batches.
As an alternative embodiment, the first processing module includes:
a presentation unit configured to perform a presentation of a conversation interface including a message download amount confirmation control for determining a number of conversation message downloads in response to a trigger operation to the first download control;
a download amount acquisition unit configured to perform a trigger operation in response to the message download amount confirmation control, to acquire a target message download amount;
a query unit configured to perform a query for 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 session messages obtained by batch downloading inquiry.
As an alternative embodiment, 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 string according to a message digest algorithm to obtain a message digest value to be checked;
a comparing subunit configured to perform comparison of the to-be-checked information digest value with a file name corresponding to a local message folder, the file name being obtained by processing a second message sequence string corresponding to a session message stored in the local message file according to an information digest algorithm, the second message sequence string being generated by sequentially splicing message sequences of the stored session message;
a judging subunit configured to execute if the comparison result is consistent, and judge whether the number of the session messages obtained by the query is the same as the number of the session messages stored in the corresponding local message folder;
The second processing subunit is configured to execute batch downloading of session messages obtained by inquiry if the comparison results are inconsistent or the judgment results are different;
and the third processing subunit is configured to execute the step of prompting successful downloading of the session message if the comparison results are consistent and the judgment results are the same.
As an alternative embodiment, the download window further comprises a second download control; the apparatus further comprises:
the second processing module is configured to perform downloading of the target session message in response to a triggering operation on the second download 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 package message.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 10 is a block diagram of an electronic device, according to an example embodiment. Referring to fig. 10, the 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 session message processing methods of the above embodiments when executing instructions stored on 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, fig. 10 is a block diagram of an electronic device for session message processing, specifically:
the terminal can include RF (Radio Frequency) circuitry 1110, memory 1120 including one or more computer-readable storage media, input unit 1130, display unit 1140, sensor 1150, audio circuit 1160, wiFi (wireless fidelity ) module 1170, processor 1180 including one or more processing cores, and power supply 1190. It will be appreciated by those skilled in the art that the terminal structure shown in fig. 10 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. Wherein:
the RF circuit 1110 may be used for receiving and transmitting signals during a message or a call, and in particular, after receiving downlink information of a base station, the downlink information is processed by one or more processors 1180; in addition, data relating to uplink is transmitted to the base station. Typically, 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 may also communicate with networks and other terminals through wireless communication. The wireless communication may use any communication standard or protocol including, but not limited to, GSM (Global System of Mobile communication, global system for mobile communications), GPRS (General Packet Radio Service ), CDMA (Code Division Multiple Access, code division multiple access), WCDMA (Wideband Code Division Multiple Access ), LTE (Long Term Evolution, long term evolution), email, SMS (Short Messaging Service, short message service), and the like.
The memory 1120 may be used to store software programs and modules, and the processor 1180 may perform various functional applications and data processing by executing the software programs and modules stored in the memory 1120. The memory 1120 may mainly include a storage program area and a storage data area, wherein the storage program 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, etc. In addition, 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 access to the memory 1120 by the processor 1180 and the input unit 1130.
The input unit 1130 may be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 1130 may include a touch-sensitive surface 1131 and other input devices 1132. The touch-sensitive surface 1131, also referred to as a touch display screen or touch pad, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch-sensitive surface 1131 or thereabout using any suitable object or accessory such as a finger, stylus, etc.), and actuate the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 1131 may include two portions, a touch detection device and a touch controller. The touch detection device detects the touch azimuth 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 and converts it into touch point coordinates, which are then sent to the processor 1180, and can receive commands from the processor 1180 and execute them. In addition, the touch-sensitive surface 1131 may be implemented using various types of resistive, capacitive, infrared, surface acoustic waves, and the like. In addition to the touch-sensitive surface 1131, the input unit 1130 may also include other input devices 1132. 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, mouse, joystick, etc.
The display unit 1140 may be used to display information input by a user or information provided to the user and various graphical user interfaces of the terminal, which may be composed 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, the touch-sensitive surface 1131 may overlay the display panel 1141, and upon detection of a touch operation thereon or thereabout by the touch-sensitive surface 1131, the touch-sensitive surface is passed to the processor 1180 to determine the type of touch event, and the processor 1180 then provides a corresponding visual output on the display panel 1141 in accordance with the type of touch event. Wherein the touch-sensitive surface 1131 and the display panel 1141 may be two separate components to implement the input and input functions, but in some embodiments the touch-sensitive surface 1131 may be integrated with the display panel 1141 to implement the input and output functions.
The terminal may also include at least one sensor 1150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 1141 according to the brightness of ambient light, and a proximity sensor that may turn 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 acceleration in all directions (generally three axes), and can detect the gravity and the direction when the device is stationary, and the device can be used for applications of recognizing the gesture of a terminal (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may be configured for the terminal are not described in detail herein.
WiFi belongs to a short-distance wireless transmission technology, and the terminal can help a user to send and receive e-mails, browse web pages, access streaming media and the like through the WiFi module 1170, so that wireless broadband Internet access is provided for the user. Although fig. 10 shows a WiFi module 1170, it is understood that it does not belong to the essential constitution of the terminal, and can be omitted entirely as required within the scope of not changing the essence of the invention.
The processor 1180 is a control center of the terminal, and connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by running 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, the processor 1180 may include one or more processing cores; preferably, the processor 1180 may integrate an application processor and a modem processor, wherein the application processor primarily handles operating systems, user interfaces, applications, etc., and the modem processor primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 1180.
The terminal also includes a power supply 1190 (e.g., a battery) for powering the various components, which may be logically connected to the processor 1180 via a power management system so as to provide for the management of charge, discharge, and power consumption by the power management system. The power supply 1190 may also include one or more of any components, such as a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal may further include a camera, a bluetooth module, etc., which will not be described herein. In particular, 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 retrieval method provided by the method embodiments described above.
In an exemplary embodiment, a computer storage medium is also provided, which, when executed by a processor of an electronic device, enables the electronic device to perform the steps of the method provided in any one of the implementations described above.
In an exemplary embodiment, a computer program product is also provided, comprising a computer program/instruction which, when executed by a processor, implements the method provided in any of the above-mentioned implementations. 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 performs the method provided in any one of the above embodiments.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile 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), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
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 adaptations, 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 is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (20)
1. A method for processing session messages, comprising:
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 a downloading triggering operation of at least one item mark session message in the session message list, and displaying a downloading window; the downloading window at least comprises a first downloading control used for batch downloading;
Responding to the triggering operation of the first downloading control, and downloading at least part of session messages in batches; the partial session message includes the target session message and is related to a sequence number of a message sequence of the target session message and a download direction indicated by the first download control.
2. The conversation message processing 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 session messages to be downloaded, which are corresponding to different message sequences and the same message sender;
the step of downloading at least part of session messages in batches in response to the triggering operation of the first downloading control comprises the following steps:
responding to the triggering operation of the first download sub-control, and downloading the session messages of which the message sequence is more than or equal to the message sequence of the target session message and the same as the message sender of the target session message in batches; or,
and responding to the triggering operation of the second download sub-control, and downloading the session messages of which the message sequence is smaller than or equal to the message sequence of the target session message and the same as the message sender of the target session message in batches.
3. A session message processing method according to claim 1 or 2, wherein the first download control comprises 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 session messages to be downloaded corresponding to different message sequences;
the step of downloading at least part of session messages in batches in response to the triggering operation of the first downloading control comprises the following steps:
responding to the triggering operation of the third download sub-control, and downloading 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 batches; or,
and responding to the triggering operation of the fourth download sub-control, and downloading the session messages of which the message sequence in the session message list is less than or equal to the message sequence of the target session message in batches.
4. The method of claim 1, wherein the step of bulk downloading at least a portion of the session message in response to a triggering operation of the first download 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 a 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 identifier;
and downloading the session messages obtained by inquiry in batches.
5. The method for processing session messages according to claim 4, wherein said step of downloading said queried session messages in bulk comprises:
displaying a message list to be downloaded corresponding to the session message obtained by inquiry;
responding to the rejection operation of at least one session message in the message list to be downloaded, and obtaining an updated message list to be downloaded;
and responding to the triggering operation of confirming the downloading, and downloading the session messages corresponding to the updated message list to be downloaded in batches.
6. The method of claim 1, wherein the step of bulk downloading at least a portion of the session message in response to a triggering operation of the first download control comprises:
responsive to a triggering operation of the first download control, displaying a conversation interface including a message download amount confirmation control for determining a number of conversation message downloads;
Responding to the triggering operation of the message downloading amount confirmation control to acquire the downloading amount of the target message;
inquiring corresponding session messages from a local message library according to the downloading amount of the target messages and the message sequence of the target session messages;
and downloading the session messages obtained by inquiry in batches.
7. A method of processing session messages according to claim 4 or 6, wherein said step of downloading the queried session messages in bulk comprises:
sequentially splicing the message sequences of the session messages obtained by the inquiry to generate a first message sequence character string;
processing the first message sequence character string according to a message digest algorithm to obtain a message digest value to be checked;
comparing the information abstract value 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 a session message stored in the local message file according to an information abstract 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 messages obtained by the inquiry is the same as the message number of the session messages stored in the corresponding local message folder;
If the comparison results are inconsistent or the judgment results are different, downloading the session messages obtained by inquiry in batches;
if the comparison results are consistent and the judgment results are the same, the successful downloading of the session message is prompted.
8. The session message processing method according to any one of claims 1, 2, 4-6, wherein the download window further comprises a second download control; the method further comprises the steps of:
and responding to the triggering operation of the second downloading control, and downloading the target session message.
9. The method according to any one of claims 1, 2, 4-6, wherein 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 package message.
10. A session message processing apparatus, comprising:
a first presentation module configured to execute a presentation session interface, wherein the session interface comprises at least one session message list containing continuous session messages with the same message type;
a second display module configured to perform a download window in response to a download triggering operation for at least one target session message in the session message list; the download window comprises at least a first download control;
A first processing module configured to perform bulk downloading of at least a portion of the conversation messages in response to a triggering operation of the first download control; the partial session message includes the target session message and is related to a sequence number of a message sequence of the target session message and a download direction indicated by the first download control.
11. The conversation message processing apparatus of claim 10 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 session messages to be downloaded, which are corresponding to different message sequences and the same message sender; the first processing module includes:
the first processing submodule is configured to execute the batch downloading of session messages, of which the message sequence 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, in the session message list in response to the triggering operation of the first download submodule; or,
and the second processing sub-module is configured to execute the batch downloading of the session messages, of which the message sequence in the session message list 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, in response to the triggering operation of the second downloading sub-control.
12. A session message processing apparatus according to claim 10 or 11, wherein the first download control comprises 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 session messages to be downloaded corresponding to different message sequences; the first processing module includes:
a third processing sub-module configured to execute batch downloading of 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 trigger operation on the third download sub-control; or,
and the fourth processing sub-module is configured to execute the batch downloading of the session messages of which the message sequence in the session message list is less than or equal to the message sequence of the target session message in response to the triggering operation of the fourth downloading sub-control.
13. The session message processing apparatus of claim 10, wherein the first processing module comprises:
a first acquisition unit configured to perform acquisition of a target message sequence and a target message sender identification of the target session message;
a query unit configured to execute a session message in which a query message sequence and the target message sequence meet a preset download condition and/or match the target message sender identifier in response to a trigger operation on the first download control;
And the processing unit is configured to execute session messages obtained by batch downloading inquiry.
14. The session message processing apparatus according to claim 13, wherein the processing unit comprises:
the display subunit is configured to execute a message list to be downloaded corresponding to the session message obtained by the display query;
a rejection subunit configured to perform a rejection operation in response to at least one session message in the message list to be downloaded, to obtain an updated message list to be downloaded;
and the first processing subunit is configured to execute the triggering operation of responding to the confirmed downloading and download the session messages corresponding to the updated message list to be downloaded in batches.
15. The session message processing apparatus of claim 10, wherein the first processing module comprises:
a presentation unit configured to perform a presentation of a conversation interface including a message download amount confirmation control for determining a number of conversation message downloads in response to a trigger operation to the first download control;
a download amount acquisition unit configured to perform a trigger operation in response to the message download amount confirmation control, to acquire a target message download amount;
A query unit configured to perform a query for 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 session messages obtained by batch downloading inquiry.
16. A session message processing apparatus according to claim 13 or 15, wherein the processing unit comprises:
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 string according to a message digest algorithm to obtain a message digest value to be checked;
a comparing subunit configured to perform comparison of the to-be-checked information digest value with a file name corresponding to a local message folder, the file name being obtained by processing a second message sequence string corresponding to a session message stored in the local message file according to an information digest algorithm, the second message sequence string being generated by sequentially splicing message sequences of the stored session message;
A judging subunit configured to execute if the comparison result is consistent, and judge whether the number of the session messages obtained by the query is the same as the number of the session messages stored in the corresponding local message folder;
the second processing subunit is configured to execute batch downloading of session messages obtained by inquiry if the comparison results are inconsistent or the judgment results are different;
and the third processing subunit is configured to execute the step of prompting successful downloading of the session message if the comparison results are consistent and the judgment results are the same.
17. The session message processing apparatus according to any of claims 10, 11, 13-15, wherein the download window further comprises a second download control; the apparatus further comprises:
and a second processing module configured to perform downloading of the target session message in response to a triggering operation of the second download control.
18. The session message processing apparatus according to any one of claims 10, 11, 13-15, wherein the message type of the session message list comprises at least one of a picture message, a video message, a document message, a compressed package message.
19. 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 session message processing method of any of claims 1 to 9.
20. A computer readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform the session message processing method of any of claims 1 to 9.
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 CN113268179A (en) | 2021-08-17 |
CN113268179B true 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) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11570129B2 (en) | 2021-06-06 | 2023-01-31 | Apple Inc. | User interfaces for messaging conversations |
CN116719649B (en) * | 2022-09-01 | 2024-10-25 | 荣耀终端有限公司 | Session notification prompting method, electronic equipment and readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CA2668719A1 (en) * | 2006-11-10 | 2008-05-22 | Wms Gaming Inc. | Parameter adjustment in a wagering game |
-
2021
- 2021-04-28 CN CN202110467365.5A patent/CN113268179B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Also Published As
Publication number | Publication date |
---|---|
CN113268179A (en) | 2021-08-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8977961B2 (en) | Gesture based context-sensitive functionality | |
CN109309696B (en) | Folder transmission method, sender, receiver, and storage medium | |
CN108322523B (en) | Application recommendation method, server and mobile terminal | |
US10956653B2 (en) | Method and apparatus for displaying page and a computer storage medium | |
CN111316618B (en) | Network page storage method and terminal | |
CN106293738B (en) | Expression image updating method and device | |
CN104965641A (en) | Method and apparatus for displaying information | |
CN113268179B (en) | Session message processing method, device, equipment and storage medium | |
CN115390707A (en) | Sharing processing method and device, electronic equipment and storage medium | |
CN105095161B (en) | Method and device for displaying rich text information | |
CN111813299A (en) | Information sharing method, information sharing device and electronic equipment | |
CN115017406A (en) | Live broadcast picture display method and device, electronic equipment and storage medium | |
KR102239616B1 (en) | Message notification method and terminal | |
CN112749074B (en) | Test case recommending method and device | |
CN115379113B (en) | Shooting processing method, device, equipment and storage medium | |
EP4351117A1 (en) | Information display method and apparatus, and electronic device | |
CN110764668B (en) | Comment information acquisition method and electronic equipment | |
CN112486604B (en) | Toolbar setting method and device for setting toolbar | |
CN112748835A (en) | Terminal, server, recent task list display method and application recommendation method | |
CN112422597B (en) | Network content access method, device and storage medium | |
CN115659071A (en) | Page jump method and device, electronic equipment and storage medium | |
CN115801715A (en) | Message automatic sending method, device, medium and equipment based on instant messaging | |
CN117149010A (en) | Multimedia resource switching method and device, electronic equipment and storage medium | |
CN116126792A (en) | File processing method and device | |
CN118917917A (en) | Information display method and device, electronic equipment and storage medium |
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 |