CN116319643A - Message storage and message display method and device, electronic equipment and storage medium - Google Patents
Message storage and message display method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN116319643A CN116319643A CN202310129313.6A CN202310129313A CN116319643A CN 116319643 A CN116319643 A CN 116319643A CN 202310129313 A CN202310129313 A CN 202310129313A CN 116319643 A CN116319643 A CN 116319643A
- Authority
- CN
- China
- Prior art keywords
- message
- target
- theme
- topic
- label
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 158
- 238000004891 communication Methods 0.000 claims abstract description 62
- 238000004590 computer program Methods 0.000 claims description 15
- 239000000284 extract Substances 0.000 claims description 6
- 230000000875 corresponding effect Effects 0.000 description 93
- 238000010586 diagram Methods 0.000 description 18
- 230000001960 triggered effect Effects 0.000 description 9
- 239000002699 waste material Substances 0.000 description 7
- 230000003993 interaction Effects 0.000 description 5
- 230000008569 process Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 239000013598 vector Substances 0.000 description 2
- 241000721047 Danaus plexippus Species 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000013528 artificial neural network Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000002596 correlated effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
- H04L51/046—Interoperability with other network applications or services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/16—Arrangements for providing special services to substations
- H04L12/18—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
- H04L12/185—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with management of multicast group membership
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/06—Message adaptation to terminal or network requirements
- H04L51/063—Content adaptation, e.g. replacement of unsuitable content
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The method, the device, the electronic equipment and the storage medium for storing and displaying the messages are applied to the technical field of information. Sending a request by receiving an instant message; and identifying whether the instant message sending request comprises the message content to be sent and the target theme label, if so, sending the message content to be sent and the target theme label which are included in the instant message sending request to a server, so that the server carries out association storage on the message content to be sent and the target theme label. By applying the method of the embodiment of the application, the message content and the theme can be stored in an associated mode, so that the message can be displayed only for a certain theme when the follow-up client side displays the message, the user is not influenced by the message content of other themes when exchanging for the certain theme, and the communication efficiency of group chat is improved.
Description
Technical Field
The present disclosure relates to the field of information technologies, and in particular, to a method and apparatus for storing and displaying a message, an electronic device, and a storage medium.
Background
Group chat plays an important role in work, study and life as an exchange tool. The group chat content is miscellaneous, the concurrency of the discussion theme is poor, and the communication is low-efficiency. If another non-urgent theme is to be discussed, the user may not break the current theme in the group, and generally wait until the current theme is discussed or a paragraph is temporarily reported to start another theme to be discussed; if the new topic situation is urgent, people may directly insert new topics into the clusters, occupy the discussion space of old topics, actually cause information screen-brushing on the unfinished topics, or start a new cluster, redraw in related colleagues, over time, the number of clusters increases day by day, most or the related colleagues have a period of time after the fact, and when the users want to multiplex or trace back the topic conclusion or the information abstract at the moment, people often feel annoyance because the users do not remember in which cluster, and only roam in the message sea or use fuzzy search keywords for positioning. Therefore, in the prior art, the communication efficiency of the group chat mode is low, and the information in the group chat is not easy to find.
Disclosure of Invention
The embodiment of the application aims to provide a message storage and display method, a device, electronic equipment and a storage medium, so as to solve the technical problems that the group chat communication efficiency is low and information in the group chat is not easy to find. The specific technical scheme is as follows:
in a first aspect of an embodiment of the present application, a message storage method is provided, applied to a client, and the method includes:
receiving an instant message sending request;
and identifying whether the instant message sending request comprises the message content to be sent and the target theme label, if so, sending the message content to be sent and the target theme label which are included in the instant message sending request to a server, so that the server carries out association storage on the message content to be sent and the target theme label.
In one possible embodiment, the method further comprises: and storing the message content to be sent and the target theme label contained in the instant message sending request to the client in an associated mode.
In one possible embodiment, the method further comprises:
if the instant message sending request is identified to not comprise the target theme label to be associated with the message content to be sent, discarding the instant message sending request, or storing the message content to be sent and sending the message content to a server.
In a second aspect of the embodiments of the present application, a message storage method is provided, applied to a server, and the method includes:
receiving an instant message sending request from a client;
judging whether the instant message sending request comprises the message content to be sent and the target theme label, if so, storing the message content to be sent and the target theme label in an associated mode so that the instant message member can receive the instant message content of the associated target theme label.
In one possible embodiment, the method further comprises:
if the instant messaging request includes message content to be sent but does not include a target subject tag, the instant messaging request is discarded.
In a possible implementation manner, the storing the message content to be sent and the target theme label in an associated manner includes:
judging whether the similarity of the topic names corresponding to the target topic labels and the topic names corresponding to the historical topic labels is smaller than or equal to a preset threshold value;
if yes, the information content to be sent and the target theme label are stored in an associated mode, and if not, the information content to be sent and the theme label of the historical theme are stored in an associated mode.
In a third aspect of the application, there is provided a message storage method, the method comprising:
the client receives the instant message sending request; identifying whether the instant message sending request comprises the message content to be sent and the target theme label, if so, sending the message content to be sent and the target theme label contained in the instant message sending request to a server;
after receiving an instant message sending request from a client, the server judges whether the instant message sending request comprises message content to be sent and a target theme label, if so, the message content to be sent and the target theme label are stored in an associated mode, so that instant message members can receive the instant message content of the associated target theme label.
In a fourth aspect of the application, a message display method is provided and applied to a client, where the method includes:
identifying the content of the received data operation request;
extracting a target theme tag selected to be displayed if the data operation request is identified as an instant message display request;
and receiving a target topic name corresponding to the target topic label and message content associated with the target topic label, which are sent by a server, and displaying the target topic name corresponding to the target topic label and the message content associated with the target topic label.
In one possible implementation manner, the receiving the target topic name corresponding to the target topic tag and the message content associated with the target topic tag sent by the server includes:
acquiring a target topic name corresponding to a target topic label and message content associated with the target topic label according to the stored message content and the target topic label association relation;
and if the target topic name corresponding to the target topic label and the message content associated with the target topic label are not obtained, receiving the target topic name corresponding to the target topic label and the message content associated with the target topic label sent by the server.
In one possible implementation manner, the displaying the target topic name corresponding to the target topic tag and the message content associated with the target topic tag includes:
and updating the pre-display data of the client, and displaying the target theme name corresponding to the target theme label and the message content associated with the target theme label.
In one possible implementation manner, the manner of displaying the message content associated with the theme tag includes: and displaying according to the positive sequence or the reverse sequence of the message generation time.
In one possible embodiment, the method further comprises:
if it is identified that the receipt of the data operation request is a subject creation request, then
And judging whether the similarity of the theme names of the themes to be created and the theme names of the historical themes is smaller than a preset threshold value, and if so, displaying the theme to be created.
In one possible embodiment, the method further comprises:
if the similarity between the theme name of the theme to be created and the theme name of the history theme is larger than or equal to a preset threshold, judging whether the session of the history theme with the similarity larger than or equal to the preset threshold is finished, if so, creating and displaying the theme to be created or the history theme with the similarity larger than or equal to the preset threshold.
In one possible implementation, if the data operation request is identified as a client message display request, the method further includes:
inquiring all sent messages of the client and topic labels corresponding to all the sent messages;
querying message content associated with all the topic tags;
and displaying the topic names corresponding to all topic labels and all the message contents associated with the topic labels according to the stored message contents and topic label association relations.
In one possible implementation, if the data operation request is identified as an open instant message request, the method further comprises:
and identifying an instant message label in the instant message request to be opened, traversing the set topic table, obtaining all topics comprising the instant message label to be opened, and displaying topic names of all obtained topics at a first appointed position.
In a fifth aspect of the application, there is further provided a message display method, applied to a server, the method including:
receiving an instant message display request from a client, and extracting a target theme label selected to be displayed from the instant message display request;
and sending the target topic name corresponding to the target topic label and the message content associated with the target topic label to the client according to the stored message content and topic label association relation.
In one possible embodiment, the method further comprises:
receiving a theme creation request from a client;
and judging whether the similarity between the theme name of the theme to be created and the historical theme name is smaller than a preset threshold value, and if so, sending the theme to be created to a client so that the client displays the theme to be created.
In one possible embodiment, the method further comprises:
if the similarity between the theme name of the theme to be created and the theme name of the history theme is greater than or equal to a preset threshold, judging whether the session of the history theme with the similarity greater than or equal to the preset threshold is finished, if so, creating the history theme with the similarity greater than or equal to the preset threshold, and sending the created history theme with the similarity greater than or equal to the preset threshold to a client so that the client displays the created history theme with the similarity greater than or equal to the preset threshold.
In one possible embodiment, the method further comprises:
if a client message display request is received, then
Inquiring all sent messages of the client and topic labels corresponding to all the sent messages;
querying message content associated with all the topic tags;
and sending the saved message content and the topic label to a client according to the association relation of the saved message content and the topic label, so that the client displays topic names corresponding to all topic labels and all message contents associated with the topic label.
In one possible embodiment, the method further comprises:
receiving an instant message opening request sent by a client;
identifying an instant message label in an instant message request to be opened, traversing a set topic table, obtaining all topics comprising the instant message label to be opened, and sending topic names of all obtained topics to a client.
In a sixth aspect of the application, there is provided a message display method, the method including:
the client identifies the content of the received data operation request; extracting a target theme tag selected to be displayed if the data operation request is identified as an instant message display request; receiving a target topic name corresponding to the target topic label and message content associated with the target topic label sent by a server, and displaying the target topic name corresponding to the target topic label and the message content associated with the target topic label;
the method comprises the steps that a server receives an instant message display request from a client, and a target theme label selected to be displayed is extracted from the instant message display request; and sending the target topic name corresponding to the target topic label and the message content associated with the target topic label to the client according to the stored message content and topic label association relation.
In one possible implementation manner, the association relationship between the message content and the topic label is a relationship between the message content and the topic label which are stored in the client side, or is a relationship between the stored message content and the topic label which are received from the server side.
In a seventh aspect of the present application, there is provided a message storage device, applied to a client, the device including:
an instant message sending request receiving module for receiving an instant message sending request;
and the target topic label identification module is used for identifying whether the instant message sending request comprises the message content to be sent and the target topic label, if yes, the message content to be sent and the target topic label which are included in the instant message sending request are sent to a server, so that the server carries out association storage on the message content to be sent and the target topic label.
In one possible embodiment, the apparatus further comprises:
and the client saving module is used for storing the message content to be sent and the target theme label contained in the instant message sending request to the client in an associated mode.
In one possible embodiment, the apparatus further comprises:
And the instant message sending request discarding module is used for discarding the instant message sending request if the instant message sending request does not comprise the target theme label to which the message content to be sent is associated, or storing the message content to be sent and sending the message content to a server.
In an eighth aspect of the present application, there is provided a message storage device, applied to a server, the device including:
a data operation request receiving module for receiving an instant message sending request from a client;
and the message storage module is used for judging whether the instant message sending request comprises the message content to be sent and the target theme label, and if so, the message content to be sent and the target theme label are stored in an associated mode so that the instant message member can receive the instant message content of the associated target theme label.
In one possible embodiment, the apparatus further comprises:
and the instant message sending request discarding module is used for discarding the instant message sending request if the instant message sending request comprises the message content to be sent but does not comprise the target theme label.
In one possible implementation, the message storage module includes:
The similarity judging sub-module is specifically configured to judge whether the similarity of the topic name corresponding to the target topic label and the topic name corresponding to the historical topic label is less than or equal to a preset threshold;
and the message storage sub-module is specifically used for carrying out association storage on the message content to be sent and the target theme label if yes, and carrying out association storage on the message content to be sent and the theme label of the history theme if no.
In a ninth aspect of the implementation of the present application, there is further provided a message storage device, including:
the client sending module is used for receiving the instant message sending request by the client; identifying whether the instant message sending request comprises the message content to be sent and the target theme label, if so, sending the message content to be sent and the target theme label contained in the instant message sending request to a server;
the server receiving module is used for judging whether the instant message sending request comprises the message content to be sent and the target theme label after receiving the instant message sending request from the client, and if so, storing the message content to be sent and the target theme label in an associated mode so that instant message members can receive the instant message content of the associated target theme label.
In a tenth aspect of the implementation of the present application, a message display apparatus is applied to a client, and the apparatus includes:
the first data operation request identification module is used for identifying the content of the received data operation request;
the theme tag identification module is used for extracting the target theme tag selected to be displayed if the data operation request is identified as an instant message display request;
and the message content display module is used for receiving the target theme name corresponding to the target theme label and the message content associated with the target theme label and sent by the server, and displaying the target theme name corresponding to the target theme label and the message content associated with the target theme label.
In one possible implementation manner, the message content display module includes:
the message content acquisition sub-module is specifically used for acquiring a target topic name corresponding to the target topic label and the message content associated with the target topic label according to the stored message content and the target topic label association relation;
and the message content receiving sub-module is specifically configured to receive, if the target topic name corresponding to the target topic label and the message content associated with the target topic label are not acquired, the target topic name corresponding to the target topic label and the message content associated with the target topic label, which are sent by the server.
In one possible implementation manner, the message content display module includes:
the updating and displaying sub-module is specifically used for updating the client pre-display data and displaying the target theme name corresponding to the target theme label and the message content associated with the target theme label.
In one possible implementation manner, the manner of displaying the message content associated with the theme tag includes: and displaying according to the positive sequence or the reverse sequence of the message generation time.
In one possible embodiment, the apparatus further comprises:
a theme creation request identification module for, if it is identified that the received data operation request is a theme creation request
And judging whether the similarity of the theme names of the themes to be created and the theme names of the historical themes is smaller than a preset threshold value, and if so, displaying the theme to be created.
In one possible embodiment, the apparatus further comprises:
the system comprises a creation topic display module, a storage module and a storage module, wherein the creation topic display module is used for judging whether a session of a historical topic with similarity being greater than or equal to a preset threshold is finished or not if the similarity of a topic name of a topic to be created and a topic name of the historical topic is greater than or equal to the preset threshold, and creating and displaying the topic to be created or the historical topic with similarity being greater than or equal to the preset threshold if the session of the historical topic with similarity being greater than or equal to the preset threshold is finished.
In one possible implementation, if the data operation request is identified as a client message display request, the apparatus further includes:
the sent message inquiring first module is used for inquiring all the sent messages of the client and topic labels corresponding to all the sent messages;
a message content query first module, configured to query message content associated with all the topic tags;
and the participated topic message display module is used for displaying topic names corresponding to all topic labels and all message contents associated with the topic labels according to the stored message contents and topic label association relations.
In one possible implementation, if the data operation request is identified as an open instant message request, the apparatus further comprises:
the topic name display module is used for identifying the instant message label in the instant message request to be opened, traversing the set topic table, obtaining all topics comprising the instant message label to be opened, and displaying the topic names of all the obtained topics at a first appointed position.
In an eleventh aspect of the present application, there is provided a message display apparatus applied to a server, the apparatus including:
An instant message display request receiving module, configured to receive an instant message display request from a client, and extract a target theme label that is selected to be displayed from the instant message display request;
and the message content sending module is used for sending the target topic name corresponding to the target topic label and the message content associated with the target topic label to the client according to the stored message content and topic label association relation.
In one possible embodiment, the apparatus further comprises:
the theme creation request receiving module is used for receiving a theme creation request from the client;
and the topic name similarity judging module judges whether the topic name similarity of the topic to be created and the historical topic name similarity are smaller than a preset threshold value, and if yes, the topic to be created is sent to a client side, so that the client side displays the topic to be created.
In one possible embodiment, the apparatus further comprises:
and the theme creation sending module is used for judging whether the session of the history theme with the similarity larger than or equal to the preset threshold is finished or not if the similarity between the theme name of the theme to be created and the theme name of the history theme is larger than or equal to the preset threshold, if so, creating the theme to be created or the history theme with the similarity larger than or equal to the preset threshold, and sending the created theme to be created or the history theme with the similarity larger than or equal to the preset threshold to a client so that the client displays the created theme to be created or the history theme with the similarity larger than or equal to the preset threshold.
In one possible embodiment, the apparatus further comprises:
a client message display request receiving module for receiving a client message display request
The second module of inquiry of the sent message is used for inquiring all sent messages of the client side and theme labels corresponding to all the sent messages;
a message content query second module for querying message content associated with all the topic tags;
and the participated topic message sending module is used for sending the saved message content and topic labels to a client according to the saved message content and topic label association relation so that the client displays topic names corresponding to all topic labels and all message contents associated with the topic labels.
In one possible embodiment, the apparatus further comprises:
an open instant message request receiving module for receiving an open instant message request sent by a client;
the topic name sending module is used for identifying the instant message label in the instant message request to be opened, traversing the set topic table, obtaining all topics comprising the instant message label to be opened, and sending the topic names of all the obtained topics to the client.
In a twelfth aspect of the application, there is provided a message display device, the device comprising:
the client side display module is used for the client side to identify the content of the received data operation request; extracting a target theme tag selected to be displayed if the data operation request is identified as an instant message display request; receiving a target topic name corresponding to the target topic label and message content associated with the target topic label sent by a server, and displaying the target topic name corresponding to the target topic label and the message content associated with the target topic label;
the server sending module is used for receiving an instant message display request from the client and extracting a target theme label selected to be displayed from the instant message display request; and sending the target topic name corresponding to the target topic label and the message content associated with the target topic label to the client according to the stored message content and topic label association relation.
In a thirteenth aspect of the application, there is further provided an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
A memory for storing a computer program;
and a processor configured to implement the method steps described in any of the first to third aspects of the present application when executing a program stored on a memory.
In yet another aspect of the present application, there is also provided a computer readable storage medium having stored therein a computer program which, when executed by a processor, implements the method steps of any of the first to third aspects of the present application.
In a further aspect of the application implementation, there is also provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method steps of any of the first to third aspects of the application implementation.
The embodiment of the application provides a message storage and message display method, a device, electronic equipment and a storage medium, which are used for receiving an instant message sending request; and identifying whether the instant message sending request comprises the message content to be sent and the target theme label, if so, sending the message content to be sent and the target theme label which are included in the instant message sending request to a server, so that the server carries out association storage on the message content to be sent and the target theme label. By applying the method of the embodiment of the application, the message content and the theme can be stored in an associated mode, so that the message can be displayed only for a certain theme when the follow-up client side displays the message, the user is not influenced by the message content of other themes when exchanging for the certain theme, and the communication efficiency of group chat is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is a flowchart of a message storage method applied to a client according to an embodiment of the present application.
Fig. 2 is a schematic diagram of a group chat operation for prompting a user according to an embodiment of the present application.
Fig. 3 is a flowchart of a message storage method applied to a server according to an embodiment of the present application.
Fig. 4 is a flowchart of another message storage method according to an embodiment of the present application.
Fig. 5 is a flowchart of a message display method applied to a client according to an embodiment of the present application.
Fig. 6 is a schematic diagram of a client message content presentation according to an embodiment of the present application.
Fig. 7 is a schematic diagram of an opening group chat operation according to an embodiment of the present application.
Fig. 8 is another schematic diagram of a group chat opening operation provided in an embodiment of the present application.
Fig. 9 is a schematic diagram showing a theme name according to an embodiment of the present application.
Fig. 10 is a schematic diagram of a backtracking history message according to an embodiment of the present application.
Fig. 11 is a flowchart of a message display method applied to a server according to an embodiment of the present application.
Fig. 12 is a flowchart of another message display method according to an embodiment of the present application.
Fig. 13 is a schematic structural diagram of a message storage device applied to a client according to an embodiment of the present application.
Fig. 14 is a schematic structural diagram of a message storage device applied to a server according to an embodiment of the present application.
Fig. 15 is a schematic structural diagram of another message storage device according to an embodiment of the present application.
Fig. 16 is a schematic structural diagram of a message display device applied to a client according to an embodiment of the present application.
Fig. 17 is a schematic structural diagram of a message display device applied to a server according to an embodiment of the present application.
Fig. 18 is a schematic structural diagram of another message display apparatus according to an embodiment of the present application.
Fig. 19 is a schematic structural diagram of an electronic device applied to a client to execute a message storage method according to an embodiment of the present application.
Fig. 20 is a schematic structural diagram of an electronic device applied to a server to execute a message storage method according to an embodiment of the present application.
Fig. 21 is a schematic structural diagram of another electronic device for executing a message storing method according to an embodiment of the present application.
Fig. 22 is a schematic structural diagram of an electronic device applied to a client to execute a message display method according to an embodiment of the present application.
Fig. 23 is a schematic structural diagram of an electronic device applied to a server to execute a message display method according to an embodiment of the present application.
Fig. 24 is a schematic structural diagram of another electronic device for executing a message display method according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
In this application, 4 data tables are set, and for convenience of subsequent description, the following details are given for the 4 tables:
a topic group table (chatgroup) for recording group information of chat groups, specifically including a group ID field for representing topic group identification, a group name field for representing a group name (name), and a topic group type (type) field for representing whether the topic group is a normal group or a topic group, typically represented by 1 bit, wherein 1 represents a normal group; 2 represents a theme group. The group ID can be set with ID identification and the principle of ID setting according to the actual situation, so long as the group IDs are different.
A topic table (topic) for recording topic information related in group chat, specifically including a topic ID field for representing a topic identification; a topic name field for describing topic content (content); a topic group id field for indicating a topic group table (chatgroup_id) associated therewith.
And a session table (session) for recording the session associated with the topic in the group chat to control the ending time of the topic and avoid the indefinitely unable ending of the topic. The session table specifically includes a session ID field for indicating a session identification; a topic id field for representing a topic table (topic_id) associated therewith; a creation time field for representing a session creation time (creation_time); an update time field for indicating a session update time (update_time); a session state field for indicating a session state (status), typically 0 indicates that a session is in progress, and 1 indicates that a current session is completed; an expiration time field for indicating the expiration time (expire_time) of the session.
A message table (chat) for recording messages associated with a session in a group chat, the message table specifically including a message ID field for representing a message identification; a message content field for describing a message content (content); a session id field for indicating that a certain session table (session_id) is associated; a creation time field for indicating a message creation time (create_time); in addition to this, other fields may be included where the user indicates other information, such as a flag field indicating whether the message is marked by the user, a quilt field indicating whether the message contains a user quilt message.
Thus, the topic group, topic, session and message four types of data establish the association relationship. It should be noted that, in general, a theme needs to have a life cycle to avoid becoming a zombie theme, and a theme creator should usually actively end closing, if there is no active closing event, the closing may be automatically performed after the closing event, and the theme that has been closed may also be reopened, where the life cycle is represented by a session (session), so that one theme may correspond to multiple sessions, that is, one theme may be repeatedly opened for discussion.
The present application will be described in detail with reference to the accompanying drawings.
Fig. 1 shows a message storage method provided in a first aspect of an embodiment of the present application, where the method is applied to a client, and specifically includes the following steps:
step S101: an instant messaging request is received.
It should be noted that, the embodiment of the present application may be implemented by a terminal device, and specifically, the terminal device may be an electronic device capable of performing interface display, such as a computer, a mobile phone, or the like.
The instant message refers to a message that can be sent or received in real time, for example, daily one-to-one chat, and the message in the group chat discussion can be an instant message. In practical applications, the instant messaging request may be triggered by a user clicking on a chat box.
Step S102: and identifying whether the instant message sending request comprises the message content to be sent and the target theme label, if so, sending the message content to be sent and the target theme label which are included in the instant message sending request to a server, so that the server carries out association storage on the message content to be sent and the target theme label.
The target topic is a topic to be associated with the message content, and the target topic label is a unique identifier capable of identifying the target topic, and in practical application, the target topic ID can be selected as the target topic label. When the server stores the message content to be sent in association with the target theme label, the server can store in association in a form of a table. Specifically, taking a group chat message as an example, the server may generate a topic group table, a topic table, a session table and a message table for the group chat message, where the topic group table includes a topic group ID, the topic table includes a topic ID and a topic group ID associated with a topic, the session table includes a session ID and a topic ID associated with a session, and the message table includes a message ID, a message content and a session ID associated with a message. And the message content to be sent and the target theme label are stored in a correlated way by establishing a theme group table, a theme table, a session table and a message table.
By applying the method of the embodiment of the application, the message content and the theme can be stored in an associated mode, so that the message can be displayed only for a certain theme when the follow-up client side displays the message, the user is not influenced by the message content of other themes when exchanging for the certain theme, and the communication efficiency of group chat is improved. And because each message can be associated with one theme, the message can be subjected to standard processing, so that the complexity of the implementation of the group chat system is reduced.
In one possible implementation manner, in order to reduce the waste of computing power caused by frequent interaction between the client and the server, the message content to be sent and the target theme label included in the instant message sending request may be stored in association with the client. The method for storing the message content to be sent and the target theme label in an associated manner in the client can be the same as the storage method of the server.
By applying the method of the embodiment of the application, the message content and the theme can be directly associated and stored in the client, so that the waste of calculation power is facilitated due to frequent interaction with the server when the subsequent client displays the message content.
In one possible implementation, if it is identified in step S102 that the target topic label to which the message content to be sent is associated is not included in the instant message sending request, the instant message sending request is discarded, or the message content to be sent is saved and sent to the server.
In practical application, if the target topic label associated with the message content to be sent in the instant message sending request is not identified, the user is considered to not select the target topic to be associated, and after the instant message sending request is discarded, the user can be reminded of selecting the target topic to be associated. As shown in fig. 2, when the user does not select the target theme, the user may be forbidden, and a graphic prompt box is popped up to remind the user that the user needs to select the theme and speak. In this application, the means for prohibiting the user from speaking is not limited, and any means for prohibiting the user from speaking may be applied to this application as long as it is recognized that the instant message transmission request does not include the target subject tag associated with the message content to be transmitted. For example, the message edit box may not be opened to the user who does not select the target topic, as shown in fig. 2, where the user is currently in a forbidden state is displayed, or the send button in the client interface is grayed out so that the user cannot click on the send button.
By applying the method of the embodiment of the application, the instant message sending requests which do not comprise the target topic label can be discarded to ensure that all the instant message sending requests comprise the target topic label to which the message to be sent is associated, so that the server is beneficial to carrying out association storage on the content of the message to be sent and the target topic label.
In a second aspect of the application, a message storage method is provided and applied to a server, and the method includes the steps as shown in fig. 3:
step S301: an instant messaging request is received from a client.
Step S302: judging whether the instant message sending request comprises the message content to be sent and the target theme label, if so, storing the message content to be sent and the target theme label in an associated mode, so that the instant message member can receive the instant message content of the associated target theme label.
Specifically, the server may select the same storage manner as the first aspect of the embodiment of the present application, and store the message content to be sent and the target theme label in an associated manner. The members participating in the instant message discussion can receive the instant message content of the associated target topic label through the server, specifically, taking the group chat as an example, the server can acquire the target topic label of the target topic selected by the group chat member, take the target topic ID as an example, traverse all message tables, determine the message table comprising the target topic ID, acquire the message content in the message table, and send the message content to the client corresponding to the group chat member, so that the group chat member can receive the message content of the associated target topic label.
By applying the method of the embodiment of the application, the message content and the theme can be associated and stored, so that the message content only aiming at the target theme can be sent to the client for display when the subsequent client displays, the user is not influenced by the message content of other themes when communicating aiming at a certain theme, and the communication efficiency of group chat is improved. And because each message can be associated with one theme, the message can be subjected to standard processing, so that the complexity of the implementation of the group chat system is reduced.
In one possible implementation, the instant messaging request is discarded if the instant messaging request includes the message content to be sent but does not include the target subject tag.
In practice, to ensure that each message content can be associated with a subject tag, for an instant messaging request that does not include the target subject tag, the instant messaging request is discarded. Specifically, after the instant sending request is discarded, a reminding instruction can be sent to the client, so that the interface of the client pops up a target theme to be associated with the message content, which is reminded by the interface to remind the user, as shown in fig. 2.
By applying the method of the embodiment of the application, each message content can be ensured to be associated and stored with the topic label by discarding the instant speaking request which does not comprise the target topic label, so that the message content associated with a topic can be searched for and sent to the client side for the client side to display only aiming at a certain topic.
In a possible implementation manner, the association between the message content to be sent and the target subject tag in step S302 may include the following steps:
step one: and judging whether the similarity of the theme names corresponding to the target theme labels and the theme names corresponding to the historical theme labels is smaller than or equal to a preset threshold value.
Step two: if yes, the information content to be sent is stored in an associated mode with the target theme label, and if not, the information content to be sent is stored in an associated mode with the theme label of the historical theme.
In practical application, the same topic content may be built to discuss the same topic content because topic names are different, for this reason, the server may traverse all topic tables after receiving the target topic label in the instant message sending request, obtain topic names of all historical topics and topic names corresponding to the target topic label, judge the similarity of each historical topic name and topic name of the target topic, if the similarity is less than or equal to a preset threshold, it is indicated that the similarity of the target topic name and the historical topic name is not high, then the message content to be sent and the target topic label are associated and stored, if the similarity is greater than the preset threshold, it is indicated that the target topic and the historical topic are likely to discuss the same content, and then the message content to be sent and the historical topic label are associated and stored.
Specifically, the similarity of the two topic names may be calculated by using an artificial neural network, for example, the two topic names are converted into word vectors, and the similarity of the two topic names is calculated by calculating the distance between the two word vectors. For another example, similarity calculation of two topic names is performed using a network model such as DSSM (Deep Structured Semantic Models, deep semantic matching) model or LSI (Latent Semantic Indexing, latent semantic analysis) model. It should be noted that any method for calculating the similarity may be applied in the present application, and the present application does not limit the specific identification method of the "similarity". The preset threshold value can be determined according to the service requirement, and the higher the preset threshold value is, the more accurate the corresponding historical theme similar to the theme name of the target theme is determined, so that the situation that a plurality of themes appear in the same theme content is avoided more accurately.
By applying the method of the embodiment of the application, the identity degree judgment can be carried out on the theme names of the target theme and the history theme, so that the situation that a plurality of themes appear in the same theme content is avoided.
In a third aspect of the present application, there is provided a message storage method, including the steps of:
Step S401: the client receives the instant message sending request; and identifying whether the instant message sending request comprises the message content to be sent and the target theme label, and if so, sending the message content to be sent and the target theme label which are included in the instant message sending request to a server.
Step S402: after receiving the instant message sending request from the client, the server judges whether the instant message sending request comprises the message content to be sent and the target theme label, if so, the message content to be sent and the target theme label are stored in an associated mode, so that the instant message member can receive the instant message content of the associated target theme label.
By applying the method of the embodiment of the application, the message content and the theme can be associated and stored, so that the message content only aiming at the target theme can be displayed when the subsequent client is displayed, the user is not influenced by the message content of other themes when exchanging aiming at a certain theme, and the communication efficiency of group chat is improved.
In a fourth aspect of the present application, a message displaying method is provided, applied to a client, and the method includes the steps as shown in fig. 5:
Step S501: the content of the received data manipulation request is identified.
In practical application, the data operation request of the user has multiple types, taking group chat as an example, the data operation request can be an open group request that the user opens the group chat; or may be a request to speak from a user to speak.
The data operation request is a specific operation execution request sent by a user, and the client side executes corresponding operation by identifying specific content of the request. The demands of users are various, and thus, the specific execution requests issued by the users are also various, and the corresponding operations can be executed only after the client recognizes the specific requests. The specific identification mode can be any existing identification mode, and the application is not limited to the specific identification mode.
Step S502: and if the data operation request is identified as an instant message display request, extracting the target theme label selected to be displayed.
The instant message display request may be triggered by the user clicking on a theme to be selected at the client interface, where the selected theme is the target theme. As shown in fig. 6, when the user selects a theme, a button corresponding to the theme is displayed in a deepened manner, and in fig. 6, it is known that the target theme selected by the user is "how to apply xx rights". Specifically, before the user selects the target theme, the client interface may display the theme names of all the themes in the instant message at the first designated position of the client interface, so that the user may select the theme, and specifically, reference may be made to the following embodiments.
Step S503: and receiving a target topic name corresponding to the target topic label and message content associated with the target topic label, which are sent by a server, and displaying the target topic name corresponding to the target topic label and the message content associated with the target topic label.
In practical application, when the client displays the message content, the message content may be displayed at a second designated position of the client interface, and specifically, the second designated position may be any position of the client interface different from the first designated position, for example, the second designated position may be a bottom, an upper, a left or a right of the client interface. As shown in fig. 6, the second designated location is an upper region of the client, i.e., the message content associated with the target subject label is displayed in an upper region of the client interface.
When the server acquires the message content which is related to the target theme label and selected by the user, the server can acquire the target theme label, namely the theme ID of the target theme; traversing the session table, determining a session table containing the target theme ID, reading a session ID field in the session table containing the target theme ID, and obtaining the target session ID; traversing the message table, determining the message table containing the target session ID, reading the message content field of the message table containing the target session ID, acquiring the message content associated with the target theme tag, and sending the message content to the client.
In practical application, when the message content associated with the target theme label is displayed, the theme name associated with the target theme label can be displayed at the same time, so that the user can distinguish the theme. Thus, when the message content associated with the target topic label is acquired, the topic name associated with the target topic label can be synchronously acquired. Specifically, a theme name field may be included in a preset theme table, so after the target theme ID is obtained in the above step, all the theme tables are traversed, the theme table including the target theme ID is determined, the theme name field of the theme table is read, and the theme name associated with the target theme tag is obtained.
In practical application, because there are many messages in the group chat, only part of the message content can be displayed first when the message content is displayed on the client interface. Specifically, after all the message contents associated with the target subject tag are acquired, they are cached in the client. When the client interface is displayed, a specified number of message contents are displayed on the client interface, wherein the specified number of values can be determined according to the size of the client interface. And when the user turns pages, makes up strokes or makes down strokes, the cached message content is obtained from the client and is displayed on a client interface.
In order to reduce the computational effort in the front-end and back-end interaction process, a certain amount of message contents associated with the topic label can be cached in the client for each topic, when the target topic label in the instant message display request is extracted, the message contents associated with the target topic label cached in the client are acquired, and the message contents are displayed at a first appointed position of a client interface.
By the method, the message content which is related to the target topic label and sent by the server can be received by identifying the target topic label which is selected to be displayed, so that only the message content which is related to the target topic label is displayed, users can be free from the influence of the message content of other topics when communicating, and the group chat communication efficiency is improved.
In step S501, if it is identified that the data operation request is an open instant message request, the embodiment of the present application further includes the following methods:
identifying an instant message label in the instant message request to be opened, traversing the set topic table, obtaining all topics comprising the instant message label to be opened, and displaying topic names of all obtained topics at a first appointed position.
The open instant message request may be triggered by identifying an operation by the user to open an instant message. Specifically, the operation of opening an instant message by a user may be triggered by different events, taking group chat as an example, when a user newly joins a certain group, the "joining" operation performed by the user actually opens the joined group, so as to display a group chat interface; or a user who has joined the group chat performs an operation of opening the group by clicking on the corresponding group. For example, as shown in fig. 7, when a user successfully joins a new group chat, the group chat is automatically opened, and the user is displayed on the display interface to successfully join the group chat; as shown in fig. 8, for a joined group chat user, the group may be opened by clicking on the corresponding message box of the group chat in the message list. For example, in the message interface in fig. 8, there are 3 message boxes of "small group", "company large group" and "a monarch", and clicking on the "small group" message box opens the group chat interface corresponding to "small group". When the user receives the message @, the message list in fig. 8 may be displayed, and the user performs the operation of opening the group by clicking the group chat where the message @ is located in the message list.
Taking instant messaging as an example of group chat, the topic table corresponding to the group chat includes topic table ID, topic name, and group ID of the group associated with the topic. Because the group ID of the associated group is in the topic table, after the instant message opening request is identified, the group ID of the group to be opened identified in the instant message opening request can be traversed through the set topic table to obtain all topic tables comprising the group ID of the group to be opened, and topic name fields in the topic tables are read to obtain topic names of all topics of the group chat to be opened.
For example, as shown in table 1, to find all topics including group ID 111, all topic tables are traversed, topic tables 1 and 2 are found to be topic tables including group ID 111, topic name fields in topic tables 1 and 2 are read, and topic names of all topics including group ID 111 are obtained as "how to apply xx permission" and "interface joint call of xx system".
TABLE 1
After the topic names are obtained, topic names of all the obtained topics may be displayed at the first designated location. The first designated location may be any location on the client display interface, for example, for user convenience, the first designated location may be an upper portion or a lower portion of the message edit box, as shown in fig. 9. In fig. 9, the lower left corner is a message edit box in which a user sends a message, the lower right corner is a button for sending a message, and a theme name is displayed in the form of a button (button) above the message edit box, wherein the first designated position is above the message edit box. Each topic corresponds to a different button in which the topic names describing the topic are displayed, such as "how to apply xx rights" and "interface joint call of xx system" in fig. 9.
By applying the method of the embodiment of the application, the topic names of all topics in the instant message can be displayed on the client interface, so that a user can conveniently select the topics to be participated in the discussion subsequently according to the topic names.
In a possible implementation manner, before step S503, the message content associated with the target tag may also be obtained from the client, specifically, the method may be implemented according to the following steps:
step one, according to the stored message content and the association relation of the target theme label, the target theme name corresponding to the target theme label and the message content associated with the target theme label are obtained.
And step two, if the target topic name corresponding to the target topic label and the message content associated with the target topic label are not obtained, receiving the target topic name corresponding to the target topic label and the message content associated with the target topic label sent by the server.
In practical application, in order to reduce frequent interaction between the client and the server, the client also stores a certain amount of message content and the association relationship between the message content and the target theme label, so when the theme name and the message content associated with the target theme label are displayed, the theme name and the message content associated with the target theme label can be acquired from the message content stored in the client and the association relationship of the target theme label for display, and after the theme name and the message content associated with the target theme label are not acquired, the theme name and the message content associated with the target theme label sent by the server are received. The method for acquiring the topic name and the message content associated with the target topic label at the client may be the same as the method acquired by the server.
By applying the method of the embodiment of the application, the topic name and the message content associated with the target topic label can be acquired in the client side and displayed, and the topic name and the message content sent by the server side are received under the condition that the topic name and the message content are not acquired, so that the waste of calculation power caused by frequent interaction between the client side and the server is avoided.
When the target topic name corresponding to the target topic label and the message content associated with the target topic label are displayed in step S503, the client pre-display data may be updated, and then the target topic name corresponding to the target topic label and the message content associated with the target topic label are displayed.
The pre-display data refers to pre-display content of the client interface, and when the message content associated with the target theme label needs to be displayed, the client interface is refreshed to enable the client to display the message content associated with the target theme label. The method for refreshing the client interface is various, and specific reference may be made to related technologies, which are not described in detail in this application.
By applying the method, the interface refreshing can be performed before the message content associated with the target theme label is displayed, so that the client can display the message content only aiming at the target theme, and the method is more friendly to users.
In practical application, the manner of displaying the message content associated with the target theme tag in step S503 includes: and displaying according to the positive sequence or the reverse sequence of the message generation time.
In general, for the convenience of viewing by the user, it is adopted to display in reverse order of the message generation time, that is, the most recently transmitted message is displayed at the bottom in the message box. Specifically, the server or client may obtain the message content associated with the target subject tag in the following manner.
Taking group chat as an example, wherein a target topic tag is a target topic ID, traversing all session tables after extracting the target topic ID, determining a session table comprising the target topic ID, reading a session ID field in the session table comprising the target topic ID, and obtaining the target session ID; traversing all the message tables, determining a message table comprising a target session ID, reading a message content field and a creation time field in the message table comprising the target session ID, acquiring the message content and the creation time of each message associated with the target topic ID, and displaying the message content associated with the target topic ID on a client interface according to the creation time of the message and the time sequence.
TABLE 2
TABLE 3 Table 3
In one example, the extracted target subject ID is 01; traversing all the session tables in the above table 2, determining that the session table 1 with the session ID 0010 and the session table 3 with the session ID 1001 are session tables including the target topic ID "01", and then the target session IDs are "0010" and "1001"; traversing all the message tables in the table 3, determining that the message table 1 with the message table ID 00110 is a message table including the target session ID 0010, and the message table 2 with the message table ID 01012 is a message table including the target session ID 1001; for the determined message table 1 and message table 2, reading the message content and the message creation time field of the message table, and obtaining the message content "fill in registration information first for registration" is as follows in 2022.11.07.15:32 is created and generated, the message content "information change at personal information interface" is created and generated at 2022.10.08.20:43, and according to the creation time of the two-day message, the message content is displayed on the client interface in reverse order according to time, that is, the latest sent "registration information is filled in first to register" is displayed below the earlier sent "information change at personal information interface".
By applying the method of the embodiment of the application, when the user selects the theme, only the message associated with the theme label is displayed by identifying the message content corresponding to the theme label, so that the user is not influenced by the message content of other themes during communication, and the group chat communication efficiency is improved.
In step S502, if the target topic label is not extracted, when the client interface displays, the message content of all topics may be displayed, specifically, taking group chat as an example of instant messaging, the server or the client may obtain all the message content through the following steps:
step one, obtaining a target group ID of a target theme group;
traversing the set topic table to obtain all topics including the target group ID and obtain the target topic ID of all topics;
traversing the set session table to obtain all sessions including the target theme ID and obtain the target session ID of all the sessions;
traversing the set message table to obtain messages comprising all target session IDs, and obtaining message contents of all the messages and creation time of each message;
and fifthly, displaying the message content on a display interface according to the message generation time sequence.
By applying the method of the embodiment of the application, when the user does not select the target theme to be displayed, the message content corresponding to all the themes is displayed on the client interface, so that the user can watch all chat content from the viewpoint of the emperor, and the method is more friendly to the user.
In a possible implementation manner, if the identified data operation request is a theme creation request in step S501, the embodiment of the present application further includes the following method steps:
and judging whether the similarity of the theme names of the theme to be created and the theme names of the historical theme is smaller than a preset threshold value, and if so, displaying the theme to be created.
In practical application, the theme creation request may be triggered under various events, for example, may be triggered when new theme creation is performed when all the themes are finished, or may be triggered when a user performs new theme creation at any time according to service requirements; it may also be triggered when the user restarts the completed theme. That is, the theme creation request may be triggered when both the existing theme is finalized and the two states are in progress.
Upon identifying that the data manipulation request is a topic creation request, all existing topic tables may be traversed to prevent duplicate creation of the same topic. The topic creation request includes topic names of topics to be created, specifically, taking instant messages as a group chat as an example, after identifying the topic creation request, traversing all topic tables, determining a topic table including a target group ID corresponding to the group chat, identifying topic name fields in the topic table including the target group ID, acquiring topic names of all topics existing in the group chat, and performing similarity matching between all topic names existing in the group and topic names of topics to be created in the topic creation request. Specifically, the method of calculating the similarity may refer to the above-described embodiments.
After the similarity between the theme name of the theme to be created and the theme name of the history theme is calculated, judging whether the similarity is smaller than a preset threshold value, if so, indicating that the similarity between the newly created theme and the existing theme is not high, and repeating creation of the same theme is not caused, creating the new theme, and displaying the created new theme on a client interface.
After creating the new topic, a message may also be sent based on the created new topic to enable the client to present the message content of the new topic, which may include:
step one: a topic table is created that includes topic table IDs, topic names, and group IDs for groups associated with the topic.
Step two: an instant messaging request sent by a user is received that has been associated with the created subject ID.
Step three: a session table and a message table are created.
Recording a session ID, a topic ID of the created topic, a session update time, a session state as an in-progress session and a session expiration time in the created session table; the message ID, message content, created session ID, message creation time are recorded in the created message table.
After the recording is finished, executing the step four: and saving and transmitting the message content and the topic ID included in the instant message transmission request to a server side so that the client which is related to the newly-built topic can display the message content of the newly-built topic.
By applying the method of the embodiment of the application, when the theme is created, the similarity matching is carried out on the theme names, so that the repeated creation of the same theme content by a user can be avoided, and the resource waste is reduced.
In one possible implementation manner, when the above-mentioned judging of the similarity between the topic name of the topic to be created and the topic name of the historical topic is performed, the method may further include:
if the similarity between the theme name of the theme to be created and the theme name of the history theme is greater than or equal to a preset threshold, judging whether the session of the history theme with the similarity greater than or equal to the preset threshold is finished, if so, creating and displaying the theme to be created or the history theme with the similarity greater than or equal to the preset threshold.
And for the situation that the similarity is greater than or equal to the preset threshold value, the fact that the similarity of the theme to be created and the existing historical theme is higher is indicated, and the possibility that the same theme is repeatedly created exists. Therefore, for the historical theme with higher similarity to the theme to be created, the theme name of the historical theme can be displayed on the client interface, whether the historical theme is finished or not is judged, if so, "re-opening" is displayed on the client interface, and the user triggers the theme creation request to re-open the historical theme by clicking "re-opening".
When judging whether the historical theme with higher similarity with the theme to be created is finished, reading the theme ID of the historical theme as a target theme label, traversing all session tables to obtain all session tables including the target theme ID, reading the session state field in the session tables to obtain the session state, and thus, judging whether the historical theme is finished.
By applying the method of the embodiment of the application, when a new theme is created, the history theme with higher similarity is displayed on the client interface, so that a user can judge whether to restart the history theme, thereby avoiding the repeated creation of the same theme content by the user and reducing the resource waste.
When the embodiment creates the session table, the session table includes session update time and session state, and the method in the embodiment of the application further includes:
after each new message is sent, the conversation to which the message belongs is queried through the message table, an updating time field in the conversation table is updated, and the conversation state is set to be the progress state.
TABLE 4 Table 4
Specifically, as shown in table 4, after each message is sent, determining a message table corresponding to the message according to the message ID of the message, and querying a creation time field in the message table and a session ID field of a session associated with the message to obtain the creation time and the corresponding session ID of the message; traversing all session tables, determining a session table comprising the session ID, modifying an update time field in the session table to be the creation time of the message, and modifying a session state field in the session table to be in progress.
In one example, the content of the transmitted message is "register information is filled in first in the message table 1 in the above table 3 to register", the ID of the message is determined to be 00110, the message table 1 corresponding to the transmitted message is determined according to the message ID, the creation time field and the session ID field of the associated session in the message table 1 are read, and the message is determined to be 2022.11.07.15:32, creating an associated session ID of 0010; traversing all the session tables in table 4, determining that session table 1 is a session table with session ID 0010, and modifying the update time field in session table 1 to message creation time "2022.11.07.15:32 "and sets the session state field to in progress.
By applying the method of the embodiment of the application, the session state can be updated through the sending time of the message, so that the session state can be timely acquired, and whether the theme is finished or not is judged.
In the above embodiment, the topic names of all obtained topics may be displayed at the first designated location, or the topic names of all topics may be displayed at the first designated location in time sequence, specifically, taking group chat as an example, the following steps may be performed:
step one, obtaining group IDs of groups to be opened, traversing all topic tables, determining topic tables comprising the group IDs, reading topic ID fields and topic name fields in the topic tables, and obtaining topic names of all topics.
Step two, traversing all session tables, determining a session table comprising a theme ID, reading an update time field in the session table, and obtaining the session update time of the theme.
And thirdly, displaying the theme names of all the themes on a first appointed position according to the time sequence of the conversation updating time.
In order to make the interface of the client more concise, when the theme name is displayed at the first designated position, only the theme name of the unfinished theme may be displayed, and specifically, the step two may further include the following steps:
traversing all session tables, determining a session table comprising a theme ID, reading a session state field in the session table, acquiring a theme name of the ongoing theme, and displaying the theme name of the ongoing theme on a first appointed position of the client.
By applying the method of the embodiment of the application, when the theme names of the themes are displayed on the client interface, the theme names can be displayed according to the time sequence, so that a user can conveniently determine the theme to be queried according to the time, and the client interface is more concise and clearer by displaying only the theme names of the unfinished themes.
In the above session table, the session table further includes a session expiration time field, and the method in the embodiment of the present application further includes:
When the expiration time is the moment, judging whether the current time is later than the moment, if so, changing the session state in the session table to be finished;
or,
and judging whether the difference value between the update time and the current time in the session table is larger than the time length, if so, changing the session state in the session table to be finished.
In order to prevent the session from being in a state of being performed all the time, which causes the theme to be a zombie theme, a life cycle needs to be added in the session table, specifically, a session expiration time field is added in the session table, and the field can represent a moment or a period of time.
When the session expiration time is a time, for example, the expiration time is set to 2022, 11, 1, 24, and if the current time is later than the expiration time, the session state in the session table is automatically updated to the end state.
When the session expiration time is a period of time, for example, the expiration time is set to 24 hours, the session state in the session table is automatically updated to the finalized state when the update time in the session table differs from the current time by more than 24 hours.
In addition, the user can end the session by actively closing the session, specifically, whether a request for closing the session is received or not can be identified, and if yes, the session state in the session table is updated to be the ending state. Specifically, after receiving a request for closing a session, acquiring a session ID; and traversing all the session tables, determining the session table to which the session ID belongs, and updating the session state field in the session table to be finished.
By applying the method of the embodiment of the application, the conversation is prevented from being in a running state all the time when not in use by setting the expiration time, so that the theme corresponding to the conversation becomes a zombie theme.
In step S501, if it is identified that the data operation request is a client message display request, the method of the embodiment of the present application further includes the steps of:
step one, inquiring all sent messages of the client and topic labels corresponding to all the sent messages.
And secondly, inquiring the message content associated with all the theme labels.
And thirdly, displaying the topic names corresponding to all topic labels and all the message contents associated with the topic labels according to the stored message contents and topic label association relations.
In order to facilitate the user to open the history and trace back the message, the message content associated with all the topics involved in the client can be displayed on the client interface after the client message display request is identified. Specifically, the user can trigger a client message display request by clicking the history record of the client interface, and after the client recognizes the client message display request, the client can inquire all sent messages of the client to acquire the message ID associated with the sent messages of the client; traversing all message tables, determining a message table comprising message IDs, reading a session ID field of a session associated with the message in the message table, and obtaining a session ID associated with the sent message; traversing all session tables, determining a session table comprising session IDs, reading a theme ID field of a theme associated with the session in the session table, and obtaining a theme ID associated with a sent message; traversing all topic tables, determining topic tables comprising topic IDs, reading topic name fields in the topic tables, acquiring topic names associated with messages sent by a client, and displaying the topic names at a third appointed position of a client interface. Specifically, the third designated location may be any location of the client interface that is the same as or different from the first designated location or the second designated location, for example, the third designated location may be a left side, a right side, an upper side, or a lower side of the client interface. As shown in fig. 10, the third designated location is to the right of the client interface.
In practical application, a target theme ID selected by a user can be obtained by identifying the theme name selected by the user, all session tables are traversed, the session table comprising the target theme ID is determined, and a session ID field in the session table is queried to obtain the target session ID; according to the target session ID, traversing all message tables, determining a message table comprising the target session ID, inquiring a message content field in the message table, acquiring all message contents corresponding to the target theme label, and displaying the message contents in a fourth appointed position of the client interface. The fourth specified location may be any one of interfaces of the client interface different from the third specified location. For example, the fourth specified location may be a left side, a right side, an upper side, or a lower side of the client interface. As shown in fig. 10, the fourth designated location is on the left side of the client interface, and the theme selected by the user is "how to apply xx rights", and accordingly, in the client display interface, the theme selected by the user is displayed in a deepened manner.
And displaying the topic names corresponding to all the target topic IDs at a third designated position of the display interface, wherein the topic names can be displayed at the third designated position of the client interface according to the time sequence. For example, each session table including each target topic ID may be determined by traversing all session tables, an update time field in each session table is read, an update time of a topic associated with a message sent by the client is obtained, and a topic name is displayed at a third designated location on the client interface according to a sequence of the update times.
All the queried message contents are displayed at the fourth designated position of the display interface, and all the message contents can be displayed at the fourth designated position of the client interface in the order of message creation time in the same manner as in the above-described embodiments. Since there are many messages, when displaying the message content, the same manner as in the above embodiment may be adopted to buffer the message content in the client, and display a specified number of message contents on the client interface, where the user may query other message contents by turning pages or drawing down.
By the method, the topic participated by the client can be determined by inquiring the sent message of the client, so that when the user inquires the history record, the message content of the topic participated by the user is displayed on a client interface, and the user can trace back the history.
In a fifth aspect of the embodiments of the present application, a message displaying method is provided, applied to a server, and the method includes the steps as shown in fig. 11:
step S1101: an instant message display request from a client is received, and a target theme label selected to be displayed is extracted from the instant message display request.
Step S1102: and sending the target topic name corresponding to the target topic label and the message content associated with the target topic label to the client according to the stored message content and topic label association relation.
In practical application, since the manner in which the server and the client store the target topic label and the associated message content is the same, when the server obtains the message content associated with the target topic label and the topic name corresponding to the target topic label, the server may adopt the same method as the manner in which the client obtains the target topic label according to the fourth aspect of the embodiment of the present application.
By the method, the message content which is related to the target topic label and sent by the server can be received by identifying the target topic label which is selected to be displayed, so that only the message content which is related to the target topic label is displayed, users can be free from the influence of the message content of other topics when communicating, and the group chat communication efficiency is improved.
In one possible implementation, the method of the embodiments of the present application further includes the following steps:
step one: a theme creation request is received from a client.
Step two: and judging whether the similarity between the theme name of the theme to be created and the historical theme name is smaller than a preset threshold value, and if so, sending the theme to be created to the client so that the client displays the theme to be created.
In practical application, since the server also stores the target topic tag and the associated message content, after receiving the topic creation request, the same or different manner as the client can be adopted to judge whether the topic name of the topic to be created is less than a preset threshold value or not.
By applying the method of the embodiment of the application, when the theme is created, the similarity matching is carried out on the theme names, so that the repeated creation of the same theme content by a user can be avoided, and the resource waste is reduced.
In one possible embodiment, the method further comprises:
if the similarity between the theme name of the theme to be created and the theme name of the history theme is greater than or equal to a preset threshold, judging whether the session of the history theme with the similarity greater than or equal to the preset threshold is finished, if so, creating the history theme with the similarity greater than or equal to the preset threshold, and sending the created history theme with the similarity greater than or equal to the preset threshold to the client so that the client displays the created history theme with the similarity greater than or equal to the preset threshold.
By applying the method of the embodiment of the application, when the theme is created, the similarity matching is carried out on the theme names, so that the repeated creation of the same theme content by a user can be avoided, and the resource waste is reduced.
In one possible embodiment, the method further comprises:
if a client message display request is received, then
Step one, inquiring all sent messages of the client and topic labels corresponding to all the sent messages.
And secondly, inquiring the message content associated with all the theme labels.
And thirdly, according to the stored message content and the association relation of the topic labels, the stored message content and the topic labels are sent to the client so that the client displays topic names corresponding to all topic labels and all message contents associated with the topic labels.
By the method, the topic participated by the client can be determined by inquiring the sent message of the client, so that when the user inquires the history record, the message content of the topic participated by the user is sent to the client, so that the history message can be displayed on the client interface, and the user can trace back the history.
In one possible embodiment, the method further comprises:
step one, receiving an instant message opening request sent by a client.
Step two, identifying the instant message label in the instant message request to be opened, traversing the set topic table, obtaining all topics comprising the instant message label to be opened, and sending the topic names of all the obtained topics to the client.
By applying the method of the embodiment of the application, the topic names of all topics in the instant message can be sent to the client when the client interface is displayed, so that a user can conveniently select the topics to be participated in the discussion later according to the topic names.
In a sixth aspect of the present application, there is provided a message display method, including the steps as shown in fig. 12:
step S1201: the client identifies the content of the received data operation request; if the data operation request is identified as an instant message display request, extracting a target theme label selected to be displayed; receiving a target theme name corresponding to the target theme label and message content associated with the target theme label sent by a server, and displaying the target theme name corresponding to the target theme label and the message content associated with the target theme label;
step S1202: the server receives an instant message display request from the client and extracts a target theme label selected to be displayed from the instant message display request; and sending the target topic name corresponding to the target topic label and the message content associated with the target topic label to the client according to the stored message content and topic label association relation.
In one possible implementation, the message content and topic tag association relationship is a message content and topic tag association relationship stored by the client, or is a stored message content and topic tag association relationship received from the server.
By the method, the message content which is related to the target topic label and sent by the server can be received by identifying the target topic label which is selected to be displayed, so that only the message content which is related to the target topic label is displayed, users can be free from the influence of the message content of other topics when communicating, and the group chat communication efficiency is improved.
In a seventh aspect of the present application, a message storage device is provided, applied to a client, where the device includes a structure as shown in fig. 13:
an instant message sending request receiving module 1301, configured to receive an instant message sending request;
the target topic tag identification module 1302 is configured to identify whether the instant message sending request includes a message content to be sent and a target topic tag, if yes, send the message content to be sent and the target topic tag included in the instant message sending request to the server, so that the server stores the message content to be sent and the target topic tag in an associated manner.
In one possible embodiment, the apparatus further comprises:
and the client saving module is used for storing the message content to be sent and the target theme label contained in the instant message sending request to the client in an associated mode.
In one possible embodiment, the apparatus further comprises:
and the instant message sending request discarding module is used for discarding the instant message sending request or storing the message content to be sent and sending the message content to the server if the instant message sending request is identified to not comprise the target theme label to which the message content to be sent is associated.
By applying the device provided by the embodiment of the application, the message content and the theme can be associated and stored, so that the message can be displayed only for a certain theme when the subsequent client is displayed, the user is not influenced by the message content of other themes when exchanging for a certain theme, and the communication efficiency of group chat is improved. And because each message can be associated with one theme, the message can be subjected to standard processing, so that the complexity of the implementation of the group chat system is reduced.
In an eighth aspect of the present application, there is provided a message storage device, applied to a server, the device including a structure as shown in fig. 14:
A data operation request receiving module 1401 for receiving an instant message sending request from a client;
the message storage module 1402 is configured to determine whether the instant message sending request includes a message content to be sent and a target topic label, and if so, store the message content to be sent and the target topic label in association, so that the instant message member can receive the instant message content of the associated target topic label.
In one possible embodiment, the apparatus further comprises:
the instant message sending request discarding module is configured to discard the instant message sending request if the instant message sending request includes the message content to be sent but does not include the target subject tag.
In one possible implementation, the message storage module includes:
the similarity judging sub-module is specifically configured to judge whether the similarity of the topic name corresponding to the target topic label and the topic name corresponding to the historical topic label is less than or equal to a preset threshold;
and the message storage sub-module is specifically used for carrying out association storage on the message content to be sent and the target theme label if yes, and carrying out association storage on the message content to be sent and the theme label of the history theme if no.
By applying the device provided by the embodiment of the application, the message content and the theme can be associated and stored, so that the message content only aiming at the target theme can be sent to the client for display when the subsequent client displays, the user is not influenced by the message content of other themes when communicating aiming at a certain theme, and the communication efficiency of group chat is improved. And because each message can be associated with one theme, the message can be subjected to standard processing, so that the complexity of the implementation of the group chat system is reduced.
In a ninth aspect of the present application, there is further provided a message storage device, including a structure as shown in fig. 15:
a client sending module 1501, configured to receive an instant message sending request from a client; identifying whether the instant message sending request comprises the message content to be sent and the target theme label, if so, sending the message content to be sent and the target theme label contained in the instant message sending request to a server;
the server receiving module 1502 is configured to determine, after receiving an instant message sending request from a client, whether the instant message sending request includes a message content to be sent and a target topic label, and if so, store the message content to be sent and the target topic label in association with each other, so that an instant message member can receive the instant message content of the associated target topic label.
By applying the device provided by the embodiment of the invention, the message content and the theme can be associated and stored, so that the message content only aiming at the target theme can be displayed when the subsequent client is displayed, the user is not influenced by the message content of other themes when exchanging aiming at a certain theme, and the communication efficiency of group chat is improved.
In a tenth aspect of the present application, a message display apparatus, applied to a client, includes a structure as shown in fig. 16:
a first data operation request identifying module 1601 for identifying the content of the received data operation request;
a topic tag identification module 1602 for extracting a target topic tag selected for display if it is identified that the data operation request is an instant message display request;
the message content display module 1603 is configured to receive a target topic name corresponding to the target topic label and a message content associated with the target topic label, which are sent by the server, and display the target topic name corresponding to the target topic label and the message content associated with the target topic label.
In one possible implementation, the message content display module includes:
the message content acquisition sub-module is specifically used for acquiring a target topic name corresponding to the target topic label and the message content associated with the target topic label according to the stored message content and the target topic label association relation;
The message content receiving sub-module is specifically configured to receive, if the target topic name corresponding to the target topic label and the message content associated with the target topic label are not obtained, the target topic name corresponding to the target topic label and the message content associated with the target topic label, which are sent by the server.
In one possible implementation, the message content display module includes:
the updating and displaying sub-module is specifically used for updating the client pre-display data and displaying the target theme name corresponding to the target theme label and the message content associated with the target theme label.
In one possible implementation, the manner in which the message content associated with the subject tag is presented includes: and displaying according to the positive sequence or the reverse sequence of the message generation time.
In one possible embodiment, the apparatus further comprises:
a theme creation request identification module for, if it is identified that the received data operation request is a theme creation request
And judging whether the similarity of the theme names of the theme to be created and the theme names of the historical theme is smaller than a preset threshold value, and if so, displaying the theme to be created.
In one possible embodiment, the apparatus further comprises:
the theme creation display module is used for judging whether the session of the history theme with the similarity being greater than or equal to a preset threshold is finished or not if the similarity between the theme name of the theme to be created and the theme name of the history theme is greater than or equal to the preset threshold, and creating and displaying the history theme with the similarity being greater than or equal to the preset threshold if the session of the history theme with the similarity being greater than or equal to the preset threshold is finished.
In one possible implementation, if the data operation request is identified as a client message display request, the apparatus further includes:
the sent message inquiring first module is used for inquiring all the sent messages of the client and topic labels corresponding to all the sent messages;
a message content query first module for querying message content associated with all topic tags;
and the participated topic message display module is used for displaying topic names corresponding to all topic labels and all message contents associated with the topic labels according to the stored message contents and topic label association relations.
In one possible implementation, if the data operation request is identified as an open instant message request, the apparatus further comprises:
the topic name display module is used for identifying the instant message label in the instant message request to be opened, traversing the set topic table, obtaining all topics comprising the instant message label to be opened, and displaying the topic names of all the obtained topics at the first appointed position.
By the device, the message content which is related to the target topic label and sent by the server can be received by identifying the target topic label which is selected to be displayed, so that only the message content which is related to the target topic label is displayed, the user can be free from the influence of the message content of other topics when communicating, and the group chat communication efficiency is improved.
In an eleventh aspect of the present application, there is provided a message display apparatus, applied to a server, where the apparatus includes a structure as shown in fig. 17:
an instant message display request receiving module 1701, configured to receive an instant message display request from a client, and extract a target theme label selected to be displayed from the instant message display request;
the message content sending module 1702 is configured to send, to the client, a target topic name corresponding to the target topic label and a message content associated with the target topic label according to the saved message content and topic label association relationship.
In one possible embodiment, the apparatus further comprises:
the theme creation request receiving module is used for receiving a theme creation request from the client;
and the topic name similarity judging module judges whether the topic name similarity of the topic to be created is smaller than a preset threshold value or not, and if so, the topic to be created is sent to the client so that the client displays the topic to be created.
In one possible embodiment, the apparatus further comprises:
the system comprises a creation topic sending module, a client and a user terminal, wherein the creation topic sending module is used for judging whether a session of a historical topic with similarity being greater than or equal to a preset threshold is finished if the similarity of a topic name of the topic to be created and the topic name of the historical topic is greater than or equal to the preset threshold, if yes, creating the topic to be created or the historical topic with similarity being greater than or equal to the preset threshold, and sending the created topic to be created or the historical topic with similarity being greater than or equal to the preset threshold to the client so that the client displays the created topic to be created or the historical topic with similarity being greater than or equal to the preset threshold.
In one possible embodiment, the apparatus further comprises:
a client message display request receiving module for receiving a client message display request
The second module of inquiry of the sent message is used for inquiring all sent messages of the client side and theme labels corresponding to all the sent messages;
a message content query second module for querying message content associated with all topic tags;
and the participated topic message sending module is used for sending the stored message content and topic labels to the client according to the stored message content and topic label association relation so that the client displays topic names corresponding to all topic labels and all message contents associated with the topic labels.
In one possible embodiment, the apparatus further comprises:
an open instant message request receiving module for receiving an open instant message request sent by a client;
the topic name sending module is used for identifying the instant message label in the instant message request to be opened, traversing the set topic table, obtaining all topics comprising the instant message label to be opened, and sending the topic names of all the obtained topics to the client.
By the device, the message content which is related to the target topic label and sent by the server can be received by identifying the target topic label which is selected to be displayed, so that only the message content which is related to the target topic label is displayed, the user can be free from the influence of the message content of other topics when communicating, and the group chat communication efficiency is improved.
In a twelfth aspect of the application, there is provided a message display apparatus, including a structure as shown in fig. 18:
the client side display module 1801 is configured to identify, by the client side, content of the received data operation request; if the data operation request is identified as an instant message display request, extracting a target theme label selected to be displayed; receiving a target theme name corresponding to the target theme label and message content associated with the target theme label sent by a server, and displaying the target theme name corresponding to the target theme label and the message content associated with the target theme label;
the server sending module 1802 is configured to receive an instant message display request from a client, and extract a target theme tag that is selected to be displayed from the instant message display request; and sending the target topic name corresponding to the target topic label and the message content associated with the target topic label to the client according to the stored message content and topic label association relation.
By the device, the message content which is related to the target topic label and sent by the server can be received by identifying the target topic label which is selected to be displayed, so that only the message content which is related to the target topic label is displayed, the user can be free from the influence of the message content of other topics when communicating, and the group chat communication efficiency is improved.
The embodiment of the present application also provides an electronic device, as shown in fig. 19, including a processor 1901, a communication interface 1902, a memory 1903, and a communication bus 1904, where the processor 1901, the communication interface 1902, and the memory 1903 complete communication with each other through the communication bus 1904,
a memory 1903 for storing a computer program;
the processor 1901 is configured to execute a program stored in the memory 1903, and implement the following steps:
receiving an instant message sending request;
and identifying whether the instant message sending request comprises the message content to be sent and the target theme label, if so, sending the message content to be sent and the target theme label which are included in the instant message sending request to a server, so that the server carries out association storage on the message content to be sent and the target theme label.
The embodiment of the present application further provides an electronic device, as shown in fig. 20, including a processor 2001, a communication interface 2002, a memory 2003 and a communication bus 2004, wherein the processor 2001, the communication interface 2002, the memory 2003 complete communication with each other through the communication bus 2004,
a memory 2003 for storing a computer program;
receiving an instant message sending request from a client;
judging whether the instant message sending request comprises the message content to be sent and the target theme label, if so, storing the message content to be sent and the target theme label in an associated mode so that the instant message member can receive the instant message content of the associated target theme label.
The present embodiment also provides an electronic device, as shown in fig. 21, including a processor 2101, a communication interface 2102, a memory 2103, and a communication bus 2104, where the processor 2101, the communication interface 2102, the memory 2103 complete communication with each other via the communication bus 2104,
a memory 2103 for storing a computer program;
the processor 2101 is configured to execute the program stored in the memory 2103, thereby implementing the following steps:
The client receives the instant message sending request; identifying whether the instant message sending request comprises the message content to be sent and the target theme label, if so, sending the message content to be sent and the target theme label contained in the instant message sending request to a server;
after receiving the instant message sending request from the client, the server judges whether the instant message sending request comprises the message content to be sent and the target theme label, if so, the message content to be sent and the target theme label are stored in an associated mode, so that the instant message member can receive the instant message content of the associated target theme label.
The embodiment of the present application also provides an electronic device, as shown in fig. 22, including a processor 2201, a communication interface 2202, a memory 2203 and a communication bus 2204, where the processor 2201, the communication interface 2202, the memory 2203 complete communication with each other through the communication bus 2204,
a memory 2203 for storing a computer program;
the processor 2201 is configured to execute the program stored in the memory 2203, and implement the following steps:
identifying the content of the received data operation request;
if the data operation request is identified as an instant message display request, extracting a target theme label selected to be displayed;
And receiving the target theme name corresponding to the target theme label and the message content associated with the target theme label sent by the server, and displaying the target theme name corresponding to the target theme label and the message content associated with the target theme label.
The embodiment of the present application also provides an electronic device, as shown in fig. 23, including a processor 2301, a communication interface 2302, a memory 2303, and a communication bus 2304, where the processor 2301, the communication interface 2302, and the memory 2303 perform communication with each other through the communication bus 2304,
a memory 2303 for storing a computer program;
the processor 2301 is configured to execute the program stored in the memory 2303, and implement the following steps:
receiving an instant message display request from a client, and extracting a target theme label selected to be displayed from the instant message display request;
and sending the target topic name corresponding to the target topic label and the message content associated with the target topic label to the client according to the stored message content and topic label association relation.
The embodiment of the present application further provides an electronic device, as shown in fig. 24, including a processor 2401, a communication interface 2402, a memory 2403, and a communication bus 2404, where the processor 2401, the communication interface 2402, and the memory 2403 complete communication with each other through the communication bus 2404,
A memory 2403 for storing a computer program;
the client identifies the content of the received data operation request; if the data operation request is identified as an instant message display request, extracting a target theme label selected to be displayed; receiving a target theme name corresponding to the target theme label and message content associated with the target theme label sent by a server, and displaying the target theme name corresponding to the target theme label and the message content associated with the target theme label;
the server receives an instant message display request from the client and extracts a target theme label selected to be displayed from the instant message display request; and sending the target topic name corresponding to the target topic label and the message content associated with the target topic label to the client according to the stored message content and topic label association relation.
The communication bus mentioned by the above terminal may be a peripheral component interconnect standard (Peripheral Component Interconnect, abbreviated as PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated as EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the terminal and other devices.
The memory may include random access memory (Random Access Memory, RAM) or non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processor, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In yet another embodiment provided herein, there is further provided a computer readable storage medium having a computer program stored therein, which when executed by a processor, implements the message storage method and the message display method of any of the above embodiments.
In yet another embodiment provided herein, there is also provided a computer program product containing instructions that, when run on a computer, cause the computer to perform the message storage method and message display method of any of the above embodiments.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for apparatus, electronic devices, computer readable storage medium embodiments, since they are substantially similar to method embodiments, the description is relatively simple, and relevant references are made to the partial description of method embodiments.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the present application. Any modifications, equivalent substitutions, improvements, etc. that are within the spirit and principles of the present application are intended to be included within the scope of the present application.
Claims (30)
1. A message storage method, applied to a client, the method comprising:
receiving an instant message sending request;
and identifying whether the instant message sending request comprises the message content to be sent and the target theme label, if so, sending the message content to be sent and the target theme label which are included in the instant message sending request to a server, so that the server carries out association storage on the message content to be sent and the target theme label.
2. The method according to claim 1, wherein the method further comprises:
and storing the message content to be sent and the target theme label contained in the instant message sending request to the client in an associated mode.
3. The method according to claim 1, wherein the method further comprises:
if the instant message sending request is identified to not comprise the target theme label to be associated with the message content to be sent, discarding the instant message sending request, or storing the message content to be sent and sending the message content to a server.
4. A message storage method, applied to a server, comprising:
receiving an instant message sending request from a client;
judging whether the instant message sending request comprises the message content to be sent and the target theme label, if so, storing the message content to be sent and the target theme label in an associated mode so that the instant message member can receive the instant message content of the associated target theme label.
5. The method according to claim 4, wherein the method further comprises: if the instant messaging request includes message content to be sent but does not include a target subject tag, the instant messaging request is discarded.
6. The method of claim 4, wherein the associating the message content to be sent with the target subject tag comprises:
judging whether the similarity of the topic names corresponding to the target topic labels and the topic names corresponding to the historical topic labels is smaller than or equal to a preset threshold value;
if yes, the information content to be sent and the target theme label are stored in an associated mode, and if not, the information content to be sent and the theme label of the historical theme are stored in an associated mode.
7. A method of message storage, the method comprising:
the client receives the instant message sending request; identifying whether the instant message sending request comprises the message content to be sent and the target theme label, if so, sending the message content to be sent and the target theme label contained in the instant message sending request to a server;
after receiving an instant message sending request from a client, the server judges whether the instant message sending request comprises message content to be sent and a target theme label, if so, the message content to be sent and the target theme label are stored in an associated mode, so that instant message members can receive the instant message content of the associated target theme label.
8. A message presentation method, applied to a client, the method comprising:
identifying the content of the received data operation request;
extracting a target theme tag selected to be displayed if the data operation request is identified as an instant message display request;
and receiving a target topic name corresponding to the target topic label and message content associated with the target topic label, which are sent by a server, and displaying the target topic name corresponding to the target topic label and the message content associated with the target topic label.
9. The method according to claim 8, wherein the receiving the message content associated with the target topic name corresponding to the target topic tag and sent by the server includes:
acquiring a target topic name corresponding to a target topic label and message content associated with the target topic label according to the stored message content and the target topic label association relation;
and if the target topic name corresponding to the target topic label and the message content associated with the target topic label are not obtained, receiving the target topic name corresponding to the target topic label and the message content associated with the target topic label sent by the server.
10. The method according to claim 8, wherein the presenting the target topic name corresponding to the target topic tag and the message content associated with the target topic tag includes:
and updating the pre-display data of the client, and displaying the target theme name corresponding to the target theme label and the message content associated with the target theme label.
11. The method of claim 8, wherein the manner in which the message content associated with the subject tag is presented comprises: and displaying according to the positive sequence or the reverse sequence of the message generation time.
12. The method according to claim 8 or 11, characterized in that the method further comprises:
if it is identified that the receipt of the data operation request is a subject creation request, then
And judging whether the similarity of the theme names of the themes to be created and the theme names of the historical themes is smaller than a preset threshold value, and if so, displaying the theme to be created.
13. The method according to claim 8 or 11, characterized in that the method further comprises:
if the similarity between the theme name of the theme to be created and the theme name of the history theme is larger than or equal to a preset threshold, judging whether the session of the history theme with the similarity larger than or equal to the preset threshold is finished, if so, creating and displaying the theme to be created or the history theme with the similarity larger than or equal to the preset threshold.
14. The method of claim 8, wherein if the data operation request is identified as a client message display request, the method further comprises:
inquiring all sent messages of the client and topic labels corresponding to all the sent messages;
querying message content associated with all the topic tags;
and displaying the topic names corresponding to all topic labels and all the message contents associated with the topic labels according to the stored message contents and topic label association relations.
15. The method of claim 8, wherein if the data operation request is identified as an open instant message request, the method further comprises:
and identifying an instant message label in the instant message request to be opened, traversing the set topic table, obtaining all topics comprising the instant message label to be opened, and displaying topic names of all obtained topics at a first appointed position.
16. A message presentation method, applied to a server, the method comprising:
receiving an instant message display request from a client, and extracting a target theme label selected to be displayed from the instant message display request;
and sending the target topic name corresponding to the target topic label and the message content associated with the target topic label to the client according to the stored message content and topic label association relation.
17. The method of claim 16, wherein the method further comprises:
receiving a theme creation request from a client;
and judging whether the similarity between the theme name of the theme to be created and the historical theme name is smaller than a preset threshold value, and if so, sending the theme to be created to a client so that the client displays the theme to be created.
18. The method of claim 16, wherein the method further comprises:
if the similarity between the theme name of the theme to be created and the theme name of the history theme is greater than or equal to a preset threshold, judging whether the session of the history theme with the similarity greater than or equal to the preset threshold is finished, if so, creating the history theme with the similarity greater than or equal to the preset threshold, and sending the created history theme with the similarity greater than or equal to the preset threshold to a client so that the client displays the created history theme with the similarity greater than or equal to the preset threshold.
19. The method of claim 16, wherein the method further comprises:
if a client message display request is received, then
Inquiring all sent messages of the client and topic labels corresponding to all the sent messages;
querying message content associated with all the topic tags;
and sending the saved message content and the topic label to a client according to the association relation of the saved message content and the topic label, so that the client displays topic names corresponding to all topic labels and all message contents associated with the topic label.
20. The method of claim 16, wherein the method further comprises:
receiving an instant message opening request sent by a client;
identifying an instant message label in an instant message request to be opened, traversing a set topic table, obtaining all topics comprising the instant message label to be opened, and sending topic names of all obtained topics to a client.
21. A method of message presentation, the method comprising:
the client identifies the content of the received data operation request; extracting a target theme tag selected to be displayed if the data operation request is identified as an instant message display request; receiving a target topic name corresponding to the target topic label and message content associated with the target topic label sent by a server, and displaying the target topic name corresponding to the target topic label and the message content associated with the target topic label;
the method comprises the steps that a server receives an instant message display request from a client, and a target theme label selected to be displayed is extracted from the instant message display request; and sending the target topic name corresponding to the target topic label and the message content associated with the target topic label to the client according to the stored message content and topic label association relation.
22. The method of claim 21, wherein the message content and topic tag association is a message content and topic tag association stored by the client itself or is a stored message content and topic tag association received from the server.
23. A message storage device for application to a client, the device comprising:
an instant message sending request receiving module for receiving an instant message sending request;
and the target topic label identification module is used for identifying whether the instant message sending request comprises the message content to be sent and the target topic label, if yes, the message content to be sent and the target topic label which are included in the instant message sending request are sent to a server, so that the server carries out association storage on the message content to be sent and the target topic label.
24. A message storage device for application to a server, the device comprising:
a data operation request receiving module for receiving an instant message sending request from a client;
and the message storage module is used for judging whether the instant message sending request comprises the message content to be sent and the target theme label, and if so, the message content to be sent and the target theme label are stored in an associated mode so that the instant message member can receive the instant message content of the associated target theme label.
25. A message storage device, the device comprising:
the client sending module is used for receiving the instant message sending request by the client; identifying whether the instant message sending request comprises the message content to be sent and the target theme label, if so, sending the message content to be sent and the target theme label contained in the instant message sending request to a server;
the server receiving module is used for judging whether the instant message sending request comprises the message content to be sent and the target theme label after receiving the instant message sending request from the client, and if so, storing the message content to be sent and the target theme label in an associated mode so that instant message members can receive the instant message content of the associated target theme label.
26. A message presentation apparatus for use with a client, the apparatus comprising:
the first data operation request identification module is used for identifying the content of the received data operation request;
the theme tag identification module is used for extracting the target theme tag selected to be displayed if the data operation request is identified as an instant message display request;
And the message content display module is used for receiving the target theme name corresponding to the target theme label and the message content associated with the target theme label and sent by the server, and displaying the target theme name corresponding to the target theme label and the message content associated with the target theme label.
27. A message display apparatus for use with a server, the apparatus comprising:
an instant message display request receiving module, configured to receive an instant message display request from a client, and extract a target theme label that is selected to be displayed from the instant message display request;
and the message content sending module is used for sending the target topic name corresponding to the target topic label and the message content associated with the target topic label to the client according to the stored message content and topic label association relation.
28. A message display apparatus, the apparatus comprising:
the client side display message content module is used for identifying the content of the received data operation request; extracting a target theme tag selected to be displayed if the data operation request is identified as an instant message display request; receiving a target topic name corresponding to the target topic label and message content associated with the target topic label sent by a server, and displaying the target topic name corresponding to the target topic label and the message content associated with the target topic label;
The server sends a message content module, which is used for receiving an instant message display request from a client, and extracting a target theme label selected to be displayed from the instant message display request; and sending the target topic name corresponding to the target topic label and the message content associated with the target topic label to the client according to the stored message content and topic label association relation.
29. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for carrying out the method steps of any one of claims 1 to 22 when executing a program stored on a memory.
30. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored therein a computer program which, when executed by a processor, implements the method steps of any of claims 1-22.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310129313.6A CN116319643B (en) | 2023-02-17 | 2023-02-17 | Message storage and message display method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310129313.6A CN116319643B (en) | 2023-02-17 | 2023-02-17 | Message storage and message display method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116319643A true CN116319643A (en) | 2023-06-23 |
CN116319643B CN116319643B (en) | 2024-07-19 |
Family
ID=86786040
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310129313.6A Active CN116319643B (en) | 2023-02-17 | 2023-02-17 | Message storage and message display method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116319643B (en) |
Citations (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030208545A1 (en) * | 2002-05-01 | 2003-11-06 | Eaton Eric Thomas | Instant message communication system for providing notification of one or more events and method therefor |
JP2005172858A (en) * | 2003-12-05 | 2005-06-30 | Nariko Matsuda | Method for providing language learning material, and language learning material |
CN102971730A (en) * | 2010-06-30 | 2013-03-13 | 微软公司 | Extracting facts from social network messages |
EP2731322A1 (en) * | 2012-11-09 | 2014-05-14 | BlackBerry Limited | Assigning a relevance level to a message |
CN106998292A (en) * | 2017-04-13 | 2017-08-01 | 合肥市群智科技有限公司 | A kind of message method and device |
US20180183747A1 (en) * | 2016-12-23 | 2018-06-28 | International Business Machines Corporation | Analyzing messages in social networks |
CN109274825A (en) * | 2018-09-27 | 2019-01-25 | 北京小米移动软件有限公司 | A kind of message prompt method and device |
CN110138645A (en) * | 2019-03-29 | 2019-08-16 | 腾讯科技(深圳)有限公司 | Display methods, device, equipment and the storage medium of conversation message |
CN110572309A (en) * | 2018-06-06 | 2019-12-13 | 腾讯科技(深圳)有限公司 | Information transmission method, computer device and storage medium |
CN111010332A (en) * | 2019-11-11 | 2020-04-14 | 维沃移动通信有限公司 | Group chat method and electronic equipment |
EP3758348A1 (en) * | 2019-06-25 | 2020-12-30 | Connexcom Ag | Method and system for distributing personalized messages |
CN112527528A (en) * | 2020-12-18 | 2021-03-19 | 平安科技(深圳)有限公司 | Data transmission method, device and storage medium based on message queue |
CN112540712A (en) * | 2020-12-07 | 2021-03-23 | 维沃移动通信有限公司 | Message processing method and device, electronic equipment and storage medium |
CN112684961A (en) * | 2020-12-30 | 2021-04-20 | 上海掌门科技有限公司 | Method and equipment for processing session information |
CN112787907A (en) * | 2020-12-31 | 2021-05-11 | 维沃移动通信有限公司 | Display method and device and electronic equipment |
CN113595886A (en) * | 2021-07-29 | 2021-11-02 | 北京达佳互联信息技术有限公司 | Instant messaging message processing method and device, electronic equipment and storage medium |
WO2022022305A1 (en) * | 2020-07-27 | 2022-02-03 | Bytedance Inc. | Messaging service |
CN114827156A (en) * | 2022-03-28 | 2022-07-29 | 阿里巴巴(中国)有限公司 | Message scheduling method, device, equipment and storage medium |
-
2023
- 2023-02-17 CN CN202310129313.6A patent/CN116319643B/en active Active
Patent Citations (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030208545A1 (en) * | 2002-05-01 | 2003-11-06 | Eaton Eric Thomas | Instant message communication system for providing notification of one or more events and method therefor |
JP2005172858A (en) * | 2003-12-05 | 2005-06-30 | Nariko Matsuda | Method for providing language learning material, and language learning material |
CN102971730A (en) * | 2010-06-30 | 2013-03-13 | 微软公司 | Extracting facts from social network messages |
EP2731322A1 (en) * | 2012-11-09 | 2014-05-14 | BlackBerry Limited | Assigning a relevance level to a message |
US20180183747A1 (en) * | 2016-12-23 | 2018-06-28 | International Business Machines Corporation | Analyzing messages in social networks |
CN106998292A (en) * | 2017-04-13 | 2017-08-01 | 合肥市群智科技有限公司 | A kind of message method and device |
CN110572309A (en) * | 2018-06-06 | 2019-12-13 | 腾讯科技(深圳)有限公司 | Information transmission method, computer device and storage medium |
CN109274825A (en) * | 2018-09-27 | 2019-01-25 | 北京小米移动软件有限公司 | A kind of message prompt method and device |
CN110138645A (en) * | 2019-03-29 | 2019-08-16 | 腾讯科技(深圳)有限公司 | Display methods, device, equipment and the storage medium of conversation message |
EP3758348A1 (en) * | 2019-06-25 | 2020-12-30 | Connexcom Ag | Method and system for distributing personalized messages |
CN111010332A (en) * | 2019-11-11 | 2020-04-14 | 维沃移动通信有限公司 | Group chat method and electronic equipment |
WO2022022305A1 (en) * | 2020-07-27 | 2022-02-03 | Bytedance Inc. | Messaging service |
CN112540712A (en) * | 2020-12-07 | 2021-03-23 | 维沃移动通信有限公司 | Message processing method and device, electronic equipment and storage medium |
CN112527528A (en) * | 2020-12-18 | 2021-03-19 | 平安科技(深圳)有限公司 | Data transmission method, device and storage medium based on message queue |
CN112684961A (en) * | 2020-12-30 | 2021-04-20 | 上海掌门科技有限公司 | Method and equipment for processing session information |
CN112787907A (en) * | 2020-12-31 | 2021-05-11 | 维沃移动通信有限公司 | Display method and device and electronic equipment |
CN113595886A (en) * | 2021-07-29 | 2021-11-02 | 北京达佳互联信息技术有限公司 | Instant messaging message processing method and device, electronic equipment and storage medium |
CN114827156A (en) * | 2022-03-28 | 2022-07-29 | 阿里巴巴(中国)有限公司 | Message scheduling method, device, equipment and storage medium |
Non-Patent Citations (2)
Title |
---|
YU SUZUKI: "《Credibility Assessment Using Wikipedia for Messages on Social Network Services》", 《IEEE》, 31 December 2011 (2011-12-31) * |
杨玥 等: "《 I-Sensing:面向智慧校园的参与感知应用系统》", 《小型微型计算机系统》, 15 September 2013 (2013-09-15) * |
Also Published As
Publication number | Publication date |
---|---|
CN116319643B (en) | 2024-07-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20210398028A1 (en) | Automatic reservation of a conference | |
KR101863981B1 (en) | Using text messages to interact with spreadsheets | |
US20200264923A1 (en) | Information Processing Method and Apparatus | |
CN108920675B (en) | Information processing method and device, computer storage medium and terminal | |
WO2017117509A1 (en) | Universal interaction platform for people, services, and devices | |
US8849854B2 (en) | Method and system for providing detailed information in an interactive manner in a short message service (SMS) environment | |
DE112015004481T5 (en) | FRAMEWORK FOR STATUS IDENTIFICATION OF MOBILE APPLICATIONS | |
CN101196912A (en) | Method and apparatus for application state synchronization | |
CN102362271A (en) | System and method for merging edits for a conversation in a hosted conversation system | |
CN105468235B (en) | Management method, device and the terminal of user session window | |
WO2018071432A1 (en) | Information pushing | |
CN112565316B (en) | Method and device for managing data | |
JP2023506087A (en) | Voice Wakeup Method and Apparatus for Skills | |
US20180365319A1 (en) | Identifying relationships from communication content | |
US11271881B2 (en) | Integration of an email client with hosted applications | |
CN116319643B (en) | Message storage and message display method and device, electronic equipment and storage medium | |
US11366864B2 (en) | Bot integration in a web-based search engine | |
KR102389034B1 (en) | Speech interaction method and apparatus, device and storage medium | |
CN112000489A (en) | Kafka data processing method and server | |
CN108154345B (en) | Event scheduling method, device, equipment and storage medium | |
CN106874010A (en) | A kind of method of the quick paging loadings of ListView in android system | |
CN115550502A (en) | Schedule recording and prompting method and device, intelligent equipment and storage medium | |
CN112769673A (en) | Communication record generation, recommendation and display method and device | |
US11977779B2 (en) | Smart queue for distributing user requests to automated response generating systems | |
US20230370681A1 (en) | System and method for integration of automatic response generating systems with non-api applications |
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 |