+

WO2018157720A1 - 一种即时通讯信息的处理方法及装置 - Google Patents

一种即时通讯信息的处理方法及装置 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
English (en)
French (fr)
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/zh

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

本申请实施例公开了一种即时通讯信息的处理方法及装置,所述方法中,终端设备接收服务器发送的即时通讯信息,当所述终端设备判断该即时通讯信息携带位置标识时,将该即时通讯信息在即时通讯对话框的预设位置持续显示预设时长。

Description

一种即时通讯信息的处理方法及装置
本申请要求于2017年3月1日提交中国专利局、申请号为201710118140.2,发明名称为“一种即时通讯信息的处理方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及通信技术领域,具体涉及一种即时通讯信息的处理方法及装置。
发明背景
随着互联网技术的不断发展,即时通讯(Instant Messaging)已经成为目前最为流行的通讯方式之一,其能够允许两人或多人使用网络实时传递文字、语音、图片、视频等,极方便用户沟通交流。
实现即时通讯的工具通常有聊天室、即时通讯客户端(例如QQ、MSN)等,而即时通讯客户端具有快速、即时等优点更是备受用户欢迎。即时通讯过程中,无论是聊天室还是即时通讯客户端,对话框中的消息始终是按照接收时间的先后顺序排列,最新收到的消息显示在对话框的最下面,即消息列表的最底部,对话框当前显示的消息数目通常也较少,当接收到较多消息时,最早收到的消息会逐渐被往上推。
发明内容
本申请实施例提供一种即时通讯信息的处理方法及装置,可以提高查找效率,有利于用户快速看到需重点关注的消息。
本申请实施例提供一种即时通讯行信息的处理方法,包括:
终端设备接收服务器发送的即时通讯信息;
所述终端设备判断所述即时通讯信息是否携带位置标识,所述位置标识用于指示所述终端将即时通讯信息在即时通讯对话框的预设位置显示预设时长;
当所述终端设备判断所述即时通讯信息携带位置标识时,根据位置标识将所述即时通讯信息在即时通讯对话框的预设位置持续显示预设时长。
本申请实施例还提供另一种即时通讯信息的处理方法,包括:
服务器接收终端发送的即时通讯信息;
所述服务器判断所述即时通讯信息是否为预设消息类型,其中,所述预设消息类型为需要在终端的即时通讯对话框的预设位置显示预设时长的消息类型;
当所述服务器判断所述即时通讯信息为预设消息类型时,在所述即时通讯信息中添加位置标识,所述位置标识用于指示所述终端将即时通讯信息在即时通讯对话框的预设位置显示预设时长;
将携带所述位置标识的即时通讯信息发送给所述终端,以使得所述终端将所述即时通讯信息在即时通讯对话框的预设位置持续显示预设时长。
相应地,本申请实施例还提供一种即时通讯信息的处理装置,包括:
处理器;
与所述处理器相连接的存储器;所述存储器中存储有机器可读指令模块;所述机器可读指令模块包括:
第一接收模块,用于接收服务器发送的即时通讯信息;
判断模块,用于判断所述即时通讯信息是否携带位置标识,所述位置标识用于指示所述终端将即时通讯信息在即时通讯对话框的预设位置显示预设时长;
显示模块,用于当判断模块判断所述即时通讯信息携带位置标识时,根据所述位置标识将所述即时通讯信息在即时通讯对话框的预设位置持续显示预设时长。
本申请实施例还提供另一种即时通讯信息的处理装置,包括:
处理器;
与所述处理器相连接的存储器;所述存储器中存储有机器可读指令模块;所述机器可读指令模块包括:
第一接收模块,用于接收终端发送的即时通讯信息;
判断模块,用于判断所述即时通讯信息是否为预设消息类型,其中,所述 预设消息类型为需要在终端的即时通讯对话框的预设位置显示预设时长的消息类型;
添加模块,用于当判断模块判断所述即时通讯信息为预设消息类型时,在所述即时通讯信息中添加位置标识,所述位置标识用于指示所述终端将即时通讯信息在即时通讯对话框的预设位置显示预设时长;
第一发送模块,用于将携带所述位置标识的即时通讯信息发送给终端,以使得所述终端将所述即时通讯信息在即时通讯对话框的预设位置持续显示预设时长。
本申请实施例还提供了一种非易失性计算机可读存储介质,其中所述存储介质中存储有机器可读指令,所述机器可读指令可以由处理器执行以完成上述任一方法。
附图简要说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本申请实施例提供的即时通讯信息的处理方法中,终端的即时通讯对话框的示意图;
图2是本申请实施例提供的即时通讯信息的处理方法的场景示意图;
图3是本申请实施例提供的即时通讯信息的处理方法的流程图;
图4是本申请实施例提供的即时通讯信息的处理方法中,即时通讯信息在对话框的预设位置显示的示意图;
图5是本申请实施例提供的即时通讯信息的处理方法中,即时通讯信息在对话框的预设位置显示的另一示意图;
图6是本申请实施例提供的即时通讯信息的处理方法中,即时通讯信息在对话框的预设位置显示的又一示意图;
图7是本申请实施例提供的即时通讯信息的处理方法的另一流程图;
图8是本申请实施例提供的即时通讯信息的处理装置的结构示意图;
图9是本申请实施例提供的即时通讯信息的处理装置的另一结构示意图;
图10是本申请实施例提供的即时通讯信息的处理装置的又一结构示意图;
图11是本申请实施例提供的服务器的结构示意图;
图12是本申请实施例提供的终端的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请实施例提供一种即时通讯信息的处理方法和装置。
其中,本申请实施例所提供的即时通讯信息的处理装置包括:一种可以集成在服务器中的即时通讯信息处理装置,以及一种可以集成在终端等设备中用于接收服务器发送的数据的即时通讯信息处理装置。
以集成在终端中的即时通讯信息的处理装置为例,参阅图1,本申请实施例提供的一种终端,在即时通讯的对话框101中具有可供用户选择的持续显示按钮1011,该持续显示按钮1011可以是直接显示在对话框上,也可以是隐藏在对话框101内的某个图标里,其中该持续显示按钮1011可以根据需要进行设置,例如可以设置为“置顶显示”的按钮,或者设置为“置底显示”按钮,等等。在即时通讯过程中,用户发送即时通讯信息时,只需选中该持续显示按钮1011,即可使得待发送的即时通讯信息能够携带位置标识。
参阅图2,在即时通讯过程中,进行即时通讯的终端201和终端202分别通过即时通讯应用与服务器203网络连接,其中一个终端201向服务器203发送即时通讯信息,服务器203将接收到的即时通讯信息发送给通讯双方的终端201和终端202,从而实现即时通讯。其中,以终端202为例,在接收到 服务器203发送的即时通讯信息后,判断该即时通讯信息是否携带位置标识,该位置标识用于指示所述终端将即时通讯信息在即时通讯对话框的预设位置显示预设时长,当判断该即时通讯信息携带位置标识时,将该即时通讯信息在对话框的预设位置持续显示预设时长,由此用户在使用终端201发送需要引起其他用户关注的重要消息时,可以选中持续显示按钮,以使得该即时通讯信息携带位置标识,从而使得通讯各用户的终端在接收到该即时通讯信息时将该即时通讯信息在各自对话框的预设位置持续显示预设时长,使得该即时通讯信息不会被后续接收到的消息往上推,由此即使接收到较多消息,用户打开对话框时也能够快速看到持续显示在对话框中的重要消息,而无需往上翻消息列表寻找,提高用户查看消息的效率。
以下分别进行详细说明。
参阅图3,图3是本申请实施例提供的即时通讯信息的处理方法的流程图。本实施例将从终端的即时通讯信息处理装置的角度进行描述,该即时通讯信息的处理装置具体可以集成在终端等设备中,该终端可以是手机、平板电脑、笔记本电脑或个人计算机等设备。
如图3所示,即时通讯信息的处理方法的具体流程可以包括以下步骤:
步骤S301:接收服务器发送的即时通讯信息。
服务器发送的即时通讯信息来自相互进行即时通讯的任一终端,可以是用户编辑的文字信息、图片、视频以及虚拟红包等,也可以是用户转发的文章、链接等。服务器将其接收到的即时通讯信息发送给相互进行即时通讯的各终端,从而实现即时通讯。
本实施例中,接收服务器发送的即时通讯信息的终端和发送即时通讯信息给服务器的终端可以是同一终端也可以是不同的终端,本实施例是以接收服务器发送的即时通讯信息的终端的角度进行描述。
步骤S302:判断即时通讯信息是否携带位置标识,位置标识用于指示终端按照预先策略对即时通讯信息进行显示,该预先策略为使即时通讯信息在 对话框的预设位置持续显示预设时长。
其中,位置标识根据用户对对话框中的持续显示按钮的选中指令而产生,产生的方式可以有多种。
例如,当用户在发送即时通讯信息时选中了持续显示按钮,则终端根据用户选中持续显示按钮的指令,对用户所发送的即时通讯信息添加位置标识,该位置标识的表示形式可以有多种,例如文字、数字、字母或符号等等,如“1”或“5”,或者可以是“b”或“d”等,并将添加了位置标识的即时通讯信息发送给服务器,服务器直接将添加了位置标识的即时通讯信息发送给通讯的各终端。
又例如,当用户在发送即时通讯信息时选中了持续显示按钮,则终端根据用户选中持续显示按钮的指令,将即时通讯信息发送给服务器时,通知服务器需对该即时通讯信息添加位置标识,服务器根据该通知在即时通讯信息中添加位置标识,并将添加了位置标识的即时通讯信息发送给通讯的各终端。
需要说明的是,无论位置标识是用哪一种表示形式,都应该是服务器和终端事先约定的位置标识。
步骤S303:当判断即时通讯信息携带位置标识时,根据位置标识将即时通讯信息在对话框的预设位置持续显示预设时长。
其中,对话框是指终端进行即时通讯时所显示的对话窗口。位置标识具体用于指示终端按照预先策略对即时通讯信息进行显示,该预先策略为使即时通讯信息在对话框的预设位置持续显示预设时长。其中,预设位置可以是对话框中的任意一个位置,例如可以是消息列表的最顶部,此时图1所示的持续显示按钮可以设置为“置顶显示”按钮;或者预设位置可以是消息列表的最底部,此时图1所示的持续显示按钮可以设置为“置底显示”按钮;或者对话框的消息列表之外的其他位置;或者还可以是以悬浮窗口的方式显示在对话框所在位置的屏幕上,用户可以在对话框的范围内任意移动该悬浮窗口。
其中,该预设时长可以根据实际需要设定,例如可以是10s、15s、20s或1min、2min等。以预设位置为消息列表的最底部、预设时长为15s为例,如 图4所示,对话框401中的持续显示按钮设置为“置底显示”按钮,将携带位置标识的即时通讯信息a在消息列表的最底部持续显示15s,在这15s的时间里该即时通讯信息a始终显示在消息列表的最底部。其中,如图4所示,可以在即时通讯的对话框401中以倒计时的方式显示预设时长,便于用户查看持续显示的剩余时间。
其中,对于打开状态的对话框而言,预设时长从接收到即时通讯信息时为时间起点进行计算,对于关闭状态(用户可能未登录或者未打开对话框)的对话框而言,预设时长从对话框由关闭状态变为打开状态时为时间起点进行计算。
通常情况下,终端接收到的即时通讯信息将按照接收的时间先后顺序在对话框的消息列表中显示,最新接收到的即时通讯信息显示在消息列表的最底部,较早收到的即时通讯信息在会话消息列表的上部显示,当不断接收到即时通讯信息时,即时通讯信息将被不断往上推,会话消息列表的最底部始终显示的是最新接收到的即时通讯信息。在本申请实施例中,与上述通常情况下的显示方式不同的是,将携带位置标识的即时通讯信息在预设位置持续显示预设时长,因此在该预设时长内,即使不断接收到新的即时通讯信息,该携带位置标识的即时通讯信息也不会被后续接收到的消息往上推,而是在对话框内持续显示,从而用户打开对话框时能够快速看到持续显示在对话框中的重要消息,而无需往上翻消息列表寻找,提高用户查找消息的效率。
在一些实例中,当判断即时通讯信息未携带位置标识时,可以将即时通信信息按照其他策略进行显示,比如按照正常的方式将即时通讯信息按照接收到的时间先后顺序在消息列表中显示,等等。并且,当即时通讯信息在对话框的预设位置持续显示预设时长之后,可以使该即时通讯信息与其他即时通讯信息在消息列表中按照接收的时间先后顺序显示,即根据接收的时间使该即时通讯信息返回消息列表的相应时间点的位置排列显示。
其中,当接收到多个携带位置标识的即时通讯信息时,可以将多个携带 位置标识的即时通讯信息按照预先设置进行显示,例如,最新接收到的携带位置标识的即时通讯信息可以持续显示在预设位置的最底部,其他携带位置标识的即时通讯信息则按照接收到的时间先后顺序依次排列在预设位置的最底部之上。
其中,预设时长的信息可以由服务器通知各终端,例如,服务器在发送携带位置标识的即时通讯信息之前或发送的同时,可以将记载着预设时长的时长信息添加至该即时通讯信息中,从而终端在接收到携带位置标识的即时通讯信息时,从即时通讯信息中提取时长信息,以获取显示的预设时长。或者,时长信息也可以由终端从本地存储获取。具体而言,终端预先存储有持续显示的时长信息,在判断接收到的即时通讯信息携带位置标识时,从本地获取预先存储的时长信息,以获取预设时长,从而将即时通讯信息在对话框的预设位置持续显示预设时长。
在本申请即时通讯信息的处理方法另一实施方式中,可以对即时通讯信息持续显示的时长进行增加或减少。
具体地,在执行将即时通讯信息在对话框的预设位置持续显示预设时长的步骤之后,还可以包括:在预设时长内,接收服务器发送的增加第一时长的通知,或者接收服务器发送的减少第二时长的通知;当接收到增加第一时长的通知时,根据该通知计算预设时长的剩余时长和第一时长的和,得到即时通讯信息持续显示的总时长,并将即时通讯信息在对话框的预设位置持续显示该总时长;当接收到减少第二时长的通知时,根据该通知计算预设时长的剩余时长与第二时长的差值,得到总时长,并将即时通讯信息在对话框的预设位置持续显示该总时长。其中,预设时长的剩余时长与第二时长的差值不小于零。
其中,第一时长和第二时长可以根据实际应用的需求进行设置,比如,第一时长可以是3s、5s或10s等,第二时长可以是2s、5s或8s等。
服务器可以根据多种情况向第一终端发送增加第一时长或减少第二时长 的通知。
例如,服务器可以根据接收到的即时通讯信息的数量发出相应的通知。
具体地,服务器将携带位置标识的即时通讯信息发送给终端之后的一段时间(该时间不超过预设时长)内,若服务器接收到的即时通讯信息的数量超过预定数量,有可能会导致携带位置标识的即时通讯信息在预设时长结束后回到消息列表的正常位置(即按照时间顺序排列的位置)时,与后续接收到的即时通讯信息可能无法在对话框内同时显示,此时可发出增加第一时长的通知,以增加即时通讯信息在对话框持续显示的时长。若服务器接收到的即时通讯行的数量较少,没有超过预定数量,即使携带位置标识的即时通讯信息在预设时长结束后回到会话消息列表的正常位置时,与后续接收到的即时通讯信息可能可以在对话框内同时显示,此时可发出减少第二时长的通知,以减少即时通讯信息持续显示的时长。
又例如,服务器还可以根据用户的操作向终端发送增加第一时长或减少第二时长的通知。
具体地,终端将携带位置标识的即时通讯信息在对话框的预设位置持续显示预设时长时,还可以包括:显示用于对即时通讯信息进行加时显示的第一操作按钮,以及显示用于对即时通讯信息进行减时显示的第二操作按钮。
第一操作按钮和第二操作按钮例如可以如图5所示,第一操作按钮是按钮501,第二操作按钮是按钮502。按钮501和按钮502可以显示在对话框503的任一位置,例如可以分别显示在即时通讯信息a的左右两侧。
当用户希望增加置底显示的时长时,可以点击按钮501。因此,在接收服务器发送的增加第一时长的通知之前,还包括:在预设时长内,接收用户通过第一操作按钮触发的第一点击操作指令,根据第一点击操作指令生成第一点击事件;向服务器发送第一点击事件。从而,服务器根据接收到的第一点击事件发送增加第一时长的通知。
当用户希望减少置底显示的时长时,可以点击按钮502。因此,在接收服 务器发送的减少第二时长的通知之前,还包括:在预设时长内,终端接收用户通过第二操作按钮触发的第二点击操作指令,根据第二点击操作指令生成第二点击事件;向服务器发送第二点击事件。从而,服务器根据接收到的第二点击事件发送减少第二时长的通知。
其中,第一操作按钮和第二操作按钮例如可以只有一次激活态,即针对每个置底显示的即时通讯信息只有一次增加显示时长或减少显示时长的机会,第一操作按钮和第二操作按钮被点击一次之后即变为不可点击状态。
第一操作按钮和第二操作按钮也可以有多次激活态,即两个操作按钮501、502可以被多次点击,每次被点击后都将对应地生成第一点击事件和第二点击事件。对于此种情况,服务器可以有多种响应方式。
例如,服务器每接收到一次第一点击事件或第二点击事件,即发送一次相应的增加第一时长或减少第二时长的通知,从而终端每接收到一次增加第一时长的通知或减少第二时长的通知时,即将即时通讯信息持续显示的时长相应地累加第一时长或累减第二时长,其中当减少时长时减少至零为止。
对于增加第一时长的情况,当接收到多次增加第一时长的通知时,即可能有用户点击了多次按钮501或者可能有多个用户分别点击了一次按钮501,则每接收到一次增加第一时长的通知,即在剩余时长的基础上累加第一时长。例如,以第一时长为3s、预设时长为15s为例,在预设时长15s内第一次接收到增加第一时长的通知时,在预设时长15s的剩余时长的基础上累加第一时长3s,得到一个总时长,在该总时长内接收到第二次增加第一时长的通知时,则在该总时长的剩余时长的基础上累加第一时长3s,得到一个新的总时长,以此类推。
对于减少第二时长的情况,当接收到多次减少第二时长的通知时,则每接收到一次减少第二时长的通知,即在剩余时长的基础上累减第二时长。例如,以第二时长为10s、预设时长为15s为例,在预设时长15s内第一次接收到减少第二时长的通知时,在预设时长15s的剩余时长(例如剩余时长为12s)的 基础上减去第二时长10s,得到一个总时长2s,在该2s内若再接收到第二次增加第二时长的通知时,则持续显示的时长变为零,表示即时通讯信息不再在对话框的预设位置持续显示,而是返回消息列表的正常位置排列显示。
又例如,服务器在预定时间内累计接收到的第一点击事件和第二点击事件的次数,并根据第一点击事件累计的次数计算需要增加的总时长,以及根据第二点击事件累计的次数计算需要减少的总时长,并计算增加的总时长减去减少的总时长的差值。若增加的总时长大于减少的总时长,则将增加该差值时长的通知发送给终端,此时第一时长指该差值时长,终端根据该通知在预设时长的剩余时长的基础上累加该差值时长,以得到即时通讯信息在预设位置持续显示的总时长。若增加的总时长小于减少的总时长,则将减少该差值时长的通知发送给终端,此时第二时长指该差值时长,终端根据该通知在预设时长的剩余时长的基础上减去该差值时长,以得到即时通讯信息在预设位置持续显示的总时长。
当即时通讯的终端有多个时,服务器可能接收到多个终端发送的第一点击事件或第二点击事件,此时服务器的响应方式同样适用于上述两种响应方式。
为了增加美感和趣味性,按钮501的名称可以显示为“扔石头”按钮,按钮502的名称可以显示为“绑气球”按钮,且两个按钮可以采用图片的形式显示。
通过本实施例,用户可以选择对即时通讯信息在对话框的预设位置持续显示的时长进行增加或减少,当期望别的用户能够关注该即时通讯信息时,可以按下按钮501,从而可以触发服务器向各终端发送增加第一时长的通知,使得各终端增加即时通讯信息持续显示的时长,当用户对该即时通讯信息不感兴趣时,可以按下按钮502,以减少即时通讯信息置底显示的时长,由此可以方便用户操作,且使得即时通讯过程更人性化。
在上一实施例中,第一时长和第二时长为固定值,参阅图6,在另一实施例中,用户可以选择所增加或减少的时长,具体而言,第一操作按钮例如包 括“+3s”、“+8s”两个按钮,每个按钮按下一次即表示增加相应时长,例如按下8s的按钮,则服务器发送增加8s时长的通知,终端根据该通知在预设时长的剩余时长的基础上增加8s以得到持续显示的时长。同理的,第二操作按钮包括“-3s”、“-5s”两个按钮,每个按钮按下一次即表示减少相应时长。通过本实施例,可以提供更多可选的时长供用户选择,提高用户体验。
可以理解的是,在即时通讯中,服务器发送数据(例如前述的即时通讯信息、增加第一时长或减少第二时长的通知)的对象均是针对进行即时通讯的各个终端,即服务器发送即时通讯信息或者通知时,是发送给进行即时通讯的各终端。因此,当即时通讯的其中一个终端向服务器发送第一点击事件或第二点击事件时,服务器将通知即时通讯的各终端均将持续显示的时长增加第一时长或减少第二时长。由此,当其中一个用户对于某个持续显示的即时通讯信息较感兴趣并且希望引起其他用户更多关注时,可以点击第一操作按钮以使得通讯的各终端均增加该即时通讯信息持续显示的时长。
上述各实施例的即时通讯信息的处理方法,可以应用于群聊场景中,也可以应用于两人聊天的场景中。下面进一步以群聊场景为例来说明本申请实施例的即时通讯信息的处理方法的实现过程。
在群聊中,服务器接收群聊内各个终端分别发送的即时通讯信息,然后将即时通讯信息发送给群聊内的所有终端,从而实现群聊。群聊中由于进行即时通讯的用户较多,因此即时通讯信息通常也较多,尤其是当各用户针对某个热点即时通讯信息进行激烈讨论时,该热点即时通讯信息将会被后续的新即时通讯信息不断往上推,当某个用户尤其是新打开群组的用户需要花费较多时间向上翻会话消息列表才能找到该热点即时通讯信息。
而通过本申请实施例的即时通讯信息的处理方法,对于发布热点信息的用户而言,其在利用终端发布热点即时通讯行信息时可以选中持续显示按钮,相应的终端根据用户的选择对该热点即时通讯行信息添加位置标识,或者根据用户的选择通知服务器将该热点即时通讯信息添加位置标识。服务器将携 带位置标识的该热点即时通讯信息发送给群聊内的各个终端。群聊内的各个终端接收该热点即时通讯信息,并在判断该热点即时通讯信息携带位置标识时将该热点即时通讯信息在对话框的预设位置持续显示预设时长,由此即使当前不断接收到群聊内的即时通讯信息,该热点即时通讯信息也将在对话框内显示,用户尤其是新打开群组对话框的用户可以快速看到该热点即时通讯信息,无需花费较多时间查找。
此外,群聊内的各用户可以对该热点即时通讯信息进行增加或减少置底显示的时长的操作,例如当其中一个用户点击了如图5所示的第一操作按钮501,则相应的终端向服务器发送第一点击事件,服务器根据该第一点击事件向群聊内的各个终端发送增加第一时长的通知,从而各个终端根据该通知将该热点即时通讯信息持续显示的时长在预设时长的剩余时长的基础上累加第一时长。
在本申请即时通讯信息的处理方法又一实施例中,接收服务器发送的即时通讯信息之后,还包括:将即时通讯信息的内容与垃圾信息的预设特征信息对比,根据对比结果判断即时通讯信息是否为垃圾信息。其中,当判断即时通讯信息携带位置标识时,根据位置标识将即时通讯信息在对话框的预设位置持续显示预设时长的步骤,具体包括:当判断即时通讯信息携带位置标识,并且当即判断即时通讯信息不是垃圾信息时,根据位置标识将即时通讯信息在对话框的预设位置持续显示预设时长。
其中,垃圾信息可以包括广告信息、辱骂性信息等,首先预先设置表征垃圾信息的特征信息,在接收到即时通讯信息时从即时通讯信息的内容中提取关键词,与预设的垃圾信息的特征信息进行对比,当即时通讯信息的关键词中存在与预设的特征信息相符合的关键词,则判断即时通讯信息为垃圾信息,否则不是垃圾信息。
本实施例中,通过对即时通讯信息的内容做进一步判断,当判断不是垃圾信息时将即时通讯信息在预设位置持续显示,由此可以避免广告或辱骂性 质等信息等持续显示在对话框。
其中,当判断即时通讯信息携带位置标识,且为垃圾信息时,可以将即时通讯信息按照接收的时间先后顺序排列在消息列表中显示。
参阅图7,图7是本申请实施例提供的即时通讯信息的处理方法又一流程图,本实施例将从服务器的即时通讯信息处理装置的角度进行描述,所述方法包括以下步骤:
步骤S701:接收终端发送的即时通讯信息。
发送即时通讯行至服务器的终端可以是相互进行即时通讯的任一终端。即时通讯中,终端获取用户输入的即时通讯信息并发送给服务器,其中即时通讯信息例如可以是用户编辑的文字、图片、视频、虚拟红包等,还可以是用户转发的文章、链接等。
步骤S702:判断即时通讯信息是否为预设消息类型。
其中,预设消息类型是指按照预设显示方式显示的消息类型,服务器可以根据终端的通知判断该即时通讯信息是否为预设消息类型。例如,终端可以根据用户对对话框中的持续显示按钮(如图1所示)的选中与否判断即时通讯信息是否为预设消息类型,当用户选中持续显示按钮,则判断为预设消息类型。其中,终端根据用户的选择指令向服务器发送用户是否选中持续显示按钮的通知,以使得服务器根据该通知判断即时通讯信息是否为预设消息类型。
步骤S703:当判断即时通讯信息为预设消息类型时,在即时通讯信息中添加位置标识,所述位置标识用于指示终端将即时通讯信息在对话框中的预设位置显示预设时长。
其中,位置标识的表示形式可以有多种,例如文字、数字、字母或符号等等,如“1”或“5”,或者可以是“b”或“d”等,当用户选中持续显示按钮,终端向服务器发送用户选中持续显示按钮的通知,服务器根据该通知判断即时通讯信息为预设消息类型,以在即时通讯信息中添加位置标识。
当判断即时通讯信息不是预设消息类型时,可以直接将即时通讯信息发送给终端,以使得终端将即时通讯信息按照接收到的时间先后顺序显示在会话消息列表中。
步骤S704:将携带位置标识的即时通讯信息发送给终端,以使得终端将即时通讯信息在对话框的预设位置持续显示预设时长。
位置标识具体用于指示终端按照预先策略对即时通讯信息进行显示,该预先策略为使即时通讯信息在对话框的预设位置持续显示预设时长。其中,预设位置可以是对话框中的任意一个位置,例如可以是消息列表的最顶部,此时图1所示的持续显示按钮可以设置为“置顶显示”按钮;或者预设位置可以是消息列表的最底部,此时图1所示的持续显示按钮可以设置为“置底显示”按钮;或者对话框的消息列表之外的其他位置;或者还可以是以悬浮窗口的方式显示在对话框所在位置的屏幕上,用户可以在对话框的范围内任意移动该悬浮窗口。
其中,该预设时长可以根据实际需要设定,例如可以是10s、15s、20s或1min、2min等。以预设位置为消息列表的最底部、预设时长为15s为例,如图4所示,将携带位置标识的即时通讯信息a在消息列表的最底部持续显示15s,在这15s的时间里该即时通讯信息始终显示在消息列表的最底部。其中,如图所示,可以在即时通讯的对话框401中以倒计时的方式显示预设时长,便于用户查看持续显示的剩余时间。
其中,对于打开状态的对话框而言,预设时长从接收到即时通讯信息时为时间起点进行计算,对于关闭状态(用户可能未登录或者未打开对话框)的对话框而言,预设时长从对话框由关闭状态变为打开状态时为时间起点进行计算。
通常情况下,终端接收到的即时通讯信息将按照接收的时间先后顺序在对话框的消息列表中显示,最新接收到的即时通讯信息显示在消息列表的最底部,较早收到的即时通讯信息在会话消息列表的上部显示,当不断接收到 即时通讯信息时,即时通讯信息将被不断往上推,会话消息列表的最底部始终显示的是最新接收到的即时通讯信息。在本申请实施例中,与上述通常情况下的显示方式不同的是,将携带位置标识的即时通讯信息在预设位置持续显示预设时长,因此在该预设时长内,即使不断接收到新的即时通讯信息,该携带位置标识的即时通讯信息也不会被后续接收到的消息往上推,而是在对话框内持续显示,从而用户打开对话框时能够快速看到持续显示在对话框中的重要消息,而无需往上翻消息列表寻找,提高用户查找消息的效率。
其中,预设时长的时长信息可以由服务器通知各终端,例如,当判断即时通讯信息为预设消息类型时,服务器获取显示的时长信息,该时长信息记录有即时通讯信息持续显示的预设时长,服务器在发送携带位置标识的即时通讯信息之前或发送的同时,可以将记载着预设时长的时长信息添加至该即时通讯信息中,从而终端在接收到携带位置标识的即时通讯信息时,从即时通讯信息中提取时长信息,以获取显示的预设时长。或者,时长信息也可以由终端从本地存储获取,具体而言,终端预先存储有持续显示的时长信息,在判断接收到的即时通讯信息携带位置标识时,从本地获取预先存储的时长信息,以获取预设时长,从而将即时通讯信息在对话框的预设位置持续显示预设时长。
进一步地,服务器将携带位置标识的即时通讯信息发送给终端之后,还可以包括:接收终端发送的第一点击事件或者第二点击事件;根据第一点击事件向终端发送将预设时长增加第一时长的通知,以使得终端根据该通知计算预设时长的剩余时长与第一时长的和,以得到即时通讯信息在对话框的预设位置持续显示的总时长;或者,服务器根据第二点击事件向终端发送将预设时长减少第二时长的通知,以使得终端根据该通知计算预设时长的剩余时长与第二时长的差值,以得到即时通讯信息在对话框的预设位置持续显示的总时长。其中,发送第一点击事件或第二点击事件的终端可以是进行即时通讯的各个终端中的任一个,而接收所述通知的终端为进行即时通讯的各个终 端。
其中,第一时长和第二时长可以根据实际应用的需求进行设置,比如,第一时长可以是3s、5s或10s等,第二时长可以是2s、5s或8s等。
其中,服务器可以根据多种情况向终端发送增加第一时长或减少第二时长的通知,例如,可以有以下两种情况:
一种情况:服务器可以根据接收到的即时通讯信息的数量发出相应的通知。
具体地,服务器将携带位置标识的即时通讯信息发送给终端之后的一段时间(该时间不超过预设时长)内,若服务器接收到的即时通讯信息的数量超过预定数量,有可能会导致携带位置标识的即时通讯信息在预设时长结束后回到会话消息列表的正常位置(即按照时间顺序排列的位置)时,与后续接收到的即时通讯信息可能无法在对话框内同时显示,此时可发出增加第一时长的通知,以增加即时通讯信息置底显示的时长。若服务器接收到的即时通讯行的数量较少,没有超过预定数量,即使携带位置标识的即时通讯信息在预设时长结束后回到会话消息列表的正常位置时,与后续接收到的即时通讯信息可能可以在对话框内同时显示,此时可发出减少第二时长的通知,以减少即时通讯信息置底显示的时长。
另一种情况:服务器还可以根据用户的操作向终端发送增加第一时长或减少第二时长的通知。
具体地,结合图5,当用户希望增加持续显示的时长时,可以点击对话框503中的按钮501,终端接收用户通过按钮501触发的第一点击操作指令,根据第一点击操作指令生成第一点击事件,并向服务器发送第一点击事件。服务器根据接收到的第一点击事件发送增加第一时长的通知。
当用户希望减少持续显示的时长时,可以点击对话框503中的按钮502,终端接收用户通过按钮502触发的第二点击操作指令,根据第二点击操作指令生成第二点击事件,并向服务器发送第二点击事件。服务器根据接收到的第 二点击事件发送减少第二时长的通知。
其中,服务器可以是每接收到一次第一点击事件或第二点击事件,即发送一次相应的增加第一时长或减少第二时长的通知,从而终端每接收到一次增加第一时长的通知或减少第二时长的通知时,即将即时通讯信息持续显示的时长相应地在预设时长的剩余时长的基础上累加第一时长或累减第二时长。
服务器也可以是在预定时间内累计接收到的第一点击事件和第二点击事件的次数,并根据第一点击事件累计的次数计算需要增加的总时长,以及根据第二点击事件累计的次数计算需要减少的总时长,并计算增加的总时长减去减少的总时长的差值,若增加的总时长大于减少的总时长,则将增加该差值时长的通知发送给终端,此时第一时长指该差值时长,终端根据该通知在预设时长的剩余时长的基础上累加该差值时长,以得到持续显示的总时长。若增加的总时长小于减少的总时长,则将减少该差值时长的通知发送给终端,此时第二时长指该差值时长,终端根据该通知在预设时长的剩余时长的基础上减去该差值时长,以得到持续显示的总时长。
通过上述方式,用户可以根据需要增加或减少即时通讯信息持续显示的时长,使得即时通讯过程更人性化。
参阅图8,图8是本申请实施例提供的即时通讯信息的处理装置的结构示意图。本实施例的即时通讯信息的处理装置可以集成在终端等设备中,该终端可以是手机、平板电脑、笔记本电脑或个人计算机等设备。
本实施例的处理装置801与服务器802网络连接。如图所示,所述处理装置801包括第一接收模块8011、判断模块8012以及显示模块8013。
其中,第一接收模块8011用于接收服务器802发送的即时通讯信息。服务器802发送的即时通讯信息可以来自进行即时通讯的任一终端,该即时通讯信息例如可以是用户编辑的文字、图片、视频以及虚拟红包等,也可以是用户转发的文章、链接等。
判断模块8012用于判断第一接收模块8011接收到的即时通讯信息是否携 带位置标识,该位置标识用于指示所述终端将即时通讯信息在即时通讯对话框的预设位置显示预设时长。其中,位置标识可以根据用户对对话框内的持续显示按钮(如图1所示)的选中指令而产生,可以有多种方式使即时通讯信息携带位置标识,例如,以下两种方式:
方式一:当用户在发送即时通讯信息时选中了持续显示按钮,则终端根据用户选中持续显示按钮的指令,对用户所发送的即时通讯信息添加位置标识,并将添加了位置标识的即时通讯信息发送给服务器;
方式二:当用户在发送即时通讯信息时选中了持续显示按钮,则终端根据用户选中持续显示按钮的指令,将即时通讯信息发送给服务器时,并通知服务器需对该即时通讯信息添加位置标识,服务器根据该通知在即时通讯信息中添加位置标识,并将添加了位置标识的即时通讯信息发送给通讯的各终端。
显示模块8013用于当判断模块8012判断即时通讯信息携带位置标识时,根据位置标识将即时通讯信息在对话框的预设位置持续显示预设时长。
在一些实例中,当判断模块8012判断即时通讯信息未携带位置标识时,可以将即时通信信息按照预设策略进行显示,比如将即时通讯信息按照接收到的时间先后顺序在会话消息列表中显示,等等。
位置标识具体用于指示终端按照预先策略对即时通讯信息进行显示,该预先策略为使即时通讯信息在对话框的预设位置持续显示预设时长。其中,预设位置可以是对话框中的任意一个位置,例如可以是消息列表的最顶部,此时图1所示的持续显示按钮可以设置为“置顶显示”按钮;或者预设位置可以是消息列表的最底部,此时图1所示的持续显示按钮可以设置为“置底显示”按钮;或者对话框的消息列表之外的其他位置;或者还可以是以悬浮窗口的方式显示在对话框所在位置的屏幕上,用户可以在对话框的范围内任意移动该悬浮窗口。
其中,该预设时长可以根据实际需要设定,例如可以是10s、15s、20s或 1min、2min等。以预设位置为消息列表的最底部、预设时长为15s为例,如图4所示,将携带位置标识的即时通讯信息a在消息列表的最底部持续显示15s,在这15s的时间里该即时通讯信息a始终显示在消息列表的最底部。其中,如图4所示,可以在即时通讯的对话框401中以倒计时的方式显示预设时长,便于用户查看持续显示的剩余时间。
其中,对于打开状态的对话框而言,预设时长从接收到即时通讯信息时为时间起点进行计算,对于关闭状态(用户可能未登录或者未打开对话框)的对话框而言,预设时长从对话框由关闭状态变为打开状态时为时间起点进行计算。
通过本实施例,将携带位置标识的即时通讯信息在预设位置持续显示预设时长,因此在该预设时长内,即使不断接收到新的即时通讯信息,该携带位置标识的即时通讯信息也不会被后续接收到的消息往上推,而是在对话框内持续显示,从而用户打开对话框时能够快速看到持续显示在对话框中的重要消息,而无需往上翻消息列表寻找,提高用户查找消息的效率。
其中,当接收到多个携带位置标识的即时通讯信息时,可以将多个携带位置标识的即时通讯信息按照预先设置进行显示,例如,最新接收到的携带位置标识的即时通讯信息可以显示在会话消息列表的最底部,其他携带位置标识的即时通讯信息则按照接收到的时间先后顺序依次排列在会话消息列表的最底部之上。
在预设时长之后,显示模块8013可以使该即时通讯信息与其他即时通讯信息在会话消息列表中按照接收的时间先后顺序显示。
其中,显示模块8013可以从即时通讯信息中获取持续显示的时长信息,即服务器在发送携带位置标识的即时通讯信息之前或发送的同时,可以将记录有预设时长的时长信息添加至该即时通讯信息中,从而显示模块8013从即时通讯信息中提取出时长信息。或者,显示模块8013也可以从本地存储获取,即在处理装置801中预先存储持续显示的时长信息,在判断模块8012判断接收 到的即时通讯信息携带位置标识时,显示模块8013获取预先存储的时长信息,并根据该时长信息将即时通讯信息在会话消息列表中置底显示预设时长。
参阅图9,图9是本申请实施例的即时通讯信息的处理装置另一结构示意图。本实施例中,处理装置901与服务器902网络连接,处理装置901包括第一接收模块9011、判断模块9012、显示模块9013、第二接收模块9014、第三接收模块9015、第一计算模块9016、第二计算模块9017。
第一接收模块9011用于接收服务器902发送的即时通讯信息。判断模块9012用于判断第一接收模块9011接收到的即时通讯信息是否携带位置标识。显示模块9013用于当判断模块9012判断即时通讯信息携带位置标识时,将即时通讯信息在对话框的预设位置持续显示预设时长,并在当判断模块9012判断即时通讯信息未携带位置标识时,将即时通讯信息按照接收到的时间先后顺序在对话框的消息列表中显示。
将携带位置标识的即时通讯信息在预设位置持续显示之后,第二接收模块9014用于在预设时长内,接收服务器902发送的增加第一时长的通知,第一计算模块9016用于根据第二接收模块9014接收到的通知计算预设时长的剩余时长与第一时长的和,以得到即时通讯信息持续显示的总时长,从而显示模块9013将即时通讯信息按照增加后的总时长持续显示。第三接收模块9015用于接收服务器902发送的减少第二时长的通知,第二计算模块9017用于根据第三接收模块9015接收到的通知计算预设时长的剩余时长与第二时长的差值,以得到持续显示的总时长,从而显示模块9013将即时通讯信息按照减少后的总时长持续显示。
其中,第一时长和第二时长可以根据实际应用的需求进行设置,比如,第一时长可以是3s、5s或10s等,第二时长可以是2s、5s或8s等。
其中,服务器902可以根据用户的操作对处理装置901发出增加或减少时长的通知。
具体地,处理装置901还包括第一生成模块9018、第二生成模块9019、第 一发送模块9020以及第二发送模块9021。结合图5,显示模块9013在将携带位置标识的即时通讯信息在对话框的预设位置持续显示时,还显示用于对即时通讯信息进行加时显示的第一操作按501以及用于对即时通讯信息进行减时显示的第二操作按钮502。
第一生成模块9018用于在预设时长内,接收用户通过第一操作按钮501触发的第一点击操作指令,并根据第一点击操作指令生成第一点击事件,第一发送模块9020用于将第一点击事件发送给服务器902。其中,第二接收模块9014具体用于接收服务器902根据第一点击事件发送的增加第一时长的通知。
第二生成模块9019用于在预设时长内,接收用户通过第二操作按钮502触发的第二点击操作指令,并根据第二点击操作指令生成第二点击事件,第二发送模块9021用于向服务器902发送第二点击事件。其中,第三接收模块9015具体用于接收服务器902根据第二点击事件发送的减少第二时长的通知。
其中,服务器902可以每接收到一次第一点击事件或第二点击事件,即发送一次相应的增加第一时长或减少第二时长的通知,从而处理装置901每接收到一次增加第一时长的通知或减少第二时长的通知时,即将即时通讯信息持续显示的时长相应地在预设时长的剩余时长的基础上累加第一时长或累减第二时长。
另一方式中,服务器902也可以根据在预定时间内累计接收到的第一点击事件和第二点击事件的次数,发送增加第一时长或减少第二时长的通知。具体地,服务器902在预定时间内累计接收到的第一点击事件和第二点击事件的次数,根据第一点击事件累计的次数计算需要增加的总时长,以及根据第二点击事件累计的次数计算需要减少的总时长,并计算增加的总时长减去减少的总时长的差值。若增加的总时长大于减少的总时长,则将增加该差值时长的通知发送给处理装置901,此时第一时长指该差值时长,处理装置901根据该通知在预设时长的剩余时长的基础上累加该差值时长,以得到持续显示的时长。若增加的总时长小于减少的总时长,则将减少该差值时长的通知发送 给处理装置901,此时第二时长指该差值时长,处理装置901根据该通知在预设时长的剩余时长的基础上减去该差值时长,得到持续显示的时长。
通过本实施例,用户可以选择对即时通讯信息持续显示的时长增加或减少,方便用户操作,且使得即时通讯过程更人性化。
参阅图10,图10是本申请实施例提供的即时通讯信息的处理装置另一结构示意图。本实施例的即时通讯信息的处理装置可以集成在服务器中。如图所示,本实施例的处理装置1001和终端1002之间网络连接,处理装置1001包括第一接收模块10011、判断模块10012、添加模块10013以及第一发送模块10014。
其中,第一接收模块10011用于接收终端1002发送的即时通讯信息。判断模块10012用于判断第一接收模块10011接收到的即时通讯信息是否为预设消息类型。预设消息类型是指按照预设显示方式显示的消息类型,可以根据用户对对话框中的持续显示按钮(如图1所示)的选中与否判断即时通讯信息是否为预设消息类型,当用户选中持续显示按钮,则判断为预设消息类型。其中,终端根据用户的选择指令向服务器发送用户是否选中持续显示按钮的通知,以使得服务器根据该通知判断即时通讯信息是否为预设消息类型。
添加模块10013用于当判断模块10012判断即时通讯信息为预设消息类型时,在即时通讯信息中添加位置标识,该位置标识用于指示所述终端将即时通讯信息在即时通讯对话框的预设位置显示预设时长。第一发送模块10014用于将携带位置标识的即时通讯信息发送给终端1002,以使得终端1002将该即时通讯信息在对话框的预设位置持续显示预设时长。
位置标识具体用于指示终端按照预先策略对即时通讯信息进行显示,该预先策略为使即时通讯信息在对话框的预设位置持续显示预设时长。其中,预设位置可以是对话框中的任意一个位置,例如可以是消息列表的最顶部,此时图1所示的持续显示按钮可以设置为“置顶显示”按钮;或者预设位置可以是消息列表的最底部,此时图1所示的持续显示按钮可以设置为“置底显示”按 钮;或者对话框的消息列表之外的其他位置;或者还可以是以悬浮窗口的方式显示在对话框所在位置的屏幕上,用户可以在对话框的范围内任意移动该悬浮窗口。
其中,该预设时长可以根据实际需要设定,例如可以是10s、15s、20s或1min、2min等。以预设位置为消息列表的最底部、预设时长为15s为例,如图4所示,将携带位置标识的即时通讯信息a在消息列表的最底部持续显示15s,在这15s的时间里该即时通讯信息始终显示在消息列表的最底部。其中,如图所示,可以在即时通讯的对话框401中以倒计时的方式显示预设时长,便于用户查看持续显示的剩余时间。
其中,当判断模块10012判断即时通讯信息不是置底消息类型时,第一发送模块10014直接将即时通讯信息发送给终端1002,以使得终端1002将即时通讯信息按照接收到的时间先后顺序显示在会话消息列表中。
在本申请实施例中,通过将携带位置标识的即时通讯信息在预设位置持续显示预设时长,因此在该预设时长内,即使不断接收到新的即时通讯信息,该携带位置标识的即时通讯信息也不会被后续接收到的消息往上推,而是在对话框内持续显示,从而用户打开对话框时能够快速看到持续显示在对话框中的重要消息,而无需往上翻消息列表寻找,提高用户查找消息的效率。
进一步地,处理装置1001还可以包括获取模块10015。当判断模块10012判断即时通讯信息为预设消息类型时,获取模块10015获取持续显示的时长信息,该时长信息记录有即时通讯信息持续显示的预设时长。其中,获取模块10015可以从本地获取持续显示的时长信息,或者从网络上获取。添加模块10013还用于在即时通讯信息中添加持续显示的时长信息,以使得终端1002根据时长信息将即时通讯信息持续显示预设时长。
其中,处理装置1001还包括第二接收模块10016、第二发送模块10017、第三接收模块10018以及第三发送模块10019。将携带位置标识的即时通讯信息发送给终端1002后,第二接收模块10016用于接收终端1002发送的第一点击 事件,第二发送模块10017用于根据第一点击事件向终端1002发送增加第一时长的通知,以使得终端1002根据该通知计算预设时长的剩余时长与第一时长的和,以得到即时通讯信息在对话框的预设位置持续显示的总时长,从而终端1002将即时通讯信息按照该总时长持续显示在对话框的预设位置。
第三接收模块10018用于接收终端1002发送的第二点击事件,第三发送模块1009用于根据第二点击事件向终端1002发送减少第二时长的通知,以使得终端1002根据通知计算预设时长的剩余时长与第二时长的差值,以得到即时通讯信息在对话框的预设位置持续显示的总时长,从而终端1002将即时通讯信息按照该总时长持续显示在对话框的预设位置。
其中,第一点击事件和第二点击事件可以由用户在终端1002分别点击第一操作按钮和第二操作按钮而生成。
通过上述方式,用户可以增加或减少即时通讯信息置底显示的时长,使得即时通讯过程更人性化。
本申请实施例还提供一种服务器,如图11所示,其示出了本申请实施例所涉及的服务器的结构示意图,具体来讲:
该服务器可以包括一个或者一个以上处理核心的处理器1101、一个或一个以上计算机可读存储介质的存储器1102、电源1103和输入单元1104等部件。本领域技术人员可以理解,图11中示出的服务器结构并不构成对服务器的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:
处理器1101是该服务器的控制中心,利用各种接口和线路连接整个服务器的各个部分,通过运行或执行存储在存储器1102内的软件程序和/或模块,以及调用存储在存储器1102内的数据,执行服务器的各种功能和处理数据,从而对服务器进行整体监控。在一些实例中,处理器1101可包括一个或多个处理核心;在一些实例中,处理器1101可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处 理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1101中。
存储器1102可用于存储软件程序以及模块,处理器1101通过运行存储在存储器1102的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器1102可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据服务器的使用所创建的数据等。此外,存储器1102可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器1102还可以包括存储器控制器,以提供处理器1101对存储器1102的访问。
服务器还包括给各个部件供电的电源1103,在一些实例中,电源1103可以通过电源管理系统与处理器1101逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源1103还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。
该服务器还可包括输入单元1104,该输入单元1104可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。
尽管未示出,服务器还可以包括显示单元等,在此不再赘述。具体在本实施例中,服务器中的处理器1101会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行文件加载到存储器1102中,并由处理器1101来运行存储在存储器1102中的应用程序,从而实现各种功能,如下:
接收终端发送的即时通讯信息,并判断即时通讯信息是否为预设消息类型,其中,预设消息类型是指按照预设显示方式显示的消息类型,可以根据用户对对话框中的持续显示按钮(如图1所示)的选中与否判断即时通讯信息 是否为预设消息类型,当用户选中持续显示按钮,则判断为预设消息类型。
当判断即时通讯信息为预设消息类型时,在即时通讯信息中添加位置标识,并将携带位置标识的即时通讯信息发送给终端,以使得终端根据位置标识将即时通讯信息在对话框的预设位置持续显示预设时长,由此,即使终端不断接收到新的即时通讯信息,携带位置标识的即时通讯信息始终显示在对话框的预设位置,使得该即时通讯信息不会被后续接收到的消息往上推,方便用户快速找到该信息。
其中,当判断即时通讯信息不是预设消息类型时,直接将即时通讯信息发送给终端,以使得终端将即时通讯信息按照接收到的时间先后顺序显示在会话消息列表中。
在一些实例中,在判断即时通讯信息为预设消息类型时,获取持续显示的时长信息,该时长信息记录有即时通讯信息在对话框的预设位置持续显示的预设时长。然后在即时通讯信息中添加该时长信息,以使得终端根据该时长信息将即时通讯信息在对话框的预设位置持续显示预设时长。在预设时长之后,即时通讯信息可以按照接收的时间先后顺序回到消息列表中显示。
在一些实例中,将携带位置标识的即时通讯信息发送给终端之后,还接收终端发送的第一点击事件或者第二点击事件,从而根据第一点击事件向终端发送增加第一时长的通知,以使得终端根据该通知在预设时长的剩余时长的基础上累加第一时长,以得到即时通讯信息持续显示的总时长,或者根据第二点击事件向终端发送减少第二时长的通知,以使得终端根据该通知在预设时长的剩余时长的基础上累减第二时长,以得到即时通讯信息持续显示的总时长。
以上各个操作的具体实施可参见前面的实施例,在此不再赘述。
相应的,本申请实施例还提供一种终端,如图12所示,该终端可以包括射频(RF,Radio Frequency)电路1201、包括有一个或一个以上计算机可读存储介质的存储器1202、输入单元1203、显示单元1204、传感器1205、音 频电路1206、无线保真(WiFi,Wireless Fidelity)模块1207、包括有一个或者一个以上处理核心的处理器1208、以及电源1209等部件。本领域技术人员可以理解,图12中示出的终端结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:
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)等。
存储器1202可用于存储软件程序以及模块,处理器1208通过运行存储在存储器1202的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器1202可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据终端的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器1202可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器1202还可以包括存储器控制器,以提供处理器1208和输入单元1203对存储器1202的访问。
输入单元1203可用于接收输入的数字或字符信息,以及产生与用户设置 以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,在一个具体的实施例中,输入单元1203可包括触敏表面以及其他输入设备。触敏表面,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面上或在触敏表面附近的操作),并根据预先设定的程式驱动相应的连接装置。在一些实例中,触敏表面可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1208,并能接收处理器1208发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面。除了触敏表面,输入单元1203还可以包括其他输入设备。具体地,其他输入设备可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
显示单元1204可用于显示由用户输入的信息或提供给用户的信息以及终端的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元1204可包括显示面板,在一些实例中,可以采用液晶显示器(LCD,Liquid Crystal Display)、有机发光二极管(OLED,Organic Light-Emitting Diode)等形式来配置显示面板。进一步的,触敏表面可覆盖显示面板,当触敏表面检测到在其上或附近的触摸操作后,传送给处理器1208以确定触摸事件的类型,随后处理器1208根据触摸事件的类型在显示面板上提供相应的视觉输出。虽然在图12中,触敏表面与显示面板是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面与显示面板集成而实现输入和输出功能。
终端还可包括至少一种传感器1205,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板的亮度,接近传感器可在 终端移动到耳边时,关闭显示面板和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于终端还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路1206、扬声器,传声器可提供用户与终端之间的音频接口。音频电路1206可将接收到的音频数据转换后的电信号,传输到扬声器,由扬声器转换为声音信号输出;另一方面,传声器将收集的声音信号转换为电信号,由音频电路1206接收后转换为音频数据,再将音频数据输出处理器1208处理后,经RF电路1201以发送给比如另一终端,或者将音频数据输出至存储器1202以便进一步处理。音频电路1206还可能包括耳塞插孔,以提供外设耳机与终端的通信。
WiFi属于短距离无线传输技术,终端通过WiFi模块1207可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图12示出了WiFi模块1207,但是可以理解的是,其并不属于终端的必须构成,完全可以根据需要在不改变申请的本质的范围内而省略。
处理器1208是终端的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器1202内的软件程序和/或模块,以及调用存储在存储器1202内的数据,执行终端的各种功能和处理数据,从而对手机进行整体监控。在一些实例中,处理器1208可包括一个或多个处理核心;在一些实例中,处理器1208可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1208中。
终端还包括给各个部件供电的电源1209(比如电池),在一些实例中,电 源可以通过电源管理系统与处理器1208逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源1209还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。
尽管未示出,终端还可以包括摄像头、蓝牙模块等,在此不再赘述。具体在本实施例中,终端中的处理器1208会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行文件加载到存储器1202中,并由处理器1208来运行存储在存储器1202中的应用程序,从而实现各种功能:
接收服务器发送的即时通讯信息,其中服务器发送的即时通讯信息来自进行即时通讯的任一终端,可以是用户编辑的文字信息、图片、视频以及虚拟红包等,也可以是用户转发的文章、链接等。服务器将其接收到的即时通讯信息发送给进行即时通讯的各终端,从而实现即时通讯。
判断接收到的即时通讯信息是否携带位置标识,其中使即时通讯信息携带标识的方式有多重,具体可参见前面的实施例,在此不再赘述。
当判断即时通讯信息携带位置标识时,将即时通讯信息在对话框的预设位置持续显示预设时长,由此通过将即时通讯信息持续显示,可以使得用户快速地看到持续显示在预设位置的信息,无需花费较多时间在历史消息中查找。
当判断即时通讯信息未携带位置标识时,将即时通讯信息按照接收到的时间先后顺序在会话消息列表中显示。
在一些实例中,将即时通讯信息在预设位置持续显示之后,还接收服务器发送的增加第一时长或减少第二时长的通知;当接收到增加第一时长的通知时,根据该通知计算预设时长的剩余时长与第一时长的和,以得到即时通讯信息在对话框的预设位置持续显示的总时长,从而使即时通讯信息按照该总时长在预设位置持续显示;当接收到减少第二时长的通知时,根据该通知计算预设时长的剩余时长与第二时长的差值,以得到即时通讯信息在对话框 的预设位置持续显示的总时长,从而使即时通讯信息按照该总时长在预设位置持续显示。
其中服务器可以根据接收到的即时通讯信息的数量发出增加第一时长或减少第二时长的通知,也可以根据用户在终端的操作而发出,具体可参见前面的实施例,在此不再赘述。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。
以上对本申请实施例所提供的一种即时通讯信息的处理方法和装置进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。

Claims (22)

  1. 一种即时通讯信息的处理方法,包括:
    终端设备接收服务器发送的即时通讯信息;
    所述终端设备判断所述即时通讯信息是否携带位置标识,所述位置标识用于指示所述终端设备将即时通讯信息在即时通讯对话框中的预设位置显示预设时长;
    当所述终端设备判断所述即时通讯信息携带所述位置标识时,根据所述位置标识将所述即时通讯信息在所述即时通讯对话框的预设位置持续显示预设时长。
  2. 根据权利要求1所述的方法,还包括:
    在所述预设时长内,终端设备接收服务器发送的将预设时长增加第一时长的通知;
    根据所述通知计算所述预设时长的当前剩余时长与所述第一时长的和,得到第一总时长;
    将所述即时通讯信息在即时通讯对话框的预设位置继续显示所述第一总时长的时间。
  3. 根据权利要求2所述的方法,还包括:所述终端设备在所述即时通讯对话框中显示用于增加所述即时通讯信息在所述预设位置的显示时长的第一操作按钮;
    在所述预设时长内,所述终端设备接收用户通过所述第一操作按钮触发的第一点击操作指令,根据所述第一点击操作指令生成第一点击事件;向服务器发送所述第一点击事件;
    所述在所述预设时长内,接收服务器发送的将所述预设时长增加第一时长的通知,包括:在所述预设时长内,所述终端设备接收服务器根据所述第一点击事件发送的将预设时长增加第一时长的通知。
  4. 根据权利要求1所述的方法,还包括:
    在所述预设时长内,接收服务器发送的将所述预设时长减少第二时长的通知;
    根据所述通知计算所述预设时长的当前剩余时长与所述第二时长的差值,得到第二总时长;
    将所述即时通讯信息在即时通讯对话框的预设位置继续显示所述第二总时长的时间。
  5. 根据权利要求4所述的方法,还包括:所述终端设备在所述即时通讯对话框中显示用于减少所述即时通讯信息在所述预设位置的显示时长的第二操作按钮;
    在所述预设时长内,所述终端设备接收用户通过所述第二操作按钮触发的第二点击操作指令,根据所述第二点击操作指令生成第二点击事件;向服务器发送所述第二点击事件;
    所述在所述预设时长内,接收服务器发送的将所述预设时长减少第二时长的通知,包括:在所述预设时长内,所述终端设备接收服务器根据所述第二点击事件发送的将预设时长减少第二时长的通知。
  6. 根据权利要求1-5任一项所述的方法,所述根据位置标识将所述即时通讯信息在即时通讯对话框的预设位置持续显示预设时长,包括:
    根据所述位置标识将所述即时通讯信息在即时通讯对话框的消息列表的最底部持续显示预设时长。
  7. 根据权利要求1-5任一项所述的方法,所述接收服务器发送的即时通讯信息之后,还包括:
    将所述即时通讯信息的内容与垃圾信息的预设特征信息对比,根据所述对比结果判断所述即时通讯信息是否为垃圾信息;
    所述当判断所述即时通讯信息携带位置标识时,根据位置标识将所述即时通讯信息在即时通讯对话框的预设位置持续显示预设时长,包括:
    当判断所述即时通讯信息携带位置标识,且所述即时通讯信息不是垃圾 信息时,根据位置标识将所述即时通讯信息在即时通讯对话框的预设位置持续显示预设时长。
  8. 一种即时通讯信息的处理方法,包括:
    服务器接收终端发送的即时通讯信息;
    所述服务器判断所述即时通讯信息是否为预设消息类型,其中,所述预设消息类型为需要在终端的即时通讯对话框的预设位置显示预设时长的消息类型;
    当所述服务器判断所述即时通讯信息为预设消息类型时,在所述即时通讯信息中添加位置标识,所述位置标识用于指示终端设备将即时通讯信息在即时通讯对话框中的预设位置显示预设时长;
    将携带所述位置标识的即时通讯信息发送给所述终端设备,以使得所述终端设备将所述即时通讯信息在即时通讯对话框的预设位置持续显示预设时长。
  9. 根据权利要求8所述的方法,还包括:
    当判断所述即时通讯信息为预设消息类型,获取持续显示的时长信息,所述时长信息记录有所述即时通讯信息在即时通讯对话框的预设位置持续显示的预设时长;
    在所述即时通讯信息中添加所述时长信息,以使得终端根据所述时长信息将所述即时通讯信息在即时通讯对话框的预设位置持续显示所述预设时长。
  10. 根据权利要求9所述的方法,所述将携带所述位置标识的即时通讯信息发送给终端之后,还包括:
    接收终端发送的第一点击事件,其中,所述第一点击事件是所述终端在接收到用户通过点击第一操作按钮而触发的第一点击操作指令之后,根据所述第一点击操作指令生成并发送给所述服务器的,所述第一操作按钮显示在所述终端的即时通讯对话框中,用于增加所述即时通讯信息在所述预设位置的显示时长;
    根据所述第一点击事件向终端发送将预设时长增加第一时长的通知,以使得终端根据所述通知计算所述预设时长的当前剩余时长与所述第一时长的和,并得到所述即时通讯信息在即时通讯对话框的预设位置持续显示的第一总时长。
  11. 根据权利要求9所述的方法,将携带所述位置标识的所述即时通讯信息发送给终端之后,还包括:
    接收终端发送的第二点击事件,其中,所述第二点击事件是所述终端在接收到用户通过点击第二操作按钮而触发的第二点击操作指令之后,根据所述第二点击操作指令生成并发送给所述服务器的,所述第二操作按钮显示在所述终端的即时通讯对话框中,用于减少所述即时通讯信息在所述预设位置的显示时长;
    根据所述第二点击事件向终端发送减少第二时长的通知,以使得终端根据所述通知计算预设时长的当前剩余时长与所述第二时长的差值,并得到所述即时通讯信息在即时通讯对话框的预设位置持续显示的第二总时长。
  12. 一种即时通讯信息的处理装置,包括:
    处理器;
    与所述处理器相连接的存储器;所述存储器中存储有机器可读指令模块;所述机器可读指令模块包括:
    第一接收模块,用于接收服务器发送的即时通讯信息;
    判断模块,用于判断所述即时通讯信息是否携带位置标识,所述位置标识用于指示所述终端将即时通讯信息在即时通讯对话框的预设位置显示预设时长;
    显示模块,用于当判断模块判断所述即时通讯信息携带位置标识时,根据所述位置标识将所述即时通讯信息在即时通讯对话框的预设位置持续显示预设时长。
  13. 根据权利要求12所述的处理装置,还包括第二接收模块和第一计算 模块:
    所述第二接收模块,用于在所述预设时长内,接收服务器发送的将预设时长增加第一时长的通知;
    所述第一计算模块,用于根据所述通知计算所述预设时长的当前剩余时长与所述第一时长的和,得到第一总时长;
    所述显示模块用于将所述即时通讯信息在即时通讯对话框的预设位置持续显示所述第一总时长。
  14. 根据权利要求13所述的处理装置,还包括第一生成模块和第一发送模块;
    所述显示模块,还用于在所述即时通讯对话框中显示用于增加所述即时通讯信息在所述预设位置的显示时长的第一操作按钮;
    所述第一生成模块,用于在所述预设时长内,接收用户通过所述第一操作按钮触发的第一点击操作指令,根据所述一点击操作指令生成第一点击事件;
    所述第一发送模块,用于向服务器发送所述第一点击事件;
    所述第二接收模块,用于在所述预设时长内,接收服务器根据所述第一点击事件发送的将所述预设时长增加第一时长的通知。
  15. 根据权利要求12所述的处理装置,还包括第三接收模块和第二计算模块;
    所述第三接收模块,用于在所述预设时长内,接收服务器发送的将所述预设时长减少第二时长的通知;
    所述第二计算模块,用于根据所述通知计算所述预设时长的当前剩余时长与所述第二时长的差值,得到第二总时长;
    所述显示模块用于将所述即时通讯信息在即时通讯对话框的预设位置持续显示所述第二总时长。
  16. 根据权利要求15所述的处理装置,还包括第二生成模块和第二发送 模块;
    所述显示模块,还用于显示用于减少所述即时通讯信息在所述预设位置的显示时长的第二操作按钮;
    所述第二生成模块,用于在所述预设时长内,接收用户通过所述第二操作按钮触发的第二点击操作指令,根据所述第二操作指令生成第二点击事件;
    所述第二发送模块,用于向服务器发送所述第二点击事件;
    所述第三接收模块,用于在所述预设时长内,接收服务器根据所述第二点击事件发送的将所述预设时长减少第二时长的通知。
  17. 一种即时通讯信息的处理装置,包括:
    处理器;
    与所述处理器相连接的存储器;所述存储器中存储有机器可读指令模块;所述机器可读指令模块包括:
    第一接收模块,用于接收终端发送的即时通讯信息;
    判断模块,用于判断所述即时通讯信息是否为预设消息类型,其中,所述预设消息类型为需要在终端的即时通讯对话框的预设位置显示预设时长的消息类型;
    添加模块,用于当判断模块判断所述即时通讯信息为预设消息类型时,在所述即时通讯信息中添加位置标识,所述位置标识用于指示所述终端将即时通讯信息在即时通讯对话框的预设位置显示预设时长;
    第一发送模块,用于将携带所述位置标识的即时通讯信息发送给终端,以使得所述终端将所述即时通讯信息在即时通讯对话框的预设位置持续显示预设时长。
  18. 根据权利要求17所述的处理装置,还包括获取模块;
    所述获取模块,用于当判断所述即时通讯信息为预设消息类型,获取持续显示的时长信息,所述时长信息记录有所述即时通讯信息在即时通讯对话框的预设位置持续显示的预设时长;
    所述添加模块,还用于在所述即时通讯信息中添加所述时长信息,以使得终端根据所述时长信息将所述即时通讯信息在即时通讯对话框的预设位置持续显示预设时长。
  19. 根据权利要求18所述的处理装置,还包括:
    第二接收模块,用于接收终端发送的第一点击事件,其中,所述第一点击事件是所述终端在接收到用户通过点击第一操作按钮而触发的第一点击操作指令之后,根据所述第一点击操作指令生成并发送给所述服务器的,所述第一操作按钮显示在所述终端的即时通讯对话框中,用于增加所述即时通讯信息在所述预设位置的显示时长;
    第二发送模块,用于根据所述第一点击事件向终端发送将所述预设时长增加第一时长的通知,以使得终端根据所述通知计算所述预设时长的当前剩余时长与所述第一时长的和,并得到所述即时通讯信息在即时通讯对话框的预设位置持续显示的第一总时长。
  20. 根据权利要求18所述的处理装置,还包括:
    第三接收模块,用于接收终端发送的第二点击事件,其中,所述第二点击事件是所述终端在接收到用户通过点击第二操作按钮而触发的第二点击操作指令之后,根据所述第二点击操作指令生成并发送给所述服务器的,所述第二操作按钮显示在所述终端的即时通讯对话框中,用于减少所述即时通讯信息在所述预设位置的显示时长;
    第三发送模块,用于根据所述第二点击事件向终端发送将所述预设时长减少第二时长的通知,以使得终端根据所述通知计算所述预设时长的当前剩余时长与所述第二时长的差值,并得到所述即时通讯信息在即时通讯对话框的预设位置持续显示的第二总时长。
  21. 一种非易失性计算机可读存储介质,其中所述存储介质中存储有机器可读指令,所述机器可读指令可以由处理器执行以完成权利要求1-7任一项所述的方法。
  22. 一种非易失性计算机可读存储介质,其中所述存储介质中存储有机器可读指令,所述机器可读指令可以由处理器执行以完成权利要求8-11任一项所述的方法。
PCT/CN2018/075921 2017-03-01 2018-02-09 一种即时通讯信息的处理方法及装置 WO2018157720A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710118140.2A CN106850413B (zh) 2017-03-01 2017-03-01 一种即时通讯信息的处理方法及装置
CN201710118140.2 2017-03-01

Publications (1)

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

Family

ID=59138588

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/075921 WO2018157720A1 (zh) 2017-03-01 2018-02-09 一种即时通讯信息的处理方法及装置

Country Status (2)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112269551A (zh) * 2020-10-22 2021-01-26 北京小米移动软件有限公司 一种跨设备显示信息的方法、装置及存储介质

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106850413B (zh) * 2017-03-01 2021-06-08 腾讯科技(深圳)有限公司 一种即时通讯信息的处理方法及装置
CN107465594A (zh) * 2017-06-27 2017-12-12 畅捷通信息技术股份有限公司 一种聊天消息的显示方法及显示系统

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 (zh) * 2013-10-10 2014-01-08 北京奇虎科技有限公司 信息展示方法、装置和系统
CN104104588A (zh) * 2014-04-30 2014-10-15 中兴通讯股份有限公司 即时消息显示方法和装置
CN104252541A (zh) * 2014-09-24 2014-12-31 广州金山网络科技有限公司 一种网页信息推送方法、数据服务器及终端
CN105591886A (zh) * 2016-03-03 2016-05-18 北京小米移动软件有限公司 消息处理方法、装置及终端电子设备
US20160301641A1 (en) * 2015-04-13 2016-10-13 Smoke Messaging, LLC Secure messaging system utilizing a limited viewing window
CN106850413A (zh) * 2017-03-01 2017-06-13 腾讯科技(深圳)有限公司 一种即时通讯信息的处理方法及装置

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
NO20110767A1 (no) * 2011-05-25 2012-07-09 Harald Amundsen Fremgangsmåte og navigasjons- og presentasjonssystem for widget-notifikasjoner på internettaktiverte enheter
CN103220211A (zh) * 2013-04-15 2013-07-24 广东欧珀移动通信有限公司 一种sns消息的处理方法、装置及移动终端
CN104753757B (zh) * 2013-12-30 2018-11-06 北京新媒传信科技有限公司 消息显示方法及系统
JP2016024557A (ja) * 2014-07-17 2016-02-08 本田技研工業株式会社 メッセージの交換を行うプログラム、方法、及び電子機器
CN105045463B (zh) * 2015-06-25 2018-09-04 广东欧珀移动通信有限公司 一种消息显示控制方法及装置
CN105141510B (zh) * 2015-09-24 2019-02-26 网易传媒科技(北京)有限公司 一种消息提示方法和装置
CN106888151B (zh) * 2015-12-16 2021-11-30 创新先进技术有限公司 消息处理方法和系统
CN106131680B (zh) * 2016-06-28 2019-12-03 青岛海信电器股份有限公司 电视通知显示时长调整方法、装置及电视系统

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 (zh) * 2013-10-10 2014-01-08 北京奇虎科技有限公司 信息展示方法、装置和系统
CN104104588A (zh) * 2014-04-30 2014-10-15 中兴通讯股份有限公司 即时消息显示方法和装置
CN104252541A (zh) * 2014-09-24 2014-12-31 广州金山网络科技有限公司 一种网页信息推送方法、数据服务器及终端
US20160301641A1 (en) * 2015-04-13 2016-10-13 Smoke Messaging, LLC Secure messaging system utilizing a limited viewing window
CN105591886A (zh) * 2016-03-03 2016-05-18 北京小米移动软件有限公司 消息处理方法、装置及终端电子设备
CN106850413A (zh) * 2017-03-01 2017-06-13 腾讯科技(深圳)有限公司 一种即时通讯信息的处理方法及装置

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112269551A (zh) * 2020-10-22 2021-01-26 北京小米移动软件有限公司 一种跨设备显示信息的方法、装置及存储介质

Also Published As

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

Similar Documents

Publication Publication Date Title
JP6324625B2 (ja) ライブインタラクティブシステム、情報の送信方法、情報の受信方法及び装置
JP6450029B2 (ja) 広告プッシュシステム、装置及び方法
WO2016150270A1 (zh) 群组会话消息处理方法和装置
WO2016184302A1 (zh) 消息转发方法及电子设备
WO2016169465A1 (zh) 一种显示弹幕信息的方法、装置和系统
US10084729B2 (en) Apparatuses and methods for web page sharing
CN108566332B (zh) 一种即时通讯信息处理方法、装置和存储介质
CN105022552B (zh) 一种显示消息列表的方法和装置
CN104954149B (zh) 网络会议中进行数据共享的方法、装置及系统
WO2018133685A1 (zh) 界面显示方法、装置、终端及存储介质
WO2022017107A1 (zh) 信息处理方法、装置、计算机设备及存储介质
CN109309696B (zh) 文件夹发送方法、发送方、接收方以及存储介质
WO2019196691A1 (zh) 一种键盘界面显示方法和移动终端
WO2015085951A1 (zh) 邀请好友观看视频的方法、终端、服务器及系统
CN108307140A (zh) 网络通话方法和装置
CN111666009A (zh) 一种界面显示方法及电子设备
WO2014206037A1 (en) Apparatuses and methods for web page sharing
CN105094501B (zh) 一种移动终端中消息的显示方法、装置和系统
US20180205811A1 (en) Method and devide for adding contact information
WO2019076250A1 (zh) 推送消息的管理方法及相关产品
WO2014166263A1 (en) Communication method, system, server and client device for user-interactive system
TW201502986A (zh) 使用於瀏覽器網頁的應用程式訊息通知顯示方法、相關設備與系統
CN110543273A (zh) 一种用于终端的分屏显示方法及装置
WO2018157720A1 (zh) 一种即时通讯信息的处理方法及装置
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浏览器服务,不要输入任何密码和下载