CN117041190A - Session message display method and device, electronic equipment and storage medium - Google Patents

Session message display method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117041190A
CN117041190A CN202310834321.0A CN202310834321A CN117041190A CN 117041190 A CN117041190 A CN 117041190A CN 202310834321 A CN202310834321 A CN 202310834321A CN 117041190 A CN117041190 A CN 117041190A
Authority
CN
China
Prior art keywords
session
session message
message
target
virtual resource
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.)
Pending
Application number
CN202310834321.0A
Other languages
Chinese (zh)
Inventor
刘硕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202310834321.0A priority Critical patent/CN117041190A/en
Publication of CN117041190A publication Critical patent/CN117041190A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1813Arrangements for providing special services to substations for broadcast or conference, e.g. multicast for computer conferences, e.g. chat rooms

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure relates to a method, a device, an electronic device and a storage medium for displaying a session message, wherein the method for displaying the session comprises the following steps: determining the association degree of the session message and the virtual resource allocation message in response to a receiving instruction of the session message of the target group under the condition that the virtual resource allocation message of the target group is received; if the association degree meets the preset association condition, adding the session message to a target session message set, and displaying the session message contained in the target session message set on a session display interface of the target group in response to the triggering operation of the access option of the target session message set. By adopting the method and the device, a plurality of session messages related to the virtual resource allocation messages can be prevented from being directly displayed, the display timeliness of the virtual resource allocation messages is ensured, the visibility of other session messages and the integrity of the session messages are also ensured, and the session experience of a user is improved.

Description

Session message display method and device, electronic equipment and storage medium
Technical Field
The disclosure relates to the technical field of instant messaging, and in particular relates to a method and a device for displaying session messages, electronic equipment and a storage medium.
Background
With the rapid development of the communication field, an instant messaging technology is presented, and a plurality of user accounts can mutually send and receive instant messaging messages (session messages) based on the instant messaging technology, and the plurality of user accounts can send and receive session messages in an instant messaging group, wherein virtual resource allocation messages can be sent in the instant messaging group. However, after the virtual resource allocation message occurs, there is a user account that receives the virtual resource allocation message, and a large number of feedback messages for the virtual resource allocation message are sent.
In the related art, feedback messages sent by each user account are directly displayed on a session display interface of an instant messaging group, so that the display timeliness of virtual resource allocation messages in the session display interface is poor.
Disclosure of Invention
The disclosure provides a method, a device, an electronic device and a storage medium for displaying a session message, so as to at least solve the problem of low session message display efficiency in the related art. 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 method for displaying a session message, including:
under the condition that a virtual resource allocation message of a target group is received, responding to a receiving instruction of a session message of the target group, and determining the association degree of the session message and the virtual resource allocation message;
And if the association degree meets a preset association condition, adding the session message to a target session message set, wherein the session message contained in the target session message set is displayed on a session display interface of the target group in response to the triggering operation of the access option of the target session message set.
In one embodiment, the determining the association degree between the session message and the virtual resource allocation message includes:
acquiring a first communication time of the session message and a second communication time of the virtual resource allocation message;
calculating a time correlation based on the first communication time and the second communication time;
and if the association degree meets a preset association condition, adding the session message to a target session message set, wherein the method comprises the following steps:
and adding the session message to a target session message set under the condition that the time association degree corresponding to the session message is smaller than a preset time association degree threshold.
In one embodiment, the determining the association degree between the session message and the virtual resource allocation message includes:
acquiring a first character of the session message and an associated feedback character corresponding to the virtual resource allocation message;
Calculating the character similarity of the first character and the associated feedback character;
and if the association degree meets a preset association condition, adding the session message to a target session message set, wherein the method comprises the following steps:
and adding the session message to a target session message set under the condition that the character similarity of the first character and the associated feedback character is greater than or equal to a preset character similarity threshold.
In one embodiment, the determining the association degree between the session message and the virtual resource allocation message includes:
calculating the number of session messages between the session message and the virtual resource allocation message in a target group;
and if the association degree meets a preset association condition, adding the session message to a target session message set, wherein the method comprises the following steps:
and if the number of the session messages is smaller than a preset session message number threshold, adding the session messages to a target session message set, wherein the preset session message number threshold is determined based on a virtual resource value of a virtual resource allocation message or based on the account number contained in the target group.
In one embodiment, after the step of adding the session message to the target session message set if the association degree satisfies a preset association condition, the method further includes:
Displaying access options of the target session message set on a session display interface of the target group;
responding to the triggering operation of the access option of the target session message set, and displaying the session message contained in the target session message set on a session display interface of the target group; the target session messages included in the target session message set are arranged according to the communication time of the session messages in the order of the morning and evening.
In one embodiment, the displaying, on the session presentation interface of the target group, the session message included in the target session message set includes:
displaying session messages contained in the target session message set in a popup window display form on a session display interface of the target group;
or, displaying the session display interface of the target group as a session display interface of a session message containing the target session message set.
In one embodiment, the access options include a quantity hint information and a time hint information;
determining a target number and a target time based on session messages contained in the target session message set;
the displaying the access options of the target session message set on the session display interface of the target group comprises the following steps:
And updating the quantity prompt information and the time prompt information displayed on the session display interface of the target group based on the target quantity and the target time.
In one embodiment, the method for displaying a session message further includes:
receiving display configuration information sent by a server, wherein the display configuration information comprises preset time range information;
and determining the preset time association threshold based on the time range information.
According to a second aspect of embodiments of the present disclosure, there is provided a display apparatus of a session message, including a first determining unit configured to perform, in a case where a virtual resource allocation message of a target group is received, determining a degree of association of the session message with the virtual resource allocation message in response to a reception instruction of the session message of the target group;
and the adding unit is configured to execute the step of adding the session message to a target session message set if the association degree meets a preset association condition, wherein the session message contained in the target session message set is displayed on a session display interface of the target group in response to the triggering operation of the access option of the target session message set.
In one embodiment, the first determining unit is specifically configured to: acquiring a first communication time of the session message and a second communication time of the virtual resource allocation message; calculating a time correlation based on the first communication time and the second communication time;
the adding unit is specifically used for: and adding the session message to a target session message set under the condition that the time association degree corresponding to the session message is smaller than a preset time association degree threshold.
In one embodiment, the first determining unit is specifically configured to: acquiring a first character of the session message and an associated feedback character corresponding to the virtual resource allocation message;
calculating the character similarity of the first character and the associated feedback character;
the adding unit is specifically used for: and adding the session message to a target session message set under the condition that the character similarity of the first character and the associated feedback character is greater than or equal to a preset character similarity threshold.
In one embodiment, the first determining unit is specifically configured to: calculating the number of session messages between the session message and the virtual resource allocation message in a target group;
The adding unit is specifically used for: and if the number of the session messages is smaller than a preset session message number threshold, adding the session messages to a target session message set, wherein the preset session message number threshold is determined based on a virtual resource value of a virtual resource allocation message or based on the account number contained in the target group.
In one embodiment, the apparatus further comprises:
a first display unit configured to perform displaying access options of the target session message set at a session presentation interface of the target group;
a second display unit configured to perform a trigger operation in response to an access option to the target session message set, to display a session message contained in the target session message set at a session presentation interface of the target group; the target session messages included in the target session message set are arranged according to the communication time of the session messages in the order of the morning and evening.
In one embodiment, the second display unit is specifically configured to display, on a session display interface of the target group, a session message included in the target session message set in a popup window display form; or, displaying the session display interface of the target group as a session display interface of a session message containing the target session message set.
In one embodiment, the access options include a quantity hint information and a time hint information; the apparatus further comprises: a second determining unit configured to perform determining a target number and a target time based on session messages included in the target session message set;
the second display unit is specifically configured to update the number prompt information and the time prompt information displayed on the session display interface of the target group based on the target number and the target time.
In one embodiment, the apparatus further comprises: the first receiving unit is configured to execute the display configuration information sent by the receiving server, wherein the display configuration information comprises preset time range information;
and a third determining unit configured to perform determining the preset time association degree threshold based on the time range information.
According to a third 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 method of displaying a conversation message as described in any one of the first aspects above.
According to a fourth 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 the method of displaying a conversation message as described in any one of the first aspects above.
According to a seventh aspect of embodiments of the present disclosure, there is provided a computer program product, the instructions, when executed by a processor of an electronic device, enabling the electronic device to perform the method of displaying a conversation message as described in any one of the first aspects above.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
the method can avoid directly displaying a large number of session messages related to the virtual resource allocation message, ensure the display timeliness of the virtual resource allocation message, also ensure the visibility of other session messages and the integrity of the session messages, and promote the session experience of 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 specification, 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 application environment diagram illustrating a method of displaying a session message according to an exemplary embodiment.
Fig. 2 is a flow chart illustrating a method of displaying a conversation message, according to an exemplary embodiment.
Fig. 3 is a flow chart illustrating a method of displaying a conversation message, according to an exemplary embodiment.
Fig. 4 is a flowchart illustrating a method of displaying a session message according to an exemplary embodiment.
Fig. 5 is a flowchart illustrating a method of displaying a session message according to an exemplary embodiment.
Fig. 6 is a flowchart illustrating a method of displaying a session message according to an exemplary embodiment.
Fig. 7 is a flowchart illustrating a method of displaying a session message according to an exemplary embodiment.
FIG. 8a is an interface diagram illustrating a session presentation interface according to an example embodiment.
FIG. 8b is an interface diagram illustrating a session presentation interface according to an example embodiment.
Fig. 9 is a block diagram of a display device for session messages, 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.
It should be further noted that, the user information (including, but not limited to, user equipment information, user personal information, etc.) and the data (including, but not limited to, data for presentation, analyzed data, etc.) related to the present disclosure are information and data authorized by the user or sufficiently authorized by each party.
The method for displaying the session message provided by the disclosure can be applied to an application environment as shown in fig. 1. Wherein the application environment may include a client 110 and a server 120. Clients 110 may communicate with server 120 over a network. The client 110 may be, but is not limited to, various terminals (e.g., personal computer, notebook, smart phone, tablet computer), portable wearable devices, etc., and in one example, the client 110 may be an instant messaging client. The server 120 may be implemented as a stand-alone server or a server cluster including a plurality of servers, for example, the server 120 may be an instant messaging server configured to receive session messages from each instant messaging client and broadcast each session message to each instant messaging client.
Fig. 2 is a flowchart illustrating a method for displaying a session message according to an exemplary embodiment, and the method for displaying a session message is used in a terminal as shown in fig. 2, and includes the following steps.
In step S210, in the case where the virtual resource allocation message of the target group is received, in response to a reception instruction of the session message of the target group, the association degree of the session message and the virtual resource allocation message is determined.
Wherein the target group may be a session group comprising two user accounts or a plurality of user accounts; the virtual allocation message may be a session message, such as a red envelope message, for virtual resource allocation among the plurality of user accounts; the session message of the target group may be a session message sent by a user account belonging to the target group; the association of the session message with the virtual resource allocation message may be used to characterize the association between the session message sent by the user account and the virtual resource allocation message.
In implementations, the terminal may be a client with IM communication capabilities. The user can log in the account at the terminal, establish a session (such as one-to-one chat session, group chat session, etc.) of the target group with other users through the account, and then send information such as text, pictures, video, etc. in the session to interact with other user accounts in the target group terminal. The specific interaction process can be as follows: the user account sends the session message to other user accounts in the target group through the client with the IM communication function, which can be actually that the session message is sent to the IM server, the IM server receives the session message sent by the terminal and determines the client receiving the session message, namely the IM client corresponding to the other user accounts in the target group, and the IM server sends the session message to the IM client corresponding to the other user accounts in the target group. And the session message can be displayed on a session display interface of the target group on the IM client corresponding to other user accounts in the target group.
In one example, the target group may include a plurality of user accounts, the message for interaction between the user accounts may be a virtual resource allocation message, the client corresponding to the user account that sent the virtual resource allocation message may be a first client, and the client corresponding to the user account that received the virtual resource allocation message may be a second client. The first client may send the virtual resource allocation message to the IM server, and broadcast the virtual resource allocation message to the second client corresponding to each user account included in the target group via the IM server. The first client and the second client may be the same client or different clients.
In one example, the second client may be a terminal, such that, in the case of receiving a session message in the target group, the terminal may determine whether the session message is a virtual resource allocation message according to a field of the session message; in the case that the terminal determines that the session message is a virtual resource allocation message, if the session message is received again in response to a receiving instruction of the session message in the target group (for convenience of description, hereinafter, simply referred to as a target session message), the terminal needs to calculate a degree of association between the target session message and the virtual resource allocation message. That is, after the terminal determines that the virtual resource allocation message is received, if the target session message sent in the target group to which the virtual resource allocation message belongs is received again, the terminal calculates the degree of association between the target session message and the virtual resource allocation message.
In step S220, if the association degree satisfies the preset association condition, the session message is added to the target session message set.
The preset association condition may be a condition for determining whether the session message is a feedback message (reply message) of the virtual resource allocation message, the association degree characterizes the possibility that the session message is the feedback message of the virtual resource allocation message, for example, may be time, a character distance, etc., and the target session set may be a session message set with a plurality of association degrees satisfying the preset association condition.
In an implementation, for a session message received after receiving a virtual resource allocation message, the terminal calculates a degree of association between the session message and the virtual resource allocation message. In the case that the association degree between the target session message and the virtual resource allocation message is determined to meet the preset association condition, the terminal may add the target session message to a preset session message set. Based on the above, the user can trigger the access option of the target session message set, and the terminal can respond to the trigger operation to display each session message in the target session message set on the session display interface of the target group displayed on the terminal. The sequence of displaying each target session message in the target session message set by the terminal may be the communication time sequence of each session message. The access options of the target session display may be display controls displayed on a session presentation interface of the target group, which may be a group chat interface or a private chat interface, etc.
In the method for displaying the session message, under the condition that the virtual resource allocation message of the target group is received, the association degree of the session message and the virtual resource allocation message is determined in response to the receiving instruction of the session message of the target group; if the association degree meets the preset association condition, adding the session message to a target session message set, and displaying the session message contained in the target session message set on a session display interface of the target group in response to the triggering operation of the access option of the target session message set. By adopting the method and the device, a plurality of session messages related to the virtual resource allocation messages can be prevented from being directly displayed, the display timeliness of the virtual resource allocation messages is ensured, the visibility of other session messages and the integrity of the session messages are also ensured, and the session experience of a user is improved.
In an exemplary embodiment, as shown in fig. 3, in step S210, the specific process of determining the association degree between the session message and the virtual resource allocation message may be implemented by the following steps:
in step S310, a first communication time of the session message and a second communication time of the virtual resource allocation message are acquired.
The first communication time may be a sending time of a sending user account corresponding to the session message, or may be a receiving time of the session message received by the IM server, and similarly, the second communication time of the virtual resource allocation message may be a sending time of a sending account of the virtual resource allocation message, or may be a receiving time of the virtual resource allocation message received by the IM server.
In implementation, after receiving a virtual resource allocation message of a target group, a terminal responds to a receiving instruction of a session message of the target group, acquires a first communication time of the session message corresponding to the receiving instruction of the session message, and acquires a second communication time of the virtual resource allocation message.
In step S320, a time correlation is calculated based on the first communication time and the second communication time.
The association degree may be a possibility of representing whether an association relationship exists in a time dimension, for example, the association degree may be a time association degree, and the time association degree may be a time difference value.
In an implementation, a time difference between the first communication time and the second communication time is calculated based on the first communication time of the session message and the second communication time of the virtual resource allocation message, and the time difference is determined to be a time association between the session message and the virtual resource allocation message.
In one embodiment, in step S220, if the association degree satisfies the preset association condition, the specific process of adding the session message to the target session message set may be implemented by the following steps: and adding the session message to the target session message set under the condition that the time association degree corresponding to the session message is smaller than a preset time association degree threshold.
The preset association condition may be that a time difference between a communication time of the session message and a communication time of the virtual resource allocation message is within a preset time range, a preset time association threshold may be a time difference threshold, the preset time association threshold may be configured by an IM server corresponding to the terminal, or may be determined by the IM server based on an actual application scenario, in an example, the preset time association threshold may be one minute, two minutes, five minutes, or the like, and a specific value of the preset time association threshold is not specifically limited in the disclosure.
In implementation, based on the calculated time association, the terminal determines whether the session message corresponding to the time association and the virtual resource allocation message meet a preset association condition, and when the terminal determines that the time association is less than or equal to a preset time association threshold, the terminal can determine that the session message meets the preset association condition. Based on this, the terminal can add the session message satisfying the preset association condition to the target session message set.
In a specific embodiment, after receiving the virtual resource allocation message, the terminal may determine the communication time of the virtual resource allocation message and determine the target time range based on the preset time association threshold, so that the terminal may determine the target time period based on the communication time of the virtual resource allocation message and the target time range, and add all session messages in the target group to the target session message set in the target time period after the virtual resource allocation message.
Based on the scheme, the associated session message of the virtual resource allocation message is hidden and displayed based on the time dimension, so that the high efficiency of hidden display judgment is ensured, and the exposure degree of the virtual resource allocation message is ensured.
In an exemplary embodiment, as shown in fig. 4, in step S210, the specific process of determining the association degree between the session message and the virtual resource allocation message may be implemented by the following steps:
in step S410, a first character of the session message and an associated feedback character corresponding to the virtual resource allocation message are obtained.
The first character of the session message may be character information contained in the session message, and may include one or more of text data, image data, and expression package data, for example. The associated feedback character corresponding to the virtual resource allocation message may be a character in a reply message sent by the user account based on the received virtual resource allocation message, for example, may be a character in a thank you type message, etc. The associated feedback character may be preconfigured by the IM server corresponding to the terminal, or may be determined by the IM server based on an actual application scenario, and in an example, the associated feedback character may be "thank you" or the like, and the specific content of the associated feedback character is not specifically limited in this disclosure.
In implementation, after receiving a virtual resource allocation message of a target group, a terminal responds to a receiving instruction of a session message of the target group, acquires the session message corresponding to the receiving instruction of the session message, and performs character analysis on the session message to obtain a first character contained in the session message, and likewise, the terminal can acquire a preset associated feedback character corresponding to the virtual resource allocation message.
In step S420, a character similarity of the first character and the associated feedback character is calculated.
The association degree may be a possibility of representing whether an association relationship exists between the session message and the virtual resource allocation message in a character dimension, for example, the association degree may be a character similarity, where the character similarity represents a distance between a first character included in the session message and a preconfigured associated feedback character in the character dimension, that is, a character distance.
In implementation, the terminal may calculate a character distance between a first character of the session message and an associated feedback character corresponding to the virtual resource allocation message based on a preset character distance algorithm, and determine the character distance as a character similarity. In one example, the terminal may calculate, based on a preset character similarity algorithm, a character similarity between a first character of the session message and an associated feedback character corresponding to the virtual resource allocation message.
Alternatively, the preset character similarity algorithm may be an algorithm for calculating euclidean distance between characters, an algorithm for calculating cos distance between characters, or the like, and the specific type of the algorithm is not specifically limited in this disclosure.
In an exemplary embodiment, in step S220, if the association degree satisfies the preset association condition, the specific process of adding the session message to the target session message set may be implemented by the following steps: and adding the session message to the target session message set under the condition that the character similarity of the first character and the associated feedback character is greater than or equal to a preset character similarity threshold.
The preset association condition may be that a character similarity between a first character included in the session message and a preset associated feedback character is greater than or equal to a preset character similarity threshold, where the preset character similarity threshold may be configured by an IM server corresponding to the terminal, or may be determined by the IM server based on an actual application scenario, in an example, the preset character similarity threshold may be seventy percent, eighty percent, ninety percent, or the like, and a specific value of the preset character similarity threshold is not specifically limited in the disclosure.
In implementation, the terminal determines, based on the calculated character similarity, whether the session message corresponding to the character similarity and the virtual resource allocation message meet a preset association condition, and if the terminal determines that the character similarity is greater than or equal to a preset character similarity threshold, the terminal may determine that the session message meets the preset association condition. Based on this, the terminal can add the session message satisfying the preset association condition to the target session message set.
Based on the scheme, the calculation accuracy of the association degree between the session message and the virtual resource allocation message is improved, and the exposure degree and timeliness of the virtual resource allocation message are ensured.
In an exemplary embodiment, in step S210, the specific process of determining the association degree between the session message and the virtual resource allocation message may be implemented by the following steps: within the target group, the number of session messages between the session message and the virtual resource allocation message is calculated.
Wherein the association degree may be the number of session messages between the virtual resource allocation message and the session message.
In implementations, the terminal may determine a number of session messages between the session message and the virtual resource allocation message as a degree of association between the session message and the virtual resource allocation message.
In an exemplary embodiment, in step S220, if the association degree satisfies the preset association condition, the specific process of adding the session message to the target session message set may be implemented by the following steps: in the event that the number of session messages is less than the number of session messages, then the session messages are added to the target set of session messages.
The preset session message number threshold is determined based on a virtual resource value of the virtual resource allocation message or based on the number of accounts contained in the target group. The virtual resource value may be a virtual resource value contained in the red packet message.
In implementation, the terminal determines whether the session message corresponding to the number of session messages and the virtual resource allocation message meet a preset association condition based on the calculated number of session messages, and when the terminal determines that the number of session messages is less than or equal to the number of session messages, the terminal can determine that the session messages meet the preset association condition. Based on this, the terminal can add the session message satisfying the preset association condition to the target session message set.
In a specific embodiment, after receiving the virtual resource allocation message, the terminal may add the session messages in the target group, which are received later and correspond to the preset session message number threshold, to the target session message set.
Based on the scheme, the high efficiency of hidden display judgment and the exposure degree of the virtual resource allocation message are ensured.
In an exemplary embodiment, as shown in fig. 5, after the step of adding the session message to the target session message set if the association degree satisfies the preset association condition, the method further includes:
in step S510, the access options of the target session message set are displayed at the session presentation interface of the target group.
In implementation, the terminal may display a session display interface of the target group, for example, may be a session display interface of a group chat or a session display interface of a private chat. After the step of adding the session message satisfying the preset association condition to the target session message set by the terminal, the terminal may display an access option of the target session message set on a session presentation interface of the target group, wherein the access option may be an access entry display control for accessing the target session message set.
In step S520, in response to a triggering operation of the access option to the target session message set, session messages contained in the target session message set are displayed on the session presentation interface of the target group.
Wherein, each target session message included in the target session message set is arranged according to the early-late order of the communication time of the session message.
In implementation, a user may trigger an access option of a target session message set displayed in a session display interface of a target group based on a session message display requirement in an actual application scenario, and the terminal may sequentially display, in response to the trigger operation, each session message included in the target session message set on the session display interface of the target group according to a time sequence.
Based on the scheme, the integrity of the session message display is ensured.
In an exemplary embodiment, as shown in fig. 6, in step S520, the specific process of displaying, on the session presentation interface of the target group, the session message included in the target session message set may be implemented by the following step S610 or by the following step S620, where:
in step S610, the session messages included in the target session message set are displayed on the session presentation interface of the target group in a popup window display form.
In implementation, the terminal may display each session message included in the target session message set in a floating layer display manner or display each session message included in the target session message set in a popup window display manner on a session display interface of the target group. That is, the terminal may display each session message included in the target session message set on the session display interface of the target group on the second-level page of the session display interface of the target group.
In step S620, the session presentation interface of the target group is displayed as a session presentation interface of a session message containing the target session message set.
In implementation, the terminal may switch the session presentation interface of the target group to an interface displaying each session message included in the target session message set in response to a triggering operation of the access option of the target session message set, that is, switch the session presentation interface of the target group in response to a triggering operation of the access option of the target session message set.
Based on the scheme, the display efficiency of the session messages contained in the target session message set and the convenience of the user touching the display interface are ensured.
In an exemplary embodiment, the access options include quantity and time cues. Specifically, the number prompt information may be number information of session messages included in the target session message set, and the time prompt information may be time range information of communication time corresponding to the session messages included in the target session message set.
The display method of the session message further comprises the following steps: the target number and target time are determined based on session messages contained in the target set of session messages.
In implementation, the terminal may determine, for each session message included in the target session message set, number information of the session messages included in the target session message set, determine the number information as a target number, obtain communication time of each session message included in the target session message set, and determine a time range (target time) based on the plurality of communication times.
The specific process of displaying the access options of the target session message set on the session display interface of the target group can be realized by the following steps:
based on the target number and the target time, updating the number prompt information and the time prompt information displayed on the session display interface of the target group.
In implementation, the terminal may update the number prompt information and the time prompt information originally displayed on the session display interface of the target group based on the calculated target number and the target time.
Based on the scheme, the accuracy of information display is guaranteed, and the conversation experience of the user is improved.
In an exemplary embodiment, as shown in fig. 7, the method for displaying a session message further includes:
in step S710, display configuration information sent by the server is received.
The display configuration information includes preset time range information, and the display configuration information may be preconfigured by a user corresponding to the server based on an actual application scene.
In an implementation, in response to the receiving operation of the virtual resource allocation message, the IM server may broadcast the virtual resource allocation message to the terminal, and simultaneously, transmit the display configuration information in the current case to the terminal together.
In step S720, a preset time association threshold is determined based on the time range information.
In an implementation, the terminal may determine the preset time association threshold based on the time range information included in the display configuration information, i.e., the terminal may determine the time range information included in the display configuration information as the preset time association threshold.
Based on the scheme, the diversity of configuration information and the correlation with a conversation scene are ensured.
The following describes in detail the execution process of the session message display method, as shown in fig. 8a, in combination with a specific embodiment: the target group (session group a) may include a user account 1, a user account 2, and a … … user account n, where the user account 1 (the user account corresponding to the avatar 1) may send a virtual resource allocation message in the target group, and the instant messaging server may broadcast and push the virtual resource allocation message, where each user account in the target group may receive the virtual resource allocation message. After receiving the virtual resource allocation message, the multiple user accounts in the target group may respectively send feedback reply messages for the virtual resource allocation message, based on which, after receiving the virtual resource allocation message, if a session message with the association degree of the virtual resource allocation message meeting a preset association condition is received by the terminal, the session message may be added to a target session message set, and a display control a is displayed on a session display interface of the target group, where the display control a represents an access option of the target session message set, and the access option may display quantity prompt information and time prompt information.
Based on the triggering operation, as shown in fig. 8b, the terminal may display each session message included in the target session message set on the session display interface of the target group, for example, in a popup window display form, and display each session message included in the target session message set on the session display interface of the target group, for example, session message 1 sent by the user account corresponding to the head portrait 2, session message 2 sent by the user account corresponding to the head portrait 3, session message 3 sent by the user account corresponding to the head portrait 5, and session message 4 sent by the user account corresponding to the head portrait 4.
In one embodiment, the sending of the instant messaging message may be uniformly triggered by the IM server and presented by the IM client. The IM client may determine the message type of the session message, e.g., whether it is a type of virtual resource allocation message, based on the different types of fields of the session message. Under the condition that the IM client receives the virtual resource allocation message, the IM server side can send a target instruction to the IM client side which receives the virtual resource allocation message, wherein the target instruction is used for indicating the IM client side to add the session message received in the target time period to a target session message set, namely, to display the session message in a hidden manner on a session display interface of a target group, and to display the session message to a secondary interface corresponding to the session display interface of the target group, namely, to display the session message in the target session message set on the secondary interface. The access portal of the secondary interface can be displayed on the session display interface of the target group, and the IM client can respond to the triggering operation of the access portal to display the secondary interface on the session display interface of the target group, that is, display each session message contained in the target session message set. The specific time value of the target time period contained in the target instruction can be determined based on the configuration operation of the IM server.
The method for displaying the session messages can be used for refreshing a large number of messages after the virtual resource allocation messages are sent, guaranteeing the display timeliness of the virtual resource allocation messages, adding a large number of messages after the virtual resource allocation messages are sent to the target session message set, guaranteeing the exposure degree of the virtual resource allocation messages, increasing the touch of other user accounts to the virtual resource allocation messages, guaranteeing the visibility of the session messages in the target session message set and the integrity of the whole session message queue, and improving the session experience of the user accounts.
It should be understood that, although the steps in the flowcharts of fig. 1 to 7 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least a portion of the steps of fig. 1-7 may include multiple steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the steps or stages are performed necessarily occur sequentially, but may be performed alternately or alternately with at least a portion of the steps or stages in other steps or other steps.
It should be understood that the same/similar parts of the embodiments of the method described above in this specification may be referred to each other, and each embodiment focuses on differences from other embodiments, and references to descriptions of other method embodiments are only needed.
Fig. 9 is a device block diagram of a display device 900 of a conversation message, according to an example embodiment. Referring to fig. 9, the apparatus includes a first determining unit 902 and an adding unit 904.
A first determining unit 902 configured to perform, in a case where a virtual resource allocation message of a target group is received, determining a degree of association of a session message with the virtual resource allocation message in response to a reception instruction of the session message of the target group;
the adding unit 904 is configured to execute adding the session message to the target session message set if the association degree meets the preset association condition, and the session message contained in the target session message set is displayed on the session display interface of the target group in response to the triggering operation of the access option of the target session message set.
In one embodiment, the first determining unit is specifically configured to: acquiring a first communication time of a session message and a second communication time of a virtual resource allocation message; calculating a time association based on the first communication time and the second communication time;
The adding unit is specifically used for: and adding the session message to the target session message set under the condition that the time association degree corresponding to the session message is smaller than a preset time association degree threshold.
In one embodiment, the first determining unit is specifically configured to: acquiring a first character of a session message and an associated feedback character corresponding to a virtual resource allocation message;
calculating the character similarity of the first character and the associated feedback character;
the adding unit is specifically used for: and adding the session message to the target session message set under the condition that the character similarity of the first character and the associated feedback character is greater than or equal to a preset character similarity threshold.
In one embodiment, the first determining unit is specifically configured to: calculating the number of session messages between the session messages and the virtual resource allocation messages within the target group;
the adding unit is specifically used for: and if the number of session messages is less than a preset session message number threshold, adding the session messages to the target session message set, wherein the preset session message number threshold is determined based on the virtual resource value of the virtual resource allocation message or based on the account number contained in the target group.
In one embodiment, the apparatus further comprises:
a first display unit configured to perform an access option of displaying a target session message set at a session presentation interface of a target group;
a second display unit configured to perform a trigger operation in response to an access option to the target session message set, to display session messages contained in the target session message set at a session presentation interface of the target group; the target session messages included in the target session message set are arranged in the order of the communication time of the session messages.
In one embodiment, the second display unit is specifically configured to display, on a session display interface of the target group, a session message included in the target session message set in a popup window display form; alternatively, the session presentation interface of the target group is displayed as a session presentation interface of a session message comprising the target set of session messages.
In one embodiment, the access options include a quantity prompt and a time prompt; the apparatus further comprises: a second determining unit configured to perform determining a target number and a target time based on session messages included in the target session message set;
the second display unit is specifically configured to update the number prompt information and the time prompt information displayed on the session display interface of the target group based on the target number and the target time.
In one embodiment, the apparatus further comprises: the first receiving unit is configured to execute the display configuration information sent by the receiving server, wherein the display configuration information comprises preset time range information;
and a third determination unit configured to perform determination of a preset time association degree threshold based on the time range information.
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 1000 for display of conversation messages, shown in accordance with an exemplary embodiment. For example, electronic device 1000 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to fig. 10, an electronic device 1000 may include one or more of the following components: a processing component 1002, a memory 1004, a power component 1006, a multimedia component 1008, an audio component 1010, an input/output (I/O) interface 1012, a sensor component 1014, and a communication component 1016.
The processing component 1002 generally controls overall operation of the electronic device 1000, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1002 can include one or more processors 1020 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 1002 can include one or more modules that facilitate interaction between the processing component 1002 and other components. For example, the processing component 1002 can include a multimedia module to facilitate interaction between the multimedia component 1008 and the processing component 1002.
The memory 1004 is configured to store various types of data to support operations at the electronic device 1000. Examples of such data include instructions for any application or method operating on the electronic device 1000, contact data, phonebook data, messages, pictures, video, and so forth. The memory 1004 may be implemented by any type of volatile or nonvolatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, optical disk, or graphene memory.
The power supply component 1006 provides power to the various components of the electronic device 1000. The power components 1006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 1000.
The multimedia component 1008 includes a screen between the electronic device 1000 and a user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or sliding action, but also the duration and pressure associated with the touch or sliding operation. In some embodiments, the multimedia component 1008 includes a front-facing camera and/or a rear-facing camera. When the electronic device 1000 is in an operational mode, such as a shooting mode or a video mode, the front-facing camera and/or the rear-facing camera may receive external multimedia data. Each front and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 1010 is configured to output and/or input audio signals. For example, the audio component 1010 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 1000 is in an operational mode, such as a call mode, a recording mode, and a speech recognition mode. The received audio signals may be further stored in memory 1004 or transmitted via communication component 1016. In some embodiments, the audio component 1010 further comprises a speaker for outputting audio signals.
The I/O interface 1012 provides an interface between the processing assembly 1002 and peripheral interface modules, which may be a keyboard, click wheel, buttons, and the like. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 1014 includes one or more sensors for providing status assessment of various aspects of the electronic device 1000. For example, the sensor assembly 1014 may detect an on/off state of the electronic device 1000, a relative positioning of the components, such as a display and keypad of the electronic device 1000, the sensor assembly 1014 may also detect a change in position of the electronic device 1000 or a component of the electronic device 1000, the presence or absence of a user's contact with the electronic device 1000, an orientation or acceleration/deceleration of the device 1000, and a change in temperature of the electronic device 1000. The sensor assembly 1014 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 1014 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1014 can also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1016 is configured to facilitate communication between the electronic device 1000 and other devices, either wired or wireless. The electronic device 1000 may access a wireless network based on a communication standard, such as WiFi, an operator network (e.g., 2G, 3G, 4G, or 5G), or a combination thereof. In one exemplary embodiment, the communication component 1016 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 1016 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 1000 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a computer-readable storage medium is also provided, such as memory 1004, including instructions executable by processor 1020 of electronic device 1000 to perform the above-described method. For example, the computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
In an exemplary embodiment, a computer program product is also provided, comprising instructions executable by the processor 1020 of the electronic device 1000 to perform the above-described method.
It should be noted that the descriptions of the foregoing apparatus, the electronic device, the computer readable storage medium, the computer program product, and the like according to the method embodiments may further include other implementations, and the specific implementation may refer to the descriptions of the related method embodiments and are not described herein in detail.
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 disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general 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 (11)

1. A method for displaying a session message, comprising:
under the condition that a virtual resource allocation message of a target group is received, responding to a receiving instruction of a session message of the target group, and determining the association degree of the session message and the virtual resource allocation message;
and if the association degree meets a preset association condition, adding the session message to a target session message set, wherein the session message contained in the target session message set is displayed on a session display interface of the target group in response to the triggering operation of the access option of the target session message set.
2. The method for displaying a session message according to claim 1, wherein determining the association degree of the session message and the virtual resource allocation message comprises:
acquiring a first communication time of the session message and a second communication time of the virtual resource allocation message;
calculating a time correlation based on the first communication time and the second communication time;
and if the association degree meets a preset association condition, adding the session message to a target session message set, wherein the method comprises the following steps:
and adding the session message to a target session message set under the condition that the time association degree corresponding to the session message is smaller than a preset time association degree threshold.
3. The method for displaying a session message according to claim 1, wherein determining the association degree of the session message and the virtual resource allocation message comprises:
acquiring a first character of the session message and an associated feedback character corresponding to the virtual resource allocation message;
calculating the character similarity of the first character and the associated feedback character;
and if the association degree meets a preset association condition, adding the session message to a target session message set, wherein the method comprises the following steps:
and adding the session message to a target session message set under the condition that the character similarity of the first character and the associated feedback character is greater than or equal to a preset character similarity threshold.
4. The method for displaying a session message according to claim 1, wherein determining the association degree of the session message and the virtual resource allocation message comprises:
calculating the number of session messages between the session message and the virtual resource allocation message in a target group;
and if the association degree meets a preset association condition, adding the session message to a target session message set, wherein the method comprises the following steps:
And if the number of the session messages is smaller than a preset session message number threshold, adding the session messages to a target session message set, wherein the preset session message number threshold is determined based on a virtual resource value of a virtual resource allocation message or based on the account number contained in the target group.
5. The method for displaying a session message according to claim 1, wherein after the step of adding the session message to a target session message set if the degree of association satisfies a preset association condition, the method further comprises:
displaying access options of the target session message set on a session display interface of the target group;
responding to the triggering operation of the access option of the target session message set, and displaying the session message contained in the target session message set on a session display interface of the target group; the target session messages included in the target session message set are arranged according to the communication time of the session messages in the order of the morning and evening.
6. The method for displaying session messages according to claim 5, wherein displaying the session messages contained in the target session message set on the session presentation interface of the target group comprises:
Displaying session messages contained in the target session message set in a popup window display form on a session display interface of the target group;
or, displaying the session display interface of the target group as a session display interface of a session message containing the target session message set.
7. The method for displaying a session message according to claim 5, wherein the access option includes a quantity prompt message and a time prompt message; the method further comprises the steps of:
determining a target number and a target time based on session messages contained in the target session message set;
the displaying the access options of the target session message set on the session display interface of the target group comprises the following steps:
and updating the quantity prompt information and the time prompt information displayed on the session display interface of the target group based on the target quantity and the target time.
8. The method for displaying a session message according to claim 2, wherein the method further comprises:
receiving display configuration information sent by a server, wherein the display configuration information comprises preset time range information;
and determining the preset time association threshold based on the time range information.
9. A display device for a conversation message, comprising:
a first determining unit configured to perform, in a case where a virtual resource allocation message of a target group is received, determining a degree of association of a session message of the target group with the virtual resource allocation message in response to a reception instruction of the session message;
and the adding unit is configured to execute the step of adding the session message to a target session message set if the association degree meets a preset association condition, wherein the session message contained in the target session message set is displayed on a session display interface of the target group in response to the triggering operation of the access option of the target session message set.
10. 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 method of displaying a conversation message as claimed in any one of claims 1 to 8.
11. A computer readable storage medium, characterized in that instructions in the computer readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method of displaying a conversation message as claimed in any one of claims 1 to 8.
CN202310834321.0A 2023-07-07 2023-07-07 Session message display method and device, electronic equipment and storage medium Pending CN117041190A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310834321.0A CN117041190A (en) 2023-07-07 2023-07-07 Session message display method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310834321.0A CN117041190A (en) 2023-07-07 2023-07-07 Session message display method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117041190A true CN117041190A (en) 2023-11-10

Family

ID=88630708

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310834321.0A Pending CN117041190A (en) 2023-07-07 2023-07-07 Session message display method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117041190A (en)

Similar Documents

Publication Publication Date Title
EP3454192B1 (en) Method and device for displaying page
CN105843615B (en) Notification message processing method and device
US9602516B2 (en) Method, server and terminal device for establishing communication session
CN107908351B (en) Application interface display method and device and storage medium
CN109521918B (en) Information sharing method and device, electronic equipment and storage medium
CN106790043B (en) Method and device for sending message in live broadcast application
US10242678B2 (en) Friend addition using voiceprint analysis method, device and medium
US10334282B2 (en) Methods and devices for live broadcasting based on live broadcasting application
EP4093031A1 (en) Livestreaming room data exchange method and apparatus
CN107959757B (en) User information processing method and device, APP server and terminal equipment
EP3203690B1 (en) Message transmission method and apparatus, and electronic device
US20220391446A1 (en) Method and device for data sharing
CN112291631A (en) Information acquisition method, device, terminal and storage medium
CN112434338A (en) Picture sharing method and device, electronic equipment and storage medium
CN106447747B (en) Image processing method and device
CN106506808B (en) Method and device for prompting communication message
CN105101121A (en) Information transmitting method and device
CN110311961B (en) Information sharing method and system, client and server
CN110213062B (en) Method and device for processing message
CN110162366B (en) Information display method and device, electronic equipment and storage medium
CN111835617A (en) User head portrait adjusting method and device and electronic equipment
CN114567790A (en) Information display method and device, electronic equipment and storage medium
CN113127613B (en) Chat information processing method and device
CN117041190A (en) Session message display method and device, electronic equipment and storage medium
CN109120499B (en) Information processing method and device

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