CN109120794B - message display method and device and electronic equipment - Google Patents

message display method and device and electronic equipment Download PDF

Info

Publication number
CN109120794B
CN109120794B CN201811046012.2A CN201811046012A CN109120794B CN 109120794 B CN109120794 B CN 109120794B CN 201811046012 A CN201811046012 A CN 201811046012A CN 109120794 B CN109120794 B CN 109120794B
Authority
CN
China
Prior art keywords
forwarding message
message
merged
forwarding
messages
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811046012.2A
Other languages
Chinese (zh)
Other versions
CN109120794A (en
Inventor
王鹤
李丽萌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN201811046012.2A priority Critical patent/CN109120794B/en
Publication of CN109120794A publication Critical patent/CN109120794A/en
Application granted granted Critical
Publication of CN109120794B publication Critical patent/CN109120794B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/216Handling conversation history, e.g. grouping of messages in sessions or threads

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides a message display method and device, electronic equipment and a computer readable storage medium. The message display method comprises the following steps: determining that at least one layer of merging and forwarding message is nested in the received target merging and forwarding message; if the two adjacent layers of the merged forwarding messages are determined to be from the same session, unpacking the merged forwarding messages of the inner layer; and displaying the outer layer combined forwarding message and the unpacked inner layer combined forwarding message on the same page. According to the embodiment of the application, when the nested combined forwarding message is checked, the operation steps are reduced, the checking path is shortened, the information flow of the nested combined forwarding message can be completely displayed on one page, and the checking efficiency is improved.

Description

Message display method and device and electronic equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a message display method and apparatus, an electronic device, and a computer-readable storage medium.
background
With the development of internet technology, various Instant Messaging (IM) technologies have appeared. IM refers to a service capable of instantly sending and receiving internet messages and the like. IM technology is rapidly developed, functions are increasingly rich, and various functions such as file transmission and searching are gradually integrated. Instant messaging is not a simple chat tool any more, and has been developed into a comprehensive information platform integrating communication, search, office collaboration, enterprise customer service and the like.
When multiple messages are forwarded by using an IM Application (APP), there may be a case where a merged forwarding message is nested in the merged forwarding message, and for this case, a receiver needs to check the complete message content by clicking multiple times. However, the multi-click operation is troublesome, and the opened messages are distributed in a plurality of pages, and the information flow is incomplete.
Disclosure of Invention
In view of the above, the present application provides a message display method and apparatus, an electronic device, and a computer-readable storage medium.
specifically, the method is realized through the following technical scheme:
According to a first aspect of the embodiments of the present disclosure, there is provided a message display method, the method including:
Determining that at least one layer of merging and forwarding message is nested in the received target merging and forwarding message;
if the two adjacent layers of the merged forwarding messages are determined to be from the same session, unpacking the merged forwarding messages of the inner layer;
And displaying the outer layer combined forwarding message and the unpacked inner layer combined forwarding message on the same page.
in an embodiment, the method further comprises:
if the two adjacent layers of merging and forwarding messages are determined to be from different sessions, and the outer layer of merging and forwarding message is not the outermost layer of the target merging and forwarding message, displaying a data packet corresponding to the inner layer of merging and forwarding message and the outer layer of merging and forwarding message on the same page;
taking the outer layer combined forwarding message and the upper layer combined forwarding message as two adjacent layers of combined forwarding messages, and executing the operation of unpacking the inner layer combined forwarding message if the two adjacent layers of combined forwarding messages are determined to be from the same session; or
If the two adjacent layers of the merged forwarding messages are determined to be from different sessions, and the outer layer of the merged forwarding message is the outermost layer of the target merged forwarding message, displaying a data packet corresponding to the content of the page where the inner layer of the merged forwarding message is located and the outer layer of the merged forwarding message on the same page;
Wherein, the data packet is an entrance of another page where the corresponding merging forwarding message or the corresponding page content is located.
In an embodiment, the displaying, on the same page, a data packet corresponding to the inner merging forwarding message and the outer merging forwarding message includes:
Displaying the data packet corresponding to the inner layer combined forwarding message and the outer layer combined forwarding message in different styles on the same page; or
The displaying of the data packet corresponding to the content of the page where the inner merging forwarding message is located and the outer merging forwarding message on the same page includes:
And displaying the data packet corresponding to the content of the page where the inner layer combined forwarding message is located and the outer layer combined forwarding message in different modes on the same page.
In an embodiment, the displaying, on the same page and in different styles, a data packet corresponding to the inner merged forwarding message and the outer merged forwarding message includes:
Displaying the data packets corresponding to the inner layer combined forwarding message in a folding mode on the same page, and displaying the outer layer combined forwarding message in a strip-by-strip unfolding mode; or
the displaying the data packet corresponding to the content of the page where the inner layer combining and forwarding message is located and the outer layer combining and forwarding message in different styles on the same page comprises the following steps:
and displaying the data packet corresponding to the content of the page where the inner layer combined forwarding message is located on the same page in a folding mode, and displaying the outer layer combined forwarding message in a piece-by-piece unfolding mode.
In an embodiment, the determining that the two adjacent layers of merged forwarding messages are from the same session includes:
Determining that the sending end identification and the receiving end identification carried by the inner layer combined forwarding message are correspondingly the same as the sending end identification and the receiving end identification carried by the outer layer combined forwarding message; or
And determining that the group identifier carried by the inner layer combining and forwarding message is the same as the group identifier carried by the outer layer combining and forwarding message.
in an embodiment, the displaying the outer merged forwarding message and the unpacked inner merged forwarding message on the same page includes:
The outer layer combining and forwarding message and the unpacked inner layer combining and forwarding message are subjected to duplicate removal;
And displaying the de-duplicated message on the same page according to the message sending time.
According to a second aspect of the embodiments of the present disclosure, there is provided a message display apparatus, the apparatus including:
The determining module is used for determining that at least one layer of merging and forwarding message is nested in the received target merging and forwarding message;
the unpacking module is used for unpacking the inner layer merged forwarding message if the determining module determines that the two adjacent layers of merged forwarding messages come from the same session after the determining module determines that at least one layer of merged forwarding message is nested in the received target merged forwarding message;
And the display module is used for displaying the outer layer combined forwarding message and the inner layer combined forwarding message unpacked by the unpacking module on the same page.
in one embodiment, the apparatus further comprises:
a first determining and displaying module, configured to, after the determining module determines that at least one layer of merged forwarding message is nested in a received target merged forwarding message, if it is determined that two adjacent layers of merged forwarding messages are from different sessions and the outer layer merged forwarding message is not an outermost layer of the target merged forwarding message, display a data packet corresponding to the inner layer merged forwarding message and the outer layer merged forwarding message on a same page;
the calling module is used for taking the outer layer combined forwarding message and the upper layer combined forwarding message as two adjacent layers of combined forwarding messages, calling the unpacking module to execute the operation of unpacking the inner layer combined forwarding message if the two adjacent layers of combined forwarding messages are determined to be from the same session; or
A second determining and displaying module, configured to display, on the same page, a data packet corresponding to content of a page where the inner layer merged forwarding message is located and the outer layer merged forwarding message if it is determined that two adjacent layers of merged forwarding messages are from different sessions and the outer layer merged forwarding message is an outermost layer of the target merged forwarding message;
Wherein, the data packet is an entrance of another page where the corresponding merging forwarding message or the corresponding page content is located.
According to a third aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium storing a computer program for executing the above-described message display method.
According to a fourth aspect of the embodiments of the present disclosure, there is provided an electronic device, including a processor, a memory, and a computer program stored on the memory and executable on the processor, wherein the processor implements the message display method when executing the computer program.
According to the embodiment of the application, if the two adjacent layers of combined and forwarded messages are determined to be from the same session, the inner layer combined and forwarded messages are unpacked, and the outer layer combined and forwarded messages and the unpacked inner layer combined and forwarded messages are displayed on the same page, so that when the nested combined and forwarded messages are viewed, the operation steps are reduced, the viewing path is shortened, the information flow of the nested combined and forwarded messages can be completely displayed on one page, and the viewing efficiency is improved.
it is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow chart illustrating a message display method according to an exemplary embodiment of the present application;
FIG. 2A is a first diagram illustrating nesting of a merged forwarding message with a merged forwarding message according to an exemplary embodiment of the present application;
FIG. 2B is a diagram illustrating a first display of a merged forwarding message in accordance with an illustrative embodiment of the present application;
FIG. 3 is a flow chart illustrating another message display method according to an exemplary embodiment of the present application;
FIG. 4A is a diagram illustrating a merged forwarding message nested with a merged forwarding message in an exemplary embodiment of the present application;
FIG. 4B is a diagram illustrating a second example of a display merge forward message in accordance with an illustrative embodiment of the present application;
FIG. 4C is a diagram illustrating a third example of a display merge forward message in accordance with an illustrative embodiment of the present application;
Fig. 5 is a hardware configuration diagram of an electronic device in which a message display apparatus according to an exemplary embodiment of the present application is installed;
FIG. 6 is a block diagram of a message display device shown in an exemplary embodiment of the present application;
Fig. 7 is a block diagram of another message display device shown in an exemplary embodiment of the present application.
Detailed Description
reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
Fig. 1 is a message display method according to an exemplary embodiment of the present application, which can be applied to a message receiving end, and as shown in fig. 1, the method includes:
Step S101, determining that at least one layer of merging and forwarding message is nested in the received target merging and forwarding message.
In this embodiment, if the received target merged forwarding message includes a merged forwarding message set composed of multiple merged forwarding messages and other forwarding messages, it may be determined that at least one layer of merged forwarding message is nested in the received target merged forwarding message.
For example, the received target merged forwarding message is merged forwarding message set 1 and message 2, where merged forwarding message set 1 includes message 1 and message 3, so that it can be determined that at least one layer of merged forwarding message is nested in the received target merged forwarding message.
And step S102, if the two adjacent layers of merging and forwarding messages are determined to be from the same session, unpacking the inner layer of merging and forwarding messages.
in this embodiment, in order to display messages from the same session on the same page, it may be determined whether two adjacent layers of merged forwarding messages are from the same session before displaying the merged forwarding messages.
the combined forwarding message may carry identification information, for example, the combined forwarding message from a single chat session may carry a sender identifier and a receiver identifier, that is, the sender identifier and the receiver identifier of the session corresponding to the combined forwarding message, and the combined forwarding message from a group chat session may carry a corresponding group identifier.
Because the merged forwarding message can carry the identification information, the message receiving end can judge whether the two adjacent merged forwarding messages come from the same session based on the identification information carried in the merged forwarding message.
In this embodiment, if it can be determined that the sender id and the receiver id carried by the inner merged forwarding message are the same as the sender id and the receiver id carried by the outer merged forwarding message, it can be determined that the inner merged forwarding message and the outer merged forwarding message are from the same session. If it can be determined that the group identifier carried by the inner merged forwarding message is the same as the group identifier carried by the outer merged forwarding message, it can be determined that the inner merged forwarding message and the outer merged forwarding message are from the same session.
in this embodiment, if it is determined that two adjacent layers of merged forwarding messages are from the same session, the inner layer merged forwarding message may be unpacked, so that the outer layer merged forwarding message and the unpacked inner layer merged forwarding message may be displayed on the same page in the following.
and step S103, displaying the outer layer merging and forwarding message and the unpacked inner layer merging and forwarding message on the same page.
After the inner layer merged forwarding message is unpacked, the outer layer merged forwarding message and the unpacked inner layer merged forwarding message may be deduplicated, and the deduplicated message may be displayed on the same page according to the message sending time.
For example, as shown in fig. 2A, a merged forwarding message B is nested in a target merged forwarding message a, if it is determined that the outer merged forwarding messages 1, 2, and 6 and the inner merged forwarding message B are from the same session, the inner merged forwarding message B may be unpacked to obtain messages 3, 4, and 5, and the outer merged forwarding message and the unpacked inner merged forwarding message may be displayed on the same page, and as shown in fig. 2B, the messages 1, 2, 3, 4, 5, and 6 may be displayed on the same page according to the order of message sending time.
It should be noted that, if multiple layers of merged forwarding messages are nested in the target merged forwarding message, after two layers of the merged forwarding messages are unpacked and merged according to the method provided in the embodiment, the page after unpacking and merging is used as a single layer again, and the merged forwarding messages are still unpacked and merged with other adjacent layers according to the method provided in the embodiment.
In the embodiment, if it is determined that two adjacent layers of merged forwarding messages come from the same session, the inner layer merged forwarding message is unpacked, and the outer layer merged forwarding message and the unpacked inner layer merged forwarding message are displayed on the same page, so that when the nested merged forwarding messages are viewed, the operation steps are reduced, the viewing path is shortened, the information flow of the nested merged forwarding messages can be completely displayed on one page, and the viewing efficiency is improved.
Fig. 3 is a flowchart illustrating another message display method according to an exemplary embodiment of the present application, where the method includes:
Step S300, determining that at least one layer of merging and forwarding message is nested in the received target merging and forwarding message.
Step S301, determining whether the two adjacent layers of merging and forwarding messages are from the same session, if so, executing step S302, and if not, executing step S303.
Step S302, unpacking the inner layer merged forwarding message, displaying the outer layer merged forwarding message and the unpacked inner layer merged forwarding message on the same page, and ending the operation.
In step S303, it is determined whether the outer layer merge-forward message is the outermost layer of the target merge-forward message, if not, step S304 is executed, and if so, step S305 is executed.
step S304, displaying the data packet corresponding to the inner layer merging and forwarding message and the outer layer merging and forwarding message on the same page, taking the outer layer merging and forwarding message and the upper layer merging and forwarding message as two adjacent layers of merging and forwarding messages, and continuing to execute step S301.
The data packet corresponding to the inner layer merged forwarding message and the outer layer merged forwarding message are displayed on the same page, and the data packet corresponding to the inner layer merged forwarding message and the outer layer merged forwarding message may be displayed in different styles on the same page. For example, the data packets corresponding to the inner merged forwarding messages may be displayed in a folded style on the same page, and the outer merged forwarding messages may be displayed in an expanded style one by one.
The data packet is an entry of another page where the corresponding merge forwarding message is located, that is, when the user clicks the data packet, the merge forwarding message corresponding to the data packet may be displayed on another page.
Step S305, displaying the data packet corresponding to the content of the page where the inner layer merging forwarding message is located and the outer layer merging forwarding message on the same page, and ending the operation.
the data packet corresponding to the content of the page where the inner layer combining and forwarding message is located and the outer layer combining and forwarding message are displayed on the same page, and the data packet corresponding to the content of the page where the inner layer combining and forwarding message is located and the outer layer combining and forwarding message can be displayed on the same page in different modes. For example, a data packet corresponding to the content of the page where the inner layer merged forwarding message is located is displayed in a folding style on the same page, and the outer layer merged forwarding message is displayed in a bar-by-bar expanding style.
the data packet is an entry of another page where the corresponding page content is located, that is, when the user clicks the data packet, the page content where the inner layer merged forwarding message is located may be displayed on the other page. The content of the page where the inner merging forwarding message is located is the data packet and the outer merging forwarding message corresponding to the inner merging forwarding message displayed on the same page in step S304.
To better describe this scheme, the following is described with specific examples:
As shown in fig. 4A, a merged forwarding message N is nested in the merged forwarding message M, and a merged forwarding message O is nested in the merged forwarding message N, where the merged forwarding message M includes merged forwarding messages N, 1, 2, 6, and 7, the merged forwarding message N includes merged forwarding messages O, 4, and 5, and the merged forwarding message O includes messages 31 and 32.
In this embodiment, it is first determined whether the combined and forwarded message O and the messages 4 and 5 are from the same session, and if the combined and forwarded message O and the messages 4 and 5 are from the same session, the combined and forwarded message O is unpacked to obtain the messages 31 and 32, and the messages 31, 32, 4 and 5 are displayed on the same page. Then, it is determined whether the messages 31, 32, 4, 5 and the messages 1, 2, 6, 7 are from the same session, and if they are from the same session, the messages 31, 32, 4, 5, 1, 2, 6, 7 are displayed on the same page, and as shown in fig. 4B, the messages 1, 2, 31, 32, 4, 5, 6, and 7 may be displayed on the same page in the order of the transmission time of the messages.
In this embodiment, if the merge and forward message O and the messages 4 and 5 are from different sessions, it is determined whether the layer where the messages 4 and 5 are located is the outermost layer of the target merge and forward message, if not, the data packet corresponding to the merge and forward message O and the outer merge and forward messages, that is, the messages 4 and 5, are displayed on the same page, the page where the messages 4 and 5 are located is used as the inner merge and forward message, and it is determined whether the inner merge and forward message and the outer merge and forward messages 1, 2, 6, and 7 are from the same session, if they are from the same session, the inner merge and forward message is unpacked to obtain the data packet, the message 4, and the message 5 corresponding to the merge and forward message O, and the data packet, the message 4, the message 5, and the messages 1, 2, 6, and 7, which are corresponding to the merge and forward message O, are displayed. As shown in fig. 4C, the message 1, the message 2, the data packet corresponding to the message O, the message 4, the message 5, the message 6, and the message 7 may be displayed on the same page according to the sequence of the message receiving time, where the combined forwarded message O is displayed in a folded style, and the messages 1, 2, 4, 5, 6, and 7 are displayed in an expanded style one by one. In this embodiment, the data packet corresponding to the message O is an entry of another page corresponding to the merged forwarding message, that is, when the user clicks the data packet, the merged forwarding message corresponding to the data packet, that is, the message 31 and the message 32, may be displayed on another page.
The embodiment describes the processing process of the nested merged forwarding messages under different conditions, and through the processing process, when the multi-layer nested merged forwarding messages are checked, the operation steps are reduced, the checking path is shortened, the information flow of the multi-layer nested merged forwarding messages from the same session can be completely displayed on one page, the checking efficiency is improved, the number of the displayed nested layers can be reduced as much as possible, and the checking smoothness is improved.
Corresponding to the embodiment of the message display method, the application also provides an embodiment of a message display device.
the embodiment of the message display device can be applied to electronic equipment. Wherein, the electronic equipment can be a terminal comprising the message display device. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. As shown in fig. 5, a hardware structure of an electronic device in which the message display apparatus 500 of the present application is located is shown, the electronic device includes a processor 510, a memory 520, and a computer program stored in the memory 520 and capable of running on the processor 510, and the processor 510 implements the message display method when executing the computer program. In addition to the processor 510 and the memory 520 shown in fig. 5, the electronic device in which the apparatus is located in the embodiment may also include other hardware according to the actual function of the message reception, which is not described in detail herein.
Fig. 6 is a block diagram of a message display apparatus according to an exemplary embodiment of the present application, as shown in fig. 6, the message display apparatus including: a determination module 61, an unpacking module 62 and a display module 63.
the determining module 61 is configured to determine that at least one layer of merged forwarding messages is nested in the received target merged forwarding message.
in this embodiment, if the received target merged forwarding message includes a merged forwarding message set composed of multiple merged forwarding messages and other forwarding messages, it may be determined that at least one layer of merged forwarding message is nested in the received target merged forwarding message.
For example, the received target merged forwarding message is merged forwarding message set 1 and message 2, where merged forwarding message set 1 includes message 1 and message 3, so that it can be determined that at least one layer of merged forwarding message is nested in the received target merged forwarding message.
The unpacking module 62 is configured to, after the determining module 61 determines that at least one layer of merged forwarding message is nested in the received target merged forwarding message, unpack the inner layer merged forwarding message if it is determined that two adjacent layers of merged forwarding messages are from the same session.
In this embodiment, in order to display messages from the same session on the same page, it may be determined whether two adjacent layers of merged forwarding messages are from the same session before displaying the merged forwarding messages.
The combined forwarding message may carry identification information, for example, the combined forwarding message from a single chat session may carry a sender identifier and a receiver identifier, that is, the sender identifier and the receiver identifier of the session corresponding to the combined forwarding message, and the combined forwarding message from a group chat session may carry a corresponding group identifier.
because the merged forwarding message can carry the identification information, the message receiving end can judge whether the two adjacent merged forwarding messages come from the same session based on the identification information carried in the merged forwarding message.
In this embodiment, if it can be determined that the sender id and the receiver id carried by the inner merged forwarding message are the same as the sender id and the receiver id carried by the outer merged forwarding message, it can be determined that the inner merged forwarding message and the outer merged forwarding message are from the same session. If it can be determined that the group identifier carried by the inner merged forwarding message is the same as the group identifier carried by the outer merged forwarding message, it can be determined that the inner merged forwarding message and the outer merged forwarding message are from the same session.
in this embodiment, if it is determined that two adjacent layers of merged forwarding messages are from the same session, the inner layer merged forwarding message may be unpacked, so that the outer layer merged forwarding message and the unpacked inner layer merged forwarding message may be displayed on the same page in the following.
the display module 63 is used for displaying the outer layer merged forwarding message and the inner layer merged forwarding message unpacked by the unpacking module 62 on the same page.
After the inner layer merged forwarding message is unpacked, the outer layer merged forwarding message and the unpacked inner layer merged forwarding message may be deduplicated, and the deduplicated message may be displayed on the same page according to the message sending time.
For example, as shown in fig. 2A, a merged forwarding message B is nested in a target merged forwarding message a, if it is determined that the outer merged forwarding messages 1, 2, and 6 and the inner merged forwarding message B are from the same session, the inner merged forwarding message B may be unpacked to obtain messages 3, 4, and 5, and the outer merged forwarding message and the unpacked inner merged forwarding message may be displayed on the same page, and as shown in fig. 2B, the messages 1, 2, 3, 4, 5, and 6 may be displayed on the same page according to the order of message sending time.
it should be noted that, if multiple layers of merged forwarding messages are nested in the target merged forwarding message, after two layers of the merged forwarding messages are unpacked and merged according to the method provided in the embodiment, the page after unpacking and merging is used as a single layer again, and the merged forwarding messages are still unpacked and merged with other adjacent layers according to the method provided in the embodiment.
In the embodiment, if it is determined that two adjacent layers of merged forwarding messages come from the same session, the inner layer merged forwarding message is unpacked, and the outer layer merged forwarding message and the unpacked inner layer merged forwarding message are displayed on the same page, so that when the nested merged forwarding messages are viewed, the operation steps are reduced, the viewing path is shortened, the information flow of the nested merged forwarding messages can be completely displayed on one page, and the viewing efficiency is improved.
Fig. 7 is a block diagram of another message display apparatus according to an exemplary embodiment of the present application, and as shown in fig. 7, based on the embodiment shown in fig. 6, the message display apparatus may further include: a first determination display module 64, a calling module 65, or a second determination display module 66.
The first determining and displaying module 64 is configured to, after the determining module 61 determines that at least one layer of merged forwarding message is nested in the received target merged forwarding message, if it is determined that two adjacent layers of merged forwarding messages are from different sessions and the outer layer merged forwarding message is not an outermost layer of the target merged forwarding message, display a data packet corresponding to the inner layer merged forwarding message and the outer layer merged forwarding message on the same page.
The data packet corresponding to the inner layer merged forwarding message and the outer layer merged forwarding message are displayed on the same page, and the data packet corresponding to the inner layer merged forwarding message and the outer layer merged forwarding message may be displayed in different styles on the same page. For example, the data packets corresponding to the inner merged forwarding messages may be displayed in a folded style on the same page, and the outer merged forwarding messages may be displayed in an expanded style one by one.
the data packet is an entry of another page where the corresponding merge forwarding message is located, that is, when the user clicks the data packet, the merge forwarding message corresponding to the data packet may be displayed on another page.
The invoking module 65 is configured to use the outer layer merged forwarding message and the upper layer merged forwarding message as two adjacent layers of merged forwarding messages, and invoke the unpacking module 62 to execute an operation of unpacking the inner layer merged forwarding message if it is determined that the two adjacent layers of merged forwarding messages are from the same session. Or
The second determining and displaying module 66 is configured to, after the determining module 61 determines that at least one layer of merged forwarding message is nested in the received target merged forwarding message, if it is determined that two adjacent layers of merged forwarding messages are from different sessions and the outer layer merged forwarding message is an outermost layer of the target merged forwarding message, display, on the same page, a data packet corresponding to the content of the page where the inner layer merged forwarding message is located and the outer layer merged forwarding message.
wherein, the data packet is an entrance of another page where the corresponding merging forwarding message or the corresponding page content is located.
the data packet corresponding to the content of the page where the inner layer combining and forwarding message is located and the outer layer combining and forwarding message are displayed on the same page, and the data packet corresponding to the content of the page where the inner layer combining and forwarding message is located and the outer layer combining and forwarding message can be displayed on the same page in different modes. For example, a data packet corresponding to the content of the page where the inner layer merged forwarding message is located is displayed in a folding style on the same page, and the outer layer merged forwarding message is displayed in a bar-by-bar expanding style.
The data packet is an entry of another page where the corresponding page content is located, that is, when the user clicks the data packet, the page content where the inner layer merged forwarding message is located may be displayed on the other page. The content of the page where the inner merging forwarding message is located is the data packet and the outer merging forwarding message corresponding to the inner merging forwarding message displayed on the same page in step S304.
To better describe this scheme, the following is described with specific examples:
as shown in fig. 4A, a merged forwarding message N is nested in the merged forwarding message M, and a merged forwarding message O is nested in the merged forwarding message N, where the merged forwarding message M includes merged forwarding messages N, 1, 2, 6, and 7, the merged forwarding message N includes merged forwarding messages O, 4, and 5, and the merged forwarding message O includes messages 31 and 32.
In this embodiment, it is first determined whether the combined and forwarded message O and the messages 4 and 5 are from the same session, and if the combined and forwarded message O and the messages 4 and 5 are from the same session, the combined and forwarded message O is unpacked to obtain the messages 31 and 32, and the messages 31, 32, 4 and 5 are displayed on the same page. Then, it is determined whether the messages 31, 32, 4, 5 and the messages 1, 2, 6, 7 are from the same session, and if they are from the same session, the messages 31, 32, 4, 5, 1, 2, 6, 7 are displayed on the same page, and as shown in fig. 4B, the messages 1, 2, 31, 32, 4, 5, 6, and 7 may be displayed on the same page in the order of the transmission time of the messages.
In this embodiment, if the merge-and-forward message O and the messages 4 and 5 come from different sessions, it is determined whether a layer above a current innermost layer of the merge-and-forward message, that is, a layer where the layer messages 4 and 5 of the merge-and-forward message N are located, is an outermost layer of the target merge-and-forward message, if not, a data packet corresponding to the merge-and-forward message O and the outer-layer merge-and-forward messages, that is, the messages 4 and 5, are displayed on the same page, a page where the messages 4 and 5 are located is taken as an inner-layer merge-and-forward message, and a layer where the merge-and-forward message N is located is taken as a current innermost layer, and it is determined whether the inner-layer merge-and-forward messages 4 and 5 and the outer-layer merge-and-forward messages 1, 2, 6 and 7 come from the same session, if they come from the same session, the inner-layer merge-and-forward message N is unpack, Message 4, message 5, and messages 1, 2, 6, 7. As shown in fig. 4C, the message 1, the message 2, the data packet corresponding to the message O, the message 4, the message 5, the message 6, and the message 7 may be displayed on the same page according to the sequence of the message receiving time, where the combined forwarded message O is displayed in a folded style, and the messages 1, 2, 4, 5, 6, and 7 are displayed in an expanded style one by one. In this embodiment, the data packet corresponding to the message O is an entry of another page corresponding to the merged forwarding message, that is, when the user clicks the data packet, the merged forwarding message corresponding to the data packet, that is, the message 31 and the message 32, may be displayed on another page.
The embodiment describes the processing process of the nested merged forwarding messages under different conditions, and through the processing process, when the multi-layer nested merged forwarding messages are checked, the operation steps are reduced, the checking path is shortened, the information flow of the multi-layer nested merged forwarding messages from the same session can be completely displayed on one page, the checking efficiency is improved, the number of the displayed nested layers can be reduced as much as possible, and the checking smoothness is improved.
the implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
in an exemplary embodiment, there is also provided a computer-readable storage medium storing a computer program for executing a message display method, wherein the message display method includes:
Determining that at least one layer of merging and forwarding message is nested in the received target merging and forwarding message;
if the two adjacent layers of the merged forwarding messages are determined to be from the same session, unpacking the merged forwarding messages of the inner layer;
And displaying the outer layer combined forwarding message and the unpacked inner layer combined forwarding message on the same page.
the computer readable storage medium may be a Read Only Memory (ROM), a Random Access Memory (RAM), a compact disc read only memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
it should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The present invention is not intended to be limited to the particular embodiments shown and described, but is to be accorded the widest scope consistent with the principles and novel features herein disclosed.

Claims (10)

1. A method for displaying messages, the method comprising:
determining that at least one layer of merging and forwarding message is nested in the received target merging and forwarding message;
If the two adjacent layers of the merged forwarding messages are determined to be from the same session, unpacking the merged forwarding messages of the inner layer;
and displaying the outer layer combined forwarding message and the unpacked inner layer combined forwarding message on the same page.
2. The method of claim 1, further comprising:
If the two adjacent layers of combined forwarding messages are determined to be from different sessions, and the outer layer of combined forwarding message is not the outermost layer of the target combined forwarding message, displaying a data packet corresponding to the inner layer of combined forwarding message and the outer layer of combined forwarding message on the same page, taking the combined forwarding message adjacent to the outer layer of combined forwarding message except the inner layer of combined forwarding message and the outer layer of combined forwarding message as two adjacent layers of combined forwarding messages, and executing the operation of unpacking the inner layer of combined forwarding message if the two adjacent layers of combined forwarding messages are determined to be from the same session; or
If the two adjacent layers of the merged forwarding messages are determined to be from different sessions, and the outer layer of the merged forwarding message is the outermost layer of the target merged forwarding message, displaying a data packet corresponding to the content of the page where the inner layer of the merged forwarding message is located and the outer layer of the merged forwarding message on the same page;
wherein, the data packet is an entrance of another page where the corresponding merging forwarding message or the corresponding page content is located.
3. The method according to claim 2, wherein displaying the data packet corresponding to the inner merged forwarding message and the outer merged forwarding message on the same page comprises:
displaying the data packet corresponding to the inner layer combined forwarding message and the outer layer combined forwarding message in different styles on the same page; or
The displaying of the data packet corresponding to the content of the page where the inner merging forwarding message is located and the outer merging forwarding message on the same page includes:
And displaying the data packet corresponding to the content of the page where the inner layer combined forwarding message is located and the outer layer combined forwarding message in different modes on the same page.
4. the method according to claim 3, wherein displaying the data packet corresponding to the inner merged forwarding message and the outer merged forwarding message in different styles on the same page comprises:
Displaying the data packets corresponding to the inner layer combined forwarding message in a folding mode on the same page, and displaying the outer layer combined forwarding message in a strip-by-strip unfolding mode; or
The displaying the data packet corresponding to the content of the page where the inner layer combining and forwarding message is located and the outer layer combining and forwarding message in different styles on the same page comprises the following steps:
And displaying the data packet corresponding to the content of the page where the inner layer combined forwarding message is located on the same page in a folding mode, and displaying the outer layer combined forwarding message in a piece-by-piece unfolding mode.
5. The method of claim 1, wherein determining that two adjacent layers of merged forwarded messages are from the same session comprises:
Determining that the sending end identification and the receiving end identification carried by the inner layer combined forwarding message are correspondingly the same as the sending end identification and the receiving end identification carried by the outer layer combined forwarding message; or
And determining that the group identifier carried by the inner layer combining and forwarding message is the same as the group identifier carried by the outer layer combining and forwarding message.
6. The method of claim 1, wherein displaying the outer merged forwarding message and the unpacked inner merged forwarding message on the same page comprises:
The outer layer combining and forwarding message and the unpacked inner layer combining and forwarding message are subjected to duplicate removal;
And displaying the de-duplicated message on the same page according to the message sending time.
7. A message display apparatus, characterized in that the apparatus comprises:
the determining module is used for determining that at least one layer of merging and forwarding message is nested in the received target merging and forwarding message;
The unpacking module is used for unpacking the inner layer merged forwarding message if the determining module determines that the two adjacent layers of merged forwarding messages come from the same session after the determining module determines that at least one layer of merged forwarding message is nested in the received target merged forwarding message;
And the display module is used for displaying the outer layer combined forwarding message and the inner layer combined forwarding message unpacked by the unpacking module on the same page.
8. The apparatus of claim 7, further comprising:
A first determining and displaying module, configured to, after the determining module determines that at least one layer of merged forwarding message is nested in a received target merged forwarding message, if it is determined that two adjacent layers of merged forwarding messages are from different sessions and the outer layer merged forwarding message is not an outermost layer of the target merged forwarding message, display a data packet corresponding to the inner layer merged forwarding message and the outer layer merged forwarding message on a same page;
a calling module, configured to use the merged forwarding message adjacent to the outer merged forwarding message, except for the inner merged forwarding message, and the outer merged forwarding message as two adjacent merged forwarding messages, and execute an operation of unpacking the inner merged forwarding message if it is determined that the two adjacent merged forwarding messages are from the same session; or
a second determining and displaying module, configured to, after the determining module determines that at least one layer of merged forwarding message is nested in the received target merged forwarding message, if it is determined that two adjacent layers of merged forwarding messages are from different sessions and an outer layer of merged forwarding messages is an outermost layer of the target merged forwarding message, display, on the same page, a data packet corresponding to a content of a page where the inner layer of merged forwarding messages is located and the outer layer of merged forwarding messages;
wherein, the data packet is an entrance of another page where the corresponding merging forwarding message or the corresponding page content is located.
9. a computer-readable storage medium, characterized in that the storage medium stores a computer program for executing the message display method of any one of the above claims 1 to 6.
10. An electronic device comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, wherein the processor implements the message display method of any of claims 1-6 when executing the computer program.
CN201811046012.2A 2018-09-07 2018-09-07 message display method and device and electronic equipment Active CN109120794B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811046012.2A CN109120794B (en) 2018-09-07 2018-09-07 message display method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811046012.2A CN109120794B (en) 2018-09-07 2018-09-07 message display method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN109120794A CN109120794A (en) 2019-01-01
CN109120794B true CN109120794B (en) 2019-12-06

Family

ID=64858267

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811046012.2A Active CN109120794B (en) 2018-09-07 2018-09-07 message display method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN109120794B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110380955B (en) * 2019-07-23 2022-01-28 北京字节跳动网络技术有限公司 Message processing method and device and electronic equipment
CN112434328B (en) * 2019-08-26 2024-04-05 钉钉控股(开曼)有限公司 Message forwarding (transferring) mail forwarding method and electronic equipment
CN115190096B (en) * 2021-03-19 2023-11-21 北京字跳网络技术有限公司 Information processing method, apparatus, electronic device and storage medium
CN113285866B (en) * 2021-04-26 2022-05-24 维沃移动通信(杭州)有限公司 Information sending method and device and electronic equipment
CN115022269A (en) * 2021-12-30 2022-09-06 北京字跳网络技术有限公司 Message processing method, device, equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011113392A3 (en) * 2011-04-27 2012-04-05 华为技术有限公司 Method for processing short messages, related device and system
CN104572263A (en) * 2014-12-30 2015-04-29 腾讯科技(深圳)有限公司 Page data interaction method, related device and system
CN105049317A (en) * 2015-05-21 2015-11-11 腾讯科技(深圳)有限公司 Message forwarding method and apparatus
CN105391562A (en) * 2015-11-27 2016-03-09 努比亚技术有限公司 Group chat device, method and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011113392A3 (en) * 2011-04-27 2012-04-05 华为技术有限公司 Method for processing short messages, related device and system
CN104572263A (en) * 2014-12-30 2015-04-29 腾讯科技(深圳)有限公司 Page data interaction method, related device and system
CN105049317A (en) * 2015-05-21 2015-11-11 腾讯科技(深圳)有限公司 Message forwarding method and apparatus
CN105391562A (en) * 2015-11-27 2016-03-09 努比亚技术有限公司 Group chat device, method and mobile terminal

Also Published As

Publication number Publication date
CN109120794A (en) 2019-01-01

Similar Documents

Publication Publication Date Title
CN109120794B (en) message display method and device and electronic equipment
US9223640B2 (en) Strategy based event notification chain
CN108289034B (en) A kind of fault discovery method and apparatus
WO2008109821A1 (en) Context based data searching
CN107911483A (en) A kind of information transferring method and device
CN111858083B (en) Remote service calling method and device, electronic equipment and storage medium
WO2019205718A1 (en) Method and device for sharing hosted applications
CN104424352B (en) The system and method that agency service is provided to user terminal
CN108228770A (en) A kind of method and device of application file source inquiry
EP3179370A1 (en) Webpage automatic test method and apparatus
CN111126071B (en) Method and device for determining questioning text data and method for processing customer service group data
US7949610B2 (en) Method and system for discovering dependencies in project plans of distributed system
US9411877B2 (en) Entity-driven logic for improved name-searching in mixed-entity lists
EP3974960B1 (en) Method and system for automated testing of web service apis
CN108228248A (en) A kind of determining method and apparatus of dependence
CN105991403A (en) Instant messaging (IM) based multimedia sharing method and apparatus
US7822619B2 (en) Method and apparatus for providing context-sensitive community links
CN110225102A (en) Method, equipment and the system of pushed information
CN105009115A (en) Method and apparatus for obtaining network resources
CN110336731B (en) User matching method and device in group
JP4910542B2 (en) SIP message delivery program
CN114201314B (en) Contract-based routing method for realizing service dependency discovery and service access
CN103220327B (en) user information storage method and device
CN111158838B (en) Information processing method and device
CN105378710A (en) Identifying search matches and altered search results

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