CN113014404A - Message transmission method and device, server and second client - Google Patents
Message transmission method and device, server and second client Download PDFInfo
- Publication number
- CN113014404A CN113014404A CN201911319671.3A CN201911319671A CN113014404A CN 113014404 A CN113014404 A CN 113014404A CN 201911319671 A CN201911319671 A CN 201911319671A CN 113014404 A CN113014404 A CN 113014404A
- Authority
- CN
- China
- Prior art keywords
- message
- client
- history
- server
- discussion group
- 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
Images
Classifications
-
- 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/1813—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast for computer conferences, e.g. chat rooms
- H04L12/1831—Tracking arrangements for later retrieval, e.g. recording contents, participants activities or behavior, network status
-
- 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/21—Monitoring or handling of messages
- H04L51/216—Handling conversation history, e.g. grouping of messages in sessions or threads
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- General Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention discloses an information transmission method, which comprises the following steps: receiving a member adding request sent by a first client, wherein the member adding request carries at least one history message in a discussion group and at least one newly added member waiting to join the discussion group; responding to the member adding request, writing the at least one history message into the server for storage, and adding the at least one newly added member to the discussion group; sending a prompt message to a second client corresponding to each of the at least one newly added member, wherein the prompt message is used for informing the second client to acquire the at least one history message from the server; the embodiment of the invention can only send at least one historical message to the newly added member, so that other members of the discussion group are prevented from being disturbed by irrelevant group messages, and the reading feeling of the user is improved.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a message transmission method, an apparatus, a server, and a second client.
Background
In the current internet era, network instant messaging has become one of the important components of people's daily life or daily work, and especially, establishing discussion groups based on various network communication software to conduct multi-person chatting is more popular among the broad users.
At present, because the members of the discussion group are not fixed, when the newly added member enters the group, the history message of the discussion group often cannot be acquired, and the history message must be forwarded to the newly added member in the discussion group through the old member of the discussion group. However, the forwarding of the history message in this way often causes the rest of the group members of the discussion group to be disturbed by irrelevant information, which results in a bad experience of the discussion group message.
Disclosure of Invention
The embodiment of the invention provides a message transmission method, a message transmission device, a server and a second client, which can only send at least one historical message to a newly added member, so that other members of a discussion group are prevented from being disturbed by irrelevant group messages, and the reading feeling of a user is improved.
In one aspect, an embodiment of the present invention provides an information transmission method, where the information transmission method is applied to a server side, and includes:
receiving a member adding request sent by a first client, wherein the member adding request carries at least one history message in a discussion group and at least one newly added member waiting to join the discussion group; responding to the member adding request, writing the at least one history message into the server for storage, and adding the at least one newly added member to the discussion group; and sending a prompt message to a second client corresponding to each of the at least one newly added member, wherein the prompt message is used for informing the second client to acquire the at least one history message from the server.
On the other hand, an embodiment of the present invention provides another information transmission method, where the information transmission method is applied to a first client, and includes:
selecting at least one history message in a discussion group and at least one newly added member waiting to join the discussion group in a session display interface; and sending a member adding request to a server, wherein the member adding request carries the at least one history message and the at least one newly added member and is sent to the server so as to send the at least one history message to a second client of the at least one newly added member.
Optionally, the method further includes: receiving a receiving failure message sent by the server; and in response to the reception failure message, resending the at least one history message to the server for storage.
In another aspect, an embodiment of the present invention provides another information transmission method, where the information transmission method is applied to a second client, and the method includes:
sending a message checking request to a server, wherein the message checking request carries attribute information of a second client; receiving the at least one history message which is returned by the server based on the message viewing request and conforms to the storage form; the storage form is a storage form of the at least one history message in the server, which is determined by the server according to the attribute information of the second client; and correspondingly displaying the at least one history message in a session display interface according to the storage form.
Optionally, before the sending the message viewing request to the server, the method further includes: receiving prompt information sent by the server, wherein the prompt information is used for informing the second client to acquire the at least one historical message from the server; and sending a message viewing request to a server according to the prompt message.
Correspondingly, the embodiment of the present invention further provides a first message transmission device, where the message transmission device includes:
a first receiving unit, configured to receive a member addition request sent by a first client, where the member addition request carries at least one history message in a discussion group and at least one newly added member waiting to join the discussion group;
the storage unit is used for responding to the member adding request, writing the at least one history message into the server for storage, and adding the at least one newly added member to the discussion group;
and the processing unit is used for sending a prompt message to a second client corresponding to each newly added member, wherein the prompt message is used for informing the second client to acquire the at least one history message from the server.
Correspondingly, the embodiment of the present invention further provides a second message transmission device, where the message transmission device includes:
the selection unit is used for selecting at least one history message in the discussion group and at least one newly added member waiting to join the discussion group in the session display interface;
and the sending unit is used for sending a member adding request to the server, wherein the member adding request carries the at least one history message and the at least one newly added member and is sent to the server so as to send the at least one history message to a second client of the at least one newly added member.
Correspondingly, the embodiment of the present invention further provides a third message transmission apparatus, where the message transmission apparatus includes:
the response unit is used for sending a message viewing request to the server, wherein the message viewing request carries the attribute information of the second client;
a second receiving unit, configured to receive the at least one history message that conforms to a storage form returned by the server based on the message viewing request, where the storage form is a storage form of the at least one history message in the server determined by the server according to the attribute information of the second client; and the display unit is used for correspondingly displaying the at least one history message in the session display interface according to the storage form.
Correspondingly, the embodiment of the present invention further provides a server, where the terminal includes an input device and an output device, and the server further includes:
a processor adapted to implement one or more instructions; and the number of the first and second groups,
a computer storage medium storing one or more instructions adapted to be loaded by the processor and to perform the steps of:
receiving a member adding request sent by a first client, wherein the member adding request carries at least one history message in a discussion group and at least one newly added member waiting to join the discussion group;
responding to the member adding request, writing the at least one history message into the server for storage, and adding the at least one newly added member to the discussion group;
and sending a prompt message to a second client corresponding to each of the at least one newly added member, wherein the prompt message is used for informing the second client to acquire the at least one history message from the server.
Correspondingly, an embodiment of the present invention further provides a first client, where the first client includes an input device and an output device, and the first client further includes:
a processor adapted to implement one or more instructions; and the number of the first and second groups,
a computer storage medium storing one or more instructions adapted to be loaded by the processor and to perform the steps of:
selecting at least one history message in a discussion group and at least one newly added member waiting to join the discussion group in a session display interface;
and sending a member adding request to a server, wherein the member adding request carries the at least one history message and the at least one newly added member and is sent to the server so as to send the at least one history message to a second client of the at least one newly added member.
Correspondingly, an embodiment of the present invention further provides a second client, where the second client includes an input device and an output device, and the second client further includes:
a processor adapted to implement one or more instructions; and the number of the first and second groups,
a computer storage medium storing one or more instructions adapted to be loaded by the processor and to perform the steps of:
sending a message checking request to a server, wherein the message checking request carries attribute information of a second client;
receiving the at least one history message which is returned by the server based on the message viewing request and conforms to the storage form; the storage form is a storage form of the at least one history message in the server, which is determined by the server according to the attribute information of the second client;
and correspondingly displaying the at least one history message in a session display interface according to the storage form.
Accordingly, embodiments of the present invention also provide a first readable computer storage medium storing a computer program comprising program instructions that, when executed by a processor, cause the processor to execute a message transmission method applied on a server side.
Accordingly, embodiments of the present invention also provide a second readable computer storage medium, which stores a computer program, the computer program comprising program instructions, which, when executed by a processor, cause the processor to execute a message transmission method applied at a first client side.
Accordingly, embodiments of the present invention also provide a third readable computer storage medium storing a computer program, the computer program comprising program instructions, which, when executed by a processor, cause the processor to execute a message transmission method applied at a second client side.
In the embodiment of the present invention, a member addition request sent by a first client is received, at least one newly added member waiting to join the discussion group, which is carried in the member addition request, is added to the discussion group, and then a prompt message is sent to a second client corresponding to each of the at least one newly added member, so as to notify the second client to obtain the at least one history message from the server, where the at least one history message is carried in the member addition request. Therefore, by adopting the message transmission mode, at least one newly added member can be directly added, and at least one historical message can be forwarded to the second client corresponding to the newly added member, so that the operation efficiency of member invitation and historical message forwarding is improved, other members of the discussion group are prevented from being disturbed by irrelevant group messages, and the reading feeling of the user is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention 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, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of an architecture of a message transmission method according to an embodiment of the present invention;
fig. 2 is a flowchart of a message transmission method according to an embodiment of the present invention;
fig. 3 is a flowchart of another message transmission method according to an embodiment of the present invention;
fig. 4a is a user interface diagram of a first client according to an embodiment of the present invention;
FIG. 4b is a diagram of another first client-side user interface provided by an embodiment of the present invention;
FIG. 4c is a diagram of another user interface provided by an embodiment of the present invention;
FIG. 4d is a diagram of another user interface provided by an embodiment of the present invention;
FIG. 4e is a diagram of yet another user interface provided by an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a first message transmission apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a second message transmission apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a third message transmission apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a server according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a first client according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a second client according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The message transmission method provided by the embodiment of the invention is applied to an instant messaging application program, and the instant application program comprises network instant chat software and other application programs with instant chat functions. In practical applications, the instant messaging application includes, but is not limited to, a WeChat, a microblog, a QQ, a SMS, and other applications with a social communication function, and the instant messaging application can be applied to a client, where the client can be a Personal Computer (PC), a notebook Computer, a mobile phone, a PAD (tablet Computer), a smart wearable device, and other devices.
Based on the above description, an architecture diagram of an information transmission method provided by the embodiment of the present invention will be described below with reference to fig. 1.
In the embodiment of the present invention, the message transmission scheme may be used in the message transmission system shown in fig. 1, and a message transmission client is invoked to execute the scheme as an example, so as to describe the message transmission method provided in the embodiment of the present invention: as shown in fig. 1, the system includes at least one server 100 and at least two clients, which are illustrated as a first client 200 and a second client 300. The server 100 is configured to manage at least one discussion group, and is configured to process a request sent by a client corresponding to each member in the at least one discussion group, where the processing at least includes responding to an interactive instruction sent by each client and storing data generated in the discussion group. By discussion group is meant an online chat discussion group or discussion group designed for multi-person communication based on instant messaging applications, the discussion group comprising at least one member. In the discussion group, an old member may join the discussion group by inviting an additional member, wherein clients corresponding to the old member of the discussion group are collectively referred to as the first client 200, and the client corresponding to the additional member is the second client 300. In practical applications, each member of the discussion group may correspond to one client, or may correspond to two or more clients, for example, each member of the discussion group may correspond to a computer client, a mobile client, or the like.
In the embodiment of the present invention, when detecting an operation initiated by a user to forward at least one history message to a newly added member, the first client 200 generates a member addition request and sends the member addition request to the server 100. Then the server 100 receives the member adding request, where the member adding request carries at least one new member waiting to join the discussion group and at least one history message selected by the first client 200; the server 100 then adds the new member to the discussion group and then stores at least one history message in the server 100. The server 100 further needs to acquire the second client 300 corresponding to each of the at least one new member and send the prompt message to the at least one second client 300, it can be understood that each new member may correspond to two or more different second clients 300, and the server 100 needs to send the prompt message to the at least one client corresponding to each new member; the second client 300 then responds to the alert message and sends a message viewing request to the server 100, retrieves at least one history information and displays the at least one history information in the discussion group on the second client 300.
Please refer to fig. 2, which is a flowchart illustrating a message transmission method according to an embodiment of the present invention; the present embodiment measures a flow describing a message transmission method from the server 100, and the method may include the following steps S201 to S205.
S201, the first client 200 receives at least one history message of an old member corresponding to the first client 200 in a session display interface for selecting a discussion group and at least one new member waiting to join the discussion group;
when the old member corresponding to the first client 200 triggers the forwarding of the history message on the page of the discussion group, the page of the discussion group is switched to be a session display interface. The member selects at least one history message on a session display interface, then switches to a contact person selection interface, selects at least one newly added member, and generates a member adding request according to the at least one history message and the newly added member, wherein the newly added member is a newly added member which is not in the discussion group.
S202, the first client 200 sends a member adding request to the server 100, where the member adding request carries the at least one history message and the at least one newly added member and is sent to the server 100, so as to send the at least one history message to the second client 300 of the at least one newly added member;
s203, the server 100 receives a member adding request sent by the first client 200, wherein the member adding request carries at least one history message in the discussion group and at least one newly added member waiting to join the discussion group;
when receiving a member addition request sent by the first client 200, the server 100 responds to and identifies the member addition request, where the member addition request carries at least one history message in the discussion group and at least one newly added member waiting to join the discussion group. The member addition request is generated when the first client 200 detects that the old member initiates in the discussion group and forwards at least one history message to at least one new member not in the discussion group, and in addition, the member addition request may also carry identification information of the new member acquired by the first client 200.
In practical applications, an aging member corresponding to the first client 200 may invite a user who is not a member of the discussion group to enter the discussion area or the discussion group, and the member invited to the discussion group is an additional member of the discussion group, where the additional member is only used to distinguish the aging member already existing in the discussion group. The first client 200 is a client corresponding to an old member already in the discussion group, and the client is also called a client corresponding to the server 100, and the instant messaging application can be run on the client between the members corresponding to the discussion group. Generally, each member in the discussion group may correspond to two clients, for example, two clients corresponding to one member may be a mobile phone client and a computer client.
After receiving the member addition request, the server 100 first identifies the discussion group information required in the member addition request. The discussion group is a discussion group or a discussion group managed by the server 100, and the members of the discussion group are changed in real time, and may include at least one member, or may include a plurality of members, and when the discussion group includes a plurality of members, the discussion group may be used for information exchange among the plurality of members at the same time. Further, the service requires identification information identifying the discussion group, which the server 100 identifies from its database. The database is established for each discussion group in the management process of the server 100 for the discussion group, and the database may contain the member list of the discussion group, and each member list of the discussion group includes the identification of the discussion group and the identifications of all members of the discussion group. The server 100 may also establish a corresponding database for each member in the discussion group, where the database stores data information related to the member in the discussion group.
The server 100 further needs to obtain identification information of at least one new member waiting to join the discussion group in the member addition request, where the identification information of the new member is carried in the member addition request sent by the first client 200.
S204, the server 100 responds to the member adding request, writes the at least one history message into the server 100 for storage, and adds the at least one newly added member to the discussion group;
the server 100 further needs to store at least one history message carried in the member addition request, where the at least one history message is a part of history messages selected by the old member corresponding to the first client 200 in the history messages of the discussion group. Specifically, the server 100 receives at least one history message sent by the first client 200, obtains the identifier of the discussion group, queries a database corresponding to the identifier of the discussion group, and stores the at least one history message in the database.
When receiving a member addition request sent by the first client 200, the server 100 identifies the identification information of the discussion group, searches a member list of the discussion group carrying the identification information, and adds at least one piece of identification information carried in the member addition request to the member list of the discussion group. In addition, the server 100 may further obtain member identification information corresponding to the first client 200 that initiates the member addition request and identification information of the new member, generate a member addition message, and send the member addition message to the clients corresponding to all members of the current discussion group, where the member addition message is used for each client to display a message that each client successfully joins the new member in the discussion group, and the member addition message may be "small female invite small female and smart join in the group chat", where "small female" is a member corresponding to the first client 200, and "small female" and "smart" are at least one new member corresponding to the second client 300, and it may be understood that the member addition message is not limited to the above example, and may also be a message in other formats or contents.
In one embodiment, the server 100, upon receiving the member addition request sent by the first client 200, may further include: acquiring identification information of an old member and identification information of a newly added member corresponding to the first client 200, generating verification information and sending the verification information to an administrator of the discussion group, wherein the verification information is used for the administrator to confirm whether the newly added member is added to enter the discussion group according to the identification information of the old member and the identification information of the newly added member, and the administrator is a member having a certain management authority on the discussion group. If the server 100 detects a verification success response sent by the client corresponding to the old member, the server 100 adds at least one new member to the member list of the discussion group, and sends a member adding message for successfully adding the new member to the client corresponding to each member of the discussion group.
In one embodiment, the server 100, upon receiving the member addition request sent by the first client 200, may further include: and judging whether the newly added member is on a white list corresponding to the discussion group, if not, adding at least one newly added member to the member list of the discussion group, and sending a member adding message of successfully adding the newly added member to a client corresponding to each member of the discussion group. The white list is a member category which is forbidden to be added to the discussion group, and other information of the newly added member can be screened through the white list, so that the user meeting the conditions is added to the discussion group. For example, addition of members under 18 years of age on the white list is prohibited, and the like.
In one embodiment, after the new members are added to the discussion group list, a corresponding database is established for at least one new member in the database corresponding to the discussion group, and at least one history message is stored in the database corresponding to each new member.
S205, the server 100 sends a prompt message to the second client 300 corresponding to each of the at least one new member, where the prompt message is used to notify the second client 300 to obtain the at least one history message from the server 100;
the server 100 obtains at least one second client 300 corresponding to the at least one new member while storing at least one history message or after storing the information. Specifically, the client identification information of the new member may be obtained, a prompt message may be generated, and the prompt message is sent to the second client 300 corresponding to the at least one new member, where the prompt message is used to notify the second client 300 to obtain the at least one history message from the server 100.
In the embodiment of the present invention, by receiving a member addition request sent by a first client 200, at least one newly added member waiting to join the discussion group, which is carried in the member addition request, is added to the discussion group, and then a prompt message is sent to a second client 300 corresponding to each of the at least one newly added member, so as to notify the second client 300 to obtain at least one history message from the server 100, where the at least one history message is carried in the member addition request. Therefore, by adopting the message transmission mode, at least one newly added member can be directly added, and at least one historical message can be forwarded to the second client 300 corresponding to the newly added member, so that the operation efficiency of member invitation and historical message forwarding is improved, other members of the discussion group are prevented from being disturbed by unrelated group messages, and the reading feeling of the user is improved.
Referring to fig. 3 again, it is a schematic flow chart of another message transmission method according to an embodiment of the present invention, where the method is applied to a message transmission system, where the message transmission system at least includes at least one server 100, at least one first client 200, and at least one second client 300; the information transmission method may be performed by the server 100/client. As shown in fig. 3, the message transmission method may include the following steps S301 to S312:
s301, the first client 200 receives at least one history message of an old member corresponding to the first client 200 in a session display interface for selecting a discussion group and at least one new member waiting to join the discussion group;
when the old member corresponding to the first client 200 triggers the forwarding of the history message on the page of the discussion group, the page of the discussion group is switched to be a session display interface. As shown in fig. 4a, the senior may make at least one selection of history messages for the session display interface 11, and the user may select a certain number of history messages by one-touch on the session display interface 11 directly, and the selection may be in the form of, but not limited to, clicking an information selection icon directly on the session display interface 11 to implement one-touch selection, as shown in fig. 4a, and the icon may be an icon 12 with "select following message" for prompting the user to make one-touch selection.
As shown in fig. 4b, when the senior corresponding to the first client 200 selects at least one history message, the first client 200 page switches to the contact selection page 21 for history message forwarding. The user may select the history message forwarding contact 23 on the contact selection page 21, and specifically, the contact selection page 20 may further display the contact corresponding to the instant messaging program and the corresponding contact in the discussion group. Secondly, the contact person selection page 21 may also display the nearest contact person corresponding to the instant messaging application program where the old member is located, and the old member may select the nearest contact person based on the contact person provided by the contact person selection page 21, and use the selected nearest contact person as a forwarding object of the history message. The contact person selection page 21 may further confirm and modify the history message forwarding content 23, and the contact person selection page 21 displays the number of currently selected history messages, such as a text sample 22 of "share the latest 50 chat records", where the text sample may be replaced according to actual needs. Optionally, the user may also change the content of the history messages directly according to the text 22 on the contact selection page 21, and click on the text 22 may switch the contact selection page 21 to the conversation display interface 11, or may also select to change the number of the history messages of the text 22 directly. It should be noted that the interface diagram sample provided in this embodiment does not limit the history message scenario of the present invention, and as long as the step of forwarding the history message to the new member by one key on the discussion group page falls within the protection scope of the present invention, the embodiment of the present invention directly controls and selects the number of the history messages, thereby avoiding the waste of operation caused by one piece of history message being selected by the user.
S302, the first client 200 sends a member adding request to the server 100, where the member adding request carries the at least one history message and the at least one newly added member and is sent to the server 100, so as to send the at least one history message to the second client 300 of the at least one newly added member.
S303, the server 100 receives a member adding request sent by the first client 200, where the member adding request carries at least one history message in the discussion group and at least one newly added member waiting to join the discussion group.
S304, the server 100 responds to the member adding request and adds the at least one newly added member to the discussion group.
The specific contents of steps S302-S304 may refer to the related descriptions in steps S201-S202, and are not described herein again.
S305, the server 100 stores each history message in the at least one history message to the server 100 in a message bubble form; alternatively, the at least one history message is merged into one history merged message and stored to the server 100 in the form of a message bubble.
After the server 100 adds at least one new member to the discussion group, a database corresponding to each new member is established in the database corresponding to the discussion group, wherein the database is stored in an asynchronous delivery manner. In other words, the server 100 first needs to record the new members, and store at least one history message in the database corresponding to each new member.
In one embodiment, the server 100 may store each of the at least one history message in the form of a message bubble. It is understood that the history group messages are displayed in a single spread in the form of bubbles, and the server 100 stores each history message in its original format and stores at least one history message in its original order. The bubble is a bubble frame for displaying the interaction information sent by the members on the discussion group page, and generally, each message sent by the user is displayed in one bubble frame.
In one embodiment, when at least one history message is stored to the server 100 in the form of a message bubble, the steps further include: if any message in the at least one history message fails to be written, the server 100 generates a reception failure message; the server 100 sends the reception failure message to the first client 200, so that the first client 200 resends the at least one history message to the server 100 for storage. It should be noted that, in such a storage scenario, the memory provided by the present invention needs to be able to support batch writing of multiple messages into the storage system, and the writing efficiency and writing throughput of the memory are generally better than those of a general memory, so that the efficiency of writing one history message is the same as that of writing multiple history messages, and the writing efficiency of the history messages is improved. Wherein the server 100 is in the process of message storage. If any one of the at least one history message fails to be stored, the server 100 generates a message of failed reception and sends the message to the first client 200, wherein the first client 200 is the first client 200 sending the member addition request to the server 100. Further, the first client 200, in response to the reception failure message, retransmits the at least one history message to the server 100 for storage.
In one embodiment, the server 100 may further merge the at least one history message into one history merged message, and store the history merged message to the server 100 in the form of a message bubble. Specifically, the server 100 merges at least one history message and displays the merged history merging information in a bubble box format for storage.
It should be noted that, in an embodiment, two formats need to be stored in the database corresponding to each additional member at the same time, so as to send at least one history message in different storage formats to the second client 300 corresponding to the additional member, where the storage format of the at least one history message that needs to be sent is determined according to the attribute information of the second client 300.
S306, the server 100 sends a prompt message to the second client 300 corresponding to each of the at least one new member, where the prompt message is used to notify the second client 300 to obtain the at least one history message from the server 100;
it can be understood that there may be a plurality of new members selected by the aging member corresponding to the first client 200, and the following description will be made with reference to one new member, and when there are a plurality of new members, the operation steps are the same as those mentioned in this embodiment.
In one embodiment, the number of the second clients 300 corresponding to each new member may be multiple, for example, a client corresponding to a mobile phone device and a client corresponding to a computer device of the new member. When sending the prompting message, it is necessary to send a message prompt to a different client corresponding to the same new member, so as to notify the second client 300 corresponding to the new member to obtain at least one history message from the server 100.
It should be noted that there is no execution precedence relationship between step S305 and step S306, and the data storage may be performed first and then the prompt message is sent to the second client 300, or the prompt message is sent to the second client 300 and then the data storage is performed, or both of them are performed simultaneously.
S307, the second client 300 receives the prompt message.
S308, the second client 300 sends a message viewing request to the server 100, where the message viewing request carries the attribute information of the second client 300.
S309, the server 100 receives a message viewing request sent by the second client 300, where the message viewing request carries attribute information of the second client 300; determining a storage form of the at least one history message in the server 100 according to the attribute information of the second client 300;
when acquiring the message viewing request sent by the second client 300, the server 100 acquires attribute information thereof, and determines a storage format of at least one history message that needs to be sent to the second client 300, where the attribute information includes a version number, a device name, a device type, and the like of the second client 300. It can be understood that in practical applications, the version of the client may affect the format for displaying the at least one history message, and in general, the new version may support displaying each history message in the at least one history message in the form of a message bubble; the old version can only support merging the at least one history message into one history merged message, and the history merged message is displayed in the form of one message bubble. Therefore, the server 100 returns data in different storage formats according to the version information of the client, so that the second client 300 outputs the at least one history message according to the returned storage format, and the method better conforms to the replacement of the current new and old versions, so that each user in different client versions can experience the history message forwarding manner provided by the embodiment.
S310, the server 100 sends the at least one history message conforming to the storage form to the second client 300, so as to correspondingly display the at least one history message according to the storage form in a session display interface of the second client 300.
S311, the second client 300 receives the at least one history message that is returned by the server 100 based on the message viewing request and conforms to a storage form, where the storage form is a storage form of the at least one history message in the server 100 that is determined by the server 100 according to the attribute information of the second client 300;
s312, the second client 300 displays the at least one history message one by one in a session display interface in a message bubble mode; or displaying history merging information in a session display interface in a message bubble form, wherein the history merging information is obtained by merging the at least one history message. The second client 300 outputs at least one history message according to the client version information returned by the server 100 according to the returned message format.
Generally, a common message is a message sent by a member and corresponds to a bubble, that is, the messages are displayed one by one through the message bubble. If the attribute information of the second client 300 is a new version, the at least one history message is displayed one by one in a message bubble form, that is, the at least one history message is displayed with reference to the display format of the normal message. As shown in fig. 4c, the new member may browse the at least one history message one by one directly on the discussion group conversation interface. The prompt text can be output to distinguish at least one history message and a message newly sent to the discussion group, and the prompt text can be "chat records shared over small universes" or the like.
In an embodiment, if the attribute information of the second client 300 is an old version, as shown in fig. 4d, the history merged message is displayed in the session display interface in the form of a message bubble, and the history merged message is displayed through a message bubble, where the size of the message bubble may be default to the system or may be user-defined. The user may only see a portion of the history message on the second client 300 under that version, with the remainder requiring the user to click on the message bubble for viewing.
It is to be understood that in the currently discussed group, at least one history message is merely forwarded to the second client 300 corresponding to the newly added member, whereas the at least one history message is not received again by the first client 200 corresponding to the old member of the currently discussed group. As shown in fig. 4e, the first client 200 corresponding to the old member intelligently receives a member adding message for adding the new member to the discussion group, where the chat records before the member adding message are history messages of the discussion group before the new member is not added. At least one history message that is repeated is not received after the member add message.
In one embodiment, the method further comprises: the server 100 further needs to determine a storage form of the at least one history message sent to the second client 300; when the storage form is that each history message in the at least one history message is stored in a message bubble form, the at least one history message is not calculated as an unread message; and when the storage form is that at least one history message is combined into one history combined message and the history combined message is stored in the form of a message bubble, calculating the history combined message as an unread message, wherein the unread message refers to a message which is not read by a user. In other words, the server 100 does not calculate the history message corresponding to the format in which each history message is stored in the form of message bubble in the unread message; only at least one time of history messages needs to be merged, a message bubble form is used as an unread message in a storage form, the unread message participates in statistics of unread messages, and the unread messages after statistics are returned to the second client 300 for the user to look up. It should be noted that the difference of the unread message number calculation is only for the calculation process of the forwarded history messages, and the calculation of the unread ordinary messages of the discussion group is calculated according to the normal number of messages, and in general, each bubble corresponds to one unread message.
In one embodiment, each history message correspondingly possesses a first identification code, and the first identification code is used for uniquely identifying the history message at the first client 200 side, and the method further comprises the following steps:
s11, the server 100 generates a second identification code of the at least one history message for the newly added member according to the first identification code of the at least one history message, where the second identification code is used to uniquely identify the history message at the second client 300 side;
s12, the server 100 sends the at least one history message and the second identifier code of the at least one history message to the second client 300 of the at least one newly added member;
s13, responding to a skip operation of the newly added member of the second client 300 for a reply message, and acquiring a second identification code of the target message, where the reply message is a message for replying the target message; skipping to the target message according to the second identification code of the target message, wherein the target message is any one of the at least one historical message.
In one embodiment, when the server 100 receives a message from a member of the discussion group, it assigns a first identification code to each message, and the first identification code is used to uniquely identify the message. It can be understood that, before the new member joins, when the server 100 stores the message for each old member in the current discussion group, the first identification code carried in the message is stored at the same time, that is, when the message is stored, the first identification codes of the same message in the database corresponding to each member in the current discussion group are identical, so that the members in the current discussion group position the message according to the first identification codes. In practical application, the first identification code may be Appinfo corresponding to each message, the Appinfo is generated for each history message, and when a certain member in the discussion group replies to a certain history message, and each old member in the discussion group clicks the reply message, the old member can jump to the history message corresponding to the reply message according to a jump protocol corresponding to the Appinfo.
When the server 100 adds the new member to the discussion group and stores at least one history message sent by the first client 200 for the new member, a second identification code corresponding to the history message is generated according to the first identification code corresponding to each history message and is stored in the database corresponding to the new member, that is, in the database stored by the new member, each history message corresponds to a second identification code, and the second identification code is different from the first identification code, but records the first identification code of the history message. In practical application, a corresponding origin-Appinfo may be generated according to an Original Appinfo of a certain history message, where the origin-Appinfo records the Original Appinfo of the history message.
The server 100 stores the generated second identification code together with the historical message, and then sends the second identification code to the second client 300 corresponding to the newly added member. If the newly added member corresponding to the second client makes a reply message to the target message in the at least one history message, the target message is any history message in the at least one history message, and the reply message can be read by all old members or newly added members of the discussion group. When the second client 300 detects that the newly added member of the second client 300 clicks on the reply message, the second client 300 obtains the second identification code of the target message corresponding to the reply message, and jumps to the target message according to the second identification code. In addition, when the first client 200 detects that the corresponding older member clicks the reply message, the first client 200 acquires the first identification code of the target message corresponding to the reply message, and jumps to the target message according to the first identification code.
For example, if the member a of the discussion group receives the target message in the current discussion group and stores the first identification code of the entry tag message in its corresponding database, the member a exits the discussion group. When the member A is invited again to the discussion group only and at least one history message containing the target message is sent to the member A for storing again, a second identification code is generated according to the first identification code of the entry target message. That is, member a will store both identifiers for the same targeted message.
It can be understood that, by the above method, the first identification code is generated for each historical message, so that the target message of the reply message can be accurately located in the process of message reply, and the method is more close to the user requirement. Meanwhile, the second identification code is generated for the same historical message at the second client 300 side, so that the phenomenon that two first identification codes exist in a storage corresponding to the member due to the fact that the same historical message is stored for the member twice can be avoided, and the effect of unique identification cannot be achieved. Therefore, the second client 300 can jump to the target message based on the reply message through the second identification code, and the user requirements are better met.
In one embodiment, the method further comprises: and sending at least one history message to a second communication program associated with a first communication program in which the current discussion group is positioned, wherein the second communication program is in data intercommunication with the first communication program. Specifically, the second communication program is associated with the first communication program, where the first communication program and the second communication program may be the same login user, and the user may receive, based on the same account information, a notification message corresponding to the first communication program in the second communication program, where the notification message includes at least one history message. Specifically, the first client 200 sends at least one history message to the server 100 corresponding to the first communication program and the server 100 corresponding to the second communication program at the same time, and then after the new member is added to the discussion group on the first communication program, the server 100 corresponding to the first communication program and the server 100 corresponding to the second communication program send at least one history message as the communication program on the respective client, so that the corresponding at least one history message is output by the different application programs of the second client 300 respectively
For example, the first communication program is enterprise WeChat, the second communication program is WeChat, user B is added to the discussion group in the enterprise WeChat, and then at least one history message is sent to the enterprise WeChat where user B is located, and both the corresponding WeChat of user B and the enterprise WeChat can receive the at least one history message based on the data intercommunication program. But the corresponding background of the WeChat client is output in a format that at least one history message is merged into one history merged message and is displayed through one message bubble.
In the embodiment of the present invention, the server 100 adds at least one new member to the discussion group by receiving the member addition request sent by the first client 200, stores at least one history message in two formats, and then sends a prompt message to the second client 300 corresponding to each of the at least one new member, and the second client 300 retrieves at least one history message in a format matched with the second client according to its own attribute information, so as to display the history message in the second client 300 according to the format. Therefore, by adopting the message transmission mode, at least one newly added member can be directly added, and at least one historical message can be forwarded to the second client 300 corresponding to the newly added member, so that the operation efficiency of member invitation and historical message forwarding is improved, and other members of the discussion group are prevented from being disturbed by unrelated group messages; meanwhile, at least one historical message is displayed in different formats according to the attribute information of the second client 300, the requirement of the user is better met, and meanwhile, the members who newly enter the group have more pleasant reading experience in the mode that a message bubble single piece is spread.
Based on the description of the above message transmission method embodiment, the embodiment of the present invention also discloses a first message transmission apparatus, which may be a computer program (including a program code) running in a server. The message transmitting apparatus may perform the method shown in fig. 2 or fig. 3. Referring to fig. 5, the message transmission apparatus may operate as follows:
a first receiving unit 101, configured to receive a member addition request sent by a first client, where the member addition request carries at least one history message in a discussion group and at least one newly added member waiting to join the discussion group;
a storage unit 102, configured to respond to the member addition request, write the at least one history message into the server for storage, and add the at least one newly added member to the discussion group;
a processing unit 103, configured to send a prompt message to a second client corresponding to each of the at least one newly added member, where the prompt message is used to notify the second client to obtain the at least one history message from the server.
In one embodiment, when the at least one history message is written to the server for storage, the processing unit 103 is further configured to write each history message in the at least one history message to the server for storage in the form of a message bubble; and merging the at least one history message into a history merged message, and writing the history merged message into the server for storage in a message bubble form.
In another embodiment, when each history message in the at least one history message is stored in the server in the form of a message bubble, the processing unit 103 is further configured to, if any message in the at least one history message fails to be written, generate a reception failure message by the server; the server sends the receiving failure message to the first client side, so that the first client side sends the at least one history message to the server again for storage.
In another embodiment, when sending a prompt message to a second client corresponding to each of the at least one newly added member, the processing unit 103 is further configured to receive a message viewing request sent by the second client, where the message viewing request carries attribute information of the second client; determining a storage form of the at least one history message in the server according to the attribute information of the second client; and sending the at least one history message conforming to the storage form to the second client, so as to correspondingly display the at least one history message in a session display interface of the second client according to the storage form.
In another embodiment, each of the history messages has a first identification code, where the first identification code is used to uniquely identify the history message at the first client side, and the processing unit 103 is further configured to generate a second identification code of each of the at least one history message for the newly added member according to the first identification code of each of the at least one history message, where the second identification code is used to uniquely identify the history message at the second client side; and sending the at least one history message and the second identification code of the at least one history message to the second client of the at least one newly added member.
In the embodiment of the invention, by adopting the message transmission mode, at least one newly added member can be directly added, and at least one historical message can be forwarded to the second client corresponding to the newly added member, so that the operation efficiency of member invitation and historical message forwarding is improved, other members of a discussion group are prevented from being disturbed by unrelated group messages, and the reading feeling of a user is improved.
It is to be understood that, for specific implementation of each functional module in the embodiments of the present invention, reference may be made to the description related to the foregoing method embodiment, which is not described herein again.
Based on the description of the above message transmission method embodiment, the embodiment of the present invention also discloses a second message transmission apparatus, which may be a computer program (including a program code) running in the first client. The message transmitting apparatus may perform the method shown in fig. 2 or fig. 3. Referring to fig. 6, the message transmission apparatus may operate as follows:
a selecting unit 201, configured to select at least one history message in a discussion group and at least one new member waiting to join the discussion group in a session display interface;
a sending unit 202, configured to send a member addition request to the server, where the member addition request carries the at least one history message and the at least one newly added member and is sent to the server, so as to send the at least one history message to a second client of the at least one newly added member.
In one embodiment, the sending unit 202 is further configured to receive a reception failure message sent by the server; and in response to the reception failure message, resending the at least one history message to the server for storage.
It is to be understood that, for specific implementation of each functional module in the embodiments of the present invention, reference may be made to the description related to the foregoing method embodiment, which is not described herein again.
Based on the above description of the message transmission method embodiment, the embodiment of the present invention further discloses a third message transmission apparatus, which may be a computer program (including a program code) running in the second client. The message transmitting apparatus may perform the method shown in fig. 2 or fig. 3. Referring to fig. 7, the message transmission apparatus may operate as follows:
the response unit 301 sends a message viewing request to the server, where the message viewing request carries attribute information of the second client;
a second receiving unit 302, configured to receive the at least one history message that is returned by the server based on the message viewing request and conforms to a storage form, where the storage form is a storage form of the at least one history message in the server, where the at least one history message is determined by the server according to the attribute information of the second client;
the display unit 303 is configured to correspondingly display the at least one history message in the session display interface according to the storage form.
In another embodiment, when the at least one history message is correspondingly displayed in the session display interface according to the storage form, the display unit 303 is further configured to display the at least one history message in the session display interface one by one in a form of message bubbles; or displaying history merging information in a session display interface in a message bubble form, wherein the history merging information is obtained by merging the at least one history message.
In another embodiment, the at least one history message carries a second identifier of each history message, and the display unit 303 is further configured to obtain the second identifier of the target message in response to a skip operation of a new member corresponding to the second client for a reply message, where the reply message is a message for replying to the target message; skipping to the target message according to the second identification code of the target message, wherein the target message is any one of the at least one historical message.
In yet another embodiment, before the sending of the message viewing request to the server, the response unit 301 is further configured to receive a prompt message sent by the server, where the prompt message is used to notify the second client to obtain the at least one history message from the server; and sending a message viewing request to a server according to the prompt message.
In the embodiment of the invention, by adopting the message transmission mode, at least one newly added member can be directly added, and at least one historical message can be forwarded to the second client corresponding to the newly added member, so that the operation efficiency of member invitation and historical message forwarding is improved, other members of a discussion group are prevented from being disturbed by unrelated group messages, and the reading feeling of a user is improved.
It is to be understood that, for specific implementation of each functional module in the embodiments of the present invention, reference may be made to the description related to the foregoing method embodiment, which is not described herein again.
Based on the description of the method embodiment and the device embodiment, the embodiment of the invention also provides a server. Referring to fig. 8, the server includes at least a processor 401, an input device 402, an output device 403, and a computer storage medium 404. The processor 401, input device 402, output device 403, and computer storage medium 404 within the server may be connected by a bus or other means.
A computer storage medium 404 may be stored in the memory of the server, the computer storage medium 404 being used for storing a computer program comprising program instructions, the processor 401 being used for executing the program instructions stored by the computer storage medium 404.
The processor 401 (or CPU) is a computing core and a control core of the terminal, and is adapted to implement one or more instructions, and in particular, is adapted to load and execute the one or more instructions so as to implement a corresponding method flow or a corresponding function; the processor 801 according to the embodiment of the present invention may be configured to perform message transmission, including: receiving a member adding request sent by a first client, wherein the member adding request carries at least one history message in a discussion group and at least one newly added member waiting to join the discussion group; responding to the member adding request, writing the at least one history message into the server for storage, and adding the at least one newly added member to the discussion group; and sending a prompt message to a second client corresponding to each of the at least one newly added member, wherein the prompt message is used for informing the second client to acquire the at least one history message from the server.
The embodiment of the invention also provides a computer storage medium (Memory), which is a Memory device in the terminal and is used for storing programs and data. It is understood that the computer storage medium herein may include a built-in storage medium in the terminal, and may also include an extended storage medium supported by the terminal. The computer storage medium provides a storage space that stores an operating system of the terminal. Also stored in this memory space are one or more instructions, which may be one or more computer programs (including program code), suitable for loading and execution by processor 401. The computer storage medium may be a high-speed RAM memory, or may include a non-volatile memory (non-volatile memory), such as a flash memory (flash memory), a solid-state drive (SSD), or the like; the storage means may also comprise a combination of memories of the kind described above; and optionally at least one computer storage medium located remotely from the processor.
In one embodiment, one or more instructions stored in a computer storage medium may be loaded and executed by processor 401 to perform the corresponding steps described above with respect to the method in the scene cut embodiment; in particular implementations, one or more instructions in the computer storage medium are loaded by processor 401 and perform the following steps:
responding to the member adding request, writing the at least one history message into the server for storage, and adding the at least one newly added member to the discussion group;
and sending a prompt message to a second client corresponding to each of the at least one newly added member, wherein the prompt message is used for informing the second client to acquire the at least one history message from the server.
In another embodiment, when the at least one history message is written to the server for storage, the processor 401 is further configured to: writing each history message in the at least one history message into the server for storage in a message bubble form; and merging the at least one history message into a history merged message, and writing the history merged message into the server for storage in a message bubble form.
In yet another embodiment, when storing each history message of the at least one history message to the server in the form of a message bubble, the processor 401 is further configured to: if any message in the at least one historical message fails to be written, the server generates a receiving failure message; the server sends the receiving failure message to the first client side, so that the first client side sends the at least one history message to the server again for storage.
In another embodiment, when sending the prompt message to the second client corresponding to each of the at least one newly added member, the processor 401 is further configured to: receiving a message viewing request sent by the second client, wherein the message viewing request carries attribute information of the second client; determining a storage form of the at least one history message in the server according to the attribute information of the second client; and sending the at least one history message conforming to the storage form to the second client, so as to correspondingly display the at least one history message in a session display interface of the second client according to the storage form.
In yet another embodiment, each history message has a first identification code, and the first identification code is used for uniquely identifying the history message at the first client side, and the processor 401 is further configured to perform: generating a second identification code of the at least one historical message for the newly added member according to the first identification code of the at least one historical message, wherein the second identification code is used for uniquely identifying the historical message at the second client side; and sending the at least one history message and the second identification code of the at least one history message to the second client of the at least one newly added member.
In the embodiment of the invention, by adopting the message transmission mode, at least one newly added member can be directly added, and at least one historical message can be forwarded to the second client corresponding to the newly added member, so that the operation efficiency of member invitation and historical message forwarding is improved, other members of a discussion group are prevented from being disturbed by unrelated group messages, and the reading feeling of a user is improved.
It is to be understood that, for the specific implementation of the processor 401 in the embodiment of the present invention, reference may be made to the description related to the foregoing method embodiment, which is not described herein again.
Based on the description of the method embodiment and the device embodiment, the embodiment of the present invention further provides a first client. Referring to fig. 9, the server includes at least a processor 501, an input device 502, an output device 503, and a computer storage medium 504. Wherein the processor 501, the input device 502, the output device 503, and the computer storage medium 504 within the first client may be connected by a bus or other means.
A computer storage medium 504 may be stored in the memory of the first client, the computer storage medium 504 being adapted to store a computer program comprising program instructions, the processor 501 being adapted to execute the program instructions stored by the computer storage medium 504.
The processor 501 (or CPU) is a computing core and a control core of the first client, and is adapted to implement one or more instructions, and specifically, adapted to load and execute the one or more instructions so as to implement a corresponding method flow or a corresponding function; the processor 501 according to the embodiment of the present invention may be configured to perform message transmission, including: selecting at least one history message in a discussion group and at least one newly added member waiting to join the discussion group in a session display interface; and sending a member adding request to a server, wherein the member adding request carries the at least one history message and the at least one newly added member and is sent to the server so as to send the at least one history message to a second client of the at least one newly added member.
The embodiment of the invention also provides a computer storage medium (Memory), which is a Memory device in the terminal and is used for storing programs and data. It is understood that the computer storage medium herein may include a built-in storage medium in the terminal, and may also include an extended storage medium supported by the terminal. The computer storage medium provides a storage space that stores an operating system of the terminal. Also stored in this memory space are one or more instructions, which may be one or more computer programs (including program code), suitable for loading and execution by processor 501. The computer storage medium may be a high-speed RAM memory, or may include a non-volatile memory (non-volatile memory), such as a flash memory (flash memory), a solid-state drive (SSD), or the like; the storage means may also comprise a combination of memories of the kind described above; and optionally at least one computer storage medium located remotely from the processor.
In one embodiment, one or more instructions stored in a computer storage medium may be loaded and executed by processor 501 to perform the corresponding steps described above with respect to the method in the scene cut embodiment; in particular implementations, one or more instructions in the computer storage medium are loaded by processor 501 and perform the following steps:
selecting at least one history message in a discussion group and at least one newly added member waiting to join the discussion group in a session display interface; and sending a member adding request to a server, wherein the member adding request carries the at least one history message and the at least one newly added member and is sent to the server so as to send the at least one history message to a second client of the at least one newly added member.
In one embodiment, the processor 501 is further configured to perform: receiving a receiving failure message sent by the server; and in response to the reception failure message, resending the at least one history message to the server for storage.
In the embodiment of the invention, by adopting the message transmission mode, at least one newly added member can be directly added, and at least one historical message can be forwarded to the second client corresponding to the newly added member, so that the operation efficiency of member invitation and historical message forwarding is improved, other members of a discussion group are prevented from being disturbed by unrelated group messages, and the reading feeling of a user is improved.
It is to be understood that, for the specific implementation of the processor 501 in the embodiment of the present invention, reference may be made to the description related to the foregoing method embodiment, which is not described herein again.
Based on the description of the method embodiment and the device embodiment, the embodiment of the present invention further provides a second client. Referring to fig. 10, the server includes at least a processor 601, an input device 602, an output device 603, and a computer storage medium 604. Wherein the processor 601, input device 602, output device 603, and computer storage medium 604 within the second client may be connected by a bus or other means.
A computer storage medium 604 may be stored in the memory of the second client, said computer storage medium 604 being adapted to store a computer program comprising program instructions, said processor 601 being adapted to execute the program instructions stored by said computer storage medium 604.
The processor 601 (or CPU) is a computing core and a control core of the terminal, and is adapted to implement one or more instructions, and in particular, is adapted to load and execute the one or more instructions so as to implement a corresponding method flow or a corresponding function; the processor 601 according to the embodiment of the present invention may be configured to perform message transmission, including: sending a message checking request to a server, wherein the message checking request carries attribute information of a second client; receiving the at least one history message which is returned by the server based on the message viewing request and conforms to a storage form, wherein the storage form is the storage form of the at least one history message in the server, which is determined by the server according to the attribute information of the second client; and correspondingly displaying the at least one history message in a session display interface according to the storage form.
The embodiment of the invention also provides a computer storage medium (Memory), which is a Memory device in the terminal and is used for storing programs and data. It is understood that the computer storage medium herein may include a built-in storage medium in the terminal, and may also include an extended storage medium supported by the terminal. The computer storage medium provides a storage space that stores an operating system of the terminal. Also stored in this memory space are one or more instructions, which may be one or more computer programs (including program code), suitable for loading and execution by processor 601. The computer storage medium may be a high-speed RAM memory, or may include a non-volatile memory (non-volatile memory), such as a flash memory (flash memory), a solid-state drive (SSD), or the like; the storage means may also comprise a combination of memories of the kind described above; and optionally at least one computer storage medium located remotely from the processor.
In one embodiment, one or more instructions stored in a computer storage medium may be loaded and executed by processor 601 to perform the corresponding steps described above with respect to the method in the scene cut embodiment; in particular implementations, one or more instructions in the computer storage medium are loaded and executed by processor 601 to perform the steps of:
sending a message checking request to a server, wherein the message checking request carries attribute information of a second client; receiving the at least one history message which is returned by the server based on the message viewing request and conforms to a storage form, wherein the storage form is the storage form of the at least one history message in the server, which is determined by the server according to the attribute information of the second client; and correspondingly displaying the at least one history message in a session display interface according to the storage form.
In another embodiment, when the at least one history message is correspondingly displayed in the session display interface according to the storage form, the processor 601 is further configured to: displaying the at least one historical message one by one in a session display interface in a message bubble mode; or displaying history merging information in a session display interface in a message bubble form, wherein the history merging information is obtained by merging the at least one history message.
In another embodiment, the at least one history message carries a second identifier code of each history message, and the processor 601 is further configured to: responding to a skip operation of a newly added member corresponding to the second client for a reply message, and acquiring a second identification code of a target message, wherein the reply message is a message for replying the target message; skipping to the target message according to the second identification code of the target message, wherein the target message is any one of the at least one historical message.
In yet another embodiment, before said sending the message view request to the server, said processor 601 is further configured to: receiving prompt information sent by the server, wherein the prompt information is used for informing the second client to acquire the at least one historical message from the server; and sending a message viewing request to a server according to the prompt message.
In the embodiment of the invention, by adopting the message transmission mode, at least one newly added member can be directly added, and at least one historical message can be forwarded to the second client corresponding to the newly added member, so that the operation efficiency of member invitation and historical message forwarding is improved, other members of a discussion group are prevented from being disturbed by unrelated group messages, and the reading feeling of a user is improved.
It is to be understood that, for the specific implementation of the processor 601 in the embodiment of the present invention, reference may be made to the description related to the foregoing method embodiment, which is not described herein again.
In the embodiment of the present invention, a member addition request sent by a first client is received, at least one newly added member waiting to join the discussion group, which is carried in the member addition request, is added to the discussion group, and then a prompt message is sent to a second client corresponding to each of the at least one newly added member, so as to notify the second client to obtain the at least one history message from the server, where the at least one history message is carried in the member addition request. Therefore, by adopting the message transmission mode, at least one newly added member can be directly added, and at least one historical message can be forwarded to the second client corresponding to the newly added member, so that the operation efficiency of member invitation and historical message forwarding is improved, other members of the discussion group are prevented from being disturbed by irrelevant group messages, and the reading feeling of the user is improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
While the invention has been described with reference to a number of embodiments, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (10)
1. A message transmission method is applied to a server side, and the method comprises the following steps:
receiving a member adding request sent by a first client, wherein the member adding request carries at least one history message in a discussion group and at least one newly added member waiting to join the discussion group;
responding to the member adding request, writing the at least one history message into the server for storage, and adding the at least one newly added member to the discussion group;
and sending a prompt message to a second client corresponding to each of the at least one newly added member, wherein the prompt message is used for informing the second client to acquire the at least one history message from the server.
2. The method of claim 1, wherein the writing the at least one history message to the server for storage comprises:
writing each history message in the at least one history message into the server for storage in a message bubble form;
and merging the at least one history message into a history merged message, and writing the history merged message into the server for storage in a message bubble form.
3. The method of claim 2, wherein storing each of the at least one history message to the server in the form of a message bubble further comprises:
if any message in the at least one historical message fails to be written, the server generates a receiving failure message;
the server sends the receiving failure message to the first client side, so that the first client side sends the at least one history message to the server again for storage.
4. The method of claim 1, wherein the sending the at least one history message to the at least one newly added member of the discussion group comprises:
receiving a message viewing request sent by the second client, wherein the message viewing request carries attribute information of the second client;
determining a storage form of the at least one history message in the server according to the attribute information of the second client;
and sending the at least one history message conforming to the storage form to the second client, so as to correspondingly display the at least one history message in a session display interface of the second client according to the storage form.
5. The method of claim 1, wherein each of said history messages has a first identification code, said first identification code being used to uniquely identify said history message at said first client side, said method further comprising:
generating a second identification code of the at least one historical message for the newly added member according to the first identification code of the at least one historical message, wherein the second identification code is used for uniquely identifying the historical message at the second client side;
and sending the at least one history message and the second identification code of the at least one history message to the second client of the at least one newly added member.
6. A message transmission method applied to a second client, the method comprising:
sending a message checking request to a server, wherein the message checking request carries attribute information of a second client;
receiving the at least one history message which is returned by the server based on the message viewing request and conforms to a storage form, wherein the storage form is the storage form of the at least one history message in the server, which is determined by the server according to the attribute information of the second client;
and correspondingly displaying the at least one history message in a session display interface according to the storage form.
7. The method of claim 6, wherein the displaying the at least one history message in the session display interface in correspondence with the stored form comprises:
displaying the at least one historical message one by one in a session display interface in a message bubble mode; or displaying history merging information in a session display interface in a message bubble form, wherein the history merging information is obtained by merging the at least one history message.
8. The method of claim 6, wherein the at least one history message carries a second identification code for each history message, the method further comprising:
responding to a skip operation of a newly added member corresponding to the second client for a reply message, and acquiring a second identification code of a target message, wherein the reply message is a message for replying the target message;
skipping to the target message according to the second identification code of the target message, wherein the target message is any one of the at least one historical message.
9. A server comprising an input device and an output device, comprising:
a processor adapted to implement one or more instructions; and the number of the first and second groups,
computer storage medium having stored thereon one or more instructions adapted to be loaded by the processor and to execute the information transfer method according to any of claims 1-5.
10. A second client comprising an input device and an output device, comprising:
a processor adapted to implement one or more instructions; and the number of the first and second groups,
computer storage medium having stored thereon one or more instructions adapted to be loaded by the processor and to execute the information transfer method according to any of claims 6-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911319671.3A CN113014404B (en) | 2019-12-19 | 2019-12-19 | Message transmission method and device, server and second client |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911319671.3A CN113014404B (en) | 2019-12-19 | 2019-12-19 | Message transmission method and device, server and second client |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113014404A true CN113014404A (en) | 2021-06-22 |
CN113014404B CN113014404B (en) | 2022-06-24 |
Family
ID=76381263
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911319671.3A Active CN113014404B (en) | 2019-12-19 | 2019-12-19 | Message transmission method and device, server and second client |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113014404B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114338578A (en) * | 2021-12-29 | 2022-04-12 | 上海掌门科技有限公司 | Method, device, medium and program product for sending friend application |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1992626A (en) * | 2005-12-28 | 2007-07-04 | 腾讯科技(深圳)有限公司 | Method for establishing universal discussion group in instant communication |
CN101056188A (en) * | 2006-04-10 | 2007-10-17 | 腾讯科技(深圳)有限公司 | Method and system for pushing the history records to the specified members in the discussion group |
CN105187295A (en) * | 2015-08-06 | 2015-12-23 | 广州华多网络科技有限公司 | Method for realizing bubble display on client, client, server and system |
CN106059894A (en) * | 2016-05-24 | 2016-10-26 | 腾讯科技(深圳)有限公司 | Message processing method and message processing device |
CN106470148A (en) * | 2015-08-19 | 2017-03-01 | 腾讯科技(深圳)有限公司 | Group chatting content display method and device |
CN107104877A (en) * | 2016-02-29 | 2017-08-29 | 艾威梯科技(北京)有限公司 | It is a kind of to add the method and system for discussing and history mutual information being obtained after group |
CN109302295A (en) * | 2017-07-24 | 2019-02-01 | 天津三星通信技术研究有限公司 | The message treatment method and equipment of chat group |
-
2019
- 2019-12-19 CN CN201911319671.3A patent/CN113014404B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1992626A (en) * | 2005-12-28 | 2007-07-04 | 腾讯科技(深圳)有限公司 | Method for establishing universal discussion group in instant communication |
CN101056188A (en) * | 2006-04-10 | 2007-10-17 | 腾讯科技(深圳)有限公司 | Method and system for pushing the history records to the specified members in the discussion group |
CN105187295A (en) * | 2015-08-06 | 2015-12-23 | 广州华多网络科技有限公司 | Method for realizing bubble display on client, client, server and system |
CN106470148A (en) * | 2015-08-19 | 2017-03-01 | 腾讯科技(深圳)有限公司 | Group chatting content display method and device |
US20180046726A1 (en) * | 2015-08-19 | 2018-02-15 | Tencent Technology (Shenzhen) Company Limited | Method and apparatus for displaying contents of group chat |
CN107104877A (en) * | 2016-02-29 | 2017-08-29 | 艾威梯科技(北京)有限公司 | It is a kind of to add the method and system for discussing and history mutual information being obtained after group |
CN106059894A (en) * | 2016-05-24 | 2016-10-26 | 腾讯科技(深圳)有限公司 | Message processing method and message processing device |
CN109302295A (en) * | 2017-07-24 | 2019-02-01 | 天津三星通信技术研究有限公司 | The message treatment method and equipment of chat group |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114338578A (en) * | 2021-12-29 | 2022-04-12 | 上海掌门科技有限公司 | Method, device, medium and program product for sending friend application |
CN114338578B (en) * | 2021-12-29 | 2024-02-09 | 上海掌门科技有限公司 | Method, device, medium and program product for sending friend application |
Also Published As
Publication number | Publication date |
---|---|
CN113014404B (en) | 2022-06-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20180270182A1 (en) | Message notification method, system, and device for a communication account | |
US10198238B2 (en) | Data transmission method, and relevant device and system | |
US9083693B2 (en) | Managing private information in instant messaging | |
RU2407232C2 (en) | Method, mobile terminal, system and computer software product for online attribution of content | |
JP2016515251A (en) | Information display method and user terminal for instant messaging tool | |
US10069640B2 (en) | Methods and devices for adding new member to group through barcode scanning | |
CN102567299A (en) | Using text messages to interact with spreadsheets | |
US10574782B2 (en) | Method and server for generating contact relationship data in network communication system | |
US8468205B2 (en) | Method and apparatus for selective presence of messaging services | |
US11281761B2 (en) | Method and system for using a plurality of accounts in an instant messaging application | |
CN115004673A (en) | Message pushing method and device, electronic equipment and computer readable medium | |
CN113079078B (en) | Operation method and device of message server | |
CN111130986B (en) | Message sending method, device, equipment and storage medium | |
CN110719221A (en) | Instant messaging method, device, equipment and storage medium | |
CN110120908B (en) | Group message processing method and device and server | |
US10044777B2 (en) | Method and device for communicating between at least a first terminal and a second terminal | |
US20160277570A1 (en) | Facilitating controlled electronic communication | |
CN113014404B (en) | Message transmission method and device, server and second client | |
US20170104698A1 (en) | Instant Messaging | |
US9577967B2 (en) | Method and system for managing an informational site using a social networking application | |
CN110417601B (en) | Information prompting method, device and system in client and readable storage medium | |
CN109768918B (en) | Method and apparatus for implementing instant messaging | |
CN106789568A (en) | A kind of communication information acquisition methods and device | |
CN114157627B (en) | Group processing method, device, electronic equipment and medium | |
JP7006294B2 (en) | Information processing methods, information processing devices, and programs |
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 |