+

WO2018157720A1 - Method and device for processing instant communication information - Google Patents

Method and device for processing instant communication information Download PDF

Info

Publication number
WO2018157720A1
WO2018157720A1 PCT/CN2018/075921 CN2018075921W WO2018157720A1 WO 2018157720 A1 WO2018157720 A1 WO 2018157720A1 CN 2018075921 W CN2018075921 W CN 2018075921W WO 2018157720 A1 WO2018157720 A1 WO 2018157720A1
Authority
WO
WIPO (PCT)
Prior art keywords
instant messaging
duration
preset
messaging information
terminal
Prior art date
Application number
PCT/CN2018/075921
Other languages
French (fr)
Chinese (zh)
Inventor
彭光宇
Original Assignee
腾讯科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2018157720A1 publication Critical patent/WO2018157720A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72484User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events

Definitions

  • the present application relates to the field of communications technologies, and in particular, to a method and an apparatus for processing instant messaging information.
  • the tools for realizing instant messaging usually have chat rooms, instant messaging clients (such as QQ, MSN), etc., and the instant messaging client has the advantages of fast, instant and so on.
  • the messages in the dialog box are always arranged in the order of receiving time.
  • the latest received message is displayed at the bottom of the dialog box, that is, at the bottom of the message list.
  • the number of messages currently displayed in the dialog box is usually small. When more messages are received, the earliest received messages are gradually pushed up.
  • the embodiment of the present invention provides a method and a device for processing instant messaging information, which can improve the search efficiency and facilitate the user to quickly see the message that needs to be focused on.
  • the embodiment of the present application provides a method for processing instant messaging line information, including:
  • the terminal device receives the instant messaging information sent by the server;
  • the terminal device determines that the instant messaging information carries the location identifier
  • the instant messaging information is continuously displayed in the preset position of the instant messaging dialog box according to the location identifier for a preset duration.
  • the embodiment of the present application further provides another method for processing instant messaging information, including:
  • the server receives the instant messaging information sent by the terminal
  • the server determines whether the instant messaging information is a preset message type, where the preset message type is a message type that needs to display a preset duration in a preset position of the instant messaging dialog box of the terminal;
  • the server determines that the instant messaging information is a preset message type, adding a location identifier to the instant messaging information, where the location identifier is used to indicate that the terminal presets the instant messaging information in an instant messaging dialog box.
  • the position displays the preset duration;
  • the embodiment of the present application further provides an apparatus for processing instant messaging information, including:
  • the memory readable instruction module is stored in the memory;
  • the machine readable instruction module includes:
  • a first receiving module configured to receive instant messaging information sent by the server
  • a determining module configured to determine whether the instant messaging information carries a location identifier, where the location identifier is used to instruct the terminal to display the instant messaging information in a preset position of the instant messaging dialog box for a preset duration;
  • a display module configured to: when the determining module determines that the instant messaging information carries a location identifier, continuously display the instant messaging information in a preset position of the instant messaging dialog box according to the location identifier for a preset duration.
  • the embodiment of the present application further provides another processing device for instant messaging information, including:
  • the memory readable instruction module is stored in the memory;
  • the machine readable instruction module includes:
  • a first receiving module configured to receive instant messaging information sent by the terminal
  • a judging module configured to determine whether the instant messaging information is a preset message type, where the preset message type is a message type that needs to display a preset duration in a preset position of the instant messaging dialog box of the terminal;
  • Adding a module when the determining module determines that the instant messaging information is a preset message type, adding a location identifier to the instant messaging information, where the location identifier is used to indicate that the terminal is to instant messaging information in an instant messaging conversation
  • the preset position of the frame displays the preset duration
  • the first sending module is configured to send the instant messaging information carrying the location identifier to the terminal, so that the terminal continuously displays the instant messaging information in a preset position of the instant messaging dialog box for a preset duration.
  • the embodiment of the present application also provides a non-transitory computer readable storage medium, wherein the storage medium stores machine readable instructions, which are executable by a processor to perform any of the methods described above.
  • FIG. 1 is a schematic diagram of an instant messaging dialog box of a terminal in a method for processing instant messaging information according to an embodiment of the present application
  • FIG. 2 is a schematic diagram of a scenario of a method for processing instant messaging information provided by an embodiment of the present application
  • FIG. 3 is a flowchart of a method for processing instant messaging information provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of displaying instant messaging information in a preset position of a dialog box in a method for processing instant messaging information according to an embodiment of the present application;
  • FIG. 5 is another schematic diagram of displaying instant messaging information in a preset position of a dialog box in a method for processing instant messaging information according to an embodiment of the present application
  • FIG. 6 is another schematic diagram of displaying instant messaging information in a preset position of a dialog box in the method for processing instant messaging information provided by an embodiment of the present application;
  • FIG. 7 is another flowchart of a method for processing instant messaging information provided by an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of an apparatus for processing instant messaging information according to an embodiment of the present application.
  • FIG. 9 is another schematic structural diagram of an apparatus for processing instant messaging information according to an embodiment of the present application.
  • FIG. 10 is still another schematic structural diagram of an apparatus for processing instant messaging information according to an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of a server provided by an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of a terminal according to an embodiment of the present application.
  • the embodiment of the present application provides a method and an apparatus for processing instant messaging information.
  • the processing device for instant messaging information includes: an instant messaging information processing device that can be integrated in a server, and an instant that can be integrated in a device such as a terminal for receiving data sent by the server. Communication information processing device.
  • a terminal provided in the embodiment of the present application has a continuous display button 1011 selectable by the user in the instant messaging dialog 101.
  • the display button 1011 may be directly displayed on the dialog box or may be hidden in an icon in the dialog box 101.
  • the continuous display button 1011 may be set as needed, for example, a button that may be set to “top display”. Or set to the "bottom display” button, and so on.
  • the continuous display button 1011 can be selected to enable the instant messaging information to be sent to carry the location identifier.
  • the terminal 201 and the terminal 202 performing instant messaging are respectively connected to the server 203 through an instant messaging application, wherein one terminal 201 transmits instant messaging information to the server 203, and the server 203 receives the instant messaging.
  • the information is transmitted to the terminal 201 and the terminal 202 of both parties of the communication, thereby realizing instant communication.
  • the terminal 202 is taken as an example.
  • After receiving the instant messaging information sent by the server 203 it is determined whether the instant messaging information carries a location identifier, where the location identifier is used to indicate that the terminal forwards the instant messaging information in an instant messaging dialog box.
  • the location display preset duration when it is determined that the instant messaging information carries the location identifier, the instant messaging information is continuously displayed in the preset position of the dialog box for a preset duration, whereby the user sends the use terminal 201 to send attention that needs to be attracted by other users.
  • the continuous display button may be selected to enable the instant messaging information to carry the location identifier, so that the terminal of each communication user continuously displays the instant messaging information in the preset position of the respective dialog box when receiving the instant messaging information.
  • the preset duration is such that the instant messaging information is not pushed up by the subsequently received message, so that even if more messages are received, the user can quickly see the important messages continuously displayed in the dialog box when the user opens the dialog box. There is no need to go up the message list to improve the efficiency of the user to view the message.
  • FIG. 3 is a flowchart of a method for processing instant messaging information according to an embodiment of the present application. The present embodiment will be described from the perspective of the instant messaging information processing device of the terminal.
  • the processing device for the instant messaging information may be integrated into a device such as a terminal, such as a mobile phone, a tablet computer, a notebook computer, or a personal computer.
  • the specific process of the method for processing instant messaging information may include the following steps:
  • Step S301 Receive instant messaging information sent by the server.
  • the instant messaging information sent by the server comes from any terminal that performs instant communication with each other, and may be text information, pictures, videos, virtual red packets, etc. edited by the user, or may be articles, links, etc. forwarded by the user.
  • the server transmits the instant messaging information it receives to each terminal that performs instant communication with each other, thereby realizing instant communication.
  • the terminal that receives the instant messaging information sent by the server and the terminal that sends the instant messaging information to the server may be the same terminal or different terminals. In this embodiment, the terminal that receives the instant messaging information sent by the server is used. Describe.
  • Step S302 determining whether the instant messaging information carries a location identifier, where the location identifier is used to instruct the terminal to display the instant messaging information according to the pre-policy, wherein the pre-policy is to continuously display the instant messaging information in a preset position of the dialog box for a preset duration.
  • the location identifier is generated according to the user's selection instruction of the continuous display button in the dialog box, and the manner of generation may be various.
  • the terminal when the user selects the persistent display button when sending the instant messaging information, the terminal adds a location identifier to the instant messaging information sent by the user according to the user's instruction to continuously display the button, and the location identifier can be represented in various forms. For example, text, numbers, letters or symbols, etc., such as “1" or "5", or can be "b” or "d”, etc., and send the instant messaging information with the location identifier to the server, the server will directly add The instant messaging information of the location identifier is sent to each terminal of the communication.
  • the terminal when the user selects the persistent display button when sending the instant messaging information, the terminal sends the instant messaging information to the server according to the instruction that the user selects the continuous display button, and the notification server needs to add the location identifier to the instant messaging information, the server.
  • the notification a location identifier is added to the instant messaging information, and the instant messaging information with the location identifier added is sent to each terminal of the communication.
  • the location identifier should be the location identifier agreed by the server and the terminal in advance.
  • Step S303 When it is determined that the instant messaging information carries the location identifier, the instant messaging information is continuously displayed in the preset position of the dialog box according to the location identifier for a preset duration.
  • the dialog box refers to the dialog window displayed when the terminal performs instant messaging.
  • the location identifier is specifically configured to instruct the terminal to display the instant messaging information according to the pre-policy, and the pre-policy is to enable the instant messaging information to continue to display the preset duration in the preset position of the dialog box.
  • the preset position may be any position in the dialog box, for example, may be the top of the message list.
  • the continuous display button shown in FIG. 1 may be set as a “top display” button; or the preset position may be a message.
  • the continuous display button shown in Figure 1 can be set to the "bottom display” button; or other positions outside the message list of the dialog box; or it can be displayed as a floating window in the dialog box.
  • the user can move the floating window arbitrarily within the scope of the dialog box.
  • the preset duration can be set according to actual needs, for example, 10s, 15s, 20s or 1min, 2min, and the like. Taking the preset position as the bottom of the message list and the preset duration as 15s as an example, as shown in FIG. 4, the continuous display button in the dialog box 401 is set to the “bottom display” button, which will carry the instant messaging information of the location identifier. a continues to display 15s at the bottom of the message list. During the 15s, the instant messaging information a is always displayed at the bottom of the message list. As shown in FIG. 4, the preset duration can be displayed in a countdown manner in the instant messaging dialog box 401, so that the user can view the remaining time of the continuous display.
  • the preset duration is calculated from the time start point when receiving the instant messaging information, and the preset duration is long for the dialog box in the closed state (the user may not be logged in or the dialog box is not opened).
  • the time start is calculated from when the dialog is changed from the closed state to the open state.
  • the instant messaging information received by the terminal will be displayed in the message list of the dialog box according to the chronological order of reception.
  • the newly received instant messaging information is displayed at the bottom of the message list, and the instant messaging information received earlier is received.
  • the instant messaging information In the upper part of the conversation message list, when the instant messaging information is continuously received, the instant messaging information will be pushed up continuously, and the latest received instant messaging information is always displayed at the bottom of the conversation message list.
  • the instant messaging information carrying the location identifier is continuously displayed for a preset duration in the preset position, so that even if the new duration is received continuously within the preset duration,
  • the instant messaging information, the instant messaging information carrying the location identifier is not pushed up by the subsequently received message, but is continuously displayed in the dialog box, so that the user can quickly see the continuous display in the dialog box when the user opens the dialog box.
  • the important message in the middle without having to go up the message list to find, improve the efficiency of the user to find the message.
  • the instant messaging information when it is determined that the instant messaging information does not carry the location identifier, the instant messaging information may be displayed according to other policies, such as displaying the instant messaging information in the message list according to the received chronological order in a normal manner, etc. Wait. Moreover, after the instant messaging information is continuously displayed for a preset duration in the preset position of the dialog box, the instant messaging information and other instant messaging information may be displayed in the message list according to the received chronological order, that is, according to the received time. The location of the instant messaging message returning to the message list at the corresponding time point is displayed.
  • the instant messaging information of the multiple carrying location identifiers may be displayed according to a preset setting. For example, the newly received instant messaging information of the carrying location identifier may be continuously displayed. At the bottom of the preset position, other instant messaging information carrying the location identifier is sequentially arranged at the bottom of the preset position according to the received chronological order.
  • the information of the preset duration may be notified to each terminal by the server.
  • the server may add the duration information indicating the preset duration to the instant messaging information before sending or sending the instant messaging information carrying the location identifier. Therefore, when receiving the instant messaging information carrying the location identifier, the terminal extracts the duration information from the instant messaging information to obtain the preset duration of the display.
  • the duration information can also be obtained by the terminal from the local storage.
  • the terminal pre-stores the duration information of the persistent display, and when determining that the received instant messaging information carries the location identifier, locally acquires the pre-stored duration information to obtain the preset duration, thereby placing the instant messaging information in the dialog box. The preset position continues to display the preset duration.
  • the duration of continuous display of the instant messaging information may be increased or decreased.
  • the method further includes: receiving, by the receiving server, a notification of increasing the first duration, or sending the notification by the receiving server, within the preset duration The notification of reducing the second duration; when receiving the notification of increasing the first duration, calculating the sum of the remaining duration of the preset duration and the first duration according to the notification, obtaining the total duration of the instant messaging information continuously displayed, and instant messaging
  • the information is continuously displayed in the preset position of the dialog box; when the notification of reducing the second duration is received, the difference between the remaining duration of the preset duration and the second duration is calculated according to the notification, and the total duration is obtained, and the instant is obtained.
  • the communication information is continuously displayed for the total duration in the preset position of the dialog box. The difference between the remaining duration of the preset duration and the second duration is not less than zero.
  • the first duration and the second duration may be set according to requirements of the actual application.
  • the first duration may be 3s, 5s, or 10s
  • the second duration may be 2s, 5s, or 8s.
  • the server may send a notification to the first terminal to increase the first duration or decrease the second duration according to multiple conditions.
  • the server can issue a corresponding notification based on the amount of instant messaging information received.
  • the server sends the instant messaging information carrying the location identifier to the terminal for a period of time (the time does not exceed the preset duration). If the number of instant messaging information received by the server exceeds the predetermined number, the server may cause the carrying location.
  • the identified instant messaging information returns to the normal position of the message list after the preset duration (ie, the position is arranged in chronological order)
  • the subsequent received instant messaging information may not be displayed simultaneously in the dialog box, and may be issued at this time. Increase the notification of the first duration to increase the duration of the instant messaging information displayed in the dialog box.
  • the number of instant messaging lines received by the server is small, the number of instant messaging messages does not exceed the predetermined number, even if the instant messaging information carrying the location identifier returns to the normal location of the session message list after the preset duration expires, and the subsequently received instant messaging information It may be displayed simultaneously in the dialog box, and a notification to reduce the second duration may be issued to reduce the duration of the instant messaging information.
  • the server may further send a notification to the terminal to increase the first duration or decrease the second duration according to the operation of the user.
  • the method may further include: displaying a first operation button for displaying the instant messaging information, and displaying the A second operation button for displaying the time-out information of the instant messaging information.
  • the first operation button and the second operation button may be, for example, as shown in FIG. 5, the first operation button is a button 501, and the second operation button is a button 502.
  • the button 501 and the button 502 can be displayed at any position of the dialog box 503, for example, can be displayed on the left and right sides of the instant messaging information a, respectively.
  • the method further includes: receiving, by the first operation button triggered by the first operation button, a first click event according to the first click operation instruction. ; Send a first click event to the server. Thereby, the server transmits a notification for increasing the first duration according to the received first click event.
  • the method further includes: in the preset duration, the terminal receives the second click operation instruction triggered by the second operation button, and generates the second click according to the second click operation instruction. Event; sends a second click event to the server. Thereby, the server transmits a notification for reducing the second duration according to the received second click event.
  • the first operation button and the second operation button may have only one active state, that is, the instant messaging information displayed for each bottoming has only one chance of increasing the display duration or reducing the display duration, the first operation button and the second operation button. After being clicked once, it becomes unclickable.
  • the first operation button and the second operation button may also have multiple activation states, that is, the two operation buttons 501, 502 may be clicked multiple times, and each time the button is clicked, the first click event and the second click event will be correspondingly generated.
  • the server can have multiple responses.
  • the server receives the first click event or the second click event, the corresponding notification of increasing the first duration or decreasing the second duration is sent, so that the terminal increases the notification of the first duration or decreases the second every time.
  • the duration is notified, the duration of the instant messaging information is continuously displayed correspondingly for the first duration or the second duration, wherein the duration is reduced to zero.
  • the notification of the first duration is accumulated on the basis of the remaining duration. For example, when the first duration is 3s and the preset duration is 15s, when the notification of increasing the first duration is received for the first time within 15s, the first time is accumulated based on the remaining duration of 15s. The duration is 3s, and a total duration is obtained. When the notification of the second increase of the first duration is received within the total duration, the first duration is accumulated for 3 seconds based on the remaining duration of the total duration, and a new total duration is obtained. And so on.
  • the notification of reducing the second duration when receiving the notification of reducing the second duration a plurality of times, the notification of reducing the second duration is received once, that is, the second duration is accumulated on the basis of the remaining duration. For example, if the second duration is 10 s and the preset duration is 15 s, the remaining duration of 15 seconds is preset when the notification is decreased for the first time within 15 seconds of the preset duration (for example, the remaining duration is 12s).
  • the server accumulates the number of received first click events and second click events within a predetermined time, and calculates the total duration required to be increased according to the number of times the first click event is accumulated, and calculates the number of times accumulated according to the second click event.
  • the total length of time that needs to be reduced is calculated and the total length of time added is subtracted from the total length of time reduced. If the total duration of the increase is greater than the total duration of the decrease, the notification of increasing the duration of the difference is sent to the terminal, where the first duration refers to the duration of the difference, and the terminal accumulates the remaining duration based on the preset duration according to the notification.
  • the difference duration is used to obtain the total duration of the instant messaging information being continuously displayed at the preset position.
  • the notification of reducing the duration of the difference is sent to the terminal, where the second duration refers to the duration of the difference, and the terminal reduces the remaining duration based on the preset duration according to the notification.
  • the duration of the difference is taken to obtain the total duration of the instant messaging information being continuously displayed at the preset position.
  • the server may receive the first click event or the second click event sent by multiple terminals, and the response manner of the server is also applicable to the above two response modes.
  • the name of the button 501 can be displayed as a "stone throw” button
  • the name of the button 502 can be displayed as a "tie balloon” button
  • the two buttons can be displayed in the form of a picture.
  • the user can select to increase or decrease the duration of the instant messaging information displayed in the preset position of the dialog box.
  • the button 501 can be pressed, so that the trigger can be triggered.
  • the server sends a notification to each terminal to increase the first duration, so that each terminal increases the duration of the instant messaging information continuously displayed.
  • the button 502 can be pressed to reduce the bottom-end display of the instant messaging information. The duration is thus convenient for the user to operate, and the instant messaging process is more user-friendly.
  • the first duration and the second duration are fixed values.
  • the user may select the duration of the increase or decrease.
  • the first operation button includes, for example, " +3s", "+8s” two buttons, each button presses to increase the corresponding duration, for example, press the 8s button, the server sends a notification to increase the duration of 8s, the terminal is based on the notification for the preset duration The duration is increased by 8s to get the duration of the continuous display.
  • the second operation button includes two buttons of "-3s" and "-5s", and each button is pressed once to indicate that the corresponding duration is reduced.
  • the object that the server sends data (such as the aforementioned instant messaging information, increases the first duration or reduces the notification of the second duration) is for each terminal that performs instant messaging, that is, the server sends instant messaging.
  • the information or notification is sent, it is sent to each terminal that performs instant messaging. Therefore, when one of the instant messaging terminals sends a first click event or a second click event to the server, the server notifies each terminal of the instant messaging to increase the duration of the continuous display by a first duration or decrease the second duration. Therefore, when one of the users is more interested in a continuously displayed instant messaging information and wishes to attract more attention from other users, the first operation button may be clicked to cause each terminal of the communication to increase the continuous display of the instant messaging information. duration.
  • the method for processing instant messaging information in the above embodiments may be applied to a group chat scenario, or may be applied to a scenario in which two people chat.
  • the implementation process of the method for processing instant messaging information in the embodiment of the present application is further described by taking the group chat scenario as an example.
  • the server receives the instant messaging information sent by each terminal in the group chat, and then sends the instant messaging information to all the terminals in the group chat, thereby implementing the group chat.
  • the instant messaging information is usually more, especially when each user has a heated discussion about a hotspot instant messaging information, the hotspot instant messaging information will be followed by a new instant.
  • the communication information is continuously pushed up. When a user, especially a newly opened group, needs to spend more time to scroll up the session message list to find the hot spot instant messaging information.
  • the persistent display button may be selected, and the corresponding terminal selects the hotspot according to the user's selection.
  • the instant messaging line information adds a location identifier, or the server is notified to add the location identifier to the hotspot instant messaging information according to the user's selection.
  • the server sends the hotspot instant messaging information carrying the location identifier to each terminal in the group chat.
  • Each terminal in the group chat receives the hot spot instant messaging information, and when the hot spot instant messaging information carries the location identifier, the hotspot instant messaging information is continuously displayed in the preset position of the dialog box for a preset duration, thereby continuously receiving the current time.
  • the hotspot instant messaging information will also be displayed in the dialog box, and the user, especially the newly opened group dialog box, can quickly see the hotspot instant messaging information without spending more time searching.
  • each user in the group chat can perform an operation of increasing or decreasing the length of the bottom display for the hot spot instant messaging information, for example, when one of the users clicks the first operation button 501 as shown in FIG. 5, the corresponding terminal Sending a first click event to the server, and the server sends a notification for increasing the first duration to each terminal in the group chat according to the first click event, so that each terminal continuously displays the hotspot instant messaging information according to the notification for a preset duration The first duration is accumulated based on the remaining duration.
  • the method further includes: comparing the content of the instant messaging information with the preset feature information of the spam information, and determining the instant messaging information according to the comparison result. Whether it is spam.
  • the step of continuously displaying the instant messaging information in the preset position of the dialog box according to the location identifier specifically includes: when determining the instant messaging information carrying the location identifier, and immediately determining the instant When the communication information is not spam, the instant messaging information is continuously displayed in the preset position of the dialog box according to the location identifier for a preset duration.
  • the spam information may include advertisement information, abusive information, etc., firstly setting feature information characterization of the spam information, extracting keywords from the content of the instant messaging information when receiving the instant messaging information, and the characteristics of the preset spam information. The information is compared. When there are keywords matching the preset feature information in the keywords of the instant messaging information, the instant messaging information is judged as spam, otherwise it is not spam.
  • the instant messaging information is continuously displayed at the preset position, thereby preventing the advertisement or the abusive quality and the like from being continuously displayed in the dialog box.
  • the instant messaging information When the instant messaging information carries the location identifier and is spam, the instant messaging information may be displayed in the message list according to the received chronological order.
  • FIG. 7 is still another flowchart of a method for processing instant messaging information provided by an embodiment of the present application. This embodiment is described from the perspective of an instant messaging information processing device of a server, and the method includes the following steps:
  • Step S701 Receive instant messaging information sent by the terminal.
  • the terminal that sends the instant messaging line to the server can be any terminal that performs instant communication with each other.
  • the terminal obtains the instant messaging information input by the user and sends the instant messaging information to the server.
  • the instant messaging information may be, for example, a text, a picture, a video, a virtual red envelope, or the like edited by the user, or may be an article or a link forwarded by the user.
  • Step S702 Determine whether the instant messaging information is a preset message type.
  • the preset message type refers to the message type displayed according to the preset display mode
  • the server may determine, according to the notification of the terminal, whether the instant messaging information is a preset message type.
  • the terminal may determine whether the instant messaging information is a preset message type according to whether the user selects or not the continuous display button (shown in FIG. 1) in the dialog box.
  • the terminal determines the default message type.
  • the terminal sends a notification to the server according to the user's selection instruction whether the user selects the continuous display button, so that the server determines, according to the notification, whether the instant messaging information is a preset message type.
  • Step S703 When it is determined that the instant messaging information is the preset message type, the location identifier is added to the instant messaging information, and the location identifier is used to instruct the terminal to display the instant messaging information in a preset position in the dialog box for a preset duration.
  • the location identifier can be represented in various forms, such as characters, numbers, letters or symbols, etc., such as “1" or "5", or can be "b” or “d”, etc., when the user selects the continuous display button.
  • the terminal sends a notification to the server that the user selects the persistent display button, and the server determines, according to the notification, that the instant messaging information is a preset message type, to add a location identifier to the instant messaging information.
  • the instant messaging information may be directly sent to the terminal, so that the terminal displays the instant messaging information in the session message list according to the received chronological order.
  • Step S704 Send the instant messaging information carrying the location identifier to the terminal, so that the terminal continuously displays the instant messaging information in the preset position of the dialog box for a preset duration.
  • the location identifier is specifically configured to instruct the terminal to display the instant messaging information according to the pre-policy, and the pre-policy is to enable the instant messaging information to continue to display the preset duration in the preset position of the dialog box.
  • the preset position may be any position in the dialog box, for example, may be the top of the message list.
  • the continuous display button shown in FIG. 1 may be set as a “top display” button; or the preset position may be a message.
  • the continuous display button shown in Figure 1 can be set to the "bottom display” button; or other positions outside the message list of the dialog box; or it can be displayed as a floating window in the dialog box. On the screen of the location, the user can move the floating window arbitrarily within the scope of the dialog box.
  • the preset duration can be set according to actual needs, for example, 10s, 15s, 20s or 1min, 2min, and the like. Taking the preset position as the bottom of the message list and the preset duration as 15s as an example, as shown in FIG. 4, the instant messaging information a carrying the location identifier is continuously displayed at the bottom of the message list for 15 seconds, in the 15s time. This instant message is always displayed at the very bottom of the message list. As shown in the figure, the preset duration can be displayed in a countdown manner in the instant messaging dialog 401, so that the user can view the remaining time of the continuous display.
  • the preset duration is calculated from the time start point when receiving the instant messaging information, and the preset duration is long for the dialog box in the closed state (the user may not be logged in or the dialog box is not opened).
  • the time start is calculated from when the dialog is changed from the closed state to the open state.
  • the instant messaging information received by the terminal will be displayed in the message list of the dialog box according to the chronological order of reception.
  • the newly received instant messaging information is displayed at the bottom of the message list, and the instant messaging information received earlier is received.
  • the instant messaging information In the upper part of the conversation message list, when the instant messaging information is continuously received, the instant messaging information will be pushed up continuously, and the latest received instant messaging information is always displayed at the bottom of the conversation message list.
  • the instant messaging information carrying the location identifier is continuously displayed for a preset duration in the preset position, so that even if the new duration is received continuously within the preset duration,
  • the instant messaging information, the instant messaging information carrying the location identifier is not pushed up by the subsequently received message, but is continuously displayed in the dialog box, so that the user can quickly see the continuous display in the dialog box when the user opens the dialog box.
  • the important message in the middle without having to go up the message list to find, improve the efficiency of the user to find the message.
  • the duration information of the preset duration may be notified to each terminal by the server.
  • the server obtains the displayed duration information, where the duration information records the preset duration of the instant messaging information continuously displayed.
  • the server may add the duration information indicating the preset duration to the instant messaging information before sending or sending the instant messaging information carrying the location identifier, so that when the terminal receives the instant messaging information carrying the location identifier, the terminal
  • the duration information is extracted from the instant messaging information to obtain the preset duration of the display.
  • the duration information may also be obtained by the terminal from the local storage.
  • the terminal pre-stores the duration information that is continuously displayed. When determining that the received instant messaging information carries the location identifier, the pre-stored duration information is locally obtained.
  • the preset duration is obtained, so that the instant messaging information is continuously displayed for a preset duration in the preset position of the dialog box.
  • the method may further include: receiving a first click event or a second click event sent by the terminal; and sending the preset duration to the terminal according to the first click event.
  • the notification of the duration so that the terminal calculates the sum of the remaining duration of the preset duration and the first duration according to the notification, to obtain the total duration of the instant messaging information continuously displayed in the preset position of the dialog box; or, the server according to the second click event Sending, to the terminal, a notification that reduces the preset duration by a second duration, so that the terminal calculates a difference between the remaining duration of the preset duration and the second duration according to the notification, so as to obtain that the instant messaging information is continuously displayed in the preset position of the dialog box.
  • Total length The terminal that sends the first click event or the second click event may be any one of the terminals that perform instant messaging, and the terminal that receives the notification is each terminal that performs instant messaging.
  • the first duration and the second duration may be set according to requirements of the actual application.
  • the first duration may be 3s, 5s, or 10s
  • the second duration may be 2s, 5s, or 8s.
  • the server may send a notification to the terminal to increase the first duration or decrease the second duration according to multiple conditions. For example, the following two situations may be used:
  • the server can issue a corresponding notification according to the amount of instant messaging information received.
  • the server sends the instant messaging information carrying the location identifier to the terminal for a period of time (the time does not exceed the preset duration). If the number of instant messaging information received by the server exceeds the predetermined number, the server may cause the carrying location.
  • the identified instant messaging information returns to the normal position of the session message list after the preset duration (ie, the position is arranged in chronological order)
  • the subsequent received instant messaging information may not be displayed in the dialog box at the same time.
  • a notification to increase the first duration is issued to increase the length of time that the instant messaging information is displayed.
  • the number of instant messaging lines received by the server is small, the number of instant messaging messages does not exceed the predetermined number, even if the instant messaging information carrying the location identifier returns to the normal location of the session message list after the preset duration expires, and the subsequently received instant messaging information It may be displayed simultaneously in the dialog box, and a notification to reduce the second duration may be issued to reduce the duration of the instant messaging information.
  • the server may also send a notification to the terminal to increase the first duration or decrease the second duration according to the operation of the user.
  • the button 501 in the dialog box 503 may be clicked, and the terminal receives the first click operation instruction triggered by the user through the button 501, and generates the first according to the first click operation instruction. Click on the event and send the first click event to the server. The server sends a notification that increases the first duration according to the received first click event.
  • the button 502 in the dialog box 503 can be clicked, the terminal receives the second click operation instruction triggered by the user through the button 502, generates a second click event according to the second click operation instruction, and sends the second click event to the server. Second click event.
  • the server sends a notification to reduce the second duration according to the received second click event.
  • the server may be configured to send a corresponding first time duration or a second time delay every time a first click event or a second click event is received, so that the terminal increases or decreases the first time period every time the terminal receives the notification.
  • the notification of the second duration is long, the duration of the instant messaging information is continuously displayed, correspondingly, the first duration or the second duration is accumulated on the basis of the remaining duration of the preset duration.
  • the server may also be the number of times the first click event and the second click event are received in a predetermined time, and the total length of time required to be added is calculated according to the number of times the first click event is accumulated, and the number of times accumulated according to the second click event is calculated.
  • the total duration of the reduction is calculated, and the total duration of the increase is subtracted from the total duration of the decrease. If the total duration of the increase is greater than the total duration of the decrease, the notification of increasing the duration of the difference is sent to the terminal.
  • the duration refers to the duration of the difference, and the terminal accumulates the duration of the difference based on the remaining duration of the preset duration according to the notification to obtain the total duration of the continuous display.
  • the notification of reducing the duration of the difference is sent to the terminal, where the second duration refers to the duration of the difference, and the terminal reduces the remaining duration based on the preset duration according to the notification.
  • the difference duration is taken to get the total duration of the continuous display.
  • the user can increase or decrease the duration of the instant display of the instant messaging information as needed, so that the instant messaging process is more user-friendly.
  • FIG. 8 is a schematic structural diagram of an apparatus for processing instant messaging information according to an embodiment of the present application.
  • the processing device of the instant messaging information of the embodiment may be integrated into a device such as a terminal, and the terminal may be a device such as a mobile phone, a tablet computer, a notebook computer or a personal computer.
  • the processing device 801 of this embodiment is connected to the server 802 in a network. As shown, the processing device 801 includes a first receiving module 8011, a determining module 8012, and a display module 8013.
  • the first receiving module 8011 is configured to receive the instant messaging information sent by the server 802.
  • the instant messaging information sent by the server 802 may be from any terminal that performs instant messaging.
  • the instant messaging information may be, for example, a text, a picture, a video, a virtual red envelope, or the like edited by the user, or may be an article, a link, or the like forwarded by the user.
  • the determining module 8012 is configured to determine whether the instant messaging information received by the first receiving module 8011 carries a location identifier, where the location identifier is used to instruct the terminal to display the instant messaging information in a preset position of the instant messaging dialog box for a preset duration.
  • the location identifier may be generated according to the user's selection instruction of the continuous display button (shown in FIG. 1) in the dialog box.
  • the instant messaging information may carry the location identifier, for example, the following two methods:
  • Method 1 When the user selects the continuous display button when sending the instant messaging information, the terminal adds a location identifier to the instant messaging information sent by the user according to the instruction of the user selecting the persistent display button, and adds the instant messaging information of the location identifier. Sent to the server;
  • Method 2 When the user selects the continuous display button when sending the instant messaging information, the terminal sends the instant messaging information to the server according to the instruction of the user selecting the continuous display button, and notifies the server that the location identifier needs to be added to the instant messaging information.
  • the server adds a location identifier to the instant messaging information according to the notification, and sends the instant messaging information with the location identifier to the communication terminal.
  • the display module 8013 is configured to: when the determining module 8012 determines that the instant messaging information carries the location identifier, continuously display the instant messaging information in the preset position of the dialog box according to the location identifier for a preset duration.
  • the instant messaging information may be displayed according to a preset policy, for example, the instant messaging information is displayed in the session message list according to the received chronological order. and many more.
  • the location identifier is specifically configured to instruct the terminal to display the instant messaging information according to the pre-policy, and the pre-policy is to enable the instant messaging information to continue to display the preset duration in the preset position of the dialog box.
  • the preset position may be any position in the dialog box, for example, may be the top of the message list.
  • the continuous display button shown in FIG. 1 may be set as a “top display” button; or the preset position may be a message.
  • the continuous display button shown in Figure 1 can be set to the "bottom display” button; or other positions outside the message list of the dialog box; or it can be displayed as a floating window in the dialog box. On the screen of the location, the user can move the floating window arbitrarily within the scope of the dialog box.
  • the preset duration can be set according to actual needs, for example, 10s, 15s, 20s or 1min, 2min, and the like. Taking the preset position as the bottom of the message list and the preset duration as 15s as an example, as shown in FIG. 4, the instant messaging information a carrying the location identifier is continuously displayed at the bottom of the message list for 15 seconds, in the 15s time. The instant messaging information a is always displayed at the very bottom of the message list. As shown in FIG. 4, the preset duration can be displayed in a countdown manner in the instant messaging dialog box 401, so that the user can view the remaining time of the continuous display.
  • the preset duration is calculated from the time start point when receiving the instant messaging information, and the preset duration is long for the dialog box in the closed state (the user may not be logged in or the dialog box is not opened).
  • the time start is calculated from when the dialog is changed from the closed state to the open state.
  • the instant messaging information carrying the location identifier is continuously displayed in the preset position for a preset duration. Therefore, even if new instant messaging information is continuously received within the preset duration, the instant messaging information of the carrying location identifier is also It will not be pushed up by subsequent received messages, but will continue to be displayed in the dialog box, so that when the user opens the dialog box, he can quickly see the important messages continuously displayed in the dialog box without having to go up and look up the message list. Improve the efficiency of users looking for messages.
  • the instant messaging information of the multiple carrying location identifiers may be displayed according to a preset setting. For example, the newly received instant messaging information of the carrying location identifier may be displayed in the session. At the bottom of the message list, other instant messaging information carrying the location identifier is arranged in the order of the received time in the bottom of the session message list.
  • the display module 8013 can display the instant messaging information and other instant messaging information in the session message list according to the received chronological order.
  • the display module 8013 can obtain the duration information of the persistent display from the instant messaging information, that is, the server can add the duration information recorded with the preset duration to the instant communication before sending or sending the instant messaging information carrying the location identifier. In the information, the display module 8013 extracts the duration information from the instant messaging information. Alternatively, the display module 8013 may also acquire the duration information that is continuously displayed in the processing device 801. When the determining module 8012 determines that the received instant messaging information carries the location identifier, the display module 8013 obtains the pre-stored duration. Information, and according to the duration information, the instant messaging information is displayed in the session message list to display the preset duration.
  • FIG. 9 is another schematic structural diagram of an apparatus for processing instant messaging information according to an embodiment of the present application.
  • the processing device 901 is connected to the network of the server 902.
  • the processing device 901 includes a first receiving module 9011, a determining module 9012, a display module 9013, a second receiving module 9014, a third receiving module 9015, and a first computing module 9016.
  • the second calculation module 9017 is another schematic structural diagram of an apparatus for processing instant messaging information according to an embodiment of the present application.
  • the processing device 901 includes a first receiving module 9011, a determining module 9012, a display module 9013, a second receiving module 9014, a third receiving module 9015, and a first computing module 9016.
  • the second calculation module 9017 is another schematic structural diagram of an apparatus for processing instant messaging information according to an embodiment of the present application.
  • the processing device 901 includes a first receiving module 9011, a determining module 9012, a display module 9013, a second receiving module 9014,
  • the first receiving module 9011 is configured to receive the instant messaging information sent by the server 902.
  • the determining module 9012 is configured to determine whether the instant messaging information received by the first receiving module 9011 carries a location identifier.
  • the display module 9013 is configured to: when the determining module 9012 determines that the instant messaging information carries the location identifier, continuously display the instant messaging information in the preset position of the dialog box for a preset duration, and when the determining module 9012 determines that the instant messaging information does not carry the location identifier. , the instant messaging information is displayed in the message list of the dialog box according to the received chronological order.
  • the second receiving module 9014 is configured to receive the notification of increasing the first duration sent by the server 902 within the preset duration
  • the first calculating module 9016 is configured to use the The notification received by the receiving module 9014 calculates the sum of the remaining duration of the preset duration and the first duration to obtain the total duration of the instant messaging information continuously displayed, so that the display module 9013 continuously displays the instant messaging information according to the increased total duration.
  • the third receiving module 9015 is configured to receive the notification that the second duration is sent by the server 902, and the second calculating module 9017 is configured to calculate, according to the notification received by the third receiving module 9015, the difference between the remaining duration of the preset duration and the second duration. In order to obtain the total duration of the continuous display, the display module 9013 continuously displays the instant messaging information according to the reduced total duration.
  • the first duration and the second duration may be set according to requirements of the actual application.
  • the first duration may be 3s, 5s, or 10s
  • the second duration may be 2s, 5s, or 8s.
  • the server 902 can send a notification of increasing or decreasing the duration to the processing device 901 according to the operation of the user.
  • the processing device 901 further includes a first generating module 9018, a second generating module 9019, a first sending module 9020, and a second sending module 9021.
  • the display module 9013 further displays a first operation button 501 for displaying the instant messaging information in time when the instant messaging information of the carrying location identifier is continuously displayed in the preset position of the dialog box, and is used for instant messaging.
  • the communication operation performs a second operation button 502 that is displayed in time reduction.
  • the first generating module 9018 is configured to receive a first click operation instruction triggered by the user through the first operation button 501 within a preset duration, and generate a first click event according to the first click operation instruction, where the first sending module 9020 is configured to The first click event is sent to the server 902.
  • the second receiving module 9014 is specifically configured to receive, by the server 902, a notification that increases the first duration according to the first click event.
  • the second generating module 9019 is configured to receive a second click operation instruction triggered by the user through the second operation button 502 within a preset duration, and generate a second click event according to the second click operation instruction, where the second sending module 9021 is configured to Server 902 sends a second click event.
  • the third receiving module 9015 is specifically configured to receive, by the server 902, a notification that reduces the second duration according to the second click event.
  • the server 902 can send a corresponding notification of increasing the first duration or decreasing the second duration every time the first click event or the second click event is received, so that the processing device 901 receives the notification of increasing the first duration every time. Or when the notification of the second duration is reduced, the duration of the instant messaging information being continuously displayed is correspondingly accumulated by the first duration or the second duration by the remaining duration of the preset duration.
  • the server 902 may also send a notification to increase the first duration or decrease the second duration according to the number of times the first click event and the second click event are received in a predetermined time. Specifically, the server 902 accumulates the number of received first click events and second click events in a predetermined time, calculates the total duration required to be increased according to the number of times the first click event is accumulated, and calculates the total number of times according to the second click event. The total length of time that needs to be reduced is calculated and the total length of time added is subtracted from the total length of time reduced.
  • the notification of increasing the duration of the difference is sent to the processing device 901, where the first duration refers to the duration of the difference, and the processing device 901 limits the duration of the preset duration according to the notification.
  • the length of the difference is accumulated on the basis of the time to obtain the duration of the continuous display. If the total duration of the increase is less than the total duration of the decrease, the notification of reducing the duration of the difference is sent to the processing device 901, where the second duration refers to the duration of the difference, and the processing device 901 limits the duration of the preset duration according to the notification. On the basis of the subtraction of the difference duration, the duration of the continuous display is obtained.
  • the user can select to increase or decrease the duration of the continuous display of the instant messaging information, facilitate the user's operation, and make the instant messaging process more user-friendly.
  • FIG. 10 is another schematic structural diagram of an apparatus for processing instant messaging information according to an embodiment of the present application.
  • the processing device of the instant messaging information of this embodiment can be integrated in the server.
  • the processing device 1001 and the terminal 1002 of the present embodiment are connected to each other.
  • the processing device 1001 includes a first receiving module 10011, a determining module 10012, an adding module 10013, and a first sending module 10014.
  • the first receiving module 10011 is configured to receive the instant messaging information sent by the terminal 1002.
  • the determining module 10012 is configured to determine whether the instant messaging information received by the first receiving module 10011 is a preset message type.
  • the preset message type refers to the message type displayed according to the preset display mode, and can determine whether the instant messaging information is the default message type according to whether the user selects or not the continuous display button (as shown in FIG. 1) in the dialog box. When the user selects the continuous display button, it determines the default message type.
  • the terminal sends a notification to the server according to the user's selection instruction whether the user selects the continuous display button, so that the server determines, according to the notification, whether the instant messaging information is a preset message type.
  • the adding module 10013 is configured to add a location identifier to the instant messaging information when the determining module 10012 determines that the instant messaging information is the preset message type, where the location identifier is used to indicate that the terminal presets the instant messaging information in the instant messaging dialog box.
  • the position shows the preset duration.
  • the first sending module 10014 is configured to send the instant messaging information carrying the location identifier to the terminal 1002, so that the terminal 1002 continuously displays the instant messaging information in a preset position of the dialog box for a preset duration.
  • the location identifier is specifically configured to instruct the terminal to display the instant messaging information according to the pre-policy, and the pre-policy is to enable the instant messaging information to continue to display the preset duration in the preset position of the dialog box.
  • the preset position may be any position in the dialog box, for example, may be the top of the message list.
  • the continuous display button shown in FIG. 1 may be set as a “top display” button; or the preset position may be a message.
  • the continuous display button shown in Figure 1 can be set to the "bottom display” button; or other positions outside the message list of the dialog box; or it can be displayed as a floating window in the dialog box. On the screen of the location, the user can move the floating window arbitrarily within the scope of the dialog box.
  • the preset duration can be set according to actual needs, for example, 10s, 15s, 20s or 1min, 2min, and the like. Taking the preset position as the bottom of the message list and the preset duration as 15s as an example, as shown in FIG. 4, the instant messaging information a carrying the location identifier is continuously displayed at the bottom of the message list for 15 seconds, in the 15s time. This instant message is always displayed at the very bottom of the message list. As shown in the figure, the preset duration can be displayed in a countdown manner in the instant messaging dialog 401, so that the user can view the remaining time of the continuous display.
  • the first sending module 10014 directly sends the instant messaging information to the terminal 1002, so that the terminal 1002 displays the instant messaging information in the chronological order according to the received time sequence. In the message list.
  • the instant messaging information carrying the location identifier is continuously displayed in the preset location for a preset duration, and therefore, even if new instant messaging information is continuously received within the preset duration, the instant carrying the location identifier
  • the communication information will not be pushed up by the subsequent received messages, but will be continuously displayed in the dialog box, so that when the user opens the dialog box, the user can quickly see the important messages continuously displayed in the dialog box without having to turn up the message.
  • List search to improve the efficiency of users looking for messages.
  • the processing device 1001 may further include an obtaining module 10015.
  • the determining module 10012 determines that the instant messaging information is the preset message type
  • the obtaining module 10015 obtains the duration information that is continuously displayed, and the duration information records the preset duration of the instant messaging information being continuously displayed.
  • the obtaining module 10015 can obtain the duration information of the continuous display from the local, or obtain the information from the network.
  • the adding module 10013 is further configured to add the duration information of the persistent display to the instant messaging information, so that the terminal 1002 continuously displays the instant messaging information for a preset duration according to the duration information.
  • the processing device 1001 further includes a second receiving module 10016, a second sending module 10017, a third receiving module 10018, and a third sending module 10019.
  • the second receiving module 10016 is configured to receive the first click event sent by the terminal 1002
  • the second sending module 10017 is configured to send the first to the terminal 1002 according to the first click event.
  • the duration of the notification is such that the terminal 1002 calculates the sum of the remaining duration of the preset duration and the first duration according to the notification, to obtain the total duration of the instant messaging information continuously displayed in the preset position of the dialog box, so that the terminal 1002 will instant messaging information.
  • the total length of time is continuously displayed in the preset position of the dialog box.
  • the third receiving module 10018 is configured to receive the second click event sent by the terminal 1002, and the third sending module 1009 is configured to send a notification for reducing the second duration to the terminal 1002 according to the second click event, so that the terminal 1002 calculates the preset duration according to the notification.
  • the difference between the remaining duration and the second duration is used to obtain the total duration of the instant messaging information continuously displayed in the preset position of the dialog box, so that the terminal 1002 continuously displays the instant messaging information in the preset position of the dialog box according to the total duration.
  • the first click event and the second click event may be generated by the user respectively clicking the first operation button and the second operation button at the terminal 1002.
  • the user can increase or decrease the duration of the instant messaging information display, making the instant messaging process more user-friendly.
  • the embodiment of the present application further provides a server, as shown in FIG. 11 , which shows a schematic structural diagram of a server involved in the embodiment of the present application, specifically:
  • the server may include one or more processors 1101 of the processing core, a memory 1102 of one or more computer readable storage media, a power supply 1103, and an input unit 1104. It will be understood by those skilled in the art that the server structure illustrated in FIG. 11 does not constitute a limitation to the server, and may include more or less components than those illustrated, or some components may be combined, or different component arrangements. among them:
  • the processor 1101 is the control center of the server, connecting various portions of the entire server using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 1102, and recalling data stored in the memory 1102, Execute the server's various functions and process data to monitor the server as a whole.
  • processor 1101 can include one or more processing cores; in some examples, processor 1101 can integrate an application processor and a modem processor, where the application processor primarily processes an operating system, a user interface, and For applications, etc., the modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 1101.
  • the memory 1102 can be used to store software programs and modules, and the processor 1101 executes various functional applications and data processing by running software programs and modules stored in the memory 1102.
  • the memory 1102 can mainly include a storage program area and a storage data area, wherein the storage program area can store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area can be stored according to Data created by the use of the server, etc.
  • memory 1102 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 1102 can also include a memory controller to provide access to memory 1102 by processor 1101.
  • the server also includes a power supply 1103 that powers the various components.
  • the power supply 1103 can be logically coupled to the processor 1101 through a power management system to enable management of charging, discharging, and power management functions through the power management system.
  • the power supply 1103 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
  • the server can also include an input unit 1104 that can be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
  • an input unit 1104 can be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
  • the server may further include a display unit or the like, and details are not described herein again.
  • the processor 1101 in the server loads the executable file corresponding to the process of one or more applications into the memory 1102 according to the following instruction, and is stored in the memory by the processor 1101.
  • the application in 1102 thus implementing various functions, as follows:
  • the preset message type refers to the message type displayed according to the preset display manner, and may be according to the continuous display button in the user dialog box ( As shown in FIG. 1 , it is determined whether the instant messaging information is a preset message type, and when the user selects the persistent display button, it determines the default message type.
  • the location identifier is added to the instant messaging information, and the instant messaging information carrying the location identifier is sent to the terminal, so that the terminal presets the instant messaging information in the dialog box according to the location identifier.
  • the position continues to display the preset duration. Therefore, even if the terminal continuously receives new instant messaging information, the instant messaging information carrying the location identifier is always displayed in the preset position of the dialog box, so that the instant messaging information is not subsequently received.
  • the message is pushed up so that the user can quickly find the information.
  • the instant messaging information is directly sent to the terminal, so that the terminal displays the instant messaging information in the session message list according to the received chronological order.
  • the duration information of the persistent display is obtained, and the duration information records a preset duration that the instant messaging information is continuously displayed in the preset position of the dialog box. Then, the duration information is added to the instant messaging information, so that the terminal continuously displays the instant messaging information in the preset position of the dialog box according to the duration information for a preset duration. After the preset duration, the instant messaging information can be returned to the message list in the chronological order of receipt.
  • the first click event or the second click event sent by the terminal is further received, so that the notification for adding the first duration is sent to the terminal according to the first click event, so as to And causing the terminal to accumulate the first duration based on the remaining duration of the preset duration according to the notification, to obtain the total duration of the instant messaging information being continuously displayed, or sending the notification of reducing the second duration to the terminal according to the second click event, so that the terminal According to the notification, the second duration is accumulated on the basis of the remaining duration of the preset duration to obtain the total duration of the instant messaging information continuously displayed.
  • the embodiment of the present application further provides a terminal.
  • the terminal may include a radio frequency (RF) circuit 1201, a memory 1202 including one or more computer readable storage media, and an input unit. 1203.
  • RF radio frequency
  • RF radio frequency
  • a memory 1202 including one or more computer readable storage media
  • WiFi Wireless Fidelity
  • the terminal structure shown in FIG. 12 does not constitute a limitation to the terminal, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements. among them:
  • the RF circuit 1201 can be used for receiving and transmitting signals during and after receiving or transmitting information, in particular, after receiving downlink information of the base station, and processing it by one or more processors 1208; in addition, transmitting data related to the uplink to the base station.
  • the RF circuit 1201 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, and a low noise amplifier (LNA, Low Noise Amplifier), duplexer, etc.
  • SIM Subscriber Identity Module
  • LNA Low Noise Amplifier
  • RF circuit 1201 can also communicate with the network and other devices via wireless communication.
  • the wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), and Code Division Multiple Access (CDMA). , Code Division Multiple Access), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), e-mail, Short Messaging Service (SMS), and the like.
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • SMS Short Messaging Service
  • the memory 1202 can be used to store software programs and modules, and the processor 1208 executes various functional applications and data processing by running software programs and modules stored in the memory 1202.
  • the memory 1202 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of the terminal (such as audio data, phone book, etc.).
  • memory 1202 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 1202 may also include a memory controller to provide access to memory 1202 by processor 1208 and input unit 1203.
  • Input unit 1203 can be used to receive input numeric or character information, as well as to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
  • input unit 1203 can include a touch-sensitive surface as well as other input devices.
  • Touch-sensitive surfaces also known as touch screens or trackpads, collect touch operations on or near the user (such as the user using a finger, stylus, etc., any suitable object or accessory on a touch-sensitive surface or touch-sensitive Operation near the surface), and drive the corresponding connecting device according to a preset program.
  • the touch sensitive surface can include both portions of the touch detection device and the touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 1208 is provided and can receive commands from the processor 1208 and execute them.
  • touch-sensitive surfaces can be implemented in a variety of types, including resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 1203 can also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • Display unit 1204 can be used to display information entered by the user or information provided to the user, as well as various graphical user interfaces of the terminal, which can be composed of graphics, text, icons, video, and any combination thereof.
  • the display unit 1204 may include a display panel.
  • the display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
  • the touch-sensitive surface can cover the display panel, and when the touch-sensitive surface detects a touch operation thereon or nearby, it is transmitted to the processor 1208 to determine the type of the touch event, and then the processor 1208 displays the type according to the type of the touch event. A corresponding visual output is provided on the panel.
  • the touch-sensitive surface and display panel are implemented as two separate components to perform input and input functions, in some embodiments, the touch-sensitive surface can be integrated with the display panel to implement input and output functions.
  • the terminal may also include at least one type of sensor 1205, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel according to the brightness of the ambient light, and the proximity sensor may close the display panel and/or the backlight when the terminal moves to the ear.
  • the gravity acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • An audio circuit 1206, a speaker, and a microphone can provide an audio interface between the user and the terminal.
  • the audio circuit 1206 can transmit the converted electrical data of the received audio data to a speaker, and convert the sound signal to a sound signal output.
  • the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 1206 and converted.
  • the audio data output processor 1208 After the audio data is processed by the audio data output processor 1208, it is sent to, for example, another terminal via the RF circuit 1201, or the audio data is output to the memory 1202 for further processing.
  • the audio circuit 1206 may also include an earbud jack to provide communication between the peripheral earphone and the terminal.
  • WiFi is a short-range wireless transmission technology.
  • the terminal can help users to send and receive emails, browse web pages and access streaming media through the WiFi module 1207, which provides users with wireless broadband Internet access.
  • FIG. 12 shows the WiFi module 1207, it can be understood that it does not belong to the necessary configuration of the terminal, and can be omitted as needed within the scope of not changing the essence of the application.
  • the processor 1208 is the control center of the terminal, which connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 1202, and invoking data stored in the memory 1202, The various functions of the terminal and processing data to monitor the mobile phone as a whole.
  • processor 1208 can include one or more processing cores; in some examples, processor 1208 can integrate an application processor and a modem processor, where the application processor primarily processes an operating system, a user interface, and For applications, etc., the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 1208.
  • the terminal also includes a power source 1209 (such as a battery) that supplies power to the various components.
  • the power source can be logically coupled to the processor 1208 through a power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the power supply 1209 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
  • the terminal may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • the processor 1208 in the terminal loads the executable file corresponding to the process of one or more applications into the memory 1202 according to the following instruction, and is stored in the memory by the processor 1208.
  • the application in 1202 thus implementing various functions:
  • the instant messaging information sent by the server is from any terminal for instant messaging, and may be text information, pictures, videos, virtual red packets, etc. edited by the user, or may be articles, links, etc. forwarded by the user.
  • the server sends the instant messaging information it receives to each terminal that performs instant messaging, thereby realizing instant messaging.
  • the received instant messaging information carries the location identifier, and the manner in which the instant messaging information carries the identifier is multiple. For details, refer to the previous embodiment, and details are not described herein again.
  • the instant messaging information When the instant messaging information carries the location identifier, the instant messaging information is continuously displayed in the preset position of the dialog box, thereby continuously displaying the instant messaging information, so that the user can quickly see the continuous display in the preset location. Information, no need to spend more time looking in historical messages.
  • the instant messaging information When it is determined that the instant messaging information does not carry the location identifier, the instant messaging information is displayed in the session message list according to the received chronological order.
  • the notification sent by the server to increase the first duration or decrease the second duration is further received; when the notification of increasing the first duration is received, the pre-calculation is calculated according to the notification.
  • the sum of the remaining duration of the duration and the first duration is obtained to obtain the total duration of the instant messaging information continuously displayed in the preset position of the dialog box, so that the instant messaging information is continuously displayed in the preset position according to the total duration; when the reception is reduced
  • the difference between the remaining duration of the preset duration and the second duration is calculated according to the notification, so as to obtain the total duration of the instant messaging information continuously displayed in the preset position of the dialog box, so that the instant messaging information is The total duration is continuously displayed at the preset position.
  • the server may send a notification to increase the first duration or decrease the second duration according to the quantity of the received instant messaging information, or may be sent according to the operation of the user in the terminal.
  • the program may be stored in a computer readable storage medium, and the storage medium may include: Read Only Memory (ROM), Random Access Memory (RAM), disk or optical disk.
  • ROM Read Only Memory
  • RAM Random Access Memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Environmental & Geological Engineering (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Disclosed in an embodiment of the present application are a method and device for processing instant communication information, in the method: a terminal device receiving instant communication information sent from a server, when the terminal device determining that the instant communication information carries a position identifier, continuously displaying the instant communication information at a preset position in an instant communication dialog box for a preset time length.

Description

一种即时通讯信息的处理方法及装置Method and device for processing instant messaging information
本申请要求于2017年3月1日提交中国专利局、申请号为201710118140.2,发明名称为“一种即时通讯信息的处理方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application entitled "A Method and Apparatus for Processing Instant Messaging Information", filed on March 1, 2017, to the Chinese Patent Office, Application No. 201710118140.2, the entire contents of which are incorporated by reference. In this application.
技术领域Technical field
本申请涉及通信技术领域,具体涉及一种即时通讯信息的处理方法及装置。The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for processing instant messaging information.
发明背景Background of the invention
随着互联网技术的不断发展,即时通讯(Instant Messaging)已经成为目前最为流行的通讯方式之一,其能够允许两人或多人使用网络实时传递文字、语音、图片、视频等,极方便用户沟通交流。With the continuous development of Internet technology, Instant Messaging has become one of the most popular communication methods. It can allow two or more people to use the network to transmit text, voice, pictures, videos, etc. in real time, which is very convenient for users to communicate. communicate with.
实现即时通讯的工具通常有聊天室、即时通讯客户端(例如QQ、MSN)等,而即时通讯客户端具有快速、即时等优点更是备受用户欢迎。即时通讯过程中,无论是聊天室还是即时通讯客户端,对话框中的消息始终是按照接收时间的先后顺序排列,最新收到的消息显示在对话框的最下面,即消息列表的最底部,对话框当前显示的消息数目通常也较少,当接收到较多消息时,最早收到的消息会逐渐被往上推。The tools for realizing instant messaging usually have chat rooms, instant messaging clients (such as QQ, MSN), etc., and the instant messaging client has the advantages of fast, instant and so on. During the instant messaging process, whether in the chat room or the instant messaging client, the messages in the dialog box are always arranged in the order of receiving time. The latest received message is displayed at the bottom of the dialog box, that is, at the bottom of the message list. The number of messages currently displayed in the dialog box is usually small. When more messages are received, the earliest received messages are gradually pushed up.
发明内容Summary of the invention
本申请实施例提供一种即时通讯信息的处理方法及装置,可以提高查找效率,有利于用户快速看到需重点关注的消息。The embodiment of the present invention provides a method and a device for processing instant messaging information, which can improve the search efficiency and facilitate the user to quickly see the message that needs to be focused on.
本申请实施例提供一种即时通讯行信息的处理方法,包括:The embodiment of the present application provides a method for processing instant messaging line information, including:
终端设备接收服务器发送的即时通讯信息;The terminal device receives the instant messaging information sent by the server;
所述终端设备判断所述即时通讯信息是否携带位置标识,所述位置标识用于指示所述终端将即时通讯信息在即时通讯对话框的预设位置显示预设时长;Determining, by the terminal device, whether the instant messaging information carries a location identifier, where the location identifier is used to instruct the terminal to display the instant messaging information in a preset position of the instant messaging dialog box for a preset duration;
当所述终端设备判断所述即时通讯信息携带位置标识时,根据位置标识将所述即时通讯信息在即时通讯对话框的预设位置持续显示预设时长。When the terminal device determines that the instant messaging information carries the location identifier, the instant messaging information is continuously displayed in the preset position of the instant messaging dialog box according to the location identifier for a preset duration.
本申请实施例还提供另一种即时通讯信息的处理方法,包括:The embodiment of the present application further provides another method for processing instant messaging information, including:
服务器接收终端发送的即时通讯信息;The server receives the instant messaging information sent by the terminal;
所述服务器判断所述即时通讯信息是否为预设消息类型,其中,所述预设消息类型为需要在终端的即时通讯对话框的预设位置显示预设时长的消息类型;The server determines whether the instant messaging information is a preset message type, where the preset message type is a message type that needs to display a preset duration in a preset position of the instant messaging dialog box of the terminal;
当所述服务器判断所述即时通讯信息为预设消息类型时,在所述即时通讯信息中添加位置标识,所述位置标识用于指示所述终端将即时通讯信息在即时通讯对话框的预设位置显示预设时长;When the server determines that the instant messaging information is a preset message type, adding a location identifier to the instant messaging information, where the location identifier is used to indicate that the terminal presets the instant messaging information in an instant messaging dialog box. The position displays the preset duration;
将携带所述位置标识的即时通讯信息发送给所述终端,以使得所述终端将所述即时通讯信息在即时通讯对话框的预设位置持续显示预设时长。Sending the instant messaging information carrying the location identifier to the terminal, so that the terminal continuously displays the instant messaging information in a preset position of the instant messaging dialog box for a preset duration.
相应地,本申请实施例还提供一种即时通讯信息的处理装置,包括:Correspondingly, the embodiment of the present application further provides an apparatus for processing instant messaging information, including:
处理器;processor;
与所述处理器相连接的存储器;所述存储器中存储有机器可读指令模块;所述机器可读指令模块包括:a memory coupled to the processor; the memory readable instruction module is stored in the memory; the machine readable instruction module includes:
第一接收模块,用于接收服务器发送的即时通讯信息;a first receiving module, configured to receive instant messaging information sent by the server;
判断模块,用于判断所述即时通讯信息是否携带位置标识,所述位置标识用于指示所述终端将即时通讯信息在即时通讯对话框的预设位置显示预设时长;a determining module, configured to determine whether the instant messaging information carries a location identifier, where the location identifier is used to instruct the terminal to display the instant messaging information in a preset position of the instant messaging dialog box for a preset duration;
显示模块,用于当判断模块判断所述即时通讯信息携带位置标识时,根据所述位置标识将所述即时通讯信息在即时通讯对话框的预设位置持续显示预设时长。And a display module, configured to: when the determining module determines that the instant messaging information carries a location identifier, continuously display the instant messaging information in a preset position of the instant messaging dialog box according to the location identifier for a preset duration.
本申请实施例还提供另一种即时通讯信息的处理装置,包括:The embodiment of the present application further provides another processing device for instant messaging information, including:
处理器;processor;
与所述处理器相连接的存储器;所述存储器中存储有机器可读指令模块;所述机器可读指令模块包括:a memory coupled to the processor; the memory readable instruction module is stored in the memory; the machine readable instruction module includes:
第一接收模块,用于接收终端发送的即时通讯信息;a first receiving module, configured to receive instant messaging information sent by the terminal;
判断模块,用于判断所述即时通讯信息是否为预设消息类型,其中,所述 预设消息类型为需要在终端的即时通讯对话框的预设位置显示预设时长的消息类型;a judging module, configured to determine whether the instant messaging information is a preset message type, where the preset message type is a message type that needs to display a preset duration in a preset position of the instant messaging dialog box of the terminal;
添加模块,用于当判断模块判断所述即时通讯信息为预设消息类型时,在所述即时通讯信息中添加位置标识,所述位置标识用于指示所述终端将即时通讯信息在即时通讯对话框的预设位置显示预设时长;Adding a module, when the determining module determines that the instant messaging information is a preset message type, adding a location identifier to the instant messaging information, where the location identifier is used to indicate that the terminal is to instant messaging information in an instant messaging conversation The preset position of the frame displays the preset duration;
第一发送模块,用于将携带所述位置标识的即时通讯信息发送给终端,以使得所述终端将所述即时通讯信息在即时通讯对话框的预设位置持续显示预设时长。The first sending module is configured to send the instant messaging information carrying the location identifier to the terminal, so that the terminal continuously displays the instant messaging information in a preset position of the instant messaging dialog box for a preset duration.
本申请实施例还提供了一种非易失性计算机可读存储介质,其中所述存储介质中存储有机器可读指令,所述机器可读指令可以由处理器执行以完成上述任一方法。The embodiment of the present application also provides a non-transitory computer readable storage medium, wherein the storage medium stores machine readable instructions, which are executable by a processor to perform any of the methods described above.
附图简要说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present application. Other drawings can also be obtained from those skilled in the art based on these drawings without paying any creative effort.
图1是本申请实施例提供的即时通讯信息的处理方法中,终端的即时通讯对话框的示意图;1 is a schematic diagram of an instant messaging dialog box of a terminal in a method for processing instant messaging information according to an embodiment of the present application;
图2是本申请实施例提供的即时通讯信息的处理方法的场景示意图;2 is a schematic diagram of a scenario of a method for processing instant messaging information provided by an embodiment of the present application;
图3是本申请实施例提供的即时通讯信息的处理方法的流程图;3 is a flowchart of a method for processing instant messaging information provided by an embodiment of the present application;
图4是本申请实施例提供的即时通讯信息的处理方法中,即时通讯信息在对话框的预设位置显示的示意图;4 is a schematic diagram of displaying instant messaging information in a preset position of a dialog box in a method for processing instant messaging information according to an embodiment of the present application;
图5是本申请实施例提供的即时通讯信息的处理方法中,即时通讯信息在对话框的预设位置显示的另一示意图;5 is another schematic diagram of displaying instant messaging information in a preset position of a dialog box in a method for processing instant messaging information according to an embodiment of the present application;
图6是本申请实施例提供的即时通讯信息的处理方法中,即时通讯信息在对话框的预设位置显示的又一示意图;6 is another schematic diagram of displaying instant messaging information in a preset position of a dialog box in the method for processing instant messaging information provided by an embodiment of the present application;
图7是本申请实施例提供的即时通讯信息的处理方法的另一流程图;FIG. 7 is another flowchart of a method for processing instant messaging information provided by an embodiment of the present application; FIG.
图8是本申请实施例提供的即时通讯信息的处理装置的结构示意图;FIG. 8 is a schematic structural diagram of an apparatus for processing instant messaging information according to an embodiment of the present application; FIG.
图9是本申请实施例提供的即时通讯信息的处理装置的另一结构示意图;FIG. 9 is another schematic structural diagram of an apparatus for processing instant messaging information according to an embodiment of the present application; FIG.
图10是本申请实施例提供的即时通讯信息的处理装置的又一结构示意图;FIG. 10 is still another schematic structural diagram of an apparatus for processing instant messaging information according to an embodiment of the present application; FIG.
图11是本申请实施例提供的服务器的结构示意图;11 is a schematic structural diagram of a server provided by an embodiment of the present application;
图12是本申请实施例提供的终端的结构示意图。FIG. 12 is a schematic structural diagram of a terminal according to an embodiment of the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the drawings in the embodiments of the present application. It is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments of the present application without creative efforts are within the scope of the present application.
本申请实施例提供一种即时通讯信息的处理方法和装置。The embodiment of the present application provides a method and an apparatus for processing instant messaging information.
其中,本申请实施例所提供的即时通讯信息的处理装置包括:一种可以集成在服务器中的即时通讯信息处理装置,以及一种可以集成在终端等设备中用于接收服务器发送的数据的即时通讯信息处理装置。The processing device for instant messaging information provided by the embodiment of the present application includes: an instant messaging information processing device that can be integrated in a server, and an instant that can be integrated in a device such as a terminal for receiving data sent by the server. Communication information processing device.
以集成在终端中的即时通讯信息的处理装置为例,参阅图1,本申请实施例提供的一种终端,在即时通讯的对话框101中具有可供用户选择的持续显示按钮1011,该持续显示按钮1011可以是直接显示在对话框上,也可以是隐藏在对话框101内的某个图标里,其中该持续显示按钮1011可以根据需要进行设置,例如可以设置为“置顶显示”的按钮,或者设置为“置底显示”按钮,等等。在即时通讯过程中,用户发送即时通讯信息时,只需选中该持续显示按钮1011,即可使得待发送的即时通讯信息能够携带位置标识。For example, with reference to FIG. 1 , a terminal provided in the embodiment of the present application has a continuous display button 1011 selectable by the user in the instant messaging dialog 101. The display button 1011 may be directly displayed on the dialog box or may be hidden in an icon in the dialog box 101. The continuous display button 1011 may be set as needed, for example, a button that may be set to “top display”. Or set to the "bottom display" button, and so on. In the instant messaging process, when the user sends the instant messaging information, the continuous display button 1011 can be selected to enable the instant messaging information to be sent to carry the location identifier.
参阅图2,在即时通讯过程中,进行即时通讯的终端201和终端202分别通过即时通讯应用与服务器203网络连接,其中一个终端201向服务器203发送即时通讯信息,服务器203将接收到的即时通讯信息发送给通讯双方的终端201和终端202,从而实现即时通讯。其中,以终端202为例,在接收到 服务器203发送的即时通讯信息后,判断该即时通讯信息是否携带位置标识,该位置标识用于指示所述终端将即时通讯信息在即时通讯对话框的预设位置显示预设时长,当判断该即时通讯信息携带位置标识时,将该即时通讯信息在对话框的预设位置持续显示预设时长,由此用户在使用终端201发送需要引起其他用户关注的重要消息时,可以选中持续显示按钮,以使得该即时通讯信息携带位置标识,从而使得通讯各用户的终端在接收到该即时通讯信息时将该即时通讯信息在各自对话框的预设位置持续显示预设时长,使得该即时通讯信息不会被后续接收到的消息往上推,由此即使接收到较多消息,用户打开对话框时也能够快速看到持续显示在对话框中的重要消息,而无需往上翻消息列表寻找,提高用户查看消息的效率。Referring to FIG. 2, in the instant messaging process, the terminal 201 and the terminal 202 performing instant messaging are respectively connected to the server 203 through an instant messaging application, wherein one terminal 201 transmits instant messaging information to the server 203, and the server 203 receives the instant messaging. The information is transmitted to the terminal 201 and the terminal 202 of both parties of the communication, thereby realizing instant communication. The terminal 202 is taken as an example. After receiving the instant messaging information sent by the server 203, it is determined whether the instant messaging information carries a location identifier, where the location identifier is used to indicate that the terminal forwards the instant messaging information in an instant messaging dialog box. The location display preset duration, when it is determined that the instant messaging information carries the location identifier, the instant messaging information is continuously displayed in the preset position of the dialog box for a preset duration, whereby the user sends the use terminal 201 to send attention that needs to be attracted by other users. In the important message, the continuous display button may be selected to enable the instant messaging information to carry the location identifier, so that the terminal of each communication user continuously displays the instant messaging information in the preset position of the respective dialog box when receiving the instant messaging information. The preset duration is such that the instant messaging information is not pushed up by the subsequently received message, so that even if more messages are received, the user can quickly see the important messages continuously displayed in the dialog box when the user opens the dialog box. There is no need to go up the message list to improve the efficiency of the user to view the message.
以下分别进行详细说明。The details are described below separately.
参阅图3,图3是本申请实施例提供的即时通讯信息的处理方法的流程图。本实施例将从终端的即时通讯信息处理装置的角度进行描述,该即时通讯信息的处理装置具体可以集成在终端等设备中,该终端可以是手机、平板电脑、笔记本电脑或个人计算机等设备。Referring to FIG. 3, FIG. 3 is a flowchart of a method for processing instant messaging information according to an embodiment of the present application. The present embodiment will be described from the perspective of the instant messaging information processing device of the terminal. The processing device for the instant messaging information may be integrated into a device such as a terminal, such as a mobile phone, a tablet computer, a notebook computer, or a personal computer.
如图3所示,即时通讯信息的处理方法的具体流程可以包括以下步骤:As shown in FIG. 3, the specific process of the method for processing instant messaging information may include the following steps:
步骤S301:接收服务器发送的即时通讯信息。Step S301: Receive instant messaging information sent by the server.
服务器发送的即时通讯信息来自相互进行即时通讯的任一终端,可以是用户编辑的文字信息、图片、视频以及虚拟红包等,也可以是用户转发的文章、链接等。服务器将其接收到的即时通讯信息发送给相互进行即时通讯的各终端,从而实现即时通讯。The instant messaging information sent by the server comes from any terminal that performs instant communication with each other, and may be text information, pictures, videos, virtual red packets, etc. edited by the user, or may be articles, links, etc. forwarded by the user. The server transmits the instant messaging information it receives to each terminal that performs instant communication with each other, thereby realizing instant communication.
本实施例中,接收服务器发送的即时通讯信息的终端和发送即时通讯信息给服务器的终端可以是同一终端也可以是不同的终端,本实施例是以接收服务器发送的即时通讯信息的终端的角度进行描述。In this embodiment, the terminal that receives the instant messaging information sent by the server and the terminal that sends the instant messaging information to the server may be the same terminal or different terminals. In this embodiment, the terminal that receives the instant messaging information sent by the server is used. Describe.
步骤S302:判断即时通讯信息是否携带位置标识,位置标识用于指示终端按照预先策略对即时通讯信息进行显示,该预先策略为使即时通讯信息在 对话框的预设位置持续显示预设时长。Step S302: determining whether the instant messaging information carries a location identifier, where the location identifier is used to instruct the terminal to display the instant messaging information according to the pre-policy, wherein the pre-policy is to continuously display the instant messaging information in a preset position of the dialog box for a preset duration.
其中,位置标识根据用户对对话框中的持续显示按钮的选中指令而产生,产生的方式可以有多种。Wherein, the location identifier is generated according to the user's selection instruction of the continuous display button in the dialog box, and the manner of generation may be various.
例如,当用户在发送即时通讯信息时选中了持续显示按钮,则终端根据用户选中持续显示按钮的指令,对用户所发送的即时通讯信息添加位置标识,该位置标识的表示形式可以有多种,例如文字、数字、字母或符号等等,如“1”或“5”,或者可以是“b”或“d”等,并将添加了位置标识的即时通讯信息发送给服务器,服务器直接将添加了位置标识的即时通讯信息发送给通讯的各终端。For example, when the user selects the persistent display button when sending the instant messaging information, the terminal adds a location identifier to the instant messaging information sent by the user according to the user's instruction to continuously display the button, and the location identifier can be represented in various forms. For example, text, numbers, letters or symbols, etc., such as "1" or "5", or can be "b" or "d", etc., and send the instant messaging information with the location identifier to the server, the server will directly add The instant messaging information of the location identifier is sent to each terminal of the communication.
又例如,当用户在发送即时通讯信息时选中了持续显示按钮,则终端根据用户选中持续显示按钮的指令,将即时通讯信息发送给服务器时,通知服务器需对该即时通讯信息添加位置标识,服务器根据该通知在即时通讯信息中添加位置标识,并将添加了位置标识的即时通讯信息发送给通讯的各终端。For another example, when the user selects the persistent display button when sending the instant messaging information, the terminal sends the instant messaging information to the server according to the instruction that the user selects the continuous display button, and the notification server needs to add the location identifier to the instant messaging information, the server. According to the notification, a location identifier is added to the instant messaging information, and the instant messaging information with the location identifier added is sent to each terminal of the communication.
需要说明的是,无论位置标识是用哪一种表示形式,都应该是服务器和终端事先约定的位置标识。It should be noted that regardless of the representation of the location identifier, it should be the location identifier agreed by the server and the terminal in advance.
步骤S303:当判断即时通讯信息携带位置标识时,根据位置标识将即时通讯信息在对话框的预设位置持续显示预设时长。Step S303: When it is determined that the instant messaging information carries the location identifier, the instant messaging information is continuously displayed in the preset position of the dialog box according to the location identifier for a preset duration.
其中,对话框是指终端进行即时通讯时所显示的对话窗口。位置标识具体用于指示终端按照预先策略对即时通讯信息进行显示,该预先策略为使即时通讯信息在对话框的预设位置持续显示预设时长。其中,预设位置可以是对话框中的任意一个位置,例如可以是消息列表的最顶部,此时图1所示的持续显示按钮可以设置为“置顶显示”按钮;或者预设位置可以是消息列表的最底部,此时图1所示的持续显示按钮可以设置为“置底显示”按钮;或者对话框的消息列表之外的其他位置;或者还可以是以悬浮窗口的方式显示在对话框所在位置的屏幕上,用户可以在对话框的范围内任意移动该悬浮窗口。Among them, the dialog box refers to the dialog window displayed when the terminal performs instant messaging. The location identifier is specifically configured to instruct the terminal to display the instant messaging information according to the pre-policy, and the pre-policy is to enable the instant messaging information to continue to display the preset duration in the preset position of the dialog box. The preset position may be any position in the dialog box, for example, may be the top of the message list. At this time, the continuous display button shown in FIG. 1 may be set as a “top display” button; or the preset position may be a message. At the bottom of the list, the continuous display button shown in Figure 1 can be set to the "bottom display" button; or other positions outside the message list of the dialog box; or it can be displayed as a floating window in the dialog box. On the screen of the location, the user can move the floating window arbitrarily within the scope of the dialog box.
其中,该预设时长可以根据实际需要设定,例如可以是10s、15s、20s或1min、2min等。以预设位置为消息列表的最底部、预设时长为15s为例,如 图4所示,对话框401中的持续显示按钮设置为“置底显示”按钮,将携带位置标识的即时通讯信息a在消息列表的最底部持续显示15s,在这15s的时间里该即时通讯信息a始终显示在消息列表的最底部。其中,如图4所示,可以在即时通讯的对话框401中以倒计时的方式显示预设时长,便于用户查看持续显示的剩余时间。The preset duration can be set according to actual needs, for example, 10s, 15s, 20s or 1min, 2min, and the like. Taking the preset position as the bottom of the message list and the preset duration as 15s as an example, as shown in FIG. 4, the continuous display button in the dialog box 401 is set to the “bottom display” button, which will carry the instant messaging information of the location identifier. a continues to display 15s at the bottom of the message list. During the 15s, the instant messaging information a is always displayed at the bottom of the message list. As shown in FIG. 4, the preset duration can be displayed in a countdown manner in the instant messaging dialog box 401, so that the user can view the remaining time of the continuous display.
其中,对于打开状态的对话框而言,预设时长从接收到即时通讯信息时为时间起点进行计算,对于关闭状态(用户可能未登录或者未打开对话框)的对话框而言,预设时长从对话框由关闭状态变为打开状态时为时间起点进行计算。For the dialog box in the open state, the preset duration is calculated from the time start point when receiving the instant messaging information, and the preset duration is long for the dialog box in the closed state (the user may not be logged in or the dialog box is not opened). The time start is calculated from when the dialog is changed from the closed state to the open state.
通常情况下,终端接收到的即时通讯信息将按照接收的时间先后顺序在对话框的消息列表中显示,最新接收到的即时通讯信息显示在消息列表的最底部,较早收到的即时通讯信息在会话消息列表的上部显示,当不断接收到即时通讯信息时,即时通讯信息将被不断往上推,会话消息列表的最底部始终显示的是最新接收到的即时通讯信息。在本申请实施例中,与上述通常情况下的显示方式不同的是,将携带位置标识的即时通讯信息在预设位置持续显示预设时长,因此在该预设时长内,即使不断接收到新的即时通讯信息,该携带位置标识的即时通讯信息也不会被后续接收到的消息往上推,而是在对话框内持续显示,从而用户打开对话框时能够快速看到持续显示在对话框中的重要消息,而无需往上翻消息列表寻找,提高用户查找消息的效率。Normally, the instant messaging information received by the terminal will be displayed in the message list of the dialog box according to the chronological order of reception. The newly received instant messaging information is displayed at the bottom of the message list, and the instant messaging information received earlier is received. In the upper part of the conversation message list, when the instant messaging information is continuously received, the instant messaging information will be pushed up continuously, and the latest received instant messaging information is always displayed at the bottom of the conversation message list. In the embodiment of the present application, different from the display manner in the above-mentioned normal situation, the instant messaging information carrying the location identifier is continuously displayed for a preset duration in the preset position, so that even if the new duration is received continuously within the preset duration, The instant messaging information, the instant messaging information carrying the location identifier is not pushed up by the subsequently received message, but is continuously displayed in the dialog box, so that the user can quickly see the continuous display in the dialog box when the user opens the dialog box. The important message in the middle, without having to go up the message list to find, improve the efficiency of the user to find the message.
在一些实例中,当判断即时通讯信息未携带位置标识时,可以将即时通信信息按照其他策略进行显示,比如按照正常的方式将即时通讯信息按照接收到的时间先后顺序在消息列表中显示,等等。并且,当即时通讯信息在对话框的预设位置持续显示预设时长之后,可以使该即时通讯信息与其他即时通讯信息在消息列表中按照接收的时间先后顺序显示,即根据接收的时间使该即时通讯信息返回消息列表的相应时间点的位置排列显示。In some examples, when it is determined that the instant messaging information does not carry the location identifier, the instant messaging information may be displayed according to other policies, such as displaying the instant messaging information in the message list according to the received chronological order in a normal manner, etc. Wait. Moreover, after the instant messaging information is continuously displayed for a preset duration in the preset position of the dialog box, the instant messaging information and other instant messaging information may be displayed in the message list according to the received chronological order, that is, according to the received time. The location of the instant messaging message returning to the message list at the corresponding time point is displayed.
其中,当接收到多个携带位置标识的即时通讯信息时,可以将多个携带 位置标识的即时通讯信息按照预先设置进行显示,例如,最新接收到的携带位置标识的即时通讯信息可以持续显示在预设位置的最底部,其他携带位置标识的即时通讯信息则按照接收到的时间先后顺序依次排列在预设位置的最底部之上。When receiving a plurality of instant messaging information carrying the location identifier, the instant messaging information of the multiple carrying location identifiers may be displayed according to a preset setting. For example, the newly received instant messaging information of the carrying location identifier may be continuously displayed. At the bottom of the preset position, other instant messaging information carrying the location identifier is sequentially arranged at the bottom of the preset position according to the received chronological order.
其中,预设时长的信息可以由服务器通知各终端,例如,服务器在发送携带位置标识的即时通讯信息之前或发送的同时,可以将记载着预设时长的时长信息添加至该即时通讯信息中,从而终端在接收到携带位置标识的即时通讯信息时,从即时通讯信息中提取时长信息,以获取显示的预设时长。或者,时长信息也可以由终端从本地存储获取。具体而言,终端预先存储有持续显示的时长信息,在判断接收到的即时通讯信息携带位置标识时,从本地获取预先存储的时长信息,以获取预设时长,从而将即时通讯信息在对话框的预设位置持续显示预设时长。The information of the preset duration may be notified to each terminal by the server. For example, the server may add the duration information indicating the preset duration to the instant messaging information before sending or sending the instant messaging information carrying the location identifier. Therefore, when receiving the instant messaging information carrying the location identifier, the terminal extracts the duration information from the instant messaging information to obtain the preset duration of the display. Alternatively, the duration information can also be obtained by the terminal from the local storage. Specifically, the terminal pre-stores the duration information of the persistent display, and when determining that the received instant messaging information carries the location identifier, locally acquires the pre-stored duration information to obtain the preset duration, thereby placing the instant messaging information in the dialog box. The preset position continues to display the preset duration.
在本申请即时通讯信息的处理方法另一实施方式中,可以对即时通讯信息持续显示的时长进行增加或减少。In another embodiment of the method for processing instant messaging information of the present application, the duration of continuous display of the instant messaging information may be increased or decreased.
具体地,在执行将即时通讯信息在对话框的预设位置持续显示预设时长的步骤之后,还可以包括:在预设时长内,接收服务器发送的增加第一时长的通知,或者接收服务器发送的减少第二时长的通知;当接收到增加第一时长的通知时,根据该通知计算预设时长的剩余时长和第一时长的和,得到即时通讯信息持续显示的总时长,并将即时通讯信息在对话框的预设位置持续显示该总时长;当接收到减少第二时长的通知时,根据该通知计算预设时长的剩余时长与第二时长的差值,得到总时长,并将即时通讯信息在对话框的预设位置持续显示该总时长。其中,预设时长的剩余时长与第二时长的差值不小于零。Specifically, after the step of continuously displaying the preset duration of the instant messaging information in the preset position of the dialog box, the method further includes: receiving, by the receiving server, a notification of increasing the first duration, or sending the notification by the receiving server, within the preset duration The notification of reducing the second duration; when receiving the notification of increasing the first duration, calculating the sum of the remaining duration of the preset duration and the first duration according to the notification, obtaining the total duration of the instant messaging information continuously displayed, and instant messaging The information is continuously displayed in the preset position of the dialog box; when the notification of reducing the second duration is received, the difference between the remaining duration of the preset duration and the second duration is calculated according to the notification, and the total duration is obtained, and the instant is obtained. The communication information is continuously displayed for the total duration in the preset position of the dialog box. The difference between the remaining duration of the preset duration and the second duration is not less than zero.
其中,第一时长和第二时长可以根据实际应用的需求进行设置,比如,第一时长可以是3s、5s或10s等,第二时长可以是2s、5s或8s等。The first duration and the second duration may be set according to requirements of the actual application. For example, the first duration may be 3s, 5s, or 10s, and the second duration may be 2s, 5s, or 8s.
服务器可以根据多种情况向第一终端发送增加第一时长或减少第二时长 的通知。The server may send a notification to the first terminal to increase the first duration or decrease the second duration according to multiple conditions.
例如,服务器可以根据接收到的即时通讯信息的数量发出相应的通知。For example, the server can issue a corresponding notification based on the amount of instant messaging information received.
具体地,服务器将携带位置标识的即时通讯信息发送给终端之后的一段时间(该时间不超过预设时长)内,若服务器接收到的即时通讯信息的数量超过预定数量,有可能会导致携带位置标识的即时通讯信息在预设时长结束后回到消息列表的正常位置(即按照时间顺序排列的位置)时,与后续接收到的即时通讯信息可能无法在对话框内同时显示,此时可发出增加第一时长的通知,以增加即时通讯信息在对话框持续显示的时长。若服务器接收到的即时通讯行的数量较少,没有超过预定数量,即使携带位置标识的即时通讯信息在预设时长结束后回到会话消息列表的正常位置时,与后续接收到的即时通讯信息可能可以在对话框内同时显示,此时可发出减少第二时长的通知,以减少即时通讯信息持续显示的时长。Specifically, the server sends the instant messaging information carrying the location identifier to the terminal for a period of time (the time does not exceed the preset duration). If the number of instant messaging information received by the server exceeds the predetermined number, the server may cause the carrying location. When the identified instant messaging information returns to the normal position of the message list after the preset duration (ie, the position is arranged in chronological order), the subsequent received instant messaging information may not be displayed simultaneously in the dialog box, and may be issued at this time. Increase the notification of the first duration to increase the duration of the instant messaging information displayed in the dialog box. If the number of instant messaging lines received by the server is small, the number of instant messaging messages does not exceed the predetermined number, even if the instant messaging information carrying the location identifier returns to the normal location of the session message list after the preset duration expires, and the subsequently received instant messaging information It may be displayed simultaneously in the dialog box, and a notification to reduce the second duration may be issued to reduce the duration of the instant messaging information.
又例如,服务器还可以根据用户的操作向终端发送增加第一时长或减少第二时长的通知。For another example, the server may further send a notification to the terminal to increase the first duration or decrease the second duration according to the operation of the user.
具体地,终端将携带位置标识的即时通讯信息在对话框的预设位置持续显示预设时长时,还可以包括:显示用于对即时通讯信息进行加时显示的第一操作按钮,以及显示用于对即时通讯信息进行减时显示的第二操作按钮。Specifically, when the terminal continuously displays the instant messaging information of the location identifier in the preset position of the dialog box for a preset duration, the method may further include: displaying a first operation button for displaying the instant messaging information, and displaying the A second operation button for displaying the time-out information of the instant messaging information.
第一操作按钮和第二操作按钮例如可以如图5所示,第一操作按钮是按钮501,第二操作按钮是按钮502。按钮501和按钮502可以显示在对话框503的任一位置,例如可以分别显示在即时通讯信息a的左右两侧。The first operation button and the second operation button may be, for example, as shown in FIG. 5, the first operation button is a button 501, and the second operation button is a button 502. The button 501 and the button 502 can be displayed at any position of the dialog box 503, for example, can be displayed on the left and right sides of the instant messaging information a, respectively.
当用户希望增加置底显示的时长时,可以点击按钮501。因此,在接收服务器发送的增加第一时长的通知之前,还包括:在预设时长内,接收用户通过第一操作按钮触发的第一点击操作指令,根据第一点击操作指令生成第一点击事件;向服务器发送第一点击事件。从而,服务器根据接收到的第一点击事件发送增加第一时长的通知。When the user wishes to increase the length of the bottom display, the button 501 can be clicked. Therefore, before receiving the notification sent by the server to increase the first duration, the method further includes: receiving, by the first operation button triggered by the first operation button, a first click event according to the first click operation instruction. ; Send a first click event to the server. Thereby, the server transmits a notification for increasing the first duration according to the received first click event.
当用户希望减少置底显示的时长时,可以点击按钮502。因此,在接收服 务器发送的减少第二时长的通知之前,还包括:在预设时长内,终端接收用户通过第二操作按钮触发的第二点击操作指令,根据第二点击操作指令生成第二点击事件;向服务器发送第二点击事件。从而,服务器根据接收到的第二点击事件发送减少第二时长的通知。When the user wishes to reduce the length of the bottom display, the button 502 can be clicked. Therefore, before receiving the notification of reducing the second duration sent by the server, the method further includes: in the preset duration, the terminal receives the second click operation instruction triggered by the second operation button, and generates the second click according to the second click operation instruction. Event; sends a second click event to the server. Thereby, the server transmits a notification for reducing the second duration according to the received second click event.
其中,第一操作按钮和第二操作按钮例如可以只有一次激活态,即针对每个置底显示的即时通讯信息只有一次增加显示时长或减少显示时长的机会,第一操作按钮和第二操作按钮被点击一次之后即变为不可点击状态。For example, the first operation button and the second operation button may have only one active state, that is, the instant messaging information displayed for each bottoming has only one chance of increasing the display duration or reducing the display duration, the first operation button and the second operation button. After being clicked once, it becomes unclickable.
第一操作按钮和第二操作按钮也可以有多次激活态,即两个操作按钮501、502可以被多次点击,每次被点击后都将对应地生成第一点击事件和第二点击事件。对于此种情况,服务器可以有多种响应方式。The first operation button and the second operation button may also have multiple activation states, that is, the two operation buttons 501, 502 may be clicked multiple times, and each time the button is clicked, the first click event and the second click event will be correspondingly generated. . In this case, the server can have multiple responses.
例如,服务器每接收到一次第一点击事件或第二点击事件,即发送一次相应的增加第一时长或减少第二时长的通知,从而终端每接收到一次增加第一时长的通知或减少第二时长的通知时,即将即时通讯信息持续显示的时长相应地累加第一时长或累减第二时长,其中当减少时长时减少至零为止。For example, each time the server receives the first click event or the second click event, the corresponding notification of increasing the first duration or decreasing the second duration is sent, so that the terminal increases the notification of the first duration or decreases the second every time. When the duration is notified, the duration of the instant messaging information is continuously displayed correspondingly for the first duration or the second duration, wherein the duration is reduced to zero.
对于增加第一时长的情况,当接收到多次增加第一时长的通知时,即可能有用户点击了多次按钮501或者可能有多个用户分别点击了一次按钮501,则每接收到一次增加第一时长的通知,即在剩余时长的基础上累加第一时长。例如,以第一时长为3s、预设时长为15s为例,在预设时长15s内第一次接收到增加第一时长的通知时,在预设时长15s的剩余时长的基础上累加第一时长3s,得到一个总时长,在该总时长内接收到第二次增加第一时长的通知时,则在该总时长的剩余时长的基础上累加第一时长3s,得到一个新的总时长,以此类推。In the case of increasing the first duration, when a notification of increasing the first duration is received multiple times, there may be a user clicking the button 501 a plurality of times or there may be multiple users clicking the button 501 once, respectively, and each time an increase is received. The notification of the first duration, that is, the first duration is accumulated on the basis of the remaining duration. For example, when the first duration is 3s and the preset duration is 15s, when the notification of increasing the first duration is received for the first time within 15s, the first time is accumulated based on the remaining duration of 15s. The duration is 3s, and a total duration is obtained. When the notification of the second increase of the first duration is received within the total duration, the first duration is accumulated for 3 seconds based on the remaining duration of the total duration, and a new total duration is obtained. And so on.
对于减少第二时长的情况,当接收到多次减少第二时长的通知时,则每接收到一次减少第二时长的通知,即在剩余时长的基础上累减第二时长。例如,以第二时长为10s、预设时长为15s为例,在预设时长15s内第一次接收到减少第二时长的通知时,在预设时长15s的剩余时长(例如剩余时长为12s)的 基础上减去第二时长10s,得到一个总时长2s,在该2s内若再接收到第二次增加第二时长的通知时,则持续显示的时长变为零,表示即时通讯信息不再在对话框的预设位置持续显示,而是返回消息列表的正常位置排列显示。For the case of reducing the second duration, when receiving the notification of reducing the second duration a plurality of times, the notification of reducing the second duration is received once, that is, the second duration is accumulated on the basis of the remaining duration. For example, if the second duration is 10 s and the preset duration is 15 s, the remaining duration of 15 seconds is preset when the notification is decreased for the first time within 15 seconds of the preset duration (for example, the remaining duration is 12s). On the basis of subtracting the second duration by 10s, a total duration of 2s is obtained, and if the notification of the second increase of the second duration is received within the 2s, the duration of the continuous display becomes zero, indicating that the instant messaging information is not It is displayed continuously in the preset position of the dialog box, but is returned to the normal position of the message list.
又例如,服务器在预定时间内累计接收到的第一点击事件和第二点击事件的次数,并根据第一点击事件累计的次数计算需要增加的总时长,以及根据第二点击事件累计的次数计算需要减少的总时长,并计算增加的总时长减去减少的总时长的差值。若增加的总时长大于减少的总时长,则将增加该差值时长的通知发送给终端,此时第一时长指该差值时长,终端根据该通知在预设时长的剩余时长的基础上累加该差值时长,以得到即时通讯信息在预设位置持续显示的总时长。若增加的总时长小于减少的总时长,则将减少该差值时长的通知发送给终端,此时第二时长指该差值时长,终端根据该通知在预设时长的剩余时长的基础上减去该差值时长,以得到即时通讯信息在预设位置持续显示的总时长。For another example, the server accumulates the number of received first click events and second click events within a predetermined time, and calculates the total duration required to be increased according to the number of times the first click event is accumulated, and calculates the number of times accumulated according to the second click event. The total length of time that needs to be reduced is calculated and the total length of time added is subtracted from the total length of time reduced. If the total duration of the increase is greater than the total duration of the decrease, the notification of increasing the duration of the difference is sent to the terminal, where the first duration refers to the duration of the difference, and the terminal accumulates the remaining duration based on the preset duration according to the notification. The difference duration is used to obtain the total duration of the instant messaging information being continuously displayed at the preset position. If the total duration of the increase is less than the total duration of the decrease, the notification of reducing the duration of the difference is sent to the terminal, where the second duration refers to the duration of the difference, and the terminal reduces the remaining duration based on the preset duration according to the notification. The duration of the difference is taken to obtain the total duration of the instant messaging information being continuously displayed at the preset position.
当即时通讯的终端有多个时,服务器可能接收到多个终端发送的第一点击事件或第二点击事件,此时服务器的响应方式同样适用于上述两种响应方式。When there are multiple terminals of the instant messaging, the server may receive the first click event or the second click event sent by multiple terminals, and the response manner of the server is also applicable to the above two response modes.
为了增加美感和趣味性,按钮501的名称可以显示为“扔石头”按钮,按钮502的名称可以显示为“绑气球”按钮,且两个按钮可以采用图片的形式显示。In order to add beauty and fun, the name of the button 501 can be displayed as a "stone throw" button, the name of the button 502 can be displayed as a "tie balloon" button, and the two buttons can be displayed in the form of a picture.
通过本实施例,用户可以选择对即时通讯信息在对话框的预设位置持续显示的时长进行增加或减少,当期望别的用户能够关注该即时通讯信息时,可以按下按钮501,从而可以触发服务器向各终端发送增加第一时长的通知,使得各终端增加即时通讯信息持续显示的时长,当用户对该即时通讯信息不感兴趣时,可以按下按钮502,以减少即时通讯信息置底显示的时长,由此可以方便用户操作,且使得即时通讯过程更人性化。With the embodiment, the user can select to increase or decrease the duration of the instant messaging information displayed in the preset position of the dialog box. When it is desired that other users can pay attention to the instant messaging information, the button 501 can be pressed, so that the trigger can be triggered. The server sends a notification to each terminal to increase the first duration, so that each terminal increases the duration of the instant messaging information continuously displayed. When the user is not interested in the instant messaging information, the button 502 can be pressed to reduce the bottom-end display of the instant messaging information. The duration is thus convenient for the user to operate, and the instant messaging process is more user-friendly.
在上一实施例中,第一时长和第二时长为固定值,参阅图6,在另一实施例中,用户可以选择所增加或减少的时长,具体而言,第一操作按钮例如包 括“+3s”、“+8s”两个按钮,每个按钮按下一次即表示增加相应时长,例如按下8s的按钮,则服务器发送增加8s时长的通知,终端根据该通知在预设时长的剩余时长的基础上增加8s以得到持续显示的时长。同理的,第二操作按钮包括“-3s”、“-5s”两个按钮,每个按钮按下一次即表示减少相应时长。通过本实施例,可以提供更多可选的时长供用户选择,提高用户体验。In the previous embodiment, the first duration and the second duration are fixed values. Referring to FIG. 6, in another embodiment, the user may select the duration of the increase or decrease. Specifically, the first operation button includes, for example, " +3s", "+8s" two buttons, each button presses to increase the corresponding duration, for example, press the 8s button, the server sends a notification to increase the duration of 8s, the terminal is based on the notification for the preset duration The duration is increased by 8s to get the duration of the continuous display. Similarly, the second operation button includes two buttons of "-3s" and "-5s", and each button is pressed once to indicate that the corresponding duration is reduced. Through this embodiment, more optional durations can be provided for the user to select and improve the user experience.
可以理解的是,在即时通讯中,服务器发送数据(例如前述的即时通讯信息、增加第一时长或减少第二时长的通知)的对象均是针对进行即时通讯的各个终端,即服务器发送即时通讯信息或者通知时,是发送给进行即时通讯的各终端。因此,当即时通讯的其中一个终端向服务器发送第一点击事件或第二点击事件时,服务器将通知即时通讯的各终端均将持续显示的时长增加第一时长或减少第二时长。由此,当其中一个用户对于某个持续显示的即时通讯信息较感兴趣并且希望引起其他用户更多关注时,可以点击第一操作按钮以使得通讯的各终端均增加该即时通讯信息持续显示的时长。It can be understood that, in instant messaging, the object that the server sends data (such as the aforementioned instant messaging information, increases the first duration or reduces the notification of the second duration) is for each terminal that performs instant messaging, that is, the server sends instant messaging. When the information or notification is sent, it is sent to each terminal that performs instant messaging. Therefore, when one of the instant messaging terminals sends a first click event or a second click event to the server, the server notifies each terminal of the instant messaging to increase the duration of the continuous display by a first duration or decrease the second duration. Therefore, when one of the users is more interested in a continuously displayed instant messaging information and wishes to attract more attention from other users, the first operation button may be clicked to cause each terminal of the communication to increase the continuous display of the instant messaging information. duration.
上述各实施例的即时通讯信息的处理方法,可以应用于群聊场景中,也可以应用于两人聊天的场景中。下面进一步以群聊场景为例来说明本申请实施例的即时通讯信息的处理方法的实现过程。The method for processing instant messaging information in the above embodiments may be applied to a group chat scenario, or may be applied to a scenario in which two people chat. The implementation process of the method for processing instant messaging information in the embodiment of the present application is further described by taking the group chat scenario as an example.
在群聊中,服务器接收群聊内各个终端分别发送的即时通讯信息,然后将即时通讯信息发送给群聊内的所有终端,从而实现群聊。群聊中由于进行即时通讯的用户较多,因此即时通讯信息通常也较多,尤其是当各用户针对某个热点即时通讯信息进行激烈讨论时,该热点即时通讯信息将会被后续的新即时通讯信息不断往上推,当某个用户尤其是新打开群组的用户需要花费较多时间向上翻会话消息列表才能找到该热点即时通讯信息。In the group chat, the server receives the instant messaging information sent by each terminal in the group chat, and then sends the instant messaging information to all the terminals in the group chat, thereby implementing the group chat. In the group chat, there are many users who have instant messaging, so the instant messaging information is usually more, especially when each user has a heated discussion about a hotspot instant messaging information, the hotspot instant messaging information will be followed by a new instant. The communication information is continuously pushed up. When a user, especially a newly opened group, needs to spend more time to scroll up the session message list to find the hot spot instant messaging information.
而通过本申请实施例的即时通讯信息的处理方法,对于发布热点信息的用户而言,其在利用终端发布热点即时通讯行信息时可以选中持续显示按钮,相应的终端根据用户的选择对该热点即时通讯行信息添加位置标识,或者根据用户的选择通知服务器将该热点即时通讯信息添加位置标识。服务器将携 带位置标识的该热点即时通讯信息发送给群聊内的各个终端。群聊内的各个终端接收该热点即时通讯信息,并在判断该热点即时通讯信息携带位置标识时将该热点即时通讯信息在对话框的预设位置持续显示预设时长,由此即使当前不断接收到群聊内的即时通讯信息,该热点即时通讯信息也将在对话框内显示,用户尤其是新打开群组对话框的用户可以快速看到该热点即时通讯信息,无需花费较多时间查找。With the method for processing instant messaging information in the embodiment of the present application, for the user who publishes the hotspot information, when the terminal uses the terminal to publish the hot spot instant message line information, the persistent display button may be selected, and the corresponding terminal selects the hotspot according to the user's selection. The instant messaging line information adds a location identifier, or the server is notified to add the location identifier to the hotspot instant messaging information according to the user's selection. The server sends the hotspot instant messaging information carrying the location identifier to each terminal in the group chat. Each terminal in the group chat receives the hot spot instant messaging information, and when the hot spot instant messaging information carries the location identifier, the hotspot instant messaging information is continuously displayed in the preset position of the dialog box for a preset duration, thereby continuously receiving the current time. To the instant messaging information in the group chat, the hotspot instant messaging information will also be displayed in the dialog box, and the user, especially the newly opened group dialog box, can quickly see the hotspot instant messaging information without spending more time searching.
此外,群聊内的各用户可以对该热点即时通讯信息进行增加或减少置底显示的时长的操作,例如当其中一个用户点击了如图5所示的第一操作按钮501,则相应的终端向服务器发送第一点击事件,服务器根据该第一点击事件向群聊内的各个终端发送增加第一时长的通知,从而各个终端根据该通知将该热点即时通讯信息持续显示的时长在预设时长的剩余时长的基础上累加第一时长。In addition, each user in the group chat can perform an operation of increasing or decreasing the length of the bottom display for the hot spot instant messaging information, for example, when one of the users clicks the first operation button 501 as shown in FIG. 5, the corresponding terminal Sending a first click event to the server, and the server sends a notification for increasing the first duration to each terminal in the group chat according to the first click event, so that each terminal continuously displays the hotspot instant messaging information according to the notification for a preset duration The first duration is accumulated based on the remaining duration.
在本申请即时通讯信息的处理方法又一实施例中,接收服务器发送的即时通讯信息之后,还包括:将即时通讯信息的内容与垃圾信息的预设特征信息对比,根据对比结果判断即时通讯信息是否为垃圾信息。其中,当判断即时通讯信息携带位置标识时,根据位置标识将即时通讯信息在对话框的预设位置持续显示预设时长的步骤,具体包括:当判断即时通讯信息携带位置标识,并且当即判断即时通讯信息不是垃圾信息时,根据位置标识将即时通讯信息在对话框的预设位置持续显示预设时长。In still another embodiment of the method for processing instant messaging information of the present application, after receiving the instant messaging information sent by the server, the method further includes: comparing the content of the instant messaging information with the preset feature information of the spam information, and determining the instant messaging information according to the comparison result. Whether it is spam. When determining that the instant messaging information carries the location identifier, the step of continuously displaying the instant messaging information in the preset position of the dialog box according to the location identifier, specifically includes: when determining the instant messaging information carrying the location identifier, and immediately determining the instant When the communication information is not spam, the instant messaging information is continuously displayed in the preset position of the dialog box according to the location identifier for a preset duration.
其中,垃圾信息可以包括广告信息、辱骂性信息等,首先预先设置表征垃圾信息的特征信息,在接收到即时通讯信息时从即时通讯信息的内容中提取关键词,与预设的垃圾信息的特征信息进行对比,当即时通讯信息的关键词中存在与预设的特征信息相符合的关键词,则判断即时通讯信息为垃圾信息,否则不是垃圾信息。The spam information may include advertisement information, abusive information, etc., firstly setting feature information characterization of the spam information, extracting keywords from the content of the instant messaging information when receiving the instant messaging information, and the characteristics of the preset spam information. The information is compared. When there are keywords matching the preset feature information in the keywords of the instant messaging information, the instant messaging information is judged as spam, otherwise it is not spam.
本实施例中,通过对即时通讯信息的内容做进一步判断,当判断不是垃圾信息时将即时通讯信息在预设位置持续显示,由此可以避免广告或辱骂性 质等信息等持续显示在对话框。In this embodiment, by further judging the content of the instant messaging information, when the judgment is not the spam information, the instant messaging information is continuously displayed at the preset position, thereby preventing the advertisement or the abusive quality and the like from being continuously displayed in the dialog box.
其中,当判断即时通讯信息携带位置标识,且为垃圾信息时,可以将即时通讯信息按照接收的时间先后顺序排列在消息列表中显示。When the instant messaging information carries the location identifier and is spam, the instant messaging information may be displayed in the message list according to the received chronological order.
参阅图7,图7是本申请实施例提供的即时通讯信息的处理方法又一流程图,本实施例将从服务器的即时通讯信息处理装置的角度进行描述,所述方法包括以下步骤:Referring to FIG. 7, FIG. 7 is still another flowchart of a method for processing instant messaging information provided by an embodiment of the present application. This embodiment is described from the perspective of an instant messaging information processing device of a server, and the method includes the following steps:
步骤S701:接收终端发送的即时通讯信息。Step S701: Receive instant messaging information sent by the terminal.
发送即时通讯行至服务器的终端可以是相互进行即时通讯的任一终端。即时通讯中,终端获取用户输入的即时通讯信息并发送给服务器,其中即时通讯信息例如可以是用户编辑的文字、图片、视频、虚拟红包等,还可以是用户转发的文章、链接等。The terminal that sends the instant messaging line to the server can be any terminal that performs instant communication with each other. In the instant messaging, the terminal obtains the instant messaging information input by the user and sends the instant messaging information to the server. The instant messaging information may be, for example, a text, a picture, a video, a virtual red envelope, or the like edited by the user, or may be an article or a link forwarded by the user.
步骤S702:判断即时通讯信息是否为预设消息类型。Step S702: Determine whether the instant messaging information is a preset message type.
其中,预设消息类型是指按照预设显示方式显示的消息类型,服务器可以根据终端的通知判断该即时通讯信息是否为预设消息类型。例如,终端可以根据用户对对话框中的持续显示按钮(如图1所示)的选中与否判断即时通讯信息是否为预设消息类型,当用户选中持续显示按钮,则判断为预设消息类型。其中,终端根据用户的选择指令向服务器发送用户是否选中持续显示按钮的通知,以使得服务器根据该通知判断即时通讯信息是否为预设消息类型。The preset message type refers to the message type displayed according to the preset display mode, and the server may determine, according to the notification of the terminal, whether the instant messaging information is a preset message type. For example, the terminal may determine whether the instant messaging information is a preset message type according to whether the user selects or not the continuous display button (shown in FIG. 1) in the dialog box. When the user selects the persistent display button, the terminal determines the default message type. . The terminal sends a notification to the server according to the user's selection instruction whether the user selects the continuous display button, so that the server determines, according to the notification, whether the instant messaging information is a preset message type.
步骤S703:当判断即时通讯信息为预设消息类型时,在即时通讯信息中添加位置标识,所述位置标识用于指示终端将即时通讯信息在对话框中的预设位置显示预设时长。Step S703: When it is determined that the instant messaging information is the preset message type, the location identifier is added to the instant messaging information, and the location identifier is used to instruct the terminal to display the instant messaging information in a preset position in the dialog box for a preset duration.
其中,位置标识的表示形式可以有多种,例如文字、数字、字母或符号等等,如“1”或“5”,或者可以是“b”或“d”等,当用户选中持续显示按钮,终端向服务器发送用户选中持续显示按钮的通知,服务器根据该通知判断即时通讯信息为预设消息类型,以在即时通讯信息中添加位置标识。Wherein, the location identifier can be represented in various forms, such as characters, numbers, letters or symbols, etc., such as "1" or "5", or can be "b" or "d", etc., when the user selects the continuous display button. The terminal sends a notification to the server that the user selects the persistent display button, and the server determines, according to the notification, that the instant messaging information is a preset message type, to add a location identifier to the instant messaging information.
当判断即时通讯信息不是预设消息类型时,可以直接将即时通讯信息发送给终端,以使得终端将即时通讯信息按照接收到的时间先后顺序显示在会话消息列表中。When it is determined that the instant messaging information is not the preset message type, the instant messaging information may be directly sent to the terminal, so that the terminal displays the instant messaging information in the session message list according to the received chronological order.
步骤S704:将携带位置标识的即时通讯信息发送给终端,以使得终端将即时通讯信息在对话框的预设位置持续显示预设时长。Step S704: Send the instant messaging information carrying the location identifier to the terminal, so that the terminal continuously displays the instant messaging information in the preset position of the dialog box for a preset duration.
位置标识具体用于指示终端按照预先策略对即时通讯信息进行显示,该预先策略为使即时通讯信息在对话框的预设位置持续显示预设时长。其中,预设位置可以是对话框中的任意一个位置,例如可以是消息列表的最顶部,此时图1所示的持续显示按钮可以设置为“置顶显示”按钮;或者预设位置可以是消息列表的最底部,此时图1所示的持续显示按钮可以设置为“置底显示”按钮;或者对话框的消息列表之外的其他位置;或者还可以是以悬浮窗口的方式显示在对话框所在位置的屏幕上,用户可以在对话框的范围内任意移动该悬浮窗口。The location identifier is specifically configured to instruct the terminal to display the instant messaging information according to the pre-policy, and the pre-policy is to enable the instant messaging information to continue to display the preset duration in the preset position of the dialog box. The preset position may be any position in the dialog box, for example, may be the top of the message list. At this time, the continuous display button shown in FIG. 1 may be set as a “top display” button; or the preset position may be a message. At the bottom of the list, the continuous display button shown in Figure 1 can be set to the "bottom display" button; or other positions outside the message list of the dialog box; or it can be displayed as a floating window in the dialog box. On the screen of the location, the user can move the floating window arbitrarily within the scope of the dialog box.
其中,该预设时长可以根据实际需要设定,例如可以是10s、15s、20s或1min、2min等。以预设位置为消息列表的最底部、预设时长为15s为例,如图4所示,将携带位置标识的即时通讯信息a在消息列表的最底部持续显示15s,在这15s的时间里该即时通讯信息始终显示在消息列表的最底部。其中,如图所示,可以在即时通讯的对话框401中以倒计时的方式显示预设时长,便于用户查看持续显示的剩余时间。The preset duration can be set according to actual needs, for example, 10s, 15s, 20s or 1min, 2min, and the like. Taking the preset position as the bottom of the message list and the preset duration as 15s as an example, as shown in FIG. 4, the instant messaging information a carrying the location identifier is continuously displayed at the bottom of the message list for 15 seconds, in the 15s time. This instant message is always displayed at the very bottom of the message list. As shown in the figure, the preset duration can be displayed in a countdown manner in the instant messaging dialog 401, so that the user can view the remaining time of the continuous display.
其中,对于打开状态的对话框而言,预设时长从接收到即时通讯信息时为时间起点进行计算,对于关闭状态(用户可能未登录或者未打开对话框)的对话框而言,预设时长从对话框由关闭状态变为打开状态时为时间起点进行计算。For the dialog box in the open state, the preset duration is calculated from the time start point when receiving the instant messaging information, and the preset duration is long for the dialog box in the closed state (the user may not be logged in or the dialog box is not opened). The time start is calculated from when the dialog is changed from the closed state to the open state.
通常情况下,终端接收到的即时通讯信息将按照接收的时间先后顺序在对话框的消息列表中显示,最新接收到的即时通讯信息显示在消息列表的最底部,较早收到的即时通讯信息在会话消息列表的上部显示,当不断接收到 即时通讯信息时,即时通讯信息将被不断往上推,会话消息列表的最底部始终显示的是最新接收到的即时通讯信息。在本申请实施例中,与上述通常情况下的显示方式不同的是,将携带位置标识的即时通讯信息在预设位置持续显示预设时长,因此在该预设时长内,即使不断接收到新的即时通讯信息,该携带位置标识的即时通讯信息也不会被后续接收到的消息往上推,而是在对话框内持续显示,从而用户打开对话框时能够快速看到持续显示在对话框中的重要消息,而无需往上翻消息列表寻找,提高用户查找消息的效率。Normally, the instant messaging information received by the terminal will be displayed in the message list of the dialog box according to the chronological order of reception. The newly received instant messaging information is displayed at the bottom of the message list, and the instant messaging information received earlier is received. In the upper part of the conversation message list, when the instant messaging information is continuously received, the instant messaging information will be pushed up continuously, and the latest received instant messaging information is always displayed at the bottom of the conversation message list. In the embodiment of the present application, different from the display manner in the above-mentioned normal situation, the instant messaging information carrying the location identifier is continuously displayed for a preset duration in the preset position, so that even if the new duration is received continuously within the preset duration, The instant messaging information, the instant messaging information carrying the location identifier is not pushed up by the subsequently received message, but is continuously displayed in the dialog box, so that the user can quickly see the continuous display in the dialog box when the user opens the dialog box. The important message in the middle, without having to go up the message list to find, improve the efficiency of the user to find the message.
其中,预设时长的时长信息可以由服务器通知各终端,例如,当判断即时通讯信息为预设消息类型时,服务器获取显示的时长信息,该时长信息记录有即时通讯信息持续显示的预设时长,服务器在发送携带位置标识的即时通讯信息之前或发送的同时,可以将记载着预设时长的时长信息添加至该即时通讯信息中,从而终端在接收到携带位置标识的即时通讯信息时,从即时通讯信息中提取时长信息,以获取显示的预设时长。或者,时长信息也可以由终端从本地存储获取,具体而言,终端预先存储有持续显示的时长信息,在判断接收到的即时通讯信息携带位置标识时,从本地获取预先存储的时长信息,以获取预设时长,从而将即时通讯信息在对话框的预设位置持续显示预设时长。The duration information of the preset duration may be notified to each terminal by the server. For example, when determining that the instant messaging information is a preset message type, the server obtains the displayed duration information, where the duration information records the preset duration of the instant messaging information continuously displayed. The server may add the duration information indicating the preset duration to the instant messaging information before sending or sending the instant messaging information carrying the location identifier, so that when the terminal receives the instant messaging information carrying the location identifier, the terminal The duration information is extracted from the instant messaging information to obtain the preset duration of the display. Alternatively, the duration information may also be obtained by the terminal from the local storage. Specifically, the terminal pre-stores the duration information that is continuously displayed. When determining that the received instant messaging information carries the location identifier, the pre-stored duration information is locally obtained. The preset duration is obtained, so that the instant messaging information is continuously displayed for a preset duration in the preset position of the dialog box.
进一步地,服务器将携带位置标识的即时通讯信息发送给终端之后,还可以包括:接收终端发送的第一点击事件或者第二点击事件;根据第一点击事件向终端发送将预设时长增加第一时长的通知,以使得终端根据该通知计算预设时长的剩余时长与第一时长的和,以得到即时通讯信息在对话框的预设位置持续显示的总时长;或者,服务器根据第二点击事件向终端发送将预设时长减少第二时长的通知,以使得终端根据该通知计算预设时长的剩余时长与第二时长的差值,以得到即时通讯信息在对话框的预设位置持续显示的总时长。其中,发送第一点击事件或第二点击事件的终端可以是进行即时通讯的各个终端中的任一个,而接收所述通知的终端为进行即时通讯的各个终 端。Further, after the server sends the instant messaging information carrying the location identifier to the terminal, the method may further include: receiving a first click event or a second click event sent by the terminal; and sending the preset duration to the terminal according to the first click event. The notification of the duration, so that the terminal calculates the sum of the remaining duration of the preset duration and the first duration according to the notification, to obtain the total duration of the instant messaging information continuously displayed in the preset position of the dialog box; or, the server according to the second click event Sending, to the terminal, a notification that reduces the preset duration by a second duration, so that the terminal calculates a difference between the remaining duration of the preset duration and the second duration according to the notification, so as to obtain that the instant messaging information is continuously displayed in the preset position of the dialog box. Total length. The terminal that sends the first click event or the second click event may be any one of the terminals that perform instant messaging, and the terminal that receives the notification is each terminal that performs instant messaging.
其中,第一时长和第二时长可以根据实际应用的需求进行设置,比如,第一时长可以是3s、5s或10s等,第二时长可以是2s、5s或8s等。The first duration and the second duration may be set according to requirements of the actual application. For example, the first duration may be 3s, 5s, or 10s, and the second duration may be 2s, 5s, or 8s.
其中,服务器可以根据多种情况向终端发送增加第一时长或减少第二时长的通知,例如,可以有以下两种情况:The server may send a notification to the terminal to increase the first duration or decrease the second duration according to multiple conditions. For example, the following two situations may be used:
一种情况:服务器可以根据接收到的即时通讯信息的数量发出相应的通知。In one case, the server can issue a corresponding notification according to the amount of instant messaging information received.
具体地,服务器将携带位置标识的即时通讯信息发送给终端之后的一段时间(该时间不超过预设时长)内,若服务器接收到的即时通讯信息的数量超过预定数量,有可能会导致携带位置标识的即时通讯信息在预设时长结束后回到会话消息列表的正常位置(即按照时间顺序排列的位置)时,与后续接收到的即时通讯信息可能无法在对话框内同时显示,此时可发出增加第一时长的通知,以增加即时通讯信息置底显示的时长。若服务器接收到的即时通讯行的数量较少,没有超过预定数量,即使携带位置标识的即时通讯信息在预设时长结束后回到会话消息列表的正常位置时,与后续接收到的即时通讯信息可能可以在对话框内同时显示,此时可发出减少第二时长的通知,以减少即时通讯信息置底显示的时长。Specifically, the server sends the instant messaging information carrying the location identifier to the terminal for a period of time (the time does not exceed the preset duration). If the number of instant messaging information received by the server exceeds the predetermined number, the server may cause the carrying location. When the identified instant messaging information returns to the normal position of the session message list after the preset duration (ie, the position is arranged in chronological order), the subsequent received instant messaging information may not be displayed in the dialog box at the same time. A notification to increase the first duration is issued to increase the length of time that the instant messaging information is displayed. If the number of instant messaging lines received by the server is small, the number of instant messaging messages does not exceed the predetermined number, even if the instant messaging information carrying the location identifier returns to the normal location of the session message list after the preset duration expires, and the subsequently received instant messaging information It may be displayed simultaneously in the dialog box, and a notification to reduce the second duration may be issued to reduce the duration of the instant messaging information.
另一种情况:服务器还可以根据用户的操作向终端发送增加第一时长或减少第二时长的通知。In another case, the server may also send a notification to the terminal to increase the first duration or decrease the second duration according to the operation of the user.
具体地,结合图5,当用户希望增加持续显示的时长时,可以点击对话框503中的按钮501,终端接收用户通过按钮501触发的第一点击操作指令,根据第一点击操作指令生成第一点击事件,并向服务器发送第一点击事件。服务器根据接收到的第一点击事件发送增加第一时长的通知。Specifically, in conjunction with FIG. 5, when the user desires to increase the duration of the continuous display, the button 501 in the dialog box 503 may be clicked, and the terminal receives the first click operation instruction triggered by the user through the button 501, and generates the first according to the first click operation instruction. Click on the event and send the first click event to the server. The server sends a notification that increases the first duration according to the received first click event.
当用户希望减少持续显示的时长时,可以点击对话框503中的按钮502,终端接收用户通过按钮502触发的第二点击操作指令,根据第二点击操作指令生成第二点击事件,并向服务器发送第二点击事件。服务器根据接收到的第 二点击事件发送减少第二时长的通知。When the user wants to reduce the duration of the continuous display, the button 502 in the dialog box 503 can be clicked, the terminal receives the second click operation instruction triggered by the user through the button 502, generates a second click event according to the second click operation instruction, and sends the second click event to the server. Second click event. The server sends a notification to reduce the second duration according to the received second click event.
其中,服务器可以是每接收到一次第一点击事件或第二点击事件,即发送一次相应的增加第一时长或减少第二时长的通知,从而终端每接收到一次增加第一时长的通知或减少第二时长的通知时,即将即时通讯信息持续显示的时长相应地在预设时长的剩余时长的基础上累加第一时长或累减第二时长。The server may be configured to send a corresponding first time duration or a second time delay every time a first click event or a second click event is received, so that the terminal increases or decreases the first time period every time the terminal receives the notification. When the notification of the second duration is long, the duration of the instant messaging information is continuously displayed, correspondingly, the first duration or the second duration is accumulated on the basis of the remaining duration of the preset duration.
服务器也可以是在预定时间内累计接收到的第一点击事件和第二点击事件的次数,并根据第一点击事件累计的次数计算需要增加的总时长,以及根据第二点击事件累计的次数计算需要减少的总时长,并计算增加的总时长减去减少的总时长的差值,若增加的总时长大于减少的总时长,则将增加该差值时长的通知发送给终端,此时第一时长指该差值时长,终端根据该通知在预设时长的剩余时长的基础上累加该差值时长,以得到持续显示的总时长。若增加的总时长小于减少的总时长,则将减少该差值时长的通知发送给终端,此时第二时长指该差值时长,终端根据该通知在预设时长的剩余时长的基础上减去该差值时长,以得到持续显示的总时长。The server may also be the number of times the first click event and the second click event are received in a predetermined time, and the total length of time required to be added is calculated according to the number of times the first click event is accumulated, and the number of times accumulated according to the second click event is calculated. The total duration of the reduction is calculated, and the total duration of the increase is subtracted from the total duration of the decrease. If the total duration of the increase is greater than the total duration of the decrease, the notification of increasing the duration of the difference is sent to the terminal. The duration refers to the duration of the difference, and the terminal accumulates the duration of the difference based on the remaining duration of the preset duration according to the notification to obtain the total duration of the continuous display. If the total duration of the increase is less than the total duration of the decrease, the notification of reducing the duration of the difference is sent to the terminal, where the second duration refers to the duration of the difference, and the terminal reduces the remaining duration based on the preset duration according to the notification. The difference duration is taken to get the total duration of the continuous display.
通过上述方式,用户可以根据需要增加或减少即时通讯信息持续显示的时长,使得即时通讯过程更人性化。In the above manner, the user can increase or decrease the duration of the instant display of the instant messaging information as needed, so that the instant messaging process is more user-friendly.
参阅图8,图8是本申请实施例提供的即时通讯信息的处理装置的结构示意图。本实施例的即时通讯信息的处理装置可以集成在终端等设备中,该终端可以是手机、平板电脑、笔记本电脑或个人计算机等设备。Referring to FIG. 8, FIG. 8 is a schematic structural diagram of an apparatus for processing instant messaging information according to an embodiment of the present application. The processing device of the instant messaging information of the embodiment may be integrated into a device such as a terminal, and the terminal may be a device such as a mobile phone, a tablet computer, a notebook computer or a personal computer.
本实施例的处理装置801与服务器802网络连接。如图所示,所述处理装置801包括第一接收模块8011、判断模块8012以及显示模块8013。The processing device 801 of this embodiment is connected to the server 802 in a network. As shown, the processing device 801 includes a first receiving module 8011, a determining module 8012, and a display module 8013.
其中,第一接收模块8011用于接收服务器802发送的即时通讯信息。服务器802发送的即时通讯信息可以来自进行即时通讯的任一终端,该即时通讯信息例如可以是用户编辑的文字、图片、视频以及虚拟红包等,也可以是用户转发的文章、链接等。The first receiving module 8011 is configured to receive the instant messaging information sent by the server 802. The instant messaging information sent by the server 802 may be from any terminal that performs instant messaging. The instant messaging information may be, for example, a text, a picture, a video, a virtual red envelope, or the like edited by the user, or may be an article, a link, or the like forwarded by the user.
判断模块8012用于判断第一接收模块8011接收到的即时通讯信息是否携 带位置标识,该位置标识用于指示所述终端将即时通讯信息在即时通讯对话框的预设位置显示预设时长。其中,位置标识可以根据用户对对话框内的持续显示按钮(如图1所示)的选中指令而产生,可以有多种方式使即时通讯信息携带位置标识,例如,以下两种方式:The determining module 8012 is configured to determine whether the instant messaging information received by the first receiving module 8011 carries a location identifier, where the location identifier is used to instruct the terminal to display the instant messaging information in a preset position of the instant messaging dialog box for a preset duration. The location identifier may be generated according to the user's selection instruction of the continuous display button (shown in FIG. 1) in the dialog box. There may be multiple ways for the instant messaging information to carry the location identifier, for example, the following two methods:
方式一:当用户在发送即时通讯信息时选中了持续显示按钮,则终端根据用户选中持续显示按钮的指令,对用户所发送的即时通讯信息添加位置标识,并将添加了位置标识的即时通讯信息发送给服务器;Method 1: When the user selects the continuous display button when sending the instant messaging information, the terminal adds a location identifier to the instant messaging information sent by the user according to the instruction of the user selecting the persistent display button, and adds the instant messaging information of the location identifier. Sent to the server;
方式二:当用户在发送即时通讯信息时选中了持续显示按钮,则终端根据用户选中持续显示按钮的指令,将即时通讯信息发送给服务器时,并通知服务器需对该即时通讯信息添加位置标识,服务器根据该通知在即时通讯信息中添加位置标识,并将添加了位置标识的即时通讯信息发送给通讯的各终端。Method 2: When the user selects the continuous display button when sending the instant messaging information, the terminal sends the instant messaging information to the server according to the instruction of the user selecting the continuous display button, and notifies the server that the location identifier needs to be added to the instant messaging information. The server adds a location identifier to the instant messaging information according to the notification, and sends the instant messaging information with the location identifier to the communication terminal.
显示模块8013用于当判断模块8012判断即时通讯信息携带位置标识时,根据位置标识将即时通讯信息在对话框的预设位置持续显示预设时长。The display module 8013 is configured to: when the determining module 8012 determines that the instant messaging information carries the location identifier, continuously display the instant messaging information in the preset position of the dialog box according to the location identifier for a preset duration.
在一些实例中,当判断模块8012判断即时通讯信息未携带位置标识时,可以将即时通信信息按照预设策略进行显示,比如将即时通讯信息按照接收到的时间先后顺序在会话消息列表中显示,等等。In some examples, when the determining module 8012 determines that the instant messaging information does not carry the location identifier, the instant messaging information may be displayed according to a preset policy, for example, the instant messaging information is displayed in the session message list according to the received chronological order. and many more.
位置标识具体用于指示终端按照预先策略对即时通讯信息进行显示,该预先策略为使即时通讯信息在对话框的预设位置持续显示预设时长。其中,预设位置可以是对话框中的任意一个位置,例如可以是消息列表的最顶部,此时图1所示的持续显示按钮可以设置为“置顶显示”按钮;或者预设位置可以是消息列表的最底部,此时图1所示的持续显示按钮可以设置为“置底显示”按钮;或者对话框的消息列表之外的其他位置;或者还可以是以悬浮窗口的方式显示在对话框所在位置的屏幕上,用户可以在对话框的范围内任意移动该悬浮窗口。The location identifier is specifically configured to instruct the terminal to display the instant messaging information according to the pre-policy, and the pre-policy is to enable the instant messaging information to continue to display the preset duration in the preset position of the dialog box. The preset position may be any position in the dialog box, for example, may be the top of the message list. At this time, the continuous display button shown in FIG. 1 may be set as a “top display” button; or the preset position may be a message. At the bottom of the list, the continuous display button shown in Figure 1 can be set to the "bottom display" button; or other positions outside the message list of the dialog box; or it can be displayed as a floating window in the dialog box. On the screen of the location, the user can move the floating window arbitrarily within the scope of the dialog box.
其中,该预设时长可以根据实际需要设定,例如可以是10s、15s、20s或 1min、2min等。以预设位置为消息列表的最底部、预设时长为15s为例,如图4所示,将携带位置标识的即时通讯信息a在消息列表的最底部持续显示15s,在这15s的时间里该即时通讯信息a始终显示在消息列表的最底部。其中,如图4所示,可以在即时通讯的对话框401中以倒计时的方式显示预设时长,便于用户查看持续显示的剩余时间。The preset duration can be set according to actual needs, for example, 10s, 15s, 20s or 1min, 2min, and the like. Taking the preset position as the bottom of the message list and the preset duration as 15s as an example, as shown in FIG. 4, the instant messaging information a carrying the location identifier is continuously displayed at the bottom of the message list for 15 seconds, in the 15s time. The instant messaging information a is always displayed at the very bottom of the message list. As shown in FIG. 4, the preset duration can be displayed in a countdown manner in the instant messaging dialog box 401, so that the user can view the remaining time of the continuous display.
其中,对于打开状态的对话框而言,预设时长从接收到即时通讯信息时为时间起点进行计算,对于关闭状态(用户可能未登录或者未打开对话框)的对话框而言,预设时长从对话框由关闭状态变为打开状态时为时间起点进行计算。For the dialog box in the open state, the preset duration is calculated from the time start point when receiving the instant messaging information, and the preset duration is long for the dialog box in the closed state (the user may not be logged in or the dialog box is not opened). The time start is calculated from when the dialog is changed from the closed state to the open state.
通过本实施例,将携带位置标识的即时通讯信息在预设位置持续显示预设时长,因此在该预设时长内,即使不断接收到新的即时通讯信息,该携带位置标识的即时通讯信息也不会被后续接收到的消息往上推,而是在对话框内持续显示,从而用户打开对话框时能够快速看到持续显示在对话框中的重要消息,而无需往上翻消息列表寻找,提高用户查找消息的效率。In this embodiment, the instant messaging information carrying the location identifier is continuously displayed in the preset position for a preset duration. Therefore, even if new instant messaging information is continuously received within the preset duration, the instant messaging information of the carrying location identifier is also It will not be pushed up by subsequent received messages, but will continue to be displayed in the dialog box, so that when the user opens the dialog box, he can quickly see the important messages continuously displayed in the dialog box without having to go up and look up the message list. Improve the efficiency of users looking for messages.
其中,当接收到多个携带位置标识的即时通讯信息时,可以将多个携带位置标识的即时通讯信息按照预先设置进行显示,例如,最新接收到的携带位置标识的即时通讯信息可以显示在会话消息列表的最底部,其他携带位置标识的即时通讯信息则按照接收到的时间先后顺序依次排列在会话消息列表的最底部之上。When receiving a plurality of instant messaging information carrying the location identifier, the instant messaging information of the multiple carrying location identifiers may be displayed according to a preset setting. For example, the newly received instant messaging information of the carrying location identifier may be displayed in the session. At the bottom of the message list, other instant messaging information carrying the location identifier is arranged in the order of the received time in the bottom of the session message list.
在预设时长之后,显示模块8013可以使该即时通讯信息与其他即时通讯信息在会话消息列表中按照接收的时间先后顺序显示。After the preset duration, the display module 8013 can display the instant messaging information and other instant messaging information in the session message list according to the received chronological order.
其中,显示模块8013可以从即时通讯信息中获取持续显示的时长信息,即服务器在发送携带位置标识的即时通讯信息之前或发送的同时,可以将记录有预设时长的时长信息添加至该即时通讯信息中,从而显示模块8013从即时通讯信息中提取出时长信息。或者,显示模块8013也可以从本地存储获取,即在处理装置801中预先存储持续显示的时长信息,在判断模块8012判断接收 到的即时通讯信息携带位置标识时,显示模块8013获取预先存储的时长信息,并根据该时长信息将即时通讯信息在会话消息列表中置底显示预设时长。The display module 8013 can obtain the duration information of the persistent display from the instant messaging information, that is, the server can add the duration information recorded with the preset duration to the instant communication before sending or sending the instant messaging information carrying the location identifier. In the information, the display module 8013 extracts the duration information from the instant messaging information. Alternatively, the display module 8013 may also acquire the duration information that is continuously displayed in the processing device 801. When the determining module 8012 determines that the received instant messaging information carries the location identifier, the display module 8013 obtains the pre-stored duration. Information, and according to the duration information, the instant messaging information is displayed in the session message list to display the preset duration.
参阅图9,图9是本申请实施例的即时通讯信息的处理装置另一结构示意图。本实施例中,处理装置901与服务器902网络连接,处理装置901包括第一接收模块9011、判断模块9012、显示模块9013、第二接收模块9014、第三接收模块9015、第一计算模块9016、第二计算模块9017。Referring to FIG. 9, FIG. 9 is another schematic structural diagram of an apparatus for processing instant messaging information according to an embodiment of the present application. In this embodiment, the processing device 901 is connected to the network of the server 902. The processing device 901 includes a first receiving module 9011, a determining module 9012, a display module 9013, a second receiving module 9014, a third receiving module 9015, and a first computing module 9016. The second calculation module 9017.
第一接收模块9011用于接收服务器902发送的即时通讯信息。判断模块9012用于判断第一接收模块9011接收到的即时通讯信息是否携带位置标识。显示模块9013用于当判断模块9012判断即时通讯信息携带位置标识时,将即时通讯信息在对话框的预设位置持续显示预设时长,并在当判断模块9012判断即时通讯信息未携带位置标识时,将即时通讯信息按照接收到的时间先后顺序在对话框的消息列表中显示。The first receiving module 9011 is configured to receive the instant messaging information sent by the server 902. The determining module 9012 is configured to determine whether the instant messaging information received by the first receiving module 9011 carries a location identifier. The display module 9013 is configured to: when the determining module 9012 determines that the instant messaging information carries the location identifier, continuously display the instant messaging information in the preset position of the dialog box for a preset duration, and when the determining module 9012 determines that the instant messaging information does not carry the location identifier. , the instant messaging information is displayed in the message list of the dialog box according to the received chronological order.
将携带位置标识的即时通讯信息在预设位置持续显示之后,第二接收模块9014用于在预设时长内,接收服务器902发送的增加第一时长的通知,第一计算模块9016用于根据第二接收模块9014接收到的通知计算预设时长的剩余时长与第一时长的和,以得到即时通讯信息持续显示的总时长,从而显示模块9013将即时通讯信息按照增加后的总时长持续显示。第三接收模块9015用于接收服务器902发送的减少第二时长的通知,第二计算模块9017用于根据第三接收模块9015接收到的通知计算预设时长的剩余时长与第二时长的差值,以得到持续显示的总时长,从而显示模块9013将即时通讯信息按照减少后的总时长持续显示。After the instant messaging information carrying the location identifier is continuously displayed in the preset location, the second receiving module 9014 is configured to receive the notification of increasing the first duration sent by the server 902 within the preset duration, and the first calculating module 9016 is configured to use the The notification received by the receiving module 9014 calculates the sum of the remaining duration of the preset duration and the first duration to obtain the total duration of the instant messaging information continuously displayed, so that the display module 9013 continuously displays the instant messaging information according to the increased total duration. The third receiving module 9015 is configured to receive the notification that the second duration is sent by the server 902, and the second calculating module 9017 is configured to calculate, according to the notification received by the third receiving module 9015, the difference between the remaining duration of the preset duration and the second duration. In order to obtain the total duration of the continuous display, the display module 9013 continuously displays the instant messaging information according to the reduced total duration.
其中,第一时长和第二时长可以根据实际应用的需求进行设置,比如,第一时长可以是3s、5s或10s等,第二时长可以是2s、5s或8s等。The first duration and the second duration may be set according to requirements of the actual application. For example, the first duration may be 3s, 5s, or 10s, and the second duration may be 2s, 5s, or 8s.
其中,服务器902可以根据用户的操作对处理装置901发出增加或减少时长的通知。The server 902 can send a notification of increasing or decreasing the duration to the processing device 901 according to the operation of the user.
具体地,处理装置901还包括第一生成模块9018、第二生成模块9019、第 一发送模块9020以及第二发送模块9021。结合图5,显示模块9013在将携带位置标识的即时通讯信息在对话框的预设位置持续显示时,还显示用于对即时通讯信息进行加时显示的第一操作按501以及用于对即时通讯信息进行减时显示的第二操作按钮502。Specifically, the processing device 901 further includes a first generating module 9018, a second generating module 9019, a first sending module 9020, and a second sending module 9021. Referring to FIG. 5, the display module 9013 further displays a first operation button 501 for displaying the instant messaging information in time when the instant messaging information of the carrying location identifier is continuously displayed in the preset position of the dialog box, and is used for instant messaging. The communication operation performs a second operation button 502 that is displayed in time reduction.
第一生成模块9018用于在预设时长内,接收用户通过第一操作按钮501触发的第一点击操作指令,并根据第一点击操作指令生成第一点击事件,第一发送模块9020用于将第一点击事件发送给服务器902。其中,第二接收模块9014具体用于接收服务器902根据第一点击事件发送的增加第一时长的通知。The first generating module 9018 is configured to receive a first click operation instruction triggered by the user through the first operation button 501 within a preset duration, and generate a first click event according to the first click operation instruction, where the first sending module 9020 is configured to The first click event is sent to the server 902. The second receiving module 9014 is specifically configured to receive, by the server 902, a notification that increases the first duration according to the first click event.
第二生成模块9019用于在预设时长内,接收用户通过第二操作按钮502触发的第二点击操作指令,并根据第二点击操作指令生成第二点击事件,第二发送模块9021用于向服务器902发送第二点击事件。其中,第三接收模块9015具体用于接收服务器902根据第二点击事件发送的减少第二时长的通知。The second generating module 9019 is configured to receive a second click operation instruction triggered by the user through the second operation button 502 within a preset duration, and generate a second click event according to the second click operation instruction, where the second sending module 9021 is configured to Server 902 sends a second click event. The third receiving module 9015 is specifically configured to receive, by the server 902, a notification that reduces the second duration according to the second click event.
其中,服务器902可以每接收到一次第一点击事件或第二点击事件,即发送一次相应的增加第一时长或减少第二时长的通知,从而处理装置901每接收到一次增加第一时长的通知或减少第二时长的通知时,即将即时通讯信息持续显示的时长相应地在预设时长的剩余时长的基础上累加第一时长或累减第二时长。The server 902 can send a corresponding notification of increasing the first duration or decreasing the second duration every time the first click event or the second click event is received, so that the processing device 901 receives the notification of increasing the first duration every time. Or when the notification of the second duration is reduced, the duration of the instant messaging information being continuously displayed is correspondingly accumulated by the first duration or the second duration by the remaining duration of the preset duration.
另一方式中,服务器902也可以根据在预定时间内累计接收到的第一点击事件和第二点击事件的次数,发送增加第一时长或减少第二时长的通知。具体地,服务器902在预定时间内累计接收到的第一点击事件和第二点击事件的次数,根据第一点击事件累计的次数计算需要增加的总时长,以及根据第二点击事件累计的次数计算需要减少的总时长,并计算增加的总时长减去减少的总时长的差值。若增加的总时长大于减少的总时长,则将增加该差值时长的通知发送给处理装置901,此时第一时长指该差值时长,处理装置901根据该通知在预设时长的剩余时长的基础上累加该差值时长,以得到持续显示的时长。若增加的总时长小于减少的总时长,则将减少该差值时长的通知发送 给处理装置901,此时第二时长指该差值时长,处理装置901根据该通知在预设时长的剩余时长的基础上减去该差值时长,得到持续显示的时长。In another manner, the server 902 may also send a notification to increase the first duration or decrease the second duration according to the number of times the first click event and the second click event are received in a predetermined time. Specifically, the server 902 accumulates the number of received first click events and second click events in a predetermined time, calculates the total duration required to be increased according to the number of times the first click event is accumulated, and calculates the total number of times according to the second click event. The total length of time that needs to be reduced is calculated and the total length of time added is subtracted from the total length of time reduced. If the total duration of the increase is greater than the total duration of the decrease, the notification of increasing the duration of the difference is sent to the processing device 901, where the first duration refers to the duration of the difference, and the processing device 901 limits the duration of the preset duration according to the notification. The length of the difference is accumulated on the basis of the time to obtain the duration of the continuous display. If the total duration of the increase is less than the total duration of the decrease, the notification of reducing the duration of the difference is sent to the processing device 901, where the second duration refers to the duration of the difference, and the processing device 901 limits the duration of the preset duration according to the notification. On the basis of the subtraction of the difference duration, the duration of the continuous display is obtained.
通过本实施例,用户可以选择对即时通讯信息持续显示的时长增加或减少,方便用户操作,且使得即时通讯过程更人性化。Through the embodiment, the user can select to increase or decrease the duration of the continuous display of the instant messaging information, facilitate the user's operation, and make the instant messaging process more user-friendly.
参阅图10,图10是本申请实施例提供的即时通讯信息的处理装置另一结构示意图。本实施例的即时通讯信息的处理装置可以集成在服务器中。如图所示,本实施例的处理装置1001和终端1002之间网络连接,处理装置1001包括第一接收模块10011、判断模块10012、添加模块10013以及第一发送模块10014。Referring to FIG. 10, FIG. 10 is another schematic structural diagram of an apparatus for processing instant messaging information according to an embodiment of the present application. The processing device of the instant messaging information of this embodiment can be integrated in the server. As shown in the figure, the processing device 1001 and the terminal 1002 of the present embodiment are connected to each other. The processing device 1001 includes a first receiving module 10011, a determining module 10012, an adding module 10013, and a first sending module 10014.
其中,第一接收模块10011用于接收终端1002发送的即时通讯信息。判断模块10012用于判断第一接收模块10011接收到的即时通讯信息是否为预设消息类型。预设消息类型是指按照预设显示方式显示的消息类型,可以根据用户对对话框中的持续显示按钮(如图1所示)的选中与否判断即时通讯信息是否为预设消息类型,当用户选中持续显示按钮,则判断为预设消息类型。其中,终端根据用户的选择指令向服务器发送用户是否选中持续显示按钮的通知,以使得服务器根据该通知判断即时通讯信息是否为预设消息类型。The first receiving module 10011 is configured to receive the instant messaging information sent by the terminal 1002. The determining module 10012 is configured to determine whether the instant messaging information received by the first receiving module 10011 is a preset message type. The preset message type refers to the message type displayed according to the preset display mode, and can determine whether the instant messaging information is the default message type according to whether the user selects or not the continuous display button (as shown in FIG. 1) in the dialog box. When the user selects the continuous display button, it determines the default message type. The terminal sends a notification to the server according to the user's selection instruction whether the user selects the continuous display button, so that the server determines, according to the notification, whether the instant messaging information is a preset message type.
添加模块10013用于当判断模块10012判断即时通讯信息为预设消息类型时,在即时通讯信息中添加位置标识,该位置标识用于指示所述终端将即时通讯信息在即时通讯对话框的预设位置显示预设时长。第一发送模块10014用于将携带位置标识的即时通讯信息发送给终端1002,以使得终端1002将该即时通讯信息在对话框的预设位置持续显示预设时长。The adding module 10013 is configured to add a location identifier to the instant messaging information when the determining module 10012 determines that the instant messaging information is the preset message type, where the location identifier is used to indicate that the terminal presets the instant messaging information in the instant messaging dialog box. The position shows the preset duration. The first sending module 10014 is configured to send the instant messaging information carrying the location identifier to the terminal 1002, so that the terminal 1002 continuously displays the instant messaging information in a preset position of the dialog box for a preset duration.
位置标识具体用于指示终端按照预先策略对即时通讯信息进行显示,该预先策略为使即时通讯信息在对话框的预设位置持续显示预设时长。其中,预设位置可以是对话框中的任意一个位置,例如可以是消息列表的最顶部,此时图1所示的持续显示按钮可以设置为“置顶显示”按钮;或者预设位置可以是消息列表的最底部,此时图1所示的持续显示按钮可以设置为“置底显示”按 钮;或者对话框的消息列表之外的其他位置;或者还可以是以悬浮窗口的方式显示在对话框所在位置的屏幕上,用户可以在对话框的范围内任意移动该悬浮窗口。The location identifier is specifically configured to instruct the terminal to display the instant messaging information according to the pre-policy, and the pre-policy is to enable the instant messaging information to continue to display the preset duration in the preset position of the dialog box. The preset position may be any position in the dialog box, for example, may be the top of the message list. At this time, the continuous display button shown in FIG. 1 may be set as a “top display” button; or the preset position may be a message. At the bottom of the list, the continuous display button shown in Figure 1 can be set to the "bottom display" button; or other positions outside the message list of the dialog box; or it can be displayed as a floating window in the dialog box. On the screen of the location, the user can move the floating window arbitrarily within the scope of the dialog box.
其中,该预设时长可以根据实际需要设定,例如可以是10s、15s、20s或1min、2min等。以预设位置为消息列表的最底部、预设时长为15s为例,如图4所示,将携带位置标识的即时通讯信息a在消息列表的最底部持续显示15s,在这15s的时间里该即时通讯信息始终显示在消息列表的最底部。其中,如图所示,可以在即时通讯的对话框401中以倒计时的方式显示预设时长,便于用户查看持续显示的剩余时间。The preset duration can be set according to actual needs, for example, 10s, 15s, 20s or 1min, 2min, and the like. Taking the preset position as the bottom of the message list and the preset duration as 15s as an example, as shown in FIG. 4, the instant messaging information a carrying the location identifier is continuously displayed at the bottom of the message list for 15 seconds, in the 15s time. This instant message is always displayed at the very bottom of the message list. As shown in the figure, the preset duration can be displayed in a countdown manner in the instant messaging dialog 401, so that the user can view the remaining time of the continuous display.
其中,当判断模块10012判断即时通讯信息不是置底消息类型时,第一发送模块10014直接将即时通讯信息发送给终端1002,以使得终端1002将即时通讯信息按照接收到的时间先后顺序显示在会话消息列表中。When the determining module 10012 determines that the instant messaging information is not the bottoming message type, the first sending module 10014 directly sends the instant messaging information to the terminal 1002, so that the terminal 1002 displays the instant messaging information in the chronological order according to the received time sequence. In the message list.
在本申请实施例中,通过将携带位置标识的即时通讯信息在预设位置持续显示预设时长,因此在该预设时长内,即使不断接收到新的即时通讯信息,该携带位置标识的即时通讯信息也不会被后续接收到的消息往上推,而是在对话框内持续显示,从而用户打开对话框时能够快速看到持续显示在对话框中的重要消息,而无需往上翻消息列表寻找,提高用户查找消息的效率。In the embodiment of the present application, the instant messaging information carrying the location identifier is continuously displayed in the preset location for a preset duration, and therefore, even if new instant messaging information is continuously received within the preset duration, the instant carrying the location identifier The communication information will not be pushed up by the subsequent received messages, but will be continuously displayed in the dialog box, so that when the user opens the dialog box, the user can quickly see the important messages continuously displayed in the dialog box without having to turn up the message. List search to improve the efficiency of users looking for messages.
进一步地,处理装置1001还可以包括获取模块10015。当判断模块10012判断即时通讯信息为预设消息类型时,获取模块10015获取持续显示的时长信息,该时长信息记录有即时通讯信息持续显示的预设时长。其中,获取模块10015可以从本地获取持续显示的时长信息,或者从网络上获取。添加模块10013还用于在即时通讯信息中添加持续显示的时长信息,以使得终端1002根据时长信息将即时通讯信息持续显示预设时长。Further, the processing device 1001 may further include an obtaining module 10015. When the determining module 10012 determines that the instant messaging information is the preset message type, the obtaining module 10015 obtains the duration information that is continuously displayed, and the duration information records the preset duration of the instant messaging information being continuously displayed. The obtaining module 10015 can obtain the duration information of the continuous display from the local, or obtain the information from the network. The adding module 10013 is further configured to add the duration information of the persistent display to the instant messaging information, so that the terminal 1002 continuously displays the instant messaging information for a preset duration according to the duration information.
其中,处理装置1001还包括第二接收模块10016、第二发送模块10017、第三接收模块10018以及第三发送模块10019。将携带位置标识的即时通讯信息发送给终端1002后,第二接收模块10016用于接收终端1002发送的第一点击 事件,第二发送模块10017用于根据第一点击事件向终端1002发送增加第一时长的通知,以使得终端1002根据该通知计算预设时长的剩余时长与第一时长的和,以得到即时通讯信息在对话框的预设位置持续显示的总时长,从而终端1002将即时通讯信息按照该总时长持续显示在对话框的预设位置。The processing device 1001 further includes a second receiving module 10016, a second sending module 10017, a third receiving module 10018, and a third sending module 10019. After the instant messaging information carrying the location identifier is sent to the terminal 1002, the second receiving module 10016 is configured to receive the first click event sent by the terminal 1002, and the second sending module 10017 is configured to send the first to the terminal 1002 according to the first click event. The duration of the notification is such that the terminal 1002 calculates the sum of the remaining duration of the preset duration and the first duration according to the notification, to obtain the total duration of the instant messaging information continuously displayed in the preset position of the dialog box, so that the terminal 1002 will instant messaging information. The total length of time is continuously displayed in the preset position of the dialog box.
第三接收模块10018用于接收终端1002发送的第二点击事件,第三发送模块1009用于根据第二点击事件向终端1002发送减少第二时长的通知,以使得终端1002根据通知计算预设时长的剩余时长与第二时长的差值,以得到即时通讯信息在对话框的预设位置持续显示的总时长,从而终端1002将即时通讯信息按照该总时长持续显示在对话框的预设位置。The third receiving module 10018 is configured to receive the second click event sent by the terminal 1002, and the third sending module 1009 is configured to send a notification for reducing the second duration to the terminal 1002 according to the second click event, so that the terminal 1002 calculates the preset duration according to the notification. The difference between the remaining duration and the second duration is used to obtain the total duration of the instant messaging information continuously displayed in the preset position of the dialog box, so that the terminal 1002 continuously displays the instant messaging information in the preset position of the dialog box according to the total duration.
其中,第一点击事件和第二点击事件可以由用户在终端1002分别点击第一操作按钮和第二操作按钮而生成。The first click event and the second click event may be generated by the user respectively clicking the first operation button and the second operation button at the terminal 1002.
通过上述方式,用户可以增加或减少即时通讯信息置底显示的时长,使得即时通讯过程更人性化。In the above manner, the user can increase or decrease the duration of the instant messaging information display, making the instant messaging process more user-friendly.
本申请实施例还提供一种服务器,如图11所示,其示出了本申请实施例所涉及的服务器的结构示意图,具体来讲:The embodiment of the present application further provides a server, as shown in FIG. 11 , which shows a schematic structural diagram of a server involved in the embodiment of the present application, specifically:
该服务器可以包括一个或者一个以上处理核心的处理器1101、一个或一个以上计算机可读存储介质的存储器1102、电源1103和输入单元1104等部件。本领域技术人员可以理解,图11中示出的服务器结构并不构成对服务器的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:The server may include one or more processors 1101 of the processing core, a memory 1102 of one or more computer readable storage media, a power supply 1103, and an input unit 1104. It will be understood by those skilled in the art that the server structure illustrated in FIG. 11 does not constitute a limitation to the server, and may include more or less components than those illustrated, or some components may be combined, or different component arrangements. among them:
处理器1101是该服务器的控制中心,利用各种接口和线路连接整个服务器的各个部分,通过运行或执行存储在存储器1102内的软件程序和/或模块,以及调用存储在存储器1102内的数据,执行服务器的各种功能和处理数据,从而对服务器进行整体监控。在一些实例中,处理器1101可包括一个或多个处理核心;在一些实例中,处理器1101可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处 理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1101中。The processor 1101 is the control center of the server, connecting various portions of the entire server using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 1102, and recalling data stored in the memory 1102, Execute the server's various functions and process data to monitor the server as a whole. In some examples, processor 1101 can include one or more processing cores; in some examples, processor 1101 can integrate an application processor and a modem processor, where the application processor primarily processes an operating system, a user interface, and For applications, etc., the modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 1101.
存储器1102可用于存储软件程序以及模块,处理器1101通过运行存储在存储器1102的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器1102可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据服务器的使用所创建的数据等。此外,存储器1102可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器1102还可以包括存储器控制器,以提供处理器1101对存储器1102的访问。The memory 1102 can be used to store software programs and modules, and the processor 1101 executes various functional applications and data processing by running software programs and modules stored in the memory 1102. The memory 1102 can mainly include a storage program area and a storage data area, wherein the storage program area can store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area can be stored according to Data created by the use of the server, etc. Moreover, memory 1102 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 1102 can also include a memory controller to provide access to memory 1102 by processor 1101.
服务器还包括给各个部件供电的电源1103,在一些实例中,电源1103可以通过电源管理系统与处理器1101逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源1103还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The server also includes a power supply 1103 that powers the various components. In some examples, the power supply 1103 can be logically coupled to the processor 1101 through a power management system to enable management of charging, discharging, and power management functions through the power management system. The power supply 1103 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
该服务器还可包括输入单元1104,该输入单元1104可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。The server can also include an input unit 1104 that can be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
尽管未示出,服务器还可以包括显示单元等,在此不再赘述。具体在本实施例中,服务器中的处理器1101会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行文件加载到存储器1102中,并由处理器1101来运行存储在存储器1102中的应用程序,从而实现各种功能,如下:Although not shown, the server may further include a display unit or the like, and details are not described herein again. Specifically, in this embodiment, the processor 1101 in the server loads the executable file corresponding to the process of one or more applications into the memory 1102 according to the following instruction, and is stored in the memory by the processor 1101. The application in 1102, thus implementing various functions, as follows:
接收终端发送的即时通讯信息,并判断即时通讯信息是否为预设消息类型,其中,预设消息类型是指按照预设显示方式显示的消息类型,可以根据用户对对话框中的持续显示按钮(如图1所示)的选中与否判断即时通讯信息 是否为预设消息类型,当用户选中持续显示按钮,则判断为预设消息类型。Receiving the instant messaging information sent by the terminal, and determining whether the instant messaging information is a preset message type, wherein the preset message type refers to the message type displayed according to the preset display manner, and may be according to the continuous display button in the user dialog box ( As shown in FIG. 1 , it is determined whether the instant messaging information is a preset message type, and when the user selects the persistent display button, it determines the default message type.
当判断即时通讯信息为预设消息类型时,在即时通讯信息中添加位置标识,并将携带位置标识的即时通讯信息发送给终端,以使得终端根据位置标识将即时通讯信息在对话框的预设位置持续显示预设时长,由此,即使终端不断接收到新的即时通讯信息,携带位置标识的即时通讯信息始终显示在对话框的预设位置,使得该即时通讯信息不会被后续接收到的消息往上推,方便用户快速找到该信息。When the instant messaging information is determined to be the preset message type, the location identifier is added to the instant messaging information, and the instant messaging information carrying the location identifier is sent to the terminal, so that the terminal presets the instant messaging information in the dialog box according to the location identifier. The position continues to display the preset duration. Therefore, even if the terminal continuously receives new instant messaging information, the instant messaging information carrying the location identifier is always displayed in the preset position of the dialog box, so that the instant messaging information is not subsequently received. The message is pushed up so that the user can quickly find the information.
其中,当判断即时通讯信息不是预设消息类型时,直接将即时通讯信息发送给终端,以使得终端将即时通讯信息按照接收到的时间先后顺序显示在会话消息列表中。When it is determined that the instant messaging information is not the preset message type, the instant messaging information is directly sent to the terminal, so that the terminal displays the instant messaging information in the session message list according to the received chronological order.
在一些实例中,在判断即时通讯信息为预设消息类型时,获取持续显示的时长信息,该时长信息记录有即时通讯信息在对话框的预设位置持续显示的预设时长。然后在即时通讯信息中添加该时长信息,以使得终端根据该时长信息将即时通讯信息在对话框的预设位置持续显示预设时长。在预设时长之后,即时通讯信息可以按照接收的时间先后顺序回到消息列表中显示。In some examples, when it is determined that the instant messaging information is a preset message type, the duration information of the persistent display is obtained, and the duration information records a preset duration that the instant messaging information is continuously displayed in the preset position of the dialog box. Then, the duration information is added to the instant messaging information, so that the terminal continuously displays the instant messaging information in the preset position of the dialog box according to the duration information for a preset duration. After the preset duration, the instant messaging information can be returned to the message list in the chronological order of receipt.
在一些实例中,将携带位置标识的即时通讯信息发送给终端之后,还接收终端发送的第一点击事件或者第二点击事件,从而根据第一点击事件向终端发送增加第一时长的通知,以使得终端根据该通知在预设时长的剩余时长的基础上累加第一时长,以得到即时通讯信息持续显示的总时长,或者根据第二点击事件向终端发送减少第二时长的通知,以使得终端根据该通知在预设时长的剩余时长的基础上累减第二时长,以得到即时通讯信息持续显示的总时长。In some examples, after the instant messaging information carrying the location identifier is sent to the terminal, the first click event or the second click event sent by the terminal is further received, so that the notification for adding the first duration is sent to the terminal according to the first click event, so as to And causing the terminal to accumulate the first duration based on the remaining duration of the preset duration according to the notification, to obtain the total duration of the instant messaging information being continuously displayed, or sending the notification of reducing the second duration to the terminal according to the second click event, so that the terminal According to the notification, the second duration is accumulated on the basis of the remaining duration of the preset duration to obtain the total duration of the instant messaging information continuously displayed.
以上各个操作的具体实施可参见前面的实施例,在此不再赘述。For the specific implementation of the foregoing operations, refer to the foregoing embodiments, and details are not described herein again.
相应的,本申请实施例还提供一种终端,如图12所示,该终端可以包括射频(RF,Radio Frequency)电路1201、包括有一个或一个以上计算机可读存储介质的存储器1202、输入单元1203、显示单元1204、传感器1205、音 频电路1206、无线保真(WiFi,Wireless Fidelity)模块1207、包括有一个或者一个以上处理核心的处理器1208、以及电源1209等部件。本领域技术人员可以理解,图12中示出的终端结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:Correspondingly, the embodiment of the present application further provides a terminal. As shown in FIG. 12, the terminal may include a radio frequency (RF) circuit 1201, a memory 1202 including one or more computer readable storage media, and an input unit. 1203. A display unit 1204, a sensor 1205, an audio circuit 1206, a Wireless Fidelity (WiFi) module 1207, a processor 1208 including one or more processing cores, and a power supply 1209 and the like. It will be understood by those skilled in the art that the terminal structure shown in FIG. 12 does not constitute a limitation to the terminal, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements. among them:
RF电路1201可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,交由一个或者一个以上处理器1208处理;另外,将涉及上行的数据发送给基站。通常,RF电路1201包括但不限于天线、至少一个放大器、调谐器、一个或多个振荡器、用户身份模块(SIM,Subscriber Identity Module)卡、收发信机、耦合器、低噪声放大器(LNA,Low Noise Amplifier)、双工器等。此外,RF电路1201还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(GSM,Global System of Mobile communication)、通用分组无线服务(GPRS,General Packet Radio Service)、码分多址(CDMA,Code Division Multiple Access)、宽带码分多址(WCDMA,Wideband Code Division Multiple Access)、长期演进(LTE,Long Term Evolution)、电子邮件、短消息服务(SMS,Short Messaging Service)等。The RF circuit 1201 can be used for receiving and transmitting signals during and after receiving or transmitting information, in particular, after receiving downlink information of the base station, and processing it by one or more processors 1208; in addition, transmitting data related to the uplink to the base station. . Generally, the RF circuit 1201 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, and a low noise amplifier (LNA, Low Noise Amplifier), duplexer, etc. In addition, RF circuit 1201 can also communicate with the network and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), and Code Division Multiple Access (CDMA). , Code Division Multiple Access), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), e-mail, Short Messaging Service (SMS), and the like.
存储器1202可用于存储软件程序以及模块,处理器1208通过运行存储在存储器1202的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器1202可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据终端的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器1202可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器1202还可以包括存储器控制器,以提供处理器1208和输入单元1203对存储器1202的访问。The memory 1202 can be used to store software programs and modules, and the processor 1208 executes various functional applications and data processing by running software programs and modules stored in the memory 1202. The memory 1202 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of the terminal (such as audio data, phone book, etc.). Moreover, memory 1202 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 1202 may also include a memory controller to provide access to memory 1202 by processor 1208 and input unit 1203.
输入单元1203可用于接收输入的数字或字符信息,以及产生与用户设置 以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,在一个具体的实施例中,输入单元1203可包括触敏表面以及其他输入设备。触敏表面,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面上或在触敏表面附近的操作),并根据预先设定的程式驱动相应的连接装置。在一些实例中,触敏表面可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1208,并能接收处理器1208发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面。除了触敏表面,输入单元1203还可以包括其他输入设备。具体地,其他输入设备可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。 Input unit 1203 can be used to receive input numeric or character information, as well as to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls. In particular, in one particular embodiment, input unit 1203 can include a touch-sensitive surface as well as other input devices. Touch-sensitive surfaces, also known as touch screens or trackpads, collect touch operations on or near the user (such as the user using a finger, stylus, etc., any suitable object or accessory on a touch-sensitive surface or touch-sensitive Operation near the surface), and drive the corresponding connecting device according to a preset program. In some examples, the touch sensitive surface can include both portions of the touch detection device and the touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information. The processor 1208 is provided and can receive commands from the processor 1208 and execute them. In addition, touch-sensitive surfaces can be implemented in a variety of types, including resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface, the input unit 1203 can also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
显示单元1204可用于显示由用户输入的信息或提供给用户的信息以及终端的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元1204可包括显示面板,在一些实例中,可以采用液晶显示器(LCD,Liquid Crystal Display)、有机发光二极管(OLED,Organic Light-Emitting Diode)等形式来配置显示面板。进一步的,触敏表面可覆盖显示面板,当触敏表面检测到在其上或附近的触摸操作后,传送给处理器1208以确定触摸事件的类型,随后处理器1208根据触摸事件的类型在显示面板上提供相应的视觉输出。虽然在图12中,触敏表面与显示面板是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面与显示面板集成而实现输入和输出功能。 Display unit 1204 can be used to display information entered by the user or information provided to the user, as well as various graphical user interfaces of the terminal, which can be composed of graphics, text, icons, video, and any combination thereof. The display unit 1204 may include a display panel. In some examples, the display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface can cover the display panel, and when the touch-sensitive surface detects a touch operation thereon or nearby, it is transmitted to the processor 1208 to determine the type of the touch event, and then the processor 1208 displays the type according to the type of the touch event. A corresponding visual output is provided on the panel. Although in FIG. 12, the touch-sensitive surface and display panel are implemented as two separate components to perform input and input functions, in some embodiments, the touch-sensitive surface can be integrated with the display panel to implement input and output functions.
终端还可包括至少一种传感器1205,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板的亮度,接近传感器可在 终端移动到耳边时,关闭显示面板和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于终端还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The terminal may also include at least one type of sensor 1205, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel according to the brightness of the ambient light, and the proximity sensor may close the display panel and/or the backlight when the terminal moves to the ear. . As a kind of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the terminal can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
音频电路1206、扬声器,传声器可提供用户与终端之间的音频接口。音频电路1206可将接收到的音频数据转换后的电信号,传输到扬声器,由扬声器转换为声音信号输出;另一方面,传声器将收集的声音信号转换为电信号,由音频电路1206接收后转换为音频数据,再将音频数据输出处理器1208处理后,经RF电路1201以发送给比如另一终端,或者将音频数据输出至存储器1202以便进一步处理。音频电路1206还可能包括耳塞插孔,以提供外设耳机与终端的通信。An audio circuit 1206, a speaker, and a microphone can provide an audio interface between the user and the terminal. The audio circuit 1206 can transmit the converted electrical data of the received audio data to a speaker, and convert the sound signal to a sound signal output. On the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 1206 and converted. After the audio data is processed by the audio data output processor 1208, it is sent to, for example, another terminal via the RF circuit 1201, or the audio data is output to the memory 1202 for further processing. The audio circuit 1206 may also include an earbud jack to provide communication between the peripheral earphone and the terminal.
WiFi属于短距离无线传输技术,终端通过WiFi模块1207可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图12示出了WiFi模块1207,但是可以理解的是,其并不属于终端的必须构成,完全可以根据需要在不改变申请的本质的范围内而省略。WiFi is a short-range wireless transmission technology. The terminal can help users to send and receive emails, browse web pages and access streaming media through the WiFi module 1207, which provides users with wireless broadband Internet access. Although FIG. 12 shows the WiFi module 1207, it can be understood that it does not belong to the necessary configuration of the terminal, and can be omitted as needed within the scope of not changing the essence of the application.
处理器1208是终端的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器1202内的软件程序和/或模块,以及调用存储在存储器1202内的数据,执行终端的各种功能和处理数据,从而对手机进行整体监控。在一些实例中,处理器1208可包括一个或多个处理核心;在一些实例中,处理器1208可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1208中。The processor 1208 is the control center of the terminal, which connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 1202, and invoking data stored in the memory 1202, The various functions of the terminal and processing data to monitor the mobile phone as a whole. In some examples, processor 1208 can include one or more processing cores; in some examples, processor 1208 can integrate an application processor and a modem processor, where the application processor primarily processes an operating system, a user interface, and For applications, etc., the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 1208.
终端还包括给各个部件供电的电源1209(比如电池),在一些实例中,电 源可以通过电源管理系统与处理器1208逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源1209还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The terminal also includes a power source 1209 (such as a battery) that supplies power to the various components. In some examples, the power source can be logically coupled to the processor 1208 through a power management system to manage functions such as charging, discharging, and power management through the power management system. . The power supply 1209 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
尽管未示出,终端还可以包括摄像头、蓝牙模块等,在此不再赘述。具体在本实施例中,终端中的处理器1208会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行文件加载到存储器1202中,并由处理器1208来运行存储在存储器1202中的应用程序,从而实现各种功能:Although not shown, the terminal may further include a camera, a Bluetooth module, and the like, and details are not described herein again. Specifically, in this embodiment, the processor 1208 in the terminal loads the executable file corresponding to the process of one or more applications into the memory 1202 according to the following instruction, and is stored in the memory by the processor 1208. The application in 1202, thus implementing various functions:
接收服务器发送的即时通讯信息,其中服务器发送的即时通讯信息来自进行即时通讯的任一终端,可以是用户编辑的文字信息、图片、视频以及虚拟红包等,也可以是用户转发的文章、链接等。服务器将其接收到的即时通讯信息发送给进行即时通讯的各终端,从而实现即时通讯。Receiving instant messaging information sent by the server, wherein the instant messaging information sent by the server is from any terminal for instant messaging, and may be text information, pictures, videos, virtual red packets, etc. edited by the user, or may be articles, links, etc. forwarded by the user. . The server sends the instant messaging information it receives to each terminal that performs instant messaging, thereby realizing instant messaging.
判断接收到的即时通讯信息是否携带位置标识,其中使即时通讯信息携带标识的方式有多重,具体可参见前面的实施例,在此不再赘述。It is determined that the received instant messaging information carries the location identifier, and the manner in which the instant messaging information carries the identifier is multiple. For details, refer to the previous embodiment, and details are not described herein again.
当判断即时通讯信息携带位置标识时,将即时通讯信息在对话框的预设位置持续显示预设时长,由此通过将即时通讯信息持续显示,可以使得用户快速地看到持续显示在预设位置的信息,无需花费较多时间在历史消息中查找。When the instant messaging information carries the location identifier, the instant messaging information is continuously displayed in the preset position of the dialog box, thereby continuously displaying the instant messaging information, so that the user can quickly see the continuous display in the preset location. Information, no need to spend more time looking in historical messages.
当判断即时通讯信息未携带位置标识时,将即时通讯信息按照接收到的时间先后顺序在会话消息列表中显示。When it is determined that the instant messaging information does not carry the location identifier, the instant messaging information is displayed in the session message list according to the received chronological order.
在一些实例中,将即时通讯信息在预设位置持续显示之后,还接收服务器发送的增加第一时长或减少第二时长的通知;当接收到增加第一时长的通知时,根据该通知计算预设时长的剩余时长与第一时长的和,以得到即时通讯信息在对话框的预设位置持续显示的总时长,从而使即时通讯信息按照该总时长在预设位置持续显示;当接收到减少第二时长的通知时,根据该通知计算预设时长的剩余时长与第二时长的差值,以得到即时通讯信息在对话框 的预设位置持续显示的总时长,从而使即时通讯信息按照该总时长在预设位置持续显示。In some examples, after the instant messaging information is continuously displayed in the preset position, the notification sent by the server to increase the first duration or decrease the second duration is further received; when the notification of increasing the first duration is received, the pre-calculation is calculated according to the notification. The sum of the remaining duration of the duration and the first duration is obtained to obtain the total duration of the instant messaging information continuously displayed in the preset position of the dialog box, so that the instant messaging information is continuously displayed in the preset position according to the total duration; when the reception is reduced When the notification of the second duration is long, the difference between the remaining duration of the preset duration and the second duration is calculated according to the notification, so as to obtain the total duration of the instant messaging information continuously displayed in the preset position of the dialog box, so that the instant messaging information is The total duration is continuously displayed at the preset position.
其中服务器可以根据接收到的即时通讯信息的数量发出增加第一时长或减少第二时长的通知,也可以根据用户在终端的操作而发出,具体可参见前面的实施例,在此不再赘述。The server may send a notification to increase the first duration or decrease the second duration according to the quantity of the received instant messaging information, or may be sent according to the operation of the user in the terminal. For details, refer to the previous embodiment, and details are not described herein.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。A person skilled in the art may understand that all or part of the various steps of the foregoing embodiments may be performed by a program to instruct related hardware. The program may be stored in a computer readable storage medium, and the storage medium may include: Read Only Memory (ROM), Random Access Memory (RAM), disk or optical disk.
以上对本申请实施例所提供的一种即时通讯信息的处理方法和装置进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The method and device for processing instant messaging information provided by the embodiments of the present application are described in detail. The principles and implementation manners of the present application are described in the specific examples. The description of the above embodiments is only for helping. The method of the present application and its core idea are understood; at the same time, those skilled in the art, according to the idea of the present application, will have some changes in the specific implementation manner and application scope. In summary, the content of this specification should not be It is understood to be a limitation on the present application.

Claims (22)

  1. 一种即时通讯信息的处理方法,包括:A method for processing instant messaging information, comprising:
    终端设备接收服务器发送的即时通讯信息;The terminal device receives the instant messaging information sent by the server;
    所述终端设备判断所述即时通讯信息是否携带位置标识,所述位置标识用于指示所述终端设备将即时通讯信息在即时通讯对话框中的预设位置显示预设时长;Determining, by the terminal device, whether the instant messaging information carries a location identifier, where the location identifier is used to instruct the terminal device to display the instant messaging information in a preset position in an instant messaging dialog box for a preset duration;
    当所述终端设备判断所述即时通讯信息携带所述位置标识时,根据所述位置标识将所述即时通讯信息在所述即时通讯对话框的预设位置持续显示预设时长。When the terminal device determines that the instant messaging information carries the location identifier, the instant messaging information is continuously displayed in a preset position of the instant messaging dialog box according to the location identifier.
  2. 根据权利要求1所述的方法,还包括:The method of claim 1 further comprising:
    在所述预设时长内,终端设备接收服务器发送的将预设时长增加第一时长的通知;The terminal device receives a notification sent by the server to increase the preset duration by a first duration during the preset duration;
    根据所述通知计算所述预设时长的当前剩余时长与所述第一时长的和,得到第一总时长;Calculating, according to the notification, a sum of a current remaining duration of the preset duration and the first duration, to obtain a first total duration;
    将所述即时通讯信息在即时通讯对话框的预设位置继续显示所述第一总时长的时间。And displaying the instant messaging information in the preset position of the instant messaging dialog box to display the time of the first total duration.
  3. 根据权利要求2所述的方法,还包括:所述终端设备在所述即时通讯对话框中显示用于增加所述即时通讯信息在所述预设位置的显示时长的第一操作按钮;The method of claim 2, further comprising: the terminal device displaying, in the instant messaging dialog, a first operation button for increasing a display duration of the instant messaging information at the preset location;
    在所述预设时长内,所述终端设备接收用户通过所述第一操作按钮触发的第一点击操作指令,根据所述第一点击操作指令生成第一点击事件;向服务器发送所述第一点击事件;The terminal device receives a first click operation instruction triggered by the first action button by the user, generates a first click event according to the first click operation instruction, and sends the first message to the server. Click event
    所述在所述预设时长内,接收服务器发送的将所述预设时长增加第一时长的通知,包括:在所述预设时长内,所述终端设备接收服务器根据所述第一点击事件发送的将预设时长增加第一时长的通知。And the receiving, by the receiving server, the notification that the preset duration is increased by the first duration, in the preset duration, the terminal device receiving the server according to the first click event The notification sent by increasing the preset duration by the first duration.
  4. 根据权利要求1所述的方法,还包括:The method of claim 1 further comprising:
    在所述预设时长内,接收服务器发送的将所述预设时长减少第二时长的通知;Receiving, by the receiving server, a notification that reduces the preset duration by a second duration during the preset duration;
    根据所述通知计算所述预设时长的当前剩余时长与所述第二时长的差值,得到第二总时长;Calculating, according to the notification, a difference between a current remaining duration of the preset duration and the second duration, to obtain a second total duration;
    将所述即时通讯信息在即时通讯对话框的预设位置继续显示所述第二总时长的时间。And continuing to display the second total duration in the preset position of the instant messaging dialog.
  5. 根据权利要求4所述的方法,还包括:所述终端设备在所述即时通讯对话框中显示用于减少所述即时通讯信息在所述预设位置的显示时长的第二操作按钮;The method of claim 4, further comprising: the terminal device displaying, in the instant messaging dialog, a second operation button for reducing a display duration of the instant messaging information at the preset location;
    在所述预设时长内,所述终端设备接收用户通过所述第二操作按钮触发的第二点击操作指令,根据所述第二点击操作指令生成第二点击事件;向服务器发送所述第二点击事件;Receiving, by the terminal device, a second click operation instruction triggered by the second operation button, generating a second click event according to the second click operation instruction, and sending the second to the server Click event
    所述在所述预设时长内,接收服务器发送的将所述预设时长减少第二时长的通知,包括:在所述预设时长内,所述终端设备接收服务器根据所述第二点击事件发送的将预设时长减少第二时长的通知。And the receiving, by the receiving server, the notification that the preset duration is decreased by the second duration, in the preset duration, the terminal device receiving the server according to the second click event within the preset duration A notification sent by reducing the preset duration by a second duration.
  6. 根据权利要求1-5任一项所述的方法,所述根据位置标识将所述即时通讯信息在即时通讯对话框的预设位置持续显示预设时长,包括:The method according to any one of claims 1-5, wherein the displaying the instant messaging information in the preset position of the instant messaging dialog box according to the location identifier continuously displays the preset duration, including:
    根据所述位置标识将所述即时通讯信息在即时通讯对话框的消息列表的最底部持续显示预设时长。And displaying the instant messaging information at the bottom of the message list of the instant messaging dialog box according to the location identifier for a preset duration.
  7. 根据权利要求1-5任一项所述的方法,所述接收服务器发送的即时通讯信息之后,还包括:The method according to any one of claims 1-5, after the receiving the instant messaging information sent by the server, the method further includes:
    将所述即时通讯信息的内容与垃圾信息的预设特征信息对比,根据所述对比结果判断所述即时通讯信息是否为垃圾信息;Comparing the content of the instant messaging information with the preset feature information of the spam, and determining, according to the comparison result, whether the instant messaging information is spam;
    所述当判断所述即时通讯信息携带位置标识时,根据位置标识将所述即时通讯信息在即时通讯对话框的预设位置持续显示预设时长,包括:When determining that the instant messaging information carries the location identifier, the instant messaging information is continuously displayed in the preset position of the instant messaging dialog box according to the location identifier, and includes:
    当判断所述即时通讯信息携带位置标识,且所述即时通讯信息不是垃圾 信息时,根据位置标识将所述即时通讯信息在即时通讯对话框的预设位置持续显示预设时长。When it is determined that the instant messaging information carries the location identifier, and the instant messaging information is not spam, the instant messaging information is continuously displayed in the preset position of the instant messaging dialog box according to the location identifier for a preset duration.
  8. 一种即时通讯信息的处理方法,包括:A method for processing instant messaging information, comprising:
    服务器接收终端发送的即时通讯信息;The server receives the instant messaging information sent by the terminal;
    所述服务器判断所述即时通讯信息是否为预设消息类型,其中,所述预设消息类型为需要在终端的即时通讯对话框的预设位置显示预设时长的消息类型;The server determines whether the instant messaging information is a preset message type, where the preset message type is a message type that needs to display a preset duration in a preset position of the instant messaging dialog box of the terminal;
    当所述服务器判断所述即时通讯信息为预设消息类型时,在所述即时通讯信息中添加位置标识,所述位置标识用于指示终端设备将即时通讯信息在即时通讯对话框中的预设位置显示预设时长;When the server determines that the instant messaging information is a preset message type, adding a location identifier to the instant messaging information, where the location identifier is used to indicate that the terminal device presets the instant messaging information in the instant messaging dialog box. The position displays the preset duration;
    将携带所述位置标识的即时通讯信息发送给所述终端设备,以使得所述终端设备将所述即时通讯信息在即时通讯对话框的预设位置持续显示预设时长。Sending the instant messaging information carrying the location identifier to the terminal device, so that the terminal device continuously displays the instant messaging information in a preset position of the instant messaging dialog box for a preset duration.
  9. 根据权利要求8所述的方法,还包括:The method of claim 8 further comprising:
    当判断所述即时通讯信息为预设消息类型,获取持续显示的时长信息,所述时长信息记录有所述即时通讯信息在即时通讯对话框的预设位置持续显示的预设时长;When it is determined that the instant messaging information is a preset message type, obtaining duration information that is continuously displayed, where the duration information is recorded with a preset duration that the instant messaging information is continuously displayed in a preset position of the instant messaging dialog box;
    在所述即时通讯信息中添加所述时长信息,以使得终端根据所述时长信息将所述即时通讯信息在即时通讯对话框的预设位置持续显示所述预设时长。Adding the duration information to the instant messaging information, so that the terminal continuously displays the instant messaging information in the preset position of the instant messaging dialog box according to the duration information.
  10. 根据权利要求9所述的方法,所述将携带所述位置标识的即时通讯信息发送给终端之后,还包括:The method of claim 9, after the sending the instant messaging information carrying the location identifier to the terminal, the method further includes:
    接收终端发送的第一点击事件,其中,所述第一点击事件是所述终端在接收到用户通过点击第一操作按钮而触发的第一点击操作指令之后,根据所述第一点击操作指令生成并发送给所述服务器的,所述第一操作按钮显示在所述终端的即时通讯对话框中,用于增加所述即时通讯信息在所述预设位置的显示时长;Receiving a first click event sent by the terminal, where the first click event is generated by the terminal according to the first click operation instruction after receiving the first click operation instruction triggered by the user by clicking the first operation button And being sent to the server, the first operation button is displayed in an instant messaging dialog box of the terminal, and is configured to increase a display duration of the instant messaging information in the preset location;
    根据所述第一点击事件向终端发送将预设时长增加第一时长的通知,以使得终端根据所述通知计算所述预设时长的当前剩余时长与所述第一时长的和,并得到所述即时通讯信息在即时通讯对话框的预设位置持续显示的第一总时长。Sending, by the first click event, a notification that the preset duration is increased by the first duration to the terminal, so that the terminal calculates a sum of the current remaining duration of the preset duration and the first duration according to the notification, and obtains a The first total duration of the instant messaging information continuously displayed in the preset position of the instant messaging dialog box.
  11. 根据权利要求9所述的方法,将携带所述位置标识的所述即时通讯信息发送给终端之后,还包括:The method of claim 9, after the sending the instant messaging information carrying the location identifier to the terminal, further comprising:
    接收终端发送的第二点击事件,其中,所述第二点击事件是所述终端在接收到用户通过点击第二操作按钮而触发的第二点击操作指令之后,根据所述第二点击操作指令生成并发送给所述服务器的,所述第二操作按钮显示在所述终端的即时通讯对话框中,用于减少所述即时通讯信息在所述预设位置的显示时长;Receiving a second click event sent by the terminal, where the second click event is generated by the terminal according to the second click operation instruction after receiving the second click operation instruction triggered by the user by clicking the second operation button And being sent to the server, the second operation button is displayed in an instant messaging dialog box of the terminal, and is configured to reduce a display duration of the instant messaging information in the preset location;
    根据所述第二点击事件向终端发送减少第二时长的通知,以使得终端根据所述通知计算预设时长的当前剩余时长与所述第二时长的差值,并得到所述即时通讯信息在即时通讯对话框的预设位置持续显示的第二总时长。Sending, by the second click event, a notification for reducing the second duration to the terminal, so that the terminal calculates a difference between the current remaining duration of the preset duration and the second duration according to the notification, and obtains the instant messaging information The preset total position of the instant messaging dialog continues to display the second total duration.
  12. 一种即时通讯信息的处理装置,包括:A processing device for instant messaging information, comprising:
    处理器;processor;
    与所述处理器相连接的存储器;所述存储器中存储有机器可读指令模块;所述机器可读指令模块包括:a memory coupled to the processor; the memory readable instruction module is stored in the memory; the machine readable instruction module includes:
    第一接收模块,用于接收服务器发送的即时通讯信息;a first receiving module, configured to receive instant messaging information sent by the server;
    判断模块,用于判断所述即时通讯信息是否携带位置标识,所述位置标识用于指示所述终端将即时通讯信息在即时通讯对话框的预设位置显示预设时长;a determining module, configured to determine whether the instant messaging information carries a location identifier, where the location identifier is used to instruct the terminal to display the instant messaging information in a preset position of the instant messaging dialog box for a preset duration;
    显示模块,用于当判断模块判断所述即时通讯信息携带位置标识时,根据所述位置标识将所述即时通讯信息在即时通讯对话框的预设位置持续显示预设时长。And a display module, configured to: when the determining module determines that the instant messaging information carries a location identifier, continuously display the instant messaging information in a preset position of the instant messaging dialog box according to the location identifier for a preset duration.
  13. 根据权利要求12所述的处理装置,还包括第二接收模块和第一计算 模块:The processing device of claim 12, further comprising a second receiving module and a first computing module:
    所述第二接收模块,用于在所述预设时长内,接收服务器发送的将预设时长增加第一时长的通知;The second receiving module is configured to receive, by the receiving server, a notification that increases the preset duration by a first duration within the preset duration;
    所述第一计算模块,用于根据所述通知计算所述预设时长的当前剩余时长与所述第一时长的和,得到第一总时长;The first calculating module is configured to calculate, according to the notification, a sum of a current remaining duration of the preset duration and the first duration, to obtain a first total duration;
    所述显示模块用于将所述即时通讯信息在即时通讯对话框的预设位置持续显示所述第一总时长。The display module is configured to continuously display the instant messaging information in the preset position of the instant messaging dialog box for the first total duration.
  14. 根据权利要求13所述的处理装置,还包括第一生成模块和第一发送模块;The processing apparatus according to claim 13, further comprising a first generation module and a first transmission module;
    所述显示模块,还用于在所述即时通讯对话框中显示用于增加所述即时通讯信息在所述预设位置的显示时长的第一操作按钮;The display module is further configured to display, in the instant messaging dialog box, a first operation button for increasing a display duration of the instant messaging information at the preset location;
    所述第一生成模块,用于在所述预设时长内,接收用户通过所述第一操作按钮触发的第一点击操作指令,根据所述一点击操作指令生成第一点击事件;The first generating module is configured to receive a first click operation instruction triggered by the user by using the first operation button, and generate a first click event according to the one click operation instruction;
    所述第一发送模块,用于向服务器发送所述第一点击事件;The first sending module is configured to send the first click event to a server;
    所述第二接收模块,用于在所述预设时长内,接收服务器根据所述第一点击事件发送的将所述预设时长增加第一时长的通知。The second receiving module is configured to: after the preset duration, receive, by the server, a notification that the preset duration is increased by a first duration according to the first click event.
  15. 根据权利要求12所述的处理装置,还包括第三接收模块和第二计算模块;The processing apparatus according to claim 12, further comprising a third receiving module and a second calculating module;
    所述第三接收模块,用于在所述预设时长内,接收服务器发送的将所述预设时长减少第二时长的通知;The third receiving module is configured to receive, by the receiving server, a notification that reduces the preset duration by a second duration during the preset duration;
    所述第二计算模块,用于根据所述通知计算所述预设时长的当前剩余时长与所述第二时长的差值,得到第二总时长;The second calculating module is configured to calculate, according to the notification, a difference between a current remaining duration of the preset duration and the second duration, to obtain a second total duration;
    所述显示模块用于将所述即时通讯信息在即时通讯对话框的预设位置持续显示所述第二总时长。The display module is configured to continuously display the instant messaging information in the preset position of the instant messaging dialog box for the second total duration.
  16. 根据权利要求15所述的处理装置,还包括第二生成模块和第二发送 模块;The processing apparatus according to claim 15, further comprising a second generation module and a second transmission module;
    所述显示模块,还用于显示用于减少所述即时通讯信息在所述预设位置的显示时长的第二操作按钮;The display module is further configured to display a second operation button for reducing a display duration of the instant messaging information at the preset location;
    所述第二生成模块,用于在所述预设时长内,接收用户通过所述第二操作按钮触发的第二点击操作指令,根据所述第二操作指令生成第二点击事件;The second generating module is configured to receive a second click operation instruction triggered by the second operation button, and generate a second click event according to the second operation instruction, in the preset duration;
    所述第二发送模块,用于向服务器发送所述第二点击事件;The second sending module is configured to send the second click event to a server;
    所述第三接收模块,用于在所述预设时长内,接收服务器根据所述第二点击事件发送的将所述预设时长减少第二时长的通知。The third receiving module is configured to receive, by the server according to the second click event, a notification that reduces the preset duration by a second duration during the preset duration.
  17. 一种即时通讯信息的处理装置,包括:A processing device for instant messaging information, comprising:
    处理器;processor;
    与所述处理器相连接的存储器;所述存储器中存储有机器可读指令模块;所述机器可读指令模块包括:a memory coupled to the processor; the memory readable instruction module is stored in the memory; the machine readable instruction module includes:
    第一接收模块,用于接收终端发送的即时通讯信息;a first receiving module, configured to receive instant messaging information sent by the terminal;
    判断模块,用于判断所述即时通讯信息是否为预设消息类型,其中,所述预设消息类型为需要在终端的即时通讯对话框的预设位置显示预设时长的消息类型;a judging module, configured to determine whether the instant messaging information is a preset message type, where the preset message type is a message type that needs to display a preset duration in a preset position of the instant messaging dialog box of the terminal;
    添加模块,用于当判断模块判断所述即时通讯信息为预设消息类型时,在所述即时通讯信息中添加位置标识,所述位置标识用于指示所述终端将即时通讯信息在即时通讯对话框的预设位置显示预设时长;Adding a module, when the determining module determines that the instant messaging information is a preset message type, adding a location identifier to the instant messaging information, where the location identifier is used to indicate that the terminal is to instant messaging information in an instant messaging conversation The preset position of the frame displays the preset duration;
    第一发送模块,用于将携带所述位置标识的即时通讯信息发送给终端,以使得所述终端将所述即时通讯信息在即时通讯对话框的预设位置持续显示预设时长。The first sending module is configured to send the instant messaging information carrying the location identifier to the terminal, so that the terminal continuously displays the instant messaging information in a preset position of the instant messaging dialog box for a preset duration.
  18. 根据权利要求17所述的处理装置,还包括获取模块;The processing apparatus according to claim 17, further comprising an acquisition module;
    所述获取模块,用于当判断所述即时通讯信息为预设消息类型,获取持续显示的时长信息,所述时长信息记录有所述即时通讯信息在即时通讯对话框的预设位置持续显示的预设时长;The obtaining module is configured to: when determining that the instant messaging information is a preset message type, obtain duration information that is continuously displayed, where the duration information is continuously displayed in the preset position of the instant messaging dialog box; Preset time;
    所述添加模块,还用于在所述即时通讯信息中添加所述时长信息,以使得终端根据所述时长信息将所述即时通讯信息在即时通讯对话框的预设位置持续显示预设时长。The adding module is further configured to add the duration information to the instant messaging information, so that the terminal continuously displays the instant messaging information in a preset position of the instant messaging dialog box according to the duration information.
  19. 根据权利要求18所述的处理装置,还包括:The processing device of claim 18, further comprising:
    第二接收模块,用于接收终端发送的第一点击事件,其中,所述第一点击事件是所述终端在接收到用户通过点击第一操作按钮而触发的第一点击操作指令之后,根据所述第一点击操作指令生成并发送给所述服务器的,所述第一操作按钮显示在所述终端的即时通讯对话框中,用于增加所述即时通讯信息在所述预设位置的显示时长;a second receiving module, configured to receive a first click event sent by the terminal, where the first click event is after the terminal receives the first click operation instruction triggered by the user by clicking the first operation button, according to the The first click operation command is generated and sent to the server, and the first operation button is displayed in an instant messaging dialog box of the terminal, and is used to increase the display duration of the instant messaging information in the preset position. ;
    第二发送模块,用于根据所述第一点击事件向终端发送将所述预设时长增加第一时长的通知,以使得终端根据所述通知计算所述预设时长的当前剩余时长与所述第一时长的和,并得到所述即时通讯信息在即时通讯对话框的预设位置持续显示的第一总时长。a second sending module, configured to send, to the terminal, a notification that increases the preset duration by a first duration according to the first click event, so that the terminal calculates a current remaining duration of the preset duration according to the notification, and the The sum of the first duration, and the first total duration of the instant messaging information continuously displayed in the preset position of the instant messaging dialog box.
  20. 根据权利要求18所述的处理装置,还包括:The processing device of claim 18, further comprising:
    第三接收模块,用于接收终端发送的第二点击事件,其中,所述第二点击事件是所述终端在接收到用户通过点击第二操作按钮而触发的第二点击操作指令之后,根据所述第二点击操作指令生成并发送给所述服务器的,所述第二操作按钮显示在所述终端的即时通讯对话框中,用于减少所述即时通讯信息在所述预设位置的显示时长;a third receiving module, configured to receive a second click event sent by the terminal, where the second click event is after the terminal receives the second click operation instruction triggered by the user by clicking the second operation button, according to the The second click operation command is generated and sent to the server, and the second operation button is displayed in the instant messaging dialog box of the terminal, and is used to reduce the display duration of the instant messaging information in the preset position. ;
    第三发送模块,用于根据所述第二点击事件向终端发送将所述预设时长减少第二时长的通知,以使得终端根据所述通知计算所述预设时长的当前剩余时长与所述第二时长的差值,并得到所述即时通讯信息在即时通讯对话框的预设位置持续显示的第二总时长。a third sending module, configured to send, according to the second click event, a notification that reduces the preset duration to a second duration, so that the terminal calculates a current remaining duration of the preset duration according to the notification, and the The difference of the second duration, and the second total duration of the instant messaging information continuously displayed in the preset position of the instant messaging dialog box.
  21. 一种非易失性计算机可读存储介质,其中所述存储介质中存储有机器可读指令,所述机器可读指令可以由处理器执行以完成权利要求1-7任一项所述的方法。A non-transitory computer readable storage medium, wherein the storage medium stores machine readable instructions, the machine readable instructions being executable by a processor to perform the method of any of claims 1-7 .
  22. 一种非易失性计算机可读存储介质,其中所述存储介质中存储有机器可读指令,所述机器可读指令可以由处理器执行以完成权利要求8-11任一项所述的方法。A non-transitory computer readable storage medium, wherein the storage medium stores machine readable instructions, the machine readable instructions being executable by a processor to perform the method of any of claims 8-11 .
PCT/CN2018/075921 2017-03-01 2018-02-09 Method and device for processing instant communication information WO2018157720A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710118140.2 2017-03-01
CN201710118140.2A CN106850413B (en) 2017-03-01 2017-03-01 Instant messaging information processing method and device

Publications (1)

Publication Number Publication Date
WO2018157720A1 true WO2018157720A1 (en) 2018-09-07

Family

ID=59138588

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/075921 WO2018157720A1 (en) 2017-03-01 2018-02-09 Method and device for processing instant communication information

Country Status (2)

Country Link
CN (1) CN106850413B (en)
WO (1) WO2018157720A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112269551A (en) * 2020-10-22 2021-01-26 北京小米移动软件有限公司 A method, device and storage medium for displaying information across devices

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106850413B (en) * 2017-03-01 2021-06-08 腾讯科技(深圳)有限公司 Instant messaging information processing method and device
CN107465594A (en) * 2017-06-27 2017-12-12 畅捷通信息技术股份有限公司 The display methods and display system of a kind of chat messages

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006109320A1 (en) * 2005-04-15 2006-10-19 Hewlett-Packard Development Company L.P. System and method of creating and displaying messages
CN103500218A (en) * 2013-10-10 2014-01-08 北京奇虎科技有限公司 Information display method, device and system
CN104104588A (en) * 2014-04-30 2014-10-15 中兴通讯股份有限公司 Instant message display method and device
CN104252541A (en) * 2014-09-24 2014-12-31 广州金山网络科技有限公司 Webpage information push method, data server and terminal
CN105591886A (en) * 2016-03-03 2016-05-18 北京小米移动软件有限公司 Message processing method, device and terminal electronic equipment
US20160301641A1 (en) * 2015-04-13 2016-10-13 Smoke Messaging, LLC Secure messaging system utilizing a limited viewing window
CN106850413A (en) * 2017-03-01 2017-06-13 腾讯科技(深圳)有限公司 A kind of processing method and processing device of instant communication information

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
NO20110767A1 (en) * 2011-05-25 2012-07-09 Harald Amundsen Procedure and navigation and presentation system for widget notifications on Internet-enabled devices
CN103220211A (en) * 2013-04-15 2013-07-24 广东欧珀移动通信有限公司 Method, device and mobile terminal for processing SNS messages
CN104753757B (en) * 2013-12-30 2018-11-06 北京新媒传信科技有限公司 message display method and system
JP2016024557A (en) * 2014-07-17 2016-02-08 本田技研工業株式会社 Program and method for exchanging messages, and electronic apparatus
CN105045463B (en) * 2015-06-25 2018-09-04 广东欧珀移动通信有限公司 A kind of message display control method and device
CN105141510B (en) * 2015-09-24 2019-02-26 网易传媒科技(北京)有限公司 A kind of message prompt method and device
CN114500421B (en) * 2015-12-16 2023-11-03 创新先进技术有限公司 Message processing method and system
CN106131680B (en) * 2016-06-28 2019-12-03 青岛海信电器股份有限公司 TV notice display duration adjusting, device and television system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006109320A1 (en) * 2005-04-15 2006-10-19 Hewlett-Packard Development Company L.P. System and method of creating and displaying messages
CN103500218A (en) * 2013-10-10 2014-01-08 北京奇虎科技有限公司 Information display method, device and system
CN104104588A (en) * 2014-04-30 2014-10-15 中兴通讯股份有限公司 Instant message display method and device
CN104252541A (en) * 2014-09-24 2014-12-31 广州金山网络科技有限公司 Webpage information push method, data server and terminal
US20160301641A1 (en) * 2015-04-13 2016-10-13 Smoke Messaging, LLC Secure messaging system utilizing a limited viewing window
CN105591886A (en) * 2016-03-03 2016-05-18 北京小米移动软件有限公司 Message processing method, device and terminal electronic equipment
CN106850413A (en) * 2017-03-01 2017-06-13 腾讯科技(深圳)有限公司 A kind of processing method and processing device of instant communication information

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112269551A (en) * 2020-10-22 2021-01-26 北京小米移动软件有限公司 A method, device and storage medium for displaying information across devices

Also Published As

Publication number Publication date
CN106850413A (en) 2017-06-13
CN106850413B (en) 2021-06-08

Similar Documents

Publication Publication Date Title
JP6324625B2 (en) Live interactive system, information transmission method, information reception method and apparatus
JP6450029B2 (en) Advertisement push system, apparatus and method
WO2016150270A1 (en) Method and apparatus for processing group session message
WO2016184302A1 (en) Message forwarding method and electronic device
WO2016169465A1 (en) Method, apparatus and system for displaying screen information
US10084729B2 (en) Apparatuses and methods for web page sharing
CN108566332B (en) Instant messaging information processing method, device and storage medium
CN104954149B (en) The method, apparatus and system of data sharing are carried out in Web conference
CN105022552B (en) A kind of method and apparatus for showing messaging list
WO2018133685A1 (en) Interface display method, device and terminal, and storage medium
WO2022017107A1 (en) Information processing method and apparatus, computer device and storage medium
CN109309696B (en) Folder transmission method, sender, receiver, and storage medium
WO2019196691A1 (en) Keyboard interface display method and mobile terminal
CN108307140A (en) Internet phone-calling method and apparatus
CN111666009A (en) Interface display method and electronic equipment
WO2014206037A1 (en) Apparatuses and methods for web page sharing
CN105094501B (en) Method, device and system for displaying messages in mobile terminal
US20180205811A1 (en) Method and devide for adding contact information
WO2019076250A1 (en) Push message management method and related products
WO2014166263A1 (en) Communication method, system, server and client device for user-interactive system
TW201502986A (en) Apparatus, system and method of showing notifications of web browser application
CN110543273A (en) split screen display method and device for terminal
WO2018157720A1 (en) Method and device for processing instant communication information
CN115373577A (en) Image processing method and device and computer readable storage medium
WO2015032284A1 (en) Method, terminal device, and system for instant messaging

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18761429

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18761429

Country of ref document: EP

Kind code of ref document: A1

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载